
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

void s_include(int arg)

{
  char *__src;
  char *__dest;
  char *pcVar1;
  FILE *__stream;
  int i;
  undefined4 uStack_14;
  
  uStack_14 = 0x335b9;
  __src = demand_copy_string(&i);
  if (__src != (char *)0x0) {
    demand_empty_rest_of_line();
    __dest = (char *)xmalloc(include_dir_maxlen + i + 5);
    i = 0;
    if (0 < include_dir_count) {
      do {
        pcVar1 = stpcpy(__dest,include_dirs[i]);
        *pcVar1 = '/';
        strcpy(pcVar1 + 1,__src);
        __stream = fopen64(__dest,"r");
        if (__stream != (FILE *)0x0) {
          fclose(__stream);
          __src = __dest;
          goto LAB_00033682;
        }
        i = i + 1;
      } while (i < include_dir_count);
    }
    free(__dest);
LAB_00033682:
    register_dependency(__src);
    input_scrub_insert_file(__src);
  }
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void FUN_000335b0(void)

{
  char *__src;
  char *__dest;
  char *pcVar1;
  FILE *__stream;
  int local_20 [3];
  undefined4 uStack_14;
  
  uStack_14 = 0x335b9;
  __src = (char *)FUN_00031d00(local_20);
  if (__src != (char *)0x0) {
    FUN_0002c9b0();
    __dest = (char *)xmalloc(DAT_0006c2c4 + local_20[0] + 5);
    local_20[0] = 0;
    if (0 < DAT_00075000) {
      do {
        pcVar1 = stpcpy(__dest,*(char **)(DAT_00074f64 + local_20[0] * 4));
        *pcVar1 = '/';
        strcpy(pcVar1 + 1,__src);
        __stream = fopen64(__dest,"r");
        if (__stream != (FILE *)0x0) {
          fclose(__stream);
          __src = __dest;
          goto LAB_00033682;
        }
        local_20[0] = local_20[0] + 1;
      } while (local_20[0] < DAT_00075000);
    }
    free(__dest);
LAB_00033682:
    FUN_00018c80(__src);
    FUN_00033570(__src);
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00015040
ADD EBX,0x38a47
SUB ESP,0x38
LEA EAX,[ESP + 0x28]
PUSH EAX
CALL 0x00031d00
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00033696
MOV EDI,EAX
CALL 0x0002c9b0
SUB ESP,0xc
MOV EAX,dword ptr [EBX + 0x2c4]
ADD EAX,dword ptr [ESP + 0x28]
ADD EAX,0x5
PUSH EAX
CALL 0x000137c0
MOV dword ptr [ESP + 0x2c],0x0
MOV ESI,EAX
LEA EAX,[EBX + 0x9000]
MOV ECX,dword ptr [EAX]
MOV dword ptr [ESP + 0x1c],EAX
ADD ESP,0x10
TEST ECX,ECX
JLE 0x000336a0
LEA ECX,[EBX + 0xfffe4b12]
XOR EAX,EAX
LEA EBP,[EBX + 0x8f64]
MOV dword ptr [ESP + 0x8],ECX
JMP 0x00033643
MOV EAX,dword ptr [ESP + 0x1c]
MOV ECX,dword ptr [ESP + 0xc]
ADD EAX,0x1
MOV dword ptr [ESP + 0x1c],EAX
CMP EAX,dword ptr [ECX]
JGE 0x000336a0
MOV EDX,dword ptr [EBP]
SUB ESP,0x8
PUSH dword ptr [EDX + EAX*0x4]
PUSH ESI
CALL 0x000131b0
MOV byte ptr [EAX],0x2f
ADD EAX,0x1
POP EDX
POP ECX
PUSH EDI
PUSH EAX
CALL 0x00013300
POP EAX
POP EDX
PUSH dword ptr [ESP + 0x10]
PUSH ESI
CALL 0x000132a0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00033630
SUB ESP,0xc
MOV EDI,ESI
PUSH EAX
CALL 0x00013130
ADD ESP,0x10
SUB ESP,0xc
PUSH EDI
CALL 0x00018c80
MOV dword ptr [ESP],EDI
CALL 0x00033570
ADD ESP,0x10
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH ESI
CALL 0x000137b0
ADD ESP,0x10
JMP 0x00033682
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000335b0(void)\n\n{\n  char *__src;\n  char *__dest;\n  char *pcVar1;\n  FILE *__stream;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x335b9;\n  __src = (char *)FUN_00031d00(local_20);\n  if (__src != (char *)0x0) {\n    FUN_0002c9b0();\n    __dest = (char *)xmalloc(DAT_0006c2c4 + local_20[0] + 5);\n    local_20[0] = 0;\n    if (0 < DAT_00075000) {\n      do {\n        pcVar1 = stpcpy(__dest,*(char **)(DAT_00074f64 + local_20[0] * 4));\n        *pcVar1 = '/';\n        strcpy(pcVar1 + 1,__src);\n        __stream = fopen64(__dest,"r");\n        if (__stream != (FILE *)0x0) {\n          fclose(__stream);\n          __src = __dest;\n          goto LAB_00033682;\n        }\n        local_20[0] = local_20[0] + 1;\n      } while (local_20[0] < DAT_00075000);\n    }\n    free(__dest);\nLAB_00033682:\n    FUN_00018c80(__src);\n    FUN_00033570(__src);\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_000335b0(void)\n\n{\n  char *__src;\n  char *__dest;\n  char *pcVar1;\n  FILE *__stream;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x335b9;\n  __src = (char *)FUN_00031d00(local_20);\n  if (__src != (char *)0x0) {\n    FUN_0002c9b0();\n    __dest = (char *)xmalloc(DAT_0006c2c4 + local_20[0] + 5);\n    local_20[0] = 0;\n    if (0 < DAT_00075000) {\n      do {\n        pcVar1 = stpcpy(__dest,*(char **)(DAT_00074f64 + local_20[0] * 4));\n        *pcVar1 = '/';\n        strcpy(pcVar1 + 1,__src);\n        __stream = fopen64(__dest,"r");\n        if (__stream != (FILE *)0x0) {\n          fclose(__stream);\n          __src = __dest;\n          goto LAB_00033682;\n        }\n        local_20[0] = local_20[0] + 1;\n      } while (local_20[0] < DAT_00075000);\n    }\n    free(__dest);\nLAB_00033682:\n    FUN_00018c80(__src);\n    FUN_00033570(__src);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000335b0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  char *__src;\n  char *__dest;\n  char *pcVar1;\n  FILE *__stream;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x335b9;\n  __src = (char *)FUN_00031d00(local_20);\n  if (__src != (char *)0x0) {\n    FUN_0002c9b0();\n    __dest = (char *)xmalloc(DAT_0006c2c4 + local_20[0] + 5);\n    local_20[0] = 0;\n    if (0 < DAT_00075000) {\n      do {\n        pcVar1 = stpcpy(__dest,*(char **)(DAT_00074f64 + local_20[0] * 4));\n        *pcVar1 = '/';\n        strcpy(pcVar1 + 1,__src);\n        __stream = fopen64(__dest,"r");\n        if (__stream != (FILE *)0x0) {\n          fclose(__stream);\n          __src = __dest;\n          goto LAB_00033682;\n        }\n        local_20[0] = local_20[0] + 1;\n      } while (local_20[0] < DAT_00075000);\n    }\n    free(__dest);\nLAB_00033682:\n    FUN_00018c80(__src);\n    FUN_00033570(__src);\n  }\n  return;\n}" { (declaration "char *__src;" primitive_type (pointer_declarator "*__src" * identifier) ;) (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "FILE *__stream;" type_identifier (pointer_declarator "*__stream" * identifier) ;) (declaration "int local_20 [3];" primitive_type (array_declarator "local_20 [3]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x335b9;" (assignment_expression "uStack_14 = 0x335b9" identifier = number_literal) ;) (expression_statement "__src = (char *)FUN_00031d00(local_20);" (assignment_expression "__src = (char *)FUN_00031d00(local_20)" identifier = (cast_expression "(char *)FUN_00031d00(local_20)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00031d00(local_20)" identifier (argument_list "(local_20)" ( identifier ))))) ;) (if_statement "if (__src != (char *)0x0) {\n    FUN_0002c9b0();\n    __dest = (char *)xmalloc(DAT_0006c2c4 + local_20[0] + 5);\n    local_20[0] = 0;\n    if (0 < DAT_00075000) {\n      do {\n        pcVar1 = stpcpy(__dest,*(char **)(DAT_00074f64 + local_20[0] * 4));\n        *pcVar1 = '/';\n        strcpy(pcVar1 + 1,__src);\n        __stream = fopen64(__dest,"r");\n        if (__stream != (FILE *)0x0) {\n          fclose(__stream);\n          __src = __dest;\n          goto LAB_00033682;\n        }\n        local_20[0] = local_20[0] + 1;\n      } while (local_20[0] < DAT_00075000);\n    }\n    free(__dest);\nLAB_00033682:\n    FUN_00018c80(__src);\n    FUN_00033570(__src);\n  }" if (parenthesized_expression "(__src != (char *)0x0)" ( (binary_expression "__src != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    FUN_0002c9b0();\n    __dest = (char *)xmalloc(DAT_0006c2c4 + local_20[0] + 5);\n    local_20[0] = 0;\n    if (0 < DAT_00075000) {\n      do {\n        pcVar1 = stpcpy(__dest,*(char **)(DAT_00074f64 + local_20[0] * 4));\n        *pcVar1 = '/';\n        strcpy(pcVar1 + 1,__src);\n        __stream = fopen64(__dest,"r");\n        if (__stream != (FILE *)0x0) {\n          fclose(__stream);\n          __src = __dest;\n          goto LAB_00033682;\n        }\n        local_20[0] = local_20[0] + 1;\n      } while (local_20[0] < DAT_00075000);\n    }\n    free(__dest);\nLAB_00033682:\n    FUN_00018c80(__src);\n    FUN_00033570(__src);\n  }" { (expression_statement "FUN_0002c9b0();" (call_expression "FUN_0002c9b0()" identifier (argument_list "()" ( ))) ;) (expression_statement "__dest = (char *)xmalloc(DAT_0006c2c4 + local_20[0] + 5);" (assignment_expression "__dest = (char *)xmalloc(DAT_0006c2c4 + local_20[0] + 5)" identifier = (cast_expression "(char *)xmalloc(DAT_0006c2c4 + local_20[0] + 5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(DAT_0006c2c4 + local_20[0] + 5)" identifier (argument_list "(DAT_0006c2c4 + local_20[0] + 5)" ( (binary_expression "DAT_0006c2c4 + local_20[0] + 5" (binary_expression "DAT_0006c2c4 + local_20[0]" identifier + (subscript_expression "local_20[0]" identifier [ number_literal ])) + number_literal) ))))) ;) (expression_statement "local_20[0] = 0;" (assignment_expression "local_20[0] = 0" (subscript_expression "local_20[0]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (0 < DAT_00075000) {\n      do {\n        pcVar1 = stpcpy(__dest,*(char **)(DAT_00074f64 + local_20[0] * 4));\n        *pcVar1 = '/';\n        strcpy(pcVar1 + 1,__src);\n        __stream = fopen64(__dest,"r");\n        if (__stream != (FILE *)0x0) {\n          fclose(__stream);\n          __src = __dest;\n          goto LAB_00033682;\n        }\n        local_20[0] = local_20[0] + 1;\n      } while (local_20[0] < DAT_00075000);\n    }" if (parenthesized_expression "(0 < DAT_00075000)" ( (binary_expression "0 < DAT_00075000" number_literal < identifier) )) (compound_statement "{\n      do {\n        pcVar1 = stpcpy(__dest,*(char **)(DAT_00074f64 + local_20[0] * 4));\n        *pcVar1 = '/';\n        strcpy(pcVar1 + 1,__src);\n        __stream = fopen64(__dest,"r");\n        if (__stream != (FILE *)0x0) {\n          fclose(__stream);\n          __src = __dest;\n          goto LAB_00033682;\n        }\n        local_20[0] = local_20[0] + 1;\n      } while (local_20[0] < DAT_00075000);\n    }" { (do_statement "do {\n        pcVar1 = stpcpy(__dest,*(char **)(DAT_00074f64 + local_20[0] * 4));\n        *pcVar1 = '/';\n        strcpy(pcVar1 + 1,__src);\n        __stream = fopen64(__dest,"r");\n        if (__stream != (FILE *)0x0) {\n          fclose(__stream);\n          __src = __dest;\n          goto LAB_00033682;\n        }\n        local_20[0] = local_20[0] + 1;\n      } while (local_20[0] < DAT_00075000);" do (compound_statement "{\n        pcVar1 = stpcpy(__dest,*(char **)(DAT_00074f64 + local_20[0] * 4));\n        *pcVar1 = '/';\n        strcpy(pcVar1 + 1,__src);\n        __stream = fopen64(__dest,"r");\n        if (__stream != (FILE *)0x0) {\n          fclose(__stream);\n          __src = __dest;\n          goto LAB_00033682;\n        }\n        local_20[0] = local_20[0] + 1;\n      }" { (expression_statement "pcVar1 = stpcpy(__dest,*(char **)(DAT_00074f64 + local_20[0] * 4));" (assignment_expression "pcVar1 = stpcpy(__dest,*(char **)(DAT_00074f64 + local_20[0] * 4))" identifier = (call_expression "stpcpy(__dest,*(char **)(DAT_00074f64 + local_20[0] * 4))" identifier (argument_list "(__dest,*(char **)(DAT_00074f64 + local_20[0] * 4))" ( identifier , (pointer_expression "*(char **)(DAT_00074f64 + local_20[0] * 4)" * (cast_expression "(char **)(DAT_00074f64 + local_20[0] * 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(DAT_00074f64 + local_20[0] * 4)" ( (binary_expression "DAT_00074f64 + local_20[0] * 4" identifier + (binary_expression "local_20[0] * 4" (subscript_expression "local_20[0]" identifier [ number_literal ]) * number_literal)) )))) )))) ;) (expression_statement "*pcVar1 = '/';" (assignment_expression "*pcVar1 = '/'" (pointer_expression "*pcVar1" * identifier) = (char_literal "'/'" ' character ')) ;) (expression_statement "strcpy(pcVar1 + 1,__src);" (call_expression "strcpy(pcVar1 + 1,__src)" identifier (argument_list "(pcVar1 + 1,__src)" ( (binary_expression "pcVar1 + 1" identifier + number_literal) , identifier ))) ;) (expression_statement "__stream = fopen64(__dest,"r");" (assignment_expression "__stream = fopen64(__dest,"r")" identifier = (call_expression "fopen64(__dest,"r")" identifier (argument_list "(__dest,"r")" ( identifier , (string_literal ""r"" " string_content ") )))) ;) (if_statement "if (__stream != (FILE *)0x0) {\n          fclose(__stream);\n          __src = __dest;\n          goto LAB_00033682;\n        }" if (parenthesized_expression "(__stream != (FILE *)0x0)" ( (binary_expression "__stream != (FILE *)0x0" identifier != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          fclose(__stream);\n          __src = __dest;\n          goto LAB_00033682;\n        }" { (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier ))) ;) (expression_statement "__src = __dest;" (assignment_expression "__src = __dest" identifier = identifier) ;) (goto_statement "goto LAB_00033682;" goto statement_identifier ;) })) (expression_statement "local_20[0] = local_20[0] + 1;" (assignment_expression "local_20[0] = local_20[0] + 1" (subscript_expression "local_20[0]" identifier [ number_literal ]) = (binary_expression "local_20[0] + 1" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal)) ;) }) while (parenthesized_expression "(local_20[0] < DAT_00075000)" ( (binary_expression "local_20[0] < DAT_00075000" (subscript_expression "local_20[0]" identifier [ number_literal ]) < identifier) )) ;) })) (expression_statement "free(__dest);" (call_expression "free(__dest)" identifier (argument_list "(__dest)" ( identifier ))) ;) (labeled_statement "LAB_00033682:\n    FUN_00018c80(__src);" statement_identifier : (expression_statement "FUN_00018c80(__src);" (call_expression "FUN_00018c80(__src)" identifier (argument_list "(__src)" ( identifier ))) ;)) (expression_statement "FUN_00033570(__src);" (call_expression "FUN_00033570(__src)" identifier (argument_list "(__src)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid s_include(int arg)\n\n{\n  char *__src;\n  char *__dest;\n  char *pcVar1;\n  FILE *__stream;\n  int i;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x335b9;\n  __src = demand_copy_string(&i);\n  if (__src != (char *)0x0) {\n    demand_empty_rest_of_line();\n    __dest = (char *)xmalloc(include_dir_maxlen + i + 5);\n    i = 0;\n    if (0 < include_dir_count) {\n      do {\n        pcVar1 = stpcpy(__dest,include_dirs[i]);\n        *pcVar1 = '/';\n        strcpy(pcVar1 + 1,__src);\n        __stream = fopen64(__dest,"r");\n        if (__stream != (FILE *)0x0) {\n          fclose(__stream);\n          __src = __dest;\n          goto LAB_00033682;\n        }\n        i = i + 1;\n      } while (i < include_dir_count);\n    }\n    free(__dest);\nLAB_00033682:\n    register_dependency(__src);\n    input_scrub_insert_file(__src);\n  }\n  return;\n}\n\n" comment comment (function_definition "void s_include(int arg)\n\n{\n  char *__src;\n  char *__dest;\n  char *pcVar1;\n  FILE *__stream;\n  int i;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x335b9;\n  __src = demand_copy_string(&i);\n  if (__src != (char *)0x0) {\n    demand_empty_rest_of_line();\n    __dest = (char *)xmalloc(include_dir_maxlen + i + 5);\n    i = 0;\n    if (0 < include_dir_count) {\n      do {\n        pcVar1 = stpcpy(__dest,include_dirs[i]);\n        *pcVar1 = '/';\n        strcpy(pcVar1 + 1,__src);\n        __stream = fopen64(__dest,"r");\n        if (__stream != (FILE *)0x0) {\n          fclose(__stream);\n          __src = __dest;\n          goto LAB_00033682;\n        }\n        i = i + 1;\n      } while (i < include_dir_count);\n    }\n    free(__dest);\nLAB_00033682:\n    register_dependency(__src);\n    input_scrub_insert_file(__src);\n  }\n  return;\n}" primitive_type (function_declarator "s_include(int arg)" identifier (parameter_list "(int arg)" ( (parameter_declaration "int arg" primitive_type identifier) ))) (compound_statement "{\n  char *__src;\n  char *__dest;\n  char *pcVar1;\n  FILE *__stream;\n  int i;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x335b9;\n  __src = demand_copy_string(&i);\n  if (__src != (char *)0x0) {\n    demand_empty_rest_of_line();\n    __dest = (char *)xmalloc(include_dir_maxlen + i + 5);\n    i = 0;\n    if (0 < include_dir_count) {\n      do {\n        pcVar1 = stpcpy(__dest,include_dirs[i]);\n        *pcVar1 = '/';\n        strcpy(pcVar1 + 1,__src);\n        __stream = fopen64(__dest,"r");\n        if (__stream != (FILE *)0x0) {\n          fclose(__stream);\n          __src = __dest;\n          goto LAB_00033682;\n        }\n        i = i + 1;\n      } while (i < include_dir_count);\n    }\n    free(__dest);\nLAB_00033682:\n    register_dependency(__src);\n    input_scrub_insert_file(__src);\n  }\n  return;\n}" { (declaration "char *__src;" primitive_type (pointer_declarator "*__src" * identifier) ;) (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "FILE *__stream;" type_identifier (pointer_declarator "*__stream" * identifier) ;) (declaration "int i;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x335b9;" (assignment_expression "uStack_14 = 0x335b9" identifier = number_literal) ;) (expression_statement "__src = demand_copy_string(&i);" (assignment_expression "__src = demand_copy_string(&i)" identifier = (call_expression "demand_copy_string(&i)" identifier (argument_list "(&i)" ( (pointer_expression "&i" & identifier) )))) ;) (if_statement "if (__src != (char *)0x0) {\n    demand_empty_rest_of_line();\n    __dest = (char *)xmalloc(include_dir_maxlen + i + 5);\n    i = 0;\n    if (0 < include_dir_count) {\n      do {\n        pcVar1 = stpcpy(__dest,include_dirs[i]);\n        *pcVar1 = '/';\n        strcpy(pcVar1 + 1,__src);\n        __stream = fopen64(__dest,"r");\n        if (__stream != (FILE *)0x0) {\n          fclose(__stream);\n          __src = __dest;\n          goto LAB_00033682;\n        }\n        i = i + 1;\n      } while (i < include_dir_count);\n    }\n    free(__dest);\nLAB_00033682:\n    register_dependency(__src);\n    input_scrub_insert_file(__src);\n  }" if (parenthesized_expression "(__src != (char *)0x0)" ( (binary_expression "__src != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    demand_empty_rest_of_line();\n    __dest = (char *)xmalloc(include_dir_maxlen + i + 5);\n    i = 0;\n    if (0 < include_dir_count) {\n      do {\n        pcVar1 = stpcpy(__dest,include_dirs[i]);\n        *pcVar1 = '/';\n        strcpy(pcVar1 + 1,__src);\n        __stream = fopen64(__dest,"r");\n        if (__stream != (FILE *)0x0) {\n          fclose(__stream);\n          __src = __dest;\n          goto LAB_00033682;\n        }\n        i = i + 1;\n      } while (i < include_dir_count);\n    }\n    free(__dest);\nLAB_00033682:\n    register_dependency(__src);\n    input_scrub_insert_file(__src);\n  }" { (expression_statement "demand_empty_rest_of_line();" (call_expression "demand_empty_rest_of_line()" identifier (argument_list "()" ( ))) ;) (expression_statement "__dest = (char *)xmalloc(include_dir_maxlen + i + 5);" (assignment_expression "__dest = (char *)xmalloc(include_dir_maxlen + i + 5)" identifier = (cast_expression "(char *)xmalloc(include_dir_maxlen + i + 5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(include_dir_maxlen + i + 5)" identifier (argument_list "(include_dir_maxlen + i + 5)" ( (binary_expression "include_dir_maxlen + i + 5" (binary_expression "include_dir_maxlen + i" identifier + identifier) + number_literal) ))))) ;) (expression_statement "i = 0;" (assignment_expression "i = 0" identifier = number_literal) ;) (if_statement "if (0 < include_dir_count) {\n      do {\n        pcVar1 = stpcpy(__dest,include_dirs[i]);\n        *pcVar1 = '/';\n        strcpy(pcVar1 + 1,__src);\n        __stream = fopen64(__dest,"r");\n        if (__stream != (FILE *)0x0) {\n          fclose(__stream);\n          __src = __dest;\n          goto LAB_00033682;\n        }\n        i = i + 1;\n      } while (i < include_dir_count);\n    }" if (parenthesized_expression "(0 < include_dir_count)" ( (binary_expression "0 < include_dir_count" number_literal < identifier) )) (compound_statement "{\n      do {\n        pcVar1 = stpcpy(__dest,include_dirs[i]);\n        *pcVar1 = '/';\n        strcpy(pcVar1 + 1,__src);\n        __stream = fopen64(__dest,"r");\n        if (__stream != (FILE *)0x0) {\n          fclose(__stream);\n          __src = __dest;\n          goto LAB_00033682;\n        }\n        i = i + 1;\n      } while (i < include_dir_count);\n    }" { (do_statement "do {\n        pcVar1 = stpcpy(__dest,include_dirs[i]);\n        *pcVar1 = '/';\n        strcpy(pcVar1 + 1,__src);\n        __stream = fopen64(__dest,"r");\n        if (__stream != (FILE *)0x0) {\n          fclose(__stream);\n          __src = __dest;\n          goto LAB_00033682;\n        }\n        i = i + 1;\n      } while (i < include_dir_count);" do (compound_statement "{\n        pcVar1 = stpcpy(__dest,include_dirs[i]);\n        *pcVar1 = '/';\n        strcpy(pcVar1 + 1,__src);\n        __stream = fopen64(__dest,"r");\n        if (__stream != (FILE *)0x0) {\n          fclose(__stream);\n          __src = __dest;\n          goto LAB_00033682;\n        }\n        i = i + 1;\n      }" { (expression_statement "pcVar1 = stpcpy(__dest,include_dirs[i]);" (assignment_expression "pcVar1 = stpcpy(__dest,include_dirs[i])" identifier = (call_expression "stpcpy(__dest,include_dirs[i])" identifier (argument_list "(__dest,include_dirs[i])" ( identifier , (subscript_expression "include_dirs[i]" identifier [ identifier ]) )))) ;) (expression_statement "*pcVar1 = '/';" (assignment_expression "*pcVar1 = '/'" (pointer_expression "*pcVar1" * identifier) = (char_literal "'/'" ' character ')) ;) (expression_statement "strcpy(pcVar1 + 1,__src);" (call_expression "strcpy(pcVar1 + 1,__src)" identifier (argument_list "(pcVar1 + 1,__src)" ( (binary_expression "pcVar1 + 1" identifier + number_literal) , identifier ))) ;) (expression_statement "__stream = fopen64(__dest,"r");" (assignment_expression "__stream = fopen64(__dest,"r")" identifier = (call_expression "fopen64(__dest,"r")" identifier (argument_list "(__dest,"r")" ( identifier , (string_literal ""r"" " string_content ") )))) ;) (if_statement "if (__stream != (FILE *)0x0) {\n          fclose(__stream);\n          __src = __dest;\n          goto LAB_00033682;\n        }" if (parenthesized_expression "(__stream != (FILE *)0x0)" ( (binary_expression "__stream != (FILE *)0x0" identifier != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          fclose(__stream);\n          __src = __dest;\n          goto LAB_00033682;\n        }" { (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier ))) ;) (expression_statement "__src = __dest;" (assignment_expression "__src = __dest" identifier = identifier) ;) (goto_statement "goto LAB_00033682;" goto statement_identifier ;) })) (expression_statement "i = i + 1;" (assignment_expression "i = i + 1" identifier = (binary_expression "i + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(i < include_dir_count)" ( (binary_expression "i < include_dir_count" identifier < identifier) )) ;) })) (expression_statement "free(__dest);" (call_expression "free(__dest)" identifier (argument_list "(__dest)" ( identifier ))) ;) (labeled_statement "LAB_00033682:\n    register_dependency(__src);" statement_identifier : (expression_statement "register_dependency(__src);" (call_expression "register_dependency(__src)" identifier (argument_list "(__src)" ( identifier ))) ;)) (expression_statement "input_scrub_insert_file(__src);" (call_expression "input_scrub_insert_file(__src)" identifier (argument_list "(__src)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000335b0(void)\n\n{\n  char *__src;\n  char *__dest;\n  char *pcVar1;\n  FILE *__stream;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x335b9;\n  __src = (char *)FUN_00031d00(local_20);\n  if (__src != (char *)0x0) {\n    FUN_0002c9b0();\n    __dest = (char *)xmalloc(DAT_0006c2c4 + local_20[0] + 5);\n    local_20[0] = 0;\n    if (0 < DAT_00075000) {\n      do {\n        pcVar1 = stpcpy(__dest,*(char **)(DAT_00074f64 + local_20[0] * 4));\n        *pcVar1 = '/';\n        strcpy(pcVar1 + 1,__src);\n        __stream = fopen64(__dest,"r");\n        if (__stream != (FILE *)0x0) {\n          fclose(__stream);\n          __src = __dest;\n          goto LAB_00033682;\n        }\n        local_20[0] = local_20[0] + 1;\n      } while (local_20[0] < DAT_00075000);\n    }\n    free(__dest);\nLAB_00033682:\n    FUN_00018c80(__src);\n    FUN_00033570(__src);\n  }\n  return;\n}\n\n" (function_definition "void FUN_000335b0(void)\n\n{\n  char *__src;\n  char *__dest;\n  char *pcVar1;\n  FILE *__stream;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x335b9;\n  __src = (char *)FUN_00031d00(local_20);\n  if (__src != (char *)0x0) {\n    FUN_0002c9b0();\n    __dest = (char *)xmalloc(DAT_0006c2c4 + local_20[0] + 5);\n    local_20[0] = 0;\n    if (0 < DAT_00075000) {\n      do {\n        pcVar1 = stpcpy(__dest,*(char **)(DAT_00074f64 + local_20[0] * 4));\n        *pcVar1 = '/';\n        strcpy(pcVar1 + 1,__src);\n        __stream = fopen64(__dest,"r");\n        if (__stream != (FILE *)0x0) {\n          fclose(__stream);\n          __src = __dest;\n          goto LAB_00033682;\n        }\n        local_20[0] = local_20[0] + 1;\n      } while (local_20[0] < DAT_00075000);\n    }\n    free(__dest);\nLAB_00033682:\n    FUN_00018c80(__src);\n    FUN_00033570(__src);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000335b0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  char *__src;\n  char *__dest;\n  char *pcVar1;\n  FILE *__stream;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x335b9;\n  __src = (char *)FUN_00031d00(local_20);\n  if (__src != (char *)0x0) {\n    FUN_0002c9b0();\n    __dest = (char *)xmalloc(DAT_0006c2c4 + local_20[0] + 5);\n    local_20[0] = 0;\n    if (0 < DAT_00075000) {\n      do {\n        pcVar1 = stpcpy(__dest,*(char **)(DAT_00074f64 + local_20[0] * 4));\n        *pcVar1 = '/';\n        strcpy(pcVar1 + 1,__src);\n        __stream = fopen64(__dest,"r");\n        if (__stream != (FILE *)0x0) {\n          fclose(__stream);\n          __src = __dest;\n          goto LAB_00033682;\n        }\n        local_20[0] = local_20[0] + 1;\n      } while (local_20[0] < DAT_00075000);\n    }\n    free(__dest);\nLAB_00033682:\n    FUN_00018c80(__src);\n    FUN_00033570(__src);\n  }\n  return;\n}" { (declaration "char *__src;" primitive_type (pointer_declarator "*__src" * identifier) ;) (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "FILE *__stream;" type_identifier (pointer_declarator "*__stream" * identifier) ;) (declaration "int local_20 [3];" primitive_type (array_declarator "local_20 [3]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x335b9;" (assignment_expression "uStack_14 = 0x335b9" identifier = number_literal) ;) (expression_statement "__src = (char *)FUN_00031d00(local_20);" (assignment_expression "__src = (char *)FUN_00031d00(local_20)" identifier = (cast_expression "(char *)FUN_00031d00(local_20)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00031d00(local_20)" identifier (argument_list "(local_20)" ( identifier ))))) ;) (if_statement "if (__src != (char *)0x0) {\n    FUN_0002c9b0();\n    __dest = (char *)xmalloc(DAT_0006c2c4 + local_20[0] + 5);\n    local_20[0] = 0;\n    if (0 < DAT_00075000) {\n      do {\n        pcVar1 = stpcpy(__dest,*(char **)(DAT_00074f64 + local_20[0] * 4));\n        *pcVar1 = '/';\n        strcpy(pcVar1 + 1,__src);\n        __stream = fopen64(__dest,"r");\n        if (__stream != (FILE *)0x0) {\n          fclose(__stream);\n          __src = __dest;\n          goto LAB_00033682;\n        }\n        local_20[0] = local_20[0] + 1;\n      } while (local_20[0] < DAT_00075000);\n    }\n    free(__dest);\nLAB_00033682:\n    FUN_00018c80(__src);\n    FUN_00033570(__src);\n  }" if (parenthesized_expression "(__src != (char *)0x0)" ( (binary_expression "__src != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    FUN_0002c9b0();\n    __dest = (char *)xmalloc(DAT_0006c2c4 + local_20[0] + 5);\n    local_20[0] = 0;\n    if (0 < DAT_00075000) {\n      do {\n        pcVar1 = stpcpy(__dest,*(char **)(DAT_00074f64 + local_20[0] * 4));\n        *pcVar1 = '/';\n        strcpy(pcVar1 + 1,__src);\n        __stream = fopen64(__dest,"r");\n        if (__stream != (FILE *)0x0) {\n          fclose(__stream);\n          __src = __dest;\n          goto LAB_00033682;\n        }\n        local_20[0] = local_20[0] + 1;\n      } while (local_20[0] < DAT_00075000);\n    }\n    free(__dest);\nLAB_00033682:\n    FUN_00018c80(__src);\n    FUN_00033570(__src);\n  }" { (expression_statement "FUN_0002c9b0();" (call_expression "FUN_0002c9b0()" identifier (argument_list "()" ( ))) ;) (expression_statement "__dest = (char *)xmalloc(DAT_0006c2c4 + local_20[0] + 5);" (assignment_expression "__dest = (char *)xmalloc(DAT_0006c2c4 + local_20[0] + 5)" identifier = (cast_expression "(char *)xmalloc(DAT_0006c2c4 + local_20[0] + 5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(DAT_0006c2c4 + local_20[0] + 5)" identifier (argument_list "(DAT_0006c2c4 + local_20[0] + 5)" ( (binary_expression "DAT_0006c2c4 + local_20[0] + 5" (binary_expression "DAT_0006c2c4 + local_20[0]" identifier + (subscript_expression "local_20[0]" identifier [ number_literal ])) + number_literal) ))))) ;) (expression_statement "local_20[0] = 0;" (assignment_expression "local_20[0] = 0" (subscript_expression "local_20[0]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (0 < DAT_00075000) {\n      do {\n        pcVar1 = stpcpy(__dest,*(char **)(DAT_00074f64 + local_20[0] * 4));\n        *pcVar1 = '/';\n        strcpy(pcVar1 + 1,__src);\n        __stream = fopen64(__dest,"r");\n        if (__stream != (FILE *)0x0) {\n          fclose(__stream);\n          __src = __dest;\n          goto LAB_00033682;\n        }\n        local_20[0] = local_20[0] + 1;\n      } while (local_20[0] < DAT_00075000);\n    }" if (parenthesized_expression "(0 < DAT_00075000)" ( (binary_expression "0 < DAT_00075000" number_literal < identifier) )) (compound_statement "{\n      do {\n        pcVar1 = stpcpy(__dest,*(char **)(DAT_00074f64 + local_20[0] * 4));\n        *pcVar1 = '/';\n        strcpy(pcVar1 + 1,__src);\n        __stream = fopen64(__dest,"r");\n        if (__stream != (FILE *)0x0) {\n          fclose(__stream);\n          __src = __dest;\n          goto LAB_00033682;\n        }\n        local_20[0] = local_20[0] + 1;\n      } while (local_20[0] < DAT_00075000);\n    }" { (do_statement "do {\n        pcVar1 = stpcpy(__dest,*(char **)(DAT_00074f64 + local_20[0] * 4));\n        *pcVar1 = '/';\n        strcpy(pcVar1 + 1,__src);\n        __stream = fopen64(__dest,"r");\n        if (__stream != (FILE *)0x0) {\n          fclose(__stream);\n          __src = __dest;\n          goto LAB_00033682;\n        }\n        local_20[0] = local_20[0] + 1;\n      } while (local_20[0] < DAT_00075000);" do (compound_statement "{\n        pcVar1 = stpcpy(__dest,*(char **)(DAT_00074f64 + local_20[0] * 4));\n        *pcVar1 = '/';\n        strcpy(pcVar1 + 1,__src);\n        __stream = fopen64(__dest,"r");\n        if (__stream != (FILE *)0x0) {\n          fclose(__stream);\n          __src = __dest;\n          goto LAB_00033682;\n        }\n        local_20[0] = local_20[0] + 1;\n      }" { (expression_statement "pcVar1 = stpcpy(__dest,*(char **)(DAT_00074f64 + local_20[0] * 4));" (assignment_expression "pcVar1 = stpcpy(__dest,*(char **)(DAT_00074f64 + local_20[0] * 4))" identifier = (call_expression "stpcpy(__dest,*(char **)(DAT_00074f64 + local_20[0] * 4))" identifier (argument_list "(__dest,*(char **)(DAT_00074f64 + local_20[0] * 4))" ( identifier , (pointer_expression "*(char **)(DAT_00074f64 + local_20[0] * 4)" * (cast_expression "(char **)(DAT_00074f64 + local_20[0] * 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(DAT_00074f64 + local_20[0] * 4)" ( (binary_expression "DAT_00074f64 + local_20[0] * 4" identifier + (binary_expression "local_20[0] * 4" (subscript_expression "local_20[0]" identifier [ number_literal ]) * number_literal)) )))) )))) ;) (expression_statement "*pcVar1 = '/';" (assignment_expression "*pcVar1 = '/'" (pointer_expression "*pcVar1" * identifier) = (char_literal "'/'" ' character ')) ;) (expression_statement "strcpy(pcVar1 + 1,__src);" (call_expression "strcpy(pcVar1 + 1,__src)" identifier (argument_list "(pcVar1 + 1,__src)" ( (binary_expression "pcVar1 + 1" identifier + number_literal) , identifier ))) ;) (expression_statement "__stream = fopen64(__dest,"r");" (assignment_expression "__stream = fopen64(__dest,"r")" identifier = (call_expression "fopen64(__dest,"r")" identifier (argument_list "(__dest,"r")" ( identifier , (string_literal ""r"" " string_content ") )))) ;) (if_statement "if (__stream != (FILE *)0x0) {\n          fclose(__stream);\n          __src = __dest;\n          goto LAB_00033682;\n        }" if (parenthesized_expression "(__stream != (FILE *)0x0)" ( (binary_expression "__stream != (FILE *)0x0" identifier != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          fclose(__stream);\n          __src = __dest;\n          goto LAB_00033682;\n        }" { (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier ))) ;) (expression_statement "__src = __dest;" (assignment_expression "__src = __dest" identifier = identifier) ;) (goto_statement "goto LAB_00033682;" goto statement_identifier ;) })) (expression_statement "local_20[0] = local_20[0] + 1;" (assignment_expression "local_20[0] = local_20[0] + 1" (subscript_expression "local_20[0]" identifier [ number_literal ]) = (binary_expression "local_20[0] + 1" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal)) ;) }) while (parenthesized_expression "(local_20[0] < DAT_00075000)" ( (binary_expression "local_20[0] < DAT_00075000" (subscript_expression "local_20[0]" identifier [ number_literal ]) < identifier) )) ;) })) (expression_statement "free(__dest);" (call_expression "free(__dest)" identifier (argument_list "(__dest)" ( identifier ))) ;) (labeled_statement "LAB_00033682:\n    FUN_00018c80(__src);" statement_identifier : (expression_statement "FUN_00018c80(__src);" (call_expression "FUN_00018c80(__src)" identifier (argument_list "(__src)" ( identifier ))) ;)) (expression_statement "FUN_00033570(__src);" (call_expression "FUN_00033570(__src)" identifier (argument_list "(__src)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression (binary_expression IDENT + (subscript_expression IDENT [ LIT ])) + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (subscript_expression IDENT [ LIT ]) * LIT)) )))) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' character ')) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) < IDENT) )) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;)) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (return_statement return ;) })))
(function_definition "void FUN_000335b0(void)\n\n{\n  char *__src;\n  char *__dest;\n  char *pcVar1;\n  FILE *__stream;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x335b9;\n  __src = (char *)FUN_00031d00(local_20);\n  if (__src != (char *)0x0) {\n    FUN_0002c9b0();\n    __dest = (char *)xmalloc(DAT_0006c2c4 + local_20[0] + 5);\n    local_20[0] = 0;\n    if (0 < DAT_00075000) {\n      do {\n        pcVar1 = stpcpy(__dest,*(char **)(DAT_00074f64 + local_20[0] * 4));\n        *pcVar1 = '/';\n        strcpy(pcVar1 + 1,__src);\n        __stream = fopen64(__dest,"r");\n        if (__stream != (FILE *)0x0) {\n          fclose(__stream);\n          __src = __dest;\n          goto LAB_00033682;\n        }\n        local_20[0] = local_20[0] + 1;\n      } while (local_20[0] < DAT_00075000);\n    }\n    free(__dest);\nLAB_00033682:\n    FUN_00018c80(__src);\n    FUN_00033570(__src);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000335b0(void)" (identifier "FUN_000335b0") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  char *__src;\n  char *__dest;\n  char *pcVar1;\n  FILE *__stream;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x335b9;\n  __src = (char *)FUN_00031d00(local_20);\n  if (__src != (char *)0x0) {\n    FUN_0002c9b0();\n    __dest = (char *)xmalloc(DAT_0006c2c4 + local_20[0] + 5);\n    local_20[0] = 0;\n    if (0 < DAT_00075000) {\n      do {\n        pcVar1 = stpcpy(__dest,*(char **)(DAT_00074f64 + local_20[0] * 4));\n        *pcVar1 = '/';\n        strcpy(pcVar1 + 1,__src);\n        __stream = fopen64(__dest,"r");\n        if (__stream != (FILE *)0x0) {\n          fclose(__stream);\n          __src = __dest;\n          goto LAB_00033682;\n        }\n        local_20[0] = local_20[0] + 1;\n      } while (local_20[0] < DAT_00075000);\n    }\n    free(__dest);\nLAB_00033682:\n    FUN_00018c80(__src);\n    FUN_00033570(__src);\n  }\n  return;\n}" ({ "{") (declaration "char *__src;" (primitive_type "char") (pointer_declarator "*__src" (* "*") (identifier "__src")) (; ";")) (declaration "char *__dest;" (primitive_type "char") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "FILE *__stream;" (type_identifier "FILE") (pointer_declarator "*__stream" (* "*") (identifier "__stream")) (; ";")) (declaration "int local_20 [3];" (primitive_type "int") (array_declarator "local_20 [3]" (identifier "local_20") ([ "[") (number_literal "3") (] "]")) (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x335b9;" (assignment_expression "uStack_14 = 0x335b9" (identifier "uStack_14") (= "=") (number_literal "0x335b9")) (; ";")) (expression_statement "__src = (char *)FUN_00031d00(local_20);" (assignment_expression "__src = (char *)FUN_00031d00(local_20)" (identifier "__src") (= "=") (cast_expression "(char *)FUN_00031d00(local_20)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00031d00(local_20)" (identifier "FUN_00031d00") (argument_list "(local_20)" (( "(") (identifier "local_20") () ")"))))) (; ";")) (if_statement "if (__src != (char *)0x0) {\n    FUN_0002c9b0();\n    __dest = (char *)xmalloc(DAT_0006c2c4 + local_20[0] + 5);\n    local_20[0] = 0;\n    if (0 < DAT_00075000) {\n      do {\n        pcVar1 = stpcpy(__dest,*(char **)(DAT_00074f64 + local_20[0] * 4));\n        *pcVar1 = '/';\n        strcpy(pcVar1 + 1,__src);\n        __stream = fopen64(__dest,"r");\n        if (__stream != (FILE *)0x0) {\n          fclose(__stream);\n          __src = __dest;\n          goto LAB_00033682;\n        }\n        local_20[0] = local_20[0] + 1;\n      } while (local_20[0] < DAT_00075000);\n    }\n    free(__dest);\nLAB_00033682:\n    FUN_00018c80(__src);\n    FUN_00033570(__src);\n  }" (if "if") (parenthesized_expression "(__src != (char *)0x0)" (( "(") (binary_expression "__src != (char *)0x0" (identifier "__src") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    FUN_0002c9b0();\n    __dest = (char *)xmalloc(DAT_0006c2c4 + local_20[0] + 5);\n    local_20[0] = 0;\n    if (0 < DAT_00075000) {\n      do {\n        pcVar1 = stpcpy(__dest,*(char **)(DAT_00074f64 + local_20[0] * 4));\n        *pcVar1 = '/';\n        strcpy(pcVar1 + 1,__src);\n        __stream = fopen64(__dest,"r");\n        if (__stream != (FILE *)0x0) {\n          fclose(__stream);\n          __src = __dest;\n          goto LAB_00033682;\n        }\n        local_20[0] = local_20[0] + 1;\n      } while (local_20[0] < DAT_00075000);\n    }\n    free(__dest);\nLAB_00033682:\n    FUN_00018c80(__src);\n    FUN_00033570(__src);\n  }" ({ "{") (expression_statement "FUN_0002c9b0();" (call_expression "FUN_0002c9b0()" (identifier "FUN_0002c9b0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "__dest = (char *)xmalloc(DAT_0006c2c4 + local_20[0] + 5);" (assignment_expression "__dest = (char *)xmalloc(DAT_0006c2c4 + local_20[0] + 5)" (identifier "__dest") (= "=") (cast_expression "(char *)xmalloc(DAT_0006c2c4 + local_20[0] + 5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(DAT_0006c2c4 + local_20[0] + 5)" (identifier "xmalloc") (argument_list "(DAT_0006c2c4 + local_20[0] + 5)" (( "(") (binary_expression "DAT_0006c2c4 + local_20[0] + 5" (binary_expression "DAT_0006c2c4 + local_20[0]" (identifier "DAT_0006c2c4") (+ "+") (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]"))) (+ "+") (number_literal "5")) () ")"))))) (; ";")) (expression_statement "local_20[0] = 0;" (assignment_expression "local_20[0] = 0" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (= "=") (number_literal "0")) (; ";")) (if_statement "if (0 < DAT_00075000) {\n      do {\n        pcVar1 = stpcpy(__dest,*(char **)(DAT_00074f64 + local_20[0] * 4));\n        *pcVar1 = '/';\n        strcpy(pcVar1 + 1,__src);\n        __stream = fopen64(__dest,"r");\n        if (__stream != (FILE *)0x0) {\n          fclose(__stream);\n          __src = __dest;\n          goto LAB_00033682;\n        }\n        local_20[0] = local_20[0] + 1;\n      } while (local_20[0] < DAT_00075000);\n    }" (if "if") (parenthesized_expression "(0 < DAT_00075000)" (( "(") (binary_expression "0 < DAT_00075000" (number_literal "0") (< "<") (identifier "DAT_00075000")) () ")")) (compound_statement "{\n      do {\n        pcVar1 = stpcpy(__dest,*(char **)(DAT_00074f64 + local_20[0] * 4));\n        *pcVar1 = '/';\n        strcpy(pcVar1 + 1,__src);\n        __stream = fopen64(__dest,"r");\n        if (__stream != (FILE *)0x0) {\n          fclose(__stream);\n          __src = __dest;\n          goto LAB_00033682;\n        }\n        local_20[0] = local_20[0] + 1;\n      } while (local_20[0] < DAT_00075000);\n    }" ({ "{") (do_statement "do {\n        pcVar1 = stpcpy(__dest,*(char **)(DAT_00074f64 + local_20[0] * 4));\n        *pcVar1 = '/';\n        strcpy(pcVar1 + 1,__src);\n        __stream = fopen64(__dest,"r");\n        if (__stream != (FILE *)0x0) {\n          fclose(__stream);\n          __src = __dest;\n          goto LAB_00033682;\n        }\n        local_20[0] = local_20[0] + 1;\n      } while (local_20[0] < DAT_00075000);" (do "do") (compound_statement "{\n        pcVar1 = stpcpy(__dest,*(char **)(DAT_00074f64 + local_20[0] * 4));\n        *pcVar1 = '/';\n        strcpy(pcVar1 + 1,__src);\n        __stream = fopen64(__dest,"r");\n        if (__stream != (FILE *)0x0) {\n          fclose(__stream);\n          __src = __dest;\n          goto LAB_00033682;\n        }\n        local_20[0] = local_20[0] + 1;\n      }" ({ "{") (expression_statement "pcVar1 = stpcpy(__dest,*(char **)(DAT_00074f64 + local_20[0] * 4));" (assignment_expression "pcVar1 = stpcpy(__dest,*(char **)(DAT_00074f64 + local_20[0] * 4))" (identifier "pcVar1") (= "=") (call_expression "stpcpy(__dest,*(char **)(DAT_00074f64 + local_20[0] * 4))" (identifier "stpcpy") (argument_list "(__dest,*(char **)(DAT_00074f64 + local_20[0] * 4))" (( "(") (identifier "__dest") (, ",") (pointer_expression "*(char **)(DAT_00074f64 + local_20[0] * 4)" (* "*") (cast_expression "(char **)(DAT_00074f64 + local_20[0] * 4)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(DAT_00074f64 + local_20[0] * 4)" (( "(") (binary_expression "DAT_00074f64 + local_20[0] * 4" (identifier "DAT_00074f64") (+ "+") (binary_expression "local_20[0] * 4" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (* "*") (number_literal "4"))) () ")")))) () ")")))) (; ";")) (expression_statement "*pcVar1 = '/';" (assignment_expression "*pcVar1 = '/'" (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) (= "=") (char_literal "'/'" (' "'") (character "/") (' "'"))) (; ";")) (expression_statement "strcpy(pcVar1 + 1,__src);" (call_expression "strcpy(pcVar1 + 1,__src)" (identifier "strcpy") (argument_list "(pcVar1 + 1,__src)" (( "(") (binary_expression "pcVar1 + 1" (identifier "pcVar1") (+ "+") (number_literal "1")) (, ",") (identifier "__src") () ")"))) (; ";")) (expression_statement "__stream = fopen64(__dest,"r");" (assignment_expression "__stream = fopen64(__dest,"r")" (identifier "__stream") (= "=") (call_expression "fopen64(__dest,"r")" (identifier "fopen64") (argument_list "(__dest,"r")" (( "(") (identifier "__dest") (, ",") (string_literal ""r"" (" """) (string_content "r") (" """)) () ")")))) (; ";")) (if_statement "if (__stream != (FILE *)0x0) {\n          fclose(__stream);\n          __src = __dest;\n          goto LAB_00033682;\n        }" (if "if") (parenthesized_expression "(__stream != (FILE *)0x0)" (( "(") (binary_expression "__stream != (FILE *)0x0" (identifier "__stream") (!= "!=") (cast_expression "(FILE *)0x0" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          fclose(__stream);\n          __src = __dest;\n          goto LAB_00033682;\n        }" ({ "{") (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" (identifier "fclose") (argument_list "(__stream)" (( "(") (identifier "__stream") () ")"))) (; ";")) (expression_statement "__src = __dest;" (assignment_expression "__src = __dest" (identifier "__src") (= "=") (identifier "__dest")) (; ";")) (goto_statement "goto LAB_00033682;" (goto "goto") (statement_identifier "LAB_00033682") (; ";")) (} "}"))) (expression_statement "local_20[0] = local_20[0] + 1;" (assignment_expression "local_20[0] = local_20[0] + 1" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (= "=") (binary_expression "local_20[0] + 1" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(local_20[0] < DAT_00075000)" (( "(") (binary_expression "local_20[0] < DAT_00075000" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (< "<") (identifier "DAT_00075000")) () ")")) (; ";")) (} "}"))) (expression_statement "free(__dest);" (call_expression "free(__dest)" (identifier "free") (argument_list "(__dest)" (( "(") (identifier "__dest") () ")"))) (; ";")) (labeled_statement "LAB_00033682:\n    FUN_00018c80(__src);" (statement_identifier "LAB_00033682") (: ":") (expression_statement "FUN_00018c80(__src);" (call_expression "FUN_00018c80(__src)" (identifier "FUN_00018c80") (argument_list "(__src)" (( "(") (identifier "__src") () ")"))) (; ";"))) (expression_statement "FUN_00033570(__src);" (call_expression "FUN_00033570(__src)" (identifier "FUN_00033570") (argument_list "(__src)" (( "(") (identifier "__src") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

void function_1(int arg)

{
  char *var_2;
  char *__dest;
  char *var_10;
  type_1 *var_12;
  int var_6;
  type_2 uStack_14;
  
  uStack_14 = 0x335b9;
  var_2 = var_1(&var_6);
  if (var_2 != (char *)0x0) {
    var_3();
    __dest = (char *)var_4(var_5 + var_6 + 5);
    var_6 = 0;
    if (0 < var_7) {
      do {
        var_10 = var_8(__dest,include_dirs[var_6]);
        *var_10 = '/';
        var_9(var_10 + 1,var_2);
        var_12 = var_11(__dest,"r");
        if (var_12 != (type_1 *)0x0) {
          var_13(var_12);
          var_2 = __dest;
          goto LAB_00033682;
        }
        var_6 = var_6 + 1;
      } while (var_6 < var_7);
    }
    var_14(__dest);
LAB_00033682:
    var_15(var_2);
    var_16(var_2);
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (binary_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (return_statement))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void MASKED(void)

{
  char *__src;
  char *__dest;
  char *pcVar1;
  FILE *__stream;
  int local_20 [3];
  undefined4 uStack_14;
  
  uStack_14 = 0x335b9;
  __src = (char *)FUN_00031d00(local_20);
  if (__src != (char *)0x0) {
    FUN_0002c9b0();
    __dest = (char *)xmalloc(DAT_0006c2c4 + local_20[0] + 5);
    local_20[0] = 0;
    if (0 < DAT_00075000) {
      do {
        pcVar1 = stpcpy(__dest,*(char **)(DAT_00074f64 + local_20[0] * 4));
        *pcVar1 = '/';
        strcpy(pcVar1 + 1,__src);
        __stream = fopen64(__dest,"r");
        if (__stream != (FILE *)0x0) {
          fclose(__stream);
          __src = __dest;
          goto LAB_00033682;
        }
        local_20[0] = local_20[0] + 1;
      } while (local_20[0] < DAT_00075000);
    }
    free(__dest);
LAB_00033682:
    FUN_00018c80(__src);
    FUN_00033570(__src);
  }
  return;
}

