
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

_Bool cmd_spec_dirstruct(char *com,char *val,void *place_ignored)

{
  undefined1 uVar1;
  
  uVar1 = cmd_boolean(com,val,&opt.dirstruct);
  if ((bool)uVar1) {
    if (opt.dirstruct == false) {
      opt.no_dirstruct = true;
      return (_Bool)uVar1;
    }
    opt.no_dirstruct = false;
    uVar1 = opt.dirstruct;
  }
  return (_Bool)uVar1;
}



/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

uint FUN_00038840(undefined4 param_1,undefined4 param_2)

{
  uint uVar1;
  uint uVar2;
  
  uVar1 = FUN_000385b0(param_1,param_2,&DAT_000a8a64);
  uVar2 = uVar1;
  if ((char)uVar1 != '\0') {
    uVar2 = (uint)DAT_000a8a64;
    if (DAT_000a8a64 == 0) {
      DAT_000a8a65 = 1;
      return uVar1;
    }
    DAT_000a8a65 = 0;
  }
  return uVar2;
}


CALL 0x000247ed
ADD EAX,0x6838b
PUSH EBX
SUB ESP,0xc
LEA EBX,[EAX + 0x7e70]
LEA EAX,[EBX + 0x24]
PUSH EAX
PUSH dword ptr [ESP + 0x1c]
PUSH dword ptr [ESP + 0x1c]
CALL 0x000385b0
ADD ESP,0x10
TEST AL,AL
JZ 0x0003887a
MOVZX EDX,byte ptr [EBX + 0x24]
TEST DL,DL
JZ 0x00038880
MOV byte ptr [EBX + 0x25],0x0
MOV EAX,EDX
ADD ESP,0x8
POP EBX
RET
MOV byte ptr [EBX + 0x25],0x1
ADD ESP,0x8
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nuint FUN_00038840(undefined4 param_1,undefined4 param_2)\n\n{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar1 = FUN_000385b0(param_1,param_2,&DAT_000a8a64);\n  uVar2 = uVar1;\n  if ((char)uVar1 != '\0') {\n    uVar2 = (uint)DAT_000a8a64;\n    if (DAT_000a8a64 == 0) {\n      DAT_000a8a65 = 1;\n      return uVar1;\n    }\n    DAT_000a8a65 = 0;\n  }\n  return uVar2;\n}\n\n" comment (function_definition "uint FUN_00038840(undefined4 param_1,undefined4 param_2)\n\n{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar1 = FUN_000385b0(param_1,param_2,&DAT_000a8a64);\n  uVar2 = uVar1;\n  if ((char)uVar1 != '\0') {\n    uVar2 = (uint)DAT_000a8a64;\n    if (DAT_000a8a64 == 0) {\n      DAT_000a8a65 = 1;\n      return uVar1;\n    }\n    DAT_000a8a65 = 0;\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_00038840(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar1 = FUN_000385b0(param_1,param_2,&DAT_000a8a64);\n  uVar2 = uVar1;\n  if ((char)uVar1 != '\0') {\n    uVar2 = (uint)DAT_000a8a64;\n    if (DAT_000a8a64 == 0) {\n      DAT_000a8a65 = 1;\n      return uVar1;\n    }\n    DAT_000a8a65 = 0;\n  }\n  return uVar2;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "uVar1 = FUN_000385b0(param_1,param_2,&DAT_000a8a64);" (assignment_expression "uVar1 = FUN_000385b0(param_1,param_2,&DAT_000a8a64)" identifier = (call_expression "FUN_000385b0(param_1,param_2,&DAT_000a8a64)" identifier (argument_list "(param_1,param_2,&DAT_000a8a64)" ( identifier , identifier , (pointer_expression "&DAT_000a8a64" & identifier) )))) ;) (expression_statement "uVar2 = uVar1;" (assignment_expression "uVar2 = uVar1" identifier = identifier) ;) (if_statement "if ((char)uVar1 != '\0') {\n    uVar2 = (uint)DAT_000a8a64;\n    if (DAT_000a8a64 == 0) {\n      DAT_000a8a65 = 1;\n      return uVar1;\n    }\n    DAT_000a8a65 = 0;\n  }" if (parenthesized_expression "((char)uVar1 != '\0')" ( (binary_expression "(char)uVar1 != '\0'" (cast_expression "(char)uVar1" ( (type_descriptor "char" primitive_type) ) identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    uVar2 = (uint)DAT_000a8a64;\n    if (DAT_000a8a64 == 0) {\n      DAT_000a8a65 = 1;\n      return uVar1;\n    }\n    DAT_000a8a65 = 0;\n  }" { (expression_statement "uVar2 = (uint)DAT_000a8a64;" (assignment_expression "uVar2 = (uint)DAT_000a8a64" identifier = (cast_expression "(uint)DAT_000a8a64" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (if_statement "if (DAT_000a8a64 == 0) {\n      DAT_000a8a65 = 1;\n      return uVar1;\n    }" if (parenthesized_expression "(DAT_000a8a64 == 0)" ( (binary_expression "DAT_000a8a64 == 0" identifier == number_literal) )) (compound_statement "{\n      DAT_000a8a65 = 1;\n      return uVar1;\n    }" { (expression_statement "DAT_000a8a65 = 1;" (assignment_expression "DAT_000a8a65 = 1" identifier = number_literal) ;) (return_statement "return uVar1;" return identifier ;) })) (expression_statement "DAT_000a8a65 = 0;" (assignment_expression "DAT_000a8a65 = 0" identifier = number_literal) ;) })) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\n_Bool cmd_spec_dirstruct(char *com,char *val,void *place_ignored)\n\n{\n  undefined1 uVar1;\n  \n  uVar1 = cmd_boolean(com,val,&opt.dirstruct);\n  if ((bool)uVar1) {\n    if (opt.dirstruct == false) {\n      opt.no_dirstruct = true;\n      return (_Bool)uVar1;\n    }\n    opt.no_dirstruct = false;\n    uVar1 = opt.dirstruct;\n  }\n  return (_Bool)uVar1;\n}\n\n" comment comment comment (function_definition "_Bool cmd_spec_dirstruct(char *com,char *val,void *place_ignored)\n\n{\n  undefined1 uVar1;\n  \n  uVar1 = cmd_boolean(com,val,&opt.dirstruct);\n  if ((bool)uVar1) {\n    if (opt.dirstruct == false) {\n      opt.no_dirstruct = true;\n      return (_Bool)uVar1;\n    }\n    opt.no_dirstruct = false;\n    uVar1 = opt.dirstruct;\n  }\n  return (_Bool)uVar1;\n}" type_identifier (function_declarator "cmd_spec_dirstruct(char *com,char *val,void *place_ignored)" identifier (parameter_list "(char *com,char *val,void *place_ignored)" ( (parameter_declaration "char *com" primitive_type (pointer_declarator "*com" * identifier)) , (parameter_declaration "char *val" primitive_type (pointer_declarator "*val" * identifier)) , (parameter_declaration "void *place_ignored" primitive_type (pointer_declarator "*place_ignored" * identifier)) ))) (compound_statement "{\n  undefined1 uVar1;\n  \n  uVar1 = cmd_boolean(com,val,&opt.dirstruct);\n  if ((bool)uVar1) {\n    if (opt.dirstruct == false) {\n      opt.no_dirstruct = true;\n      return (_Bool)uVar1;\n    }\n    opt.no_dirstruct = false;\n    uVar1 = opt.dirstruct;\n  }\n  return (_Bool)uVar1;\n}" { (declaration "undefined1 uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = cmd_boolean(com,val,&opt.dirstruct);" (assignment_expression "uVar1 = cmd_boolean(com,val,&opt.dirstruct)" identifier = (call_expression "cmd_boolean(com,val,&opt.dirstruct)" identifier (argument_list "(com,val,&opt.dirstruct)" ( identifier , identifier , (pointer_expression "&opt.dirstruct" & (field_expression "opt.dirstruct" identifier . field_identifier)) )))) ;) (if_statement "if ((bool)uVar1) {\n    if (opt.dirstruct == false) {\n      opt.no_dirstruct = true;\n      return (_Bool)uVar1;\n    }\n    opt.no_dirstruct = false;\n    uVar1 = opt.dirstruct;\n  }" if (parenthesized_expression "((bool)uVar1)" ( (cast_expression "(bool)uVar1" ( (type_descriptor "bool" primitive_type) ) identifier) )) (compound_statement "{\n    if (opt.dirstruct == false) {\n      opt.no_dirstruct = true;\n      return (_Bool)uVar1;\n    }\n    opt.no_dirstruct = false;\n    uVar1 = opt.dirstruct;\n  }" { (if_statement "if (opt.dirstruct == false) {\n      opt.no_dirstruct = true;\n      return (_Bool)uVar1;\n    }" if (parenthesized_expression "(opt.dirstruct == false)" ( (binary_expression "opt.dirstruct == false" (field_expression "opt.dirstruct" identifier . field_identifier) == false) )) (compound_statement "{\n      opt.no_dirstruct = true;\n      return (_Bool)uVar1;\n    }" { (expression_statement "opt.no_dirstruct = true;" (assignment_expression "opt.no_dirstruct = true" (field_expression "opt.no_dirstruct" identifier . field_identifier) = true) ;) (return_statement "return (_Bool)uVar1;" return (cast_expression "(_Bool)uVar1" ( (type_descriptor "_Bool" type_identifier) ) identifier) ;) })) (expression_statement "opt.no_dirstruct = false;" (assignment_expression "opt.no_dirstruct = false" (field_expression "opt.no_dirstruct" identifier . field_identifier) = false) ;) (expression_statement "uVar1 = opt.dirstruct;" (assignment_expression "uVar1 = opt.dirstruct" identifier = (field_expression "opt.dirstruct" identifier . field_identifier)) ;) })) (return_statement "return (_Bool)uVar1;" return (cast_expression "(_Bool)uVar1" ( (type_descriptor "_Bool" type_identifier) ) identifier) ;) })))
(translation_unit "uint FUN_00038840(undefined4 param_1,undefined4 param_2)\n\n{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar1 = FUN_000385b0(param_1,param_2,&DAT_000a8a64);\n  uVar2 = uVar1;\n  if ((char)uVar1 != '\0') {\n    uVar2 = (uint)DAT_000a8a64;\n    if (DAT_000a8a64 == 0) {\n      DAT_000a8a65 = 1;\n      return uVar1;\n    }\n    DAT_000a8a65 = 0;\n  }\n  return uVar2;\n}\n\n" (function_definition "uint FUN_00038840(undefined4 param_1,undefined4 param_2)\n\n{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar1 = FUN_000385b0(param_1,param_2,&DAT_000a8a64);\n  uVar2 = uVar1;\n  if ((char)uVar1 != '\0') {\n    uVar2 = (uint)DAT_000a8a64;\n    if (DAT_000a8a64 == 0) {\n      DAT_000a8a65 = 1;\n      return uVar1;\n    }\n    DAT_000a8a65 = 0;\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_00038840(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar1 = FUN_000385b0(param_1,param_2,&DAT_000a8a64);\n  uVar2 = uVar1;\n  if ((char)uVar1 != '\0') {\n    uVar2 = (uint)DAT_000a8a64;\n    if (DAT_000a8a64 == 0) {\n      DAT_000a8a65 = 1;\n      return uVar1;\n    }\n    DAT_000a8a65 = 0;\n  }\n  return uVar2;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "uVar1 = FUN_000385b0(param_1,param_2,&DAT_000a8a64);" (assignment_expression "uVar1 = FUN_000385b0(param_1,param_2,&DAT_000a8a64)" identifier = (call_expression "FUN_000385b0(param_1,param_2,&DAT_000a8a64)" identifier (argument_list "(param_1,param_2,&DAT_000a8a64)" ( identifier , identifier , (pointer_expression "&DAT_000a8a64" & identifier) )))) ;) (expression_statement "uVar2 = uVar1;" (assignment_expression "uVar2 = uVar1" identifier = identifier) ;) (if_statement "if ((char)uVar1 != '\0') {\n    uVar2 = (uint)DAT_000a8a64;\n    if (DAT_000a8a64 == 0) {\n      DAT_000a8a65 = 1;\n      return uVar1;\n    }\n    DAT_000a8a65 = 0;\n  }" if (parenthesized_expression "((char)uVar1 != '\0')" ( (binary_expression "(char)uVar1 != '\0'" (cast_expression "(char)uVar1" ( (type_descriptor "char" primitive_type) ) identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    uVar2 = (uint)DAT_000a8a64;\n    if (DAT_000a8a64 == 0) {\n      DAT_000a8a65 = 1;\n      return uVar1;\n    }\n    DAT_000a8a65 = 0;\n  }" { (expression_statement "uVar2 = (uint)DAT_000a8a64;" (assignment_expression "uVar2 = (uint)DAT_000a8a64" identifier = (cast_expression "(uint)DAT_000a8a64" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (if_statement "if (DAT_000a8a64 == 0) {\n      DAT_000a8a65 = 1;\n      return uVar1;\n    }" if (parenthesized_expression "(DAT_000a8a64 == 0)" ( (binary_expression "DAT_000a8a64 == 0" identifier == number_literal) )) (compound_statement "{\n      DAT_000a8a65 = 1;\n      return uVar1;\n    }" { (expression_statement "DAT_000a8a65 = 1;" (assignment_expression "DAT_000a8a65 = 1" identifier = number_literal) ;) (return_statement "return uVar1;" return identifier ;) })) (expression_statement "DAT_000a8a65 = 0;" (assignment_expression "DAT_000a8a65 = 0" identifier = number_literal) ;) })) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (pointer_expression & IDENT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) })) (return_statement return IDENT ;) })))
(function_definition "uint FUN_00038840(undefined4 param_1,undefined4 param_2)\n\n{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar1 = FUN_000385b0(param_1,param_2,&DAT_000a8a64);\n  uVar2 = uVar1;\n  if ((char)uVar1 != '\0') {\n    uVar2 = (uint)DAT_000a8a64;\n    if (DAT_000a8a64 == 0) {\n      DAT_000a8a65 = 1;\n      return uVar1;\n    }\n    DAT_000a8a65 = 0;\n  }\n  return uVar2;\n}" (type_identifier "uint") (function_declarator "FUN_00038840(undefined4 param_1,undefined4 param_2)" (identifier "FUN_00038840") (parameter_list "(undefined4 param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar1 = FUN_000385b0(param_1,param_2,&DAT_000a8a64);\n  uVar2 = uVar1;\n  if ((char)uVar1 != '\0') {\n    uVar2 = (uint)DAT_000a8a64;\n    if (DAT_000a8a64 == 0) {\n      DAT_000a8a65 = 1;\n      return uVar1;\n    }\n    DAT_000a8a65 = 0;\n  }\n  return uVar2;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (expression_statement "uVar1 = FUN_000385b0(param_1,param_2,&DAT_000a8a64);" (assignment_expression "uVar1 = FUN_000385b0(param_1,param_2,&DAT_000a8a64)" (identifier "uVar1") (= "=") (call_expression "FUN_000385b0(param_1,param_2,&DAT_000a8a64)" (identifier "FUN_000385b0") (argument_list "(param_1,param_2,&DAT_000a8a64)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (pointer_expression "&DAT_000a8a64" (& "&") (identifier "DAT_000a8a64")) () ")")))) (; ";")) (expression_statement "uVar2 = uVar1;" (assignment_expression "uVar2 = uVar1" (identifier "uVar2") (= "=") (identifier "uVar1")) (; ";")) (if_statement "if ((char)uVar1 != '\0') {\n    uVar2 = (uint)DAT_000a8a64;\n    if (DAT_000a8a64 == 0) {\n      DAT_000a8a65 = 1;\n      return uVar1;\n    }\n    DAT_000a8a65 = 0;\n  }" (if "if") (parenthesized_expression "((char)uVar1 != '\0')" (( "(") (binary_expression "(char)uVar1 != '\0'" (cast_expression "(char)uVar1" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar1")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    uVar2 = (uint)DAT_000a8a64;\n    if (DAT_000a8a64 == 0) {\n      DAT_000a8a65 = 1;\n      return uVar1;\n    }\n    DAT_000a8a65 = 0;\n  }" ({ "{") (expression_statement "uVar2 = (uint)DAT_000a8a64;" (assignment_expression "uVar2 = (uint)DAT_000a8a64" (identifier "uVar2") (= "=") (cast_expression "(uint)DAT_000a8a64" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "DAT_000a8a64"))) (; ";")) (if_statement "if (DAT_000a8a64 == 0) {\n      DAT_000a8a65 = 1;\n      return uVar1;\n    }" (if "if") (parenthesized_expression "(DAT_000a8a64 == 0)" (( "(") (binary_expression "DAT_000a8a64 == 0" (identifier "DAT_000a8a64") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      DAT_000a8a65 = 1;\n      return uVar1;\n    }" ({ "{") (expression_statement "DAT_000a8a65 = 1;" (assignment_expression "DAT_000a8a65 = 1" (identifier "DAT_000a8a65") (= "=") (number_literal "1")) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (expression_statement "DAT_000a8a65 = 0;" (assignment_expression "DAT_000a8a65 = 0" (identifier "DAT_000a8a65") (= "=") (number_literal "0")) (; ";")) (} "}"))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

type_1 function_1(char *com,char *val,void *place_ignored)

{
  type_2 uVar1;
  
  uVar1 = var_1(com,val,&opt.dirstruct);
  if ((bool)uVar1) {
    if (opt.dirstruct == false) {
      opt.no_dirstruct = true;
      return (type_1)uVar1;
    }
    opt.no_dirstruct = false;
    uVar1 = opt.dirstruct;
  }
  return (type_1)uVar1;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (return_statement (identifier)))))

/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

uint MASKED(undefined4 param_1,undefined4 param_2)

{
  uint uVar1;
  uint uVar2;
  
  uVar1 = FUN_000385b0(param_1,param_2,&DAT_000a8a64);
  uVar2 = uVar1;
  if ((char)uVar1 != '\0') {
    uVar2 = (uint)DAT_000a8a64;
    if (DAT_000a8a64 == 0) {
      DAT_000a8a65 = 1;
      return uVar1;
    }
    DAT_000a8a65 = 0;
  }
  return uVar2;
}

