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

void add_include_dir(char *path)

{
  char **ppcVar1;
  size_t sVar2;
  int iVar3;
  
  if (include_dir_count == 0) {
    ppcVar1 = (char **)xmalloc(8);
    include_dir_count = 2;
    include_dirs = ppcVar1;
    *ppcVar1 = ".";
    iVar3 = 4;
  }
  else {
    include_dir_count = include_dir_count + 1;
    ppcVar1 = (char **)xrealloc(include_dirs,include_dir_count * 4);
    iVar3 = include_dir_count * 4 + -4;
    include_dirs = ppcVar1;
  }
  *(char **)((int)ppcVar1 + iVar3) = path;
  sVar2 = strlen(path);
  if (include_dir_maxlen < (int)sVar2) {
    include_dir_maxlen = sVar2;
  }
  return;
}



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

void FUN_000343a0(char *param_1)

{
  undefined4 *puVar1;
  size_t sVar2;
  int iVar3;
  
  if (DAT_00089a00 == 0) {
    puVar1 = (undefined4 *)xmalloc(8);
    DAT_00089a00 = 2;
    DAT_00089964 = puVar1;
    *puVar1 = ".";
    iVar3 = 4;
  }
  else {
    DAT_00089a00 = DAT_00089a00 + 1;
    puVar1 = (undefined4 *)xrealloc(DAT_00089964,DAT_00089a00 * 4);
    iVar3 = DAT_00089a00 * 4 + -4;
    DAT_00089964 = puVar1;
  }
  *(char **)((int)puVar1 + iVar3) = param_1;
  sVar2 = strlen(param_1);
  if ((int)DAT_000802a4 < (int)sVar2) {
    DAT_000802a4 = sVar2;
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00016000
ADD EBX,0x4bc57
SUB ESP,0xc
MOV ESI,dword ptr [ESP + 0x20]
LEA EDI,[EBX + 0x9a00]
MOV EAX,dword ptr [EDI]
TEST EAX,EAX
JNZ 0x00034410
SUB ESP,0xc
PUSH 0x8
CALL 0x00014790
LEA EDX,[EBX + 0x9964]
MOV dword ptr [EDI],0x2
ADD ESP,0x10
MOV dword ptr [EDX],EAX
LEA EDX,[EBX + 0xfffddb99]
MOV dword ptr [EAX],EDX
MOV EDX,0x4
SUB ESP,0xc
MOV dword ptr [EAX + EDX*0x1],ESI
PUSH ESI
CALL 0x00014430
ADD ESP,0x10
CMP dword ptr [EBX + 0x2a4],EAX
JGE 0x00034407
MOV dword ptr [EBX + 0x2a4],EAX
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EBP,[EBX + 0x9964]
ADD EAX,0x1
SUB ESP,0x8
MOV dword ptr [EDI],EAX
SHL EAX,0x2
PUSH EAX
PUSH dword ptr [EBP]
CALL 0x00014210
MOV EDX,dword ptr [EDI]
ADD ESP,0x10
MOV dword ptr [EBP],EAX
LEA EDX,[EDX*0x4 + 0xfffffffc]
JMP 0x000343ea
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000343a0(char *param_1)\n\n{\n  undefined4 *puVar1;\n  size_t sVar2;\n  int iVar3;\n  \n  if (DAT_00089a00 == 0) {\n    puVar1 = (undefined4 *)xmalloc(8);\n    DAT_00089a00 = 2;\n    DAT_00089964 = puVar1;\n    *puVar1 = ".";\n    iVar3 = 4;\n  }\n  else {\n    DAT_00089a00 = DAT_00089a00 + 1;\n    puVar1 = (undefined4 *)xrealloc(DAT_00089964,DAT_00089a00 * 4);\n    iVar3 = DAT_00089a00 * 4 + -4;\n    DAT_00089964 = puVar1;\n  }\n  *(char **)((int)puVar1 + iVar3) = param_1;\n  sVar2 = strlen(param_1);\n  if ((int)DAT_000802a4 < (int)sVar2) {\n    DAT_000802a4 = sVar2;\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_000343a0(char *param_1)\n\n{\n  undefined4 *puVar1;\n  size_t sVar2;\n  int iVar3;\n  \n  if (DAT_00089a00 == 0) {\n    puVar1 = (undefined4 *)xmalloc(8);\n    DAT_00089a00 = 2;\n    DAT_00089964 = puVar1;\n    *puVar1 = ".";\n    iVar3 = 4;\n  }\n  else {\n    DAT_00089a00 = DAT_00089a00 + 1;\n    puVar1 = (undefined4 *)xrealloc(DAT_00089964,DAT_00089a00 * 4);\n    iVar3 = DAT_00089a00 * 4 + -4;\n    DAT_00089964 = puVar1;\n  }\n  *(char **)((int)puVar1 + iVar3) = param_1;\n  sVar2 = strlen(param_1);\n  if ((int)DAT_000802a4 < (int)sVar2) {\n    DAT_000802a4 = sVar2;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000343a0(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  size_t sVar2;\n  int iVar3;\n  \n  if (DAT_00089a00 == 0) {\n    puVar1 = (undefined4 *)xmalloc(8);\n    DAT_00089a00 = 2;\n    DAT_00089964 = puVar1;\n    *puVar1 = ".";\n    iVar3 = 4;\n  }\n  else {\n    DAT_00089a00 = DAT_00089a00 + 1;\n    puVar1 = (undefined4 *)xrealloc(DAT_00089964,DAT_00089a00 * 4);\n    iVar3 = DAT_00089a00 * 4 + -4;\n    DAT_00089964 = puVar1;\n  }\n  *(char **)((int)puVar1 + iVar3) = param_1;\n  sVar2 = strlen(param_1);\n  if ((int)DAT_000802a4 < (int)sVar2) {\n    DAT_000802a4 = sVar2;\n  }\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if (DAT_00089a00 == 0) {\n    puVar1 = (undefined4 *)xmalloc(8);\n    DAT_00089a00 = 2;\n    DAT_00089964 = puVar1;\n    *puVar1 = ".";\n    iVar3 = 4;\n  }\n  else {\n    DAT_00089a00 = DAT_00089a00 + 1;\n    puVar1 = (undefined4 *)xrealloc(DAT_00089964,DAT_00089a00 * 4);\n    iVar3 = DAT_00089a00 * 4 + -4;\n    DAT_00089964 = puVar1;\n  }" if (parenthesized_expression "(DAT_00089a00 == 0)" ( (binary_expression "DAT_00089a00 == 0" identifier == number_literal) )) (compound_statement "{\n    puVar1 = (undefined4 *)xmalloc(8);\n    DAT_00089a00 = 2;\n    DAT_00089964 = puVar1;\n    *puVar1 = ".";\n    iVar3 = 4;\n  }" { (expression_statement "puVar1 = (undefined4 *)xmalloc(8);" (assignment_expression "puVar1 = (undefined4 *)xmalloc(8)" identifier = (cast_expression "(undefined4 *)xmalloc(8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "DAT_00089a00 = 2;" (assignment_expression "DAT_00089a00 = 2" identifier = number_literal) ;) (expression_statement "DAT_00089964 = puVar1;" (assignment_expression "DAT_00089964 = puVar1" identifier = identifier) ;) (expression_statement "*puVar1 = ".";" (assignment_expression "*puVar1 = "."" (pointer_expression "*puVar1" * identifier) = (string_literal ""."" " string_content ")) ;) (expression_statement "iVar3 = 4;" (assignment_expression "iVar3 = 4" identifier = number_literal) ;) }) (else_clause "else {\n    DAT_00089a00 = DAT_00089a00 + 1;\n    puVar1 = (undefined4 *)xrealloc(DAT_00089964,DAT_00089a00 * 4);\n    iVar3 = DAT_00089a00 * 4 + -4;\n    DAT_00089964 = puVar1;\n  }" else (compound_statement "{\n    DAT_00089a00 = DAT_00089a00 + 1;\n    puVar1 = (undefined4 *)xrealloc(DAT_00089964,DAT_00089a00 * 4);\n    iVar3 = DAT_00089a00 * 4 + -4;\n    DAT_00089964 = puVar1;\n  }" { (expression_statement "DAT_00089a00 = DAT_00089a00 + 1;" (assignment_expression "DAT_00089a00 = DAT_00089a00 + 1" identifier = (binary_expression "DAT_00089a00 + 1" identifier + number_literal)) ;) (expression_statement "puVar1 = (undefined4 *)xrealloc(DAT_00089964,DAT_00089a00 * 4);" (assignment_expression "puVar1 = (undefined4 *)xrealloc(DAT_00089964,DAT_00089a00 * 4)" identifier = (cast_expression "(undefined4 *)xrealloc(DAT_00089964,DAT_00089a00 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(DAT_00089964,DAT_00089a00 * 4)" identifier (argument_list "(DAT_00089964,DAT_00089a00 * 4)" ( identifier , (binary_expression "DAT_00089a00 * 4" identifier * number_literal) ))))) ;) (expression_statement "iVar3 = DAT_00089a00 * 4 + -4;" (assignment_expression "iVar3 = DAT_00089a00 * 4 + -4" identifier = (binary_expression "DAT_00089a00 * 4 + -4" (binary_expression "DAT_00089a00 * 4" identifier * number_literal) + number_literal)) ;) (expression_statement "DAT_00089964 = puVar1;" (assignment_expression "DAT_00089964 = puVar1" identifier = identifier) ;) }))) (expression_statement "*(char **)((int)puVar1 + iVar3) = param_1;" (assignment_expression "*(char **)((int)puVar1 + iVar3) = param_1" (pointer_expression "*(char **)((int)puVar1 + iVar3)" * (cast_expression "(char **)((int)puVar1 + iVar3)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)puVar1 + iVar3)" ( (binary_expression "(int)puVar1 + iVar3" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = identifier) ;) (expression_statement "sVar2 = strlen(param_1);" (assignment_expression "sVar2 = strlen(param_1)" identifier = (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if ((int)DAT_000802a4 < (int)sVar2) {\n    DAT_000802a4 = sVar2;\n  }" if (parenthesized_expression "((int)DAT_000802a4 < (int)sVar2)" ( (binary_expression "(int)DAT_000802a4 < (int)sVar2" (cast_expression "(int)DAT_000802a4" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)sVar2" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    DAT_000802a4 = sVar2;\n  }" { (expression_statement "DAT_000802a4 = sVar2;" (assignment_expression "DAT_000802a4 = sVar2" identifier = 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 add_include_dir(char *path)\n\n{\n  char **ppcVar1;\n  size_t sVar2;\n  int iVar3;\n  \n  if (include_dir_count == 0) {\n    ppcVar1 = (char **)xmalloc(8);\n    include_dir_count = 2;\n    include_dirs = ppcVar1;\n    *ppcVar1 = ".";\n    iVar3 = 4;\n  }\n  else {\n    include_dir_count = include_dir_count + 1;\n    ppcVar1 = (char **)xrealloc(include_dirs,include_dir_count * 4);\n    iVar3 = include_dir_count * 4 + -4;\n    include_dirs = ppcVar1;\n  }\n  *(char **)((int)ppcVar1 + iVar3) = path;\n  sVar2 = strlen(path);\n  if (include_dir_maxlen < (int)sVar2) {\n    include_dir_maxlen = sVar2;\n  }\n  return;\n}\n\n" comment comment (function_definition "void add_include_dir(char *path)\n\n{\n  char **ppcVar1;\n  size_t sVar2;\n  int iVar3;\n  \n  if (include_dir_count == 0) {\n    ppcVar1 = (char **)xmalloc(8);\n    include_dir_count = 2;\n    include_dirs = ppcVar1;\n    *ppcVar1 = ".";\n    iVar3 = 4;\n  }\n  else {\n    include_dir_count = include_dir_count + 1;\n    ppcVar1 = (char **)xrealloc(include_dirs,include_dir_count * 4);\n    iVar3 = include_dir_count * 4 + -4;\n    include_dirs = ppcVar1;\n  }\n  *(char **)((int)ppcVar1 + iVar3) = path;\n  sVar2 = strlen(path);\n  if (include_dir_maxlen < (int)sVar2) {\n    include_dir_maxlen = sVar2;\n  }\n  return;\n}" primitive_type (function_declarator "add_include_dir(char *path)" identifier (parameter_list "(char *path)" ( (parameter_declaration "char *path" primitive_type (pointer_declarator "*path" * identifier)) ))) (compound_statement "{\n  char **ppcVar1;\n  size_t sVar2;\n  int iVar3;\n  \n  if (include_dir_count == 0) {\n    ppcVar1 = (char **)xmalloc(8);\n    include_dir_count = 2;\n    include_dirs = ppcVar1;\n    *ppcVar1 = ".";\n    iVar3 = 4;\n  }\n  else {\n    include_dir_count = include_dir_count + 1;\n    ppcVar1 = (char **)xrealloc(include_dirs,include_dir_count * 4);\n    iVar3 = include_dir_count * 4 + -4;\n    include_dirs = ppcVar1;\n  }\n  *(char **)((int)ppcVar1 + iVar3) = path;\n  sVar2 = strlen(path);\n  if (include_dir_maxlen < (int)sVar2) {\n    include_dir_maxlen = sVar2;\n  }\n  return;\n}" { (declaration "char **ppcVar1;" primitive_type (pointer_declarator "**ppcVar1" * (pointer_declarator "*ppcVar1" * identifier)) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if (include_dir_count == 0) {\n    ppcVar1 = (char **)xmalloc(8);\n    include_dir_count = 2;\n    include_dirs = ppcVar1;\n    *ppcVar1 = ".";\n    iVar3 = 4;\n  }\n  else {\n    include_dir_count = include_dir_count + 1;\n    ppcVar1 = (char **)xrealloc(include_dirs,include_dir_count * 4);\n    iVar3 = include_dir_count * 4 + -4;\n    include_dirs = ppcVar1;\n  }" if (parenthesized_expression "(include_dir_count == 0)" ( (binary_expression "include_dir_count == 0" identifier == number_literal) )) (compound_statement "{\n    ppcVar1 = (char **)xmalloc(8);\n    include_dir_count = 2;\n    include_dirs = ppcVar1;\n    *ppcVar1 = ".";\n    iVar3 = 4;\n  }" { (expression_statement "ppcVar1 = (char **)xmalloc(8);" (assignment_expression "ppcVar1 = (char **)xmalloc(8)" identifier = (cast_expression "(char **)xmalloc(8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (call_expression "xmalloc(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "include_dir_count = 2;" (assignment_expression "include_dir_count = 2" identifier = number_literal) ;) (expression_statement "include_dirs = ppcVar1;" (assignment_expression "include_dirs = ppcVar1" identifier = identifier) ;) (expression_statement "*ppcVar1 = ".";" (assignment_expression "*ppcVar1 = "."" (pointer_expression "*ppcVar1" * identifier) = (string_literal ""."" " string_content ")) ;) (expression_statement "iVar3 = 4;" (assignment_expression "iVar3 = 4" identifier = number_literal) ;) }) (else_clause "else {\n    include_dir_count = include_dir_count + 1;\n    ppcVar1 = (char **)xrealloc(include_dirs,include_dir_count * 4);\n    iVar3 = include_dir_count * 4 + -4;\n    include_dirs = ppcVar1;\n  }" else (compound_statement "{\n    include_dir_count = include_dir_count + 1;\n    ppcVar1 = (char **)xrealloc(include_dirs,include_dir_count * 4);\n    iVar3 = include_dir_count * 4 + -4;\n    include_dirs = ppcVar1;\n  }" { (expression_statement "include_dir_count = include_dir_count + 1;" (assignment_expression "include_dir_count = include_dir_count + 1" identifier = (binary_expression "include_dir_count + 1" identifier + number_literal)) ;) (expression_statement "ppcVar1 = (char **)xrealloc(include_dirs,include_dir_count * 4);" (assignment_expression "ppcVar1 = (char **)xrealloc(include_dirs,include_dir_count * 4)" identifier = (cast_expression "(char **)xrealloc(include_dirs,include_dir_count * 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (call_expression "xrealloc(include_dirs,include_dir_count * 4)" identifier (argument_list "(include_dirs,include_dir_count * 4)" ( identifier , (binary_expression "include_dir_count * 4" identifier * number_literal) ))))) ;) (expression_statement "iVar3 = include_dir_count * 4 + -4;" (assignment_expression "iVar3 = include_dir_count * 4 + -4" identifier = (binary_expression "include_dir_count * 4 + -4" (binary_expression "include_dir_count * 4" identifier * number_literal) + number_literal)) ;) (expression_statement "include_dirs = ppcVar1;" (assignment_expression "include_dirs = ppcVar1" identifier = identifier) ;) }))) (expression_statement "*(char **)((int)ppcVar1 + iVar3) = path;" (assignment_expression "*(char **)((int)ppcVar1 + iVar3) = path" (pointer_expression "*(char **)((int)ppcVar1 + iVar3)" * (cast_expression "(char **)((int)ppcVar1 + iVar3)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)ppcVar1 + iVar3)" ( (binary_expression "(int)ppcVar1 + iVar3" (cast_expression "(int)ppcVar1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = identifier) ;) (expression_statement "sVar2 = strlen(path);" (assignment_expression "sVar2 = strlen(path)" identifier = (call_expression "strlen(path)" identifier (argument_list "(path)" ( identifier )))) ;) (if_statement "if (include_dir_maxlen < (int)sVar2) {\n    include_dir_maxlen = sVar2;\n  }" if (parenthesized_expression "(include_dir_maxlen < (int)sVar2)" ( (binary_expression "include_dir_maxlen < (int)sVar2" identifier < (cast_expression "(int)sVar2" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    include_dir_maxlen = sVar2;\n  }" { (expression_statement "include_dir_maxlen = sVar2;" (assignment_expression "include_dir_maxlen = sVar2" identifier = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000343a0(char *param_1)\n\n{\n  undefined4 *puVar1;\n  size_t sVar2;\n  int iVar3;\n  \n  if (DAT_00089a00 == 0) {\n    puVar1 = (undefined4 *)xmalloc(8);\n    DAT_00089a00 = 2;\n    DAT_00089964 = puVar1;\n    *puVar1 = ".";\n    iVar3 = 4;\n  }\n  else {\n    DAT_00089a00 = DAT_00089a00 + 1;\n    puVar1 = (undefined4 *)xrealloc(DAT_00089964,DAT_00089a00 * 4);\n    iVar3 = DAT_00089a00 * 4 + -4;\n    DAT_00089964 = puVar1;\n  }\n  *(char **)((int)puVar1 + iVar3) = param_1;\n  sVar2 = strlen(param_1);\n  if ((int)DAT_000802a4 < (int)sVar2) {\n    DAT_000802a4 = sVar2;\n  }\n  return;\n}\n\n" (function_definition "void FUN_000343a0(char *param_1)\n\n{\n  undefined4 *puVar1;\n  size_t sVar2;\n  int iVar3;\n  \n  if (DAT_00089a00 == 0) {\n    puVar1 = (undefined4 *)xmalloc(8);\n    DAT_00089a00 = 2;\n    DAT_00089964 = puVar1;\n    *puVar1 = ".";\n    iVar3 = 4;\n  }\n  else {\n    DAT_00089a00 = DAT_00089a00 + 1;\n    puVar1 = (undefined4 *)xrealloc(DAT_00089964,DAT_00089a00 * 4);\n    iVar3 = DAT_00089a00 * 4 + -4;\n    DAT_00089964 = puVar1;\n  }\n  *(char **)((int)puVar1 + iVar3) = param_1;\n  sVar2 = strlen(param_1);\n  if ((int)DAT_000802a4 < (int)sVar2) {\n    DAT_000802a4 = sVar2;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000343a0(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  size_t sVar2;\n  int iVar3;\n  \n  if (DAT_00089a00 == 0) {\n    puVar1 = (undefined4 *)xmalloc(8);\n    DAT_00089a00 = 2;\n    DAT_00089964 = puVar1;\n    *puVar1 = ".";\n    iVar3 = 4;\n  }\n  else {\n    DAT_00089a00 = DAT_00089a00 + 1;\n    puVar1 = (undefined4 *)xrealloc(DAT_00089964,DAT_00089a00 * 4);\n    iVar3 = DAT_00089a00 * 4 + -4;\n    DAT_00089964 = puVar1;\n  }\n  *(char **)((int)puVar1 + iVar3) = param_1;\n  sVar2 = strlen(param_1);\n  if ((int)DAT_000802a4 < (int)sVar2) {\n    DAT_000802a4 = sVar2;\n  }\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if (DAT_00089a00 == 0) {\n    puVar1 = (undefined4 *)xmalloc(8);\n    DAT_00089a00 = 2;\n    DAT_00089964 = puVar1;\n    *puVar1 = ".";\n    iVar3 = 4;\n  }\n  else {\n    DAT_00089a00 = DAT_00089a00 + 1;\n    puVar1 = (undefined4 *)xrealloc(DAT_00089964,DAT_00089a00 * 4);\n    iVar3 = DAT_00089a00 * 4 + -4;\n    DAT_00089964 = puVar1;\n  }" if (parenthesized_expression "(DAT_00089a00 == 0)" ( (binary_expression "DAT_00089a00 == 0" identifier == number_literal) )) (compound_statement "{\n    puVar1 = (undefined4 *)xmalloc(8);\n    DAT_00089a00 = 2;\n    DAT_00089964 = puVar1;\n    *puVar1 = ".";\n    iVar3 = 4;\n  }" { (expression_statement "puVar1 = (undefined4 *)xmalloc(8);" (assignment_expression "puVar1 = (undefined4 *)xmalloc(8)" identifier = (cast_expression "(undefined4 *)xmalloc(8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "DAT_00089a00 = 2;" (assignment_expression "DAT_00089a00 = 2" identifier = number_literal) ;) (expression_statement "DAT_00089964 = puVar1;" (assignment_expression "DAT_00089964 = puVar1" identifier = identifier) ;) (expression_statement "*puVar1 = ".";" (assignment_expression "*puVar1 = "."" (pointer_expression "*puVar1" * identifier) = (string_literal ""."" " string_content ")) ;) (expression_statement "iVar3 = 4;" (assignment_expression "iVar3 = 4" identifier = number_literal) ;) }) (else_clause "else {\n    DAT_00089a00 = DAT_00089a00 + 1;\n    puVar1 = (undefined4 *)xrealloc(DAT_00089964,DAT_00089a00 * 4);\n    iVar3 = DAT_00089a00 * 4 + -4;\n    DAT_00089964 = puVar1;\n  }" else (compound_statement "{\n    DAT_00089a00 = DAT_00089a00 + 1;\n    puVar1 = (undefined4 *)xrealloc(DAT_00089964,DAT_00089a00 * 4);\n    iVar3 = DAT_00089a00 * 4 + -4;\n    DAT_00089964 = puVar1;\n  }" { (expression_statement "DAT_00089a00 = DAT_00089a00 + 1;" (assignment_expression "DAT_00089a00 = DAT_00089a00 + 1" identifier = (binary_expression "DAT_00089a00 + 1" identifier + number_literal)) ;) (expression_statement "puVar1 = (undefined4 *)xrealloc(DAT_00089964,DAT_00089a00 * 4);" (assignment_expression "puVar1 = (undefined4 *)xrealloc(DAT_00089964,DAT_00089a00 * 4)" identifier = (cast_expression "(undefined4 *)xrealloc(DAT_00089964,DAT_00089a00 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(DAT_00089964,DAT_00089a00 * 4)" identifier (argument_list "(DAT_00089964,DAT_00089a00 * 4)" ( identifier , (binary_expression "DAT_00089a00 * 4" identifier * number_literal) ))))) ;) (expression_statement "iVar3 = DAT_00089a00 * 4 + -4;" (assignment_expression "iVar3 = DAT_00089a00 * 4 + -4" identifier = (binary_expression "DAT_00089a00 * 4 + -4" (binary_expression "DAT_00089a00 * 4" identifier * number_literal) + number_literal)) ;) (expression_statement "DAT_00089964 = puVar1;" (assignment_expression "DAT_00089964 = puVar1" identifier = identifier) ;) }))) (expression_statement "*(char **)((int)puVar1 + iVar3) = param_1;" (assignment_expression "*(char **)((int)puVar1 + iVar3) = param_1" (pointer_expression "*(char **)((int)puVar1 + iVar3)" * (cast_expression "(char **)((int)puVar1 + iVar3)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)puVar1 + iVar3)" ( (binary_expression "(int)puVar1 + iVar3" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = identifier) ;) (expression_statement "sVar2 = strlen(param_1);" (assignment_expression "sVar2 = strlen(param_1)" identifier = (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if ((int)DAT_000802a4 < (int)sVar2) {\n    DAT_000802a4 = sVar2;\n  }" if (parenthesized_expression "((int)DAT_000802a4 < (int)sVar2)" ( (binary_expression "(int)DAT_000802a4 < (int)sVar2" (cast_expression "(int)DAT_000802a4" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)sVar2" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    DAT_000802a4 = sVar2;\n  }" { (expression_statement "DAT_000802a4 = sVar2;" (assignment_expression "DAT_000802a4 = sVar2" identifier = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (string_literal " string_content ")) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT * LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT * LIT) + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (return_statement return ;) })))
(function_definition "void FUN_000343a0(char *param_1)\n\n{\n  undefined4 *puVar1;\n  size_t sVar2;\n  int iVar3;\n  \n  if (DAT_00089a00 == 0) {\n    puVar1 = (undefined4 *)xmalloc(8);\n    DAT_00089a00 = 2;\n    DAT_00089964 = puVar1;\n    *puVar1 = ".";\n    iVar3 = 4;\n  }\n  else {\n    DAT_00089a00 = DAT_00089a00 + 1;\n    puVar1 = (undefined4 *)xrealloc(DAT_00089964,DAT_00089a00 * 4);\n    iVar3 = DAT_00089a00 * 4 + -4;\n    DAT_00089964 = puVar1;\n  }\n  *(char **)((int)puVar1 + iVar3) = param_1;\n  sVar2 = strlen(param_1);\n  if ((int)DAT_000802a4 < (int)sVar2) {\n    DAT_000802a4 = sVar2;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000343a0(char *param_1)" (identifier "FUN_000343a0") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  size_t sVar2;\n  int iVar3;\n  \n  if (DAT_00089a00 == 0) {\n    puVar1 = (undefined4 *)xmalloc(8);\n    DAT_00089a00 = 2;\n    DAT_00089964 = puVar1;\n    *puVar1 = ".";\n    iVar3 = 4;\n  }\n  else {\n    DAT_00089a00 = DAT_00089a00 + 1;\n    puVar1 = (undefined4 *)xrealloc(DAT_00089964,DAT_00089a00 * 4);\n    iVar3 = DAT_00089a00 * 4 + -4;\n    DAT_00089964 = puVar1;\n  }\n  *(char **)((int)puVar1 + iVar3) = param_1;\n  sVar2 = strlen(param_1);\n  if ((int)DAT_000802a4 < (int)sVar2) {\n    DAT_000802a4 = sVar2;\n  }\n  return;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "size_t sVar2;" (primitive_type "size_t") (identifier "sVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (if_statement "if (DAT_00089a00 == 0) {\n    puVar1 = (undefined4 *)xmalloc(8);\n    DAT_00089a00 = 2;\n    DAT_00089964 = puVar1;\n    *puVar1 = ".";\n    iVar3 = 4;\n  }\n  else {\n    DAT_00089a00 = DAT_00089a00 + 1;\n    puVar1 = (undefined4 *)xrealloc(DAT_00089964,DAT_00089a00 * 4);\n    iVar3 = DAT_00089a00 * 4 + -4;\n    DAT_00089964 = puVar1;\n  }" (if "if") (parenthesized_expression "(DAT_00089a00 == 0)" (( "(") (binary_expression "DAT_00089a00 == 0" (identifier "DAT_00089a00") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    puVar1 = (undefined4 *)xmalloc(8);\n    DAT_00089a00 = 2;\n    DAT_00089964 = puVar1;\n    *puVar1 = ".";\n    iVar3 = 4;\n  }" ({ "{") (expression_statement "puVar1 = (undefined4 *)xmalloc(8);" (assignment_expression "puVar1 = (undefined4 *)xmalloc(8)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)xmalloc(8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(8)" (identifier "xmalloc") (argument_list "(8)" (( "(") (number_literal "8") () ")"))))) (; ";")) (expression_statement "DAT_00089a00 = 2;" (assignment_expression "DAT_00089a00 = 2" (identifier "DAT_00089a00") (= "=") (number_literal "2")) (; ";")) (expression_statement "DAT_00089964 = puVar1;" (assignment_expression "DAT_00089964 = puVar1" (identifier "DAT_00089964") (= "=") (identifier "puVar1")) (; ";")) (expression_statement "*puVar1 = ".";" (assignment_expression "*puVar1 = "."" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (string_literal ""."" (" """) (string_content ".") (" """))) (; ";")) (expression_statement "iVar3 = 4;" (assignment_expression "iVar3 = 4" (identifier "iVar3") (= "=") (number_literal "4")) (; ";")) (} "}")) (else_clause "else {\n    DAT_00089a00 = DAT_00089a00 + 1;\n    puVar1 = (undefined4 *)xrealloc(DAT_00089964,DAT_00089a00 * 4);\n    iVar3 = DAT_00089a00 * 4 + -4;\n    DAT_00089964 = puVar1;\n  }" (else "else") (compound_statement "{\n    DAT_00089a00 = DAT_00089a00 + 1;\n    puVar1 = (undefined4 *)xrealloc(DAT_00089964,DAT_00089a00 * 4);\n    iVar3 = DAT_00089a00 * 4 + -4;\n    DAT_00089964 = puVar1;\n  }" ({ "{") (expression_statement "DAT_00089a00 = DAT_00089a00 + 1;" (assignment_expression "DAT_00089a00 = DAT_00089a00 + 1" (identifier "DAT_00089a00") (= "=") (binary_expression "DAT_00089a00 + 1" (identifier "DAT_00089a00") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar1 = (undefined4 *)xrealloc(DAT_00089964,DAT_00089a00 * 4);" (assignment_expression "puVar1 = (undefined4 *)xrealloc(DAT_00089964,DAT_00089a00 * 4)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)xrealloc(DAT_00089964,DAT_00089a00 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xrealloc(DAT_00089964,DAT_00089a00 * 4)" (identifier "xrealloc") (argument_list "(DAT_00089964,DAT_00089a00 * 4)" (( "(") (identifier "DAT_00089964") (, ",") (binary_expression "DAT_00089a00 * 4" (identifier "DAT_00089a00") (* "*") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "iVar3 = DAT_00089a00 * 4 + -4;" (assignment_expression "iVar3 = DAT_00089a00 * 4 + -4" (identifier "iVar3") (= "=") (binary_expression "DAT_00089a00 * 4 + -4" (binary_expression "DAT_00089a00 * 4" (identifier "DAT_00089a00") (* "*") (number_literal "4")) (+ "+") (number_literal "-4"))) (; ";")) (expression_statement "DAT_00089964 = puVar1;" (assignment_expression "DAT_00089964 = puVar1" (identifier "DAT_00089964") (= "=") (identifier "puVar1")) (; ";")) (} "}")))) (expression_statement "*(char **)((int)puVar1 + iVar3) = param_1;" (assignment_expression "*(char **)((int)puVar1 + iVar3) = param_1" (pointer_expression "*(char **)((int)puVar1 + iVar3)" (* "*") (cast_expression "(char **)((int)puVar1 + iVar3)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)puVar1 + iVar3)" (( "(") (binary_expression "(int)puVar1 + iVar3" (cast_expression "(int)puVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar1")) (+ "+") (identifier "iVar3")) () ")")))) (= "=") (identifier "param_1")) (; ";")) (expression_statement "sVar2 = strlen(param_1);" (assignment_expression "sVar2 = strlen(param_1)" (identifier "sVar2") (= "=") (call_expression "strlen(param_1)" (identifier "strlen") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if ((int)DAT_000802a4 < (int)sVar2) {\n    DAT_000802a4 = sVar2;\n  }" (if "if") (parenthesized_expression "((int)DAT_000802a4 < (int)sVar2)" (( "(") (binary_expression "(int)DAT_000802a4 < (int)sVar2" (cast_expression "(int)DAT_000802a4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "DAT_000802a4")) (< "<") (cast_expression "(int)sVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "sVar2"))) () ")")) (compound_statement "{\n    DAT_000802a4 = sVar2;\n  }" ({ "{") (expression_statement "DAT_000802a4 = sVar2;" (assignment_expression "DAT_000802a4 = sVar2" (identifier "DAT_000802a4") (= "=") (identifier "sVar2")) (; ";")) (} "}"))) (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(char *path)

{
  char **ppcVar1;
  size_t sVar2;
  int var_4;
  
  if (var_1 == 0) {
    ppcVar1 = (char **)var_2(8);
    var_1 = 2;
    include_dirs = ppcVar1;
    *ppcVar1 = ".";
    var_4 = 4;
  }
  else {
    var_1 = var_1 + 1;
    ppcVar1 = (char **)var_3(include_dirs,var_1 * 4);
    var_4 = var_1 * 4 + -4;
    include_dirs = ppcVar1;
  }
  *(char **)((int)ppcVar1 + var_4) = path;
  sVar2 = var_5(path);
  if (var_6 < (int)sVar2) {
    var_6 = sVar2;
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (string_literal (string_content)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (identifier))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (return_statement))))

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

void MASKED(char *param_1)

{
  undefined4 *puVar1;
  size_t sVar2;
  int iVar3;
  
  if (DAT_00089a00 == 0) {
    puVar1 = (undefined4 *)xmalloc(8);
    DAT_00089a00 = 2;
    DAT_00089964 = puVar1;
    *puVar1 = ".";
    iVar3 = 4;
  }
  else {
    DAT_00089a00 = DAT_00089a00 + 1;
    puVar1 = (undefined4 *)xrealloc(DAT_00089964,DAT_00089a00 * 4);
    iVar3 = DAT_00089a00 * 4 + -4;
    DAT_00089964 = puVar1;
  }
  *(char **)((int)puVar1 + iVar3) = param_1;
  sVar2 = strlen(param_1);
  if ((int)DAT_000802a4 < (int)sVar2) {
    DAT_000802a4 = sVar2;
  }
  return;
}

