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

Source_File * source_file_lookup_path(char *path)

{
  Source_File *pSVar1;
  int iVar2;
  Source_File *pSVar3;
  uint uVar4;
  char *pcVar5;
  uint uVar6;
  source_file *psVar7;
  
  psVar7 = first_src_file;
  if (first_src_file != (Source_File *)0x0) {
    do {
      iVar2 = filename_cmp(path,psVar7->name);
      if (iVar2 == 0) {
        return psVar7;
      }
      psVar7 = psVar7->next;
    } while (psVar7 != (source_file *)0x0);
  }
  pSVar3 = (Source_File *)xmalloc(0x18);
  pSVar3->next = (source_file *)0x0;
  uVar6 = (uint)&pSVar3->name & 0xfffffffc;
  pSVar3->line = (void **)0x0;
  uVar4 = 0;
  do {
    *(undefined4 *)(uVar6 + uVar4) = 0;
    uVar4 = uVar4 + 4;
  } while (uVar4 < ((int)pSVar3 + (0x18 - uVar6) & 0xfffffffc));
  pcVar5 = (char *)xstrdup(path);
  pSVar3->name = pcVar5;
  pSVar1 = pSVar3;
  pSVar3->next = first_src_file;
  first_src_file = pSVar1;
  return pSVar3;
}



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

int * FUN_0001c820(undefined4 param_1)

{
  int *piVar1;
  int *piVar2;
  uint uVar3;
  int iVar4;
  
  piVar2 = DAT_0002e178;
  if (DAT_0002e178 != (int *)0x0) {
    do {
      iVar4 = filename_cmp(param_1,piVar2[1]);
      if (iVar4 == 0) {
        return piVar2;
      }
      piVar2 = (int *)*piVar2;
    } while (piVar2 != (int *)0x0);
  }
  piVar2 = (int *)xmalloc(0x18);
  *piVar2 = 0;
  piVar2[5] = 0;
  uVar3 = 0;
  do {
    *(undefined4 *)(((uint)(piVar2 + 1) & 0xfffffffc) + uVar3) = 0;
    uVar3 = uVar3 + 4;
  } while (uVar3 < ((int)piVar2 + (0x18 - ((uint)(piVar2 + 1) & 0xfffffffc)) & 0xfffffffc));
  iVar4 = xstrdup(param_1);
  piVar2[1] = iVar4;
  piVar1 = piVar2;
  *piVar2 = (int)DAT_0002e178;
  DAT_0002e178 = piVar1;
  return piVar2;
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00013030
ADD EBX,0x107d5
SUB ESP,0xc
MOV EDI,dword ptr [EBP + 0x8]
MOV ESI,dword ptr [EBX + 0x1178]
TEST ESI,ESI
JNZ 0x0001c84e
JMP 0x0001c870
MOV ESI,dword ptr [ESI]
TEST ESI,ESI
JZ 0x0001c870
SUB ESP,0x8
PUSH dword ptr [ESI + 0x4]
PUSH EDI
CALL 0x000120b0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0001c848
LEA ESP,[EBP + -0xc]
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH 0x18
CALL 0x000121d0
LEA ECX,[EAX + 0x4]
MOV EDX,EAX
MOV ESI,EAX
MOV dword ptr [EAX],0x0
AND ECX,0xfffffffc
MOV dword ptr [EAX + 0x14],0x0
XOR EAX,EAX
SUB EDX,ECX
ADD EDX,0x18
AND EDX,0xfffffffc
MOV dword ptr [ECX + EAX*0x1],0x0
ADD EAX,0x4
CMP EAX,EDX
JC 0x0001c89b
MOV dword ptr [ESP],EDI
CALL 0x000121f0
ADD ESP,0x10
MOV dword ptr [ESI + 0x4],EAX
MOV EAX,dword ptr [EBX + 0x1178]
MOV dword ptr [EBX + 0x1178],ESI
MOV dword ptr [ESI],EAX
LEA ESP,[EBP + -0xc]
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint * FUN_0001c820(undefined4 param_1)\n\n{\n  int *piVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  \n  piVar2 = DAT_0002e178;\n  if (DAT_0002e178 != (int *)0x0) {\n    do {\n      iVar4 = filename_cmp(param_1,piVar2[1]);\n      if (iVar4 == 0) {\n        return piVar2;\n      }\n      piVar2 = (int *)*piVar2;\n    } while (piVar2 != (int *)0x0);\n  }\n  piVar2 = (int *)xmalloc(0x18);\n  *piVar2 = 0;\n  piVar2[5] = 0;\n  uVar3 = 0;\n  do {\n    *(undefined4 *)(((uint)(piVar2 + 1) & 0xfffffffc) + uVar3) = 0;\n    uVar3 = uVar3 + 4;\n  } while (uVar3 < ((int)piVar2 + (0x18 - ((uint)(piVar2 + 1) & 0xfffffffc)) & 0xfffffffc));\n  iVar4 = xstrdup(param_1);\n  piVar2[1] = iVar4;\n  piVar1 = piVar2;\n  *piVar2 = (int)DAT_0002e178;\n  DAT_0002e178 = piVar1;\n  return piVar2;\n}\n\n" comment (function_definition "int * FUN_0001c820(undefined4 param_1)\n\n{\n  int *piVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  \n  piVar2 = DAT_0002e178;\n  if (DAT_0002e178 != (int *)0x0) {\n    do {\n      iVar4 = filename_cmp(param_1,piVar2[1]);\n      if (iVar4 == 0) {\n        return piVar2;\n      }\n      piVar2 = (int *)*piVar2;\n    } while (piVar2 != (int *)0x0);\n  }\n  piVar2 = (int *)xmalloc(0x18);\n  *piVar2 = 0;\n  piVar2[5] = 0;\n  uVar3 = 0;\n  do {\n    *(undefined4 *)(((uint)(piVar2 + 1) & 0xfffffffc) + uVar3) = 0;\n    uVar3 = uVar3 + 4;\n  } while (uVar3 < ((int)piVar2 + (0x18 - ((uint)(piVar2 + 1) & 0xfffffffc)) & 0xfffffffc));\n  iVar4 = xstrdup(param_1);\n  piVar2[1] = iVar4;\n  piVar1 = piVar2;\n  *piVar2 = (int)DAT_0002e178;\n  DAT_0002e178 = piVar1;\n  return piVar2;\n}" primitive_type (pointer_declarator "* FUN_0001c820(undefined4 param_1)" * (function_declarator "FUN_0001c820(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) )))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  \n  piVar2 = DAT_0002e178;\n  if (DAT_0002e178 != (int *)0x0) {\n    do {\n      iVar4 = filename_cmp(param_1,piVar2[1]);\n      if (iVar4 == 0) {\n        return piVar2;\n      }\n      piVar2 = (int *)*piVar2;\n    } while (piVar2 != (int *)0x0);\n  }\n  piVar2 = (int *)xmalloc(0x18);\n  *piVar2 = 0;\n  piVar2[5] = 0;\n  uVar3 = 0;\n  do {\n    *(undefined4 *)(((uint)(piVar2 + 1) & 0xfffffffc) + uVar3) = 0;\n    uVar3 = uVar3 + 4;\n  } while (uVar3 < ((int)piVar2 + (0x18 - ((uint)(piVar2 + 1) & 0xfffffffc)) & 0xfffffffc));\n  iVar4 = xstrdup(param_1);\n  piVar2[1] = iVar4;\n  piVar1 = piVar2;\n  *piVar2 = (int)DAT_0002e178;\n  DAT_0002e178 = piVar1;\n  return piVar2;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "piVar2 = DAT_0002e178;" (assignment_expression "piVar2 = DAT_0002e178" identifier = identifier) ;) (if_statement "if (DAT_0002e178 != (int *)0x0) {\n    do {\n      iVar4 = filename_cmp(param_1,piVar2[1]);\n      if (iVar4 == 0) {\n        return piVar2;\n      }\n      piVar2 = (int *)*piVar2;\n    } while (piVar2 != (int *)0x0);\n  }" if (parenthesized_expression "(DAT_0002e178 != (int *)0x0)" ( (binary_expression "DAT_0002e178 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      iVar4 = filename_cmp(param_1,piVar2[1]);\n      if (iVar4 == 0) {\n        return piVar2;\n      }\n      piVar2 = (int *)*piVar2;\n    } while (piVar2 != (int *)0x0);\n  }" { (do_statement "do {\n      iVar4 = filename_cmp(param_1,piVar2[1]);\n      if (iVar4 == 0) {\n        return piVar2;\n      }\n      piVar2 = (int *)*piVar2;\n    } while (piVar2 != (int *)0x0);" do (compound_statement "{\n      iVar4 = filename_cmp(param_1,piVar2[1]);\n      if (iVar4 == 0) {\n        return piVar2;\n      }\n      piVar2 = (int *)*piVar2;\n    }" { (expression_statement "iVar4 = filename_cmp(param_1,piVar2[1]);" (assignment_expression "iVar4 = filename_cmp(param_1,piVar2[1])" identifier = (call_expression "filename_cmp(param_1,piVar2[1])" identifier (argument_list "(param_1,piVar2[1])" ( identifier , (subscript_expression "piVar2[1]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar4 == 0) {\n        return piVar2;\n      }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        return piVar2;\n      }" { (return_statement "return piVar2;" return identifier ;) })) (expression_statement "piVar2 = (int *)*piVar2;" (assignment_expression "piVar2 = (int *)*piVar2" identifier = (cast_expression "(int *)*piVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar2" * identifier))) ;) }) while (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (expression_statement "piVar2 = (int *)xmalloc(0x18);" (assignment_expression "piVar2 = (int *)xmalloc(0x18)" identifier = (cast_expression "(int *)xmalloc(0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x18)" identifier (argument_list "(0x18)" ( number_literal ))))) ;) (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" * identifier) = number_literal) ;) (expression_statement "piVar2[5] = 0;" (assignment_expression "piVar2[5] = 0" (subscript_expression "piVar2[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n    *(undefined4 *)(((uint)(piVar2 + 1) & 0xfffffffc) + uVar3) = 0;\n    uVar3 = uVar3 + 4;\n  } while (uVar3 < ((int)piVar2 + (0x18 - ((uint)(piVar2 + 1) & 0xfffffffc)) & 0xfffffffc));" do (compound_statement "{\n    *(undefined4 *)(((uint)(piVar2 + 1) & 0xfffffffc) + uVar3) = 0;\n    uVar3 = uVar3 + 4;\n  }" { (expression_statement "*(undefined4 *)(((uint)(piVar2 + 1) & 0xfffffffc) + uVar3) = 0;" (assignment_expression "*(undefined4 *)(((uint)(piVar2 + 1) & 0xfffffffc) + uVar3) = 0" (pointer_expression "*(undefined4 *)(((uint)(piVar2 + 1) & 0xfffffffc) + uVar3)" * (cast_expression "(undefined4 *)(((uint)(piVar2 + 1) & 0xfffffffc) + uVar3)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(((uint)(piVar2 + 1) & 0xfffffffc) + uVar3)" ( (binary_expression "((uint)(piVar2 + 1) & 0xfffffffc) + uVar3" (parenthesized_expression "((uint)(piVar2 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(piVar2 + 1) & 0xfffffffc" (call_expression "(uint)(piVar2 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(piVar2 + 1)" ( (binary_expression "piVar2 + 1" identifier + number_literal) ))) & number_literal) )) + identifier) )))) = number_literal) ;) (expression_statement "uVar3 = uVar3 + 4;" (assignment_expression "uVar3 = uVar3 + 4" identifier = (binary_expression "uVar3 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar3 < ((int)piVar2 + (0x18 - ((uint)(piVar2 + 1) & 0xfffffffc)) & 0xfffffffc))" ( (binary_expression "uVar3 < ((int)piVar2 + (0x18 - ((uint)(piVar2 + 1) & 0xfffffffc)) & 0xfffffffc)" identifier < (parenthesized_expression "((int)piVar2 + (0x18 - ((uint)(piVar2 + 1) & 0xfffffffc)) & 0xfffffffc)" ( (binary_expression "(int)piVar2 + (0x18 - ((uint)(piVar2 + 1) & 0xfffffffc)) & 0xfffffffc" (binary_expression "(int)piVar2 + (0x18 - ((uint)(piVar2 + 1) & 0xfffffffc))" (cast_expression "(int)piVar2" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x18 - ((uint)(piVar2 + 1) & 0xfffffffc))" ( (binary_expression "0x18 - ((uint)(piVar2 + 1) & 0xfffffffc)" number_literal - (parenthesized_expression "((uint)(piVar2 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(piVar2 + 1) & 0xfffffffc" (call_expression "(uint)(piVar2 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(piVar2 + 1)" ( (binary_expression "piVar2 + 1" identifier + number_literal) ))) & number_literal) ))) ))) & number_literal) ))) )) ;) (expression_statement "iVar4 = xstrdup(param_1);" (assignment_expression "iVar4 = xstrdup(param_1)" identifier = (call_expression "xstrdup(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "piVar2[1] = iVar4;" (assignment_expression "piVar2[1] = iVar4" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar1 = piVar2;" (assignment_expression "piVar1 = piVar2" identifier = identifier) ;) (expression_statement "*piVar2 = (int)DAT_0002e178;" (assignment_expression "*piVar2 = (int)DAT_0002e178" (pointer_expression "*piVar2" * identifier) = (cast_expression "(int)DAT_0002e178" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "DAT_0002e178 = piVar1;" (assignment_expression "DAT_0002e178 = piVar1" identifier = identifier) ;) (return_statement "return piVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nSource_File * source_file_lookup_path(char *path)\n\n{\n  Source_File *pSVar1;\n  int iVar2;\n  Source_File *pSVar3;\n  uint uVar4;\n  char *pcVar5;\n  uint uVar6;\n  source_file *psVar7;\n  \n  psVar7 = first_src_file;\n  if (first_src_file != (Source_File *)0x0) {\n    do {\n      iVar2 = filename_cmp(path,psVar7->name);\n      if (iVar2 == 0) {\n        return psVar7;\n      }\n      psVar7 = psVar7->next;\n    } while (psVar7 != (source_file *)0x0);\n  }\n  pSVar3 = (Source_File *)xmalloc(0x18);\n  pSVar3->next = (source_file *)0x0;\n  uVar6 = (uint)&pSVar3->name & 0xfffffffc;\n  pSVar3->line = (void **)0x0;\n  uVar4 = 0;\n  do {\n    *(undefined4 *)(uVar6 + uVar4) = 0;\n    uVar4 = uVar4 + 4;\n  } while (uVar4 < ((int)pSVar3 + (0x18 - uVar6) & 0xfffffffc));\n  pcVar5 = (char *)xstrdup(path);\n  pSVar3->name = pcVar5;\n  pSVar1 = pSVar3;\n  pSVar3->next = first_src_file;\n  first_src_file = pSVar1;\n  return pSVar3;\n}\n\n" comment (function_definition "Source_File * source_file_lookup_path(char *path)\n\n{\n  Source_File *pSVar1;\n  int iVar2;\n  Source_File *pSVar3;\n  uint uVar4;\n  char *pcVar5;\n  uint uVar6;\n  source_file *psVar7;\n  \n  psVar7 = first_src_file;\n  if (first_src_file != (Source_File *)0x0) {\n    do {\n      iVar2 = filename_cmp(path,psVar7->name);\n      if (iVar2 == 0) {\n        return psVar7;\n      }\n      psVar7 = psVar7->next;\n    } while (psVar7 != (source_file *)0x0);\n  }\n  pSVar3 = (Source_File *)xmalloc(0x18);\n  pSVar3->next = (source_file *)0x0;\n  uVar6 = (uint)&pSVar3->name & 0xfffffffc;\n  pSVar3->line = (void **)0x0;\n  uVar4 = 0;\n  do {\n    *(undefined4 *)(uVar6 + uVar4) = 0;\n    uVar4 = uVar4 + 4;\n  } while (uVar4 < ((int)pSVar3 + (0x18 - uVar6) & 0xfffffffc));\n  pcVar5 = (char *)xstrdup(path);\n  pSVar3->name = pcVar5;\n  pSVar1 = pSVar3;\n  pSVar3->next = first_src_file;\n  first_src_file = pSVar1;\n  return pSVar3;\n}" type_identifier (pointer_declarator "* source_file_lookup_path(char *path)" * (function_declarator "source_file_lookup_path(char *path)" identifier (parameter_list "(char *path)" ( (parameter_declaration "char *path" primitive_type (pointer_declarator "*path" * identifier)) )))) (compound_statement "{\n  Source_File *pSVar1;\n  int iVar2;\n  Source_File *pSVar3;\n  uint uVar4;\n  char *pcVar5;\n  uint uVar6;\n  source_file *psVar7;\n  \n  psVar7 = first_src_file;\n  if (first_src_file != (Source_File *)0x0) {\n    do {\n      iVar2 = filename_cmp(path,psVar7->name);\n      if (iVar2 == 0) {\n        return psVar7;\n      }\n      psVar7 = psVar7->next;\n    } while (psVar7 != (source_file *)0x0);\n  }\n  pSVar3 = (Source_File *)xmalloc(0x18);\n  pSVar3->next = (source_file *)0x0;\n  uVar6 = (uint)&pSVar3->name & 0xfffffffc;\n  pSVar3->line = (void **)0x0;\n  uVar4 = 0;\n  do {\n    *(undefined4 *)(uVar6 + uVar4) = 0;\n    uVar4 = uVar4 + 4;\n  } while (uVar4 < ((int)pSVar3 + (0x18 - uVar6) & 0xfffffffc));\n  pcVar5 = (char *)xstrdup(path);\n  pSVar3->name = pcVar5;\n  pSVar1 = pSVar3;\n  pSVar3->next = first_src_file;\n  first_src_file = pSVar1;\n  return pSVar3;\n}" { (declaration "Source_File *pSVar1;" type_identifier (pointer_declarator "*pSVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "Source_File *pSVar3;" type_identifier (pointer_declarator "*pSVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "source_file *psVar7;" type_identifier (pointer_declarator "*psVar7" * identifier) ;) (expression_statement "psVar7 = first_src_file;" (assignment_expression "psVar7 = first_src_file" identifier = identifier) ;) (if_statement "if (first_src_file != (Source_File *)0x0) {\n    do {\n      iVar2 = filename_cmp(path,psVar7->name);\n      if (iVar2 == 0) {\n        return psVar7;\n      }\n      psVar7 = psVar7->next;\n    } while (psVar7 != (source_file *)0x0);\n  }" if (parenthesized_expression "(first_src_file != (Source_File *)0x0)" ( (binary_expression "first_src_file != (Source_File *)0x0" identifier != (cast_expression "(Source_File *)0x0" ( (type_descriptor "Source_File *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      iVar2 = filename_cmp(path,psVar7->name);\n      if (iVar2 == 0) {\n        return psVar7;\n      }\n      psVar7 = psVar7->next;\n    } while (psVar7 != (source_file *)0x0);\n  }" { (do_statement "do {\n      iVar2 = filename_cmp(path,psVar7->name);\n      if (iVar2 == 0) {\n        return psVar7;\n      }\n      psVar7 = psVar7->next;\n    } while (psVar7 != (source_file *)0x0);" do (compound_statement "{\n      iVar2 = filename_cmp(path,psVar7->name);\n      if (iVar2 == 0) {\n        return psVar7;\n      }\n      psVar7 = psVar7->next;\n    }" { (expression_statement "iVar2 = filename_cmp(path,psVar7->name);" (assignment_expression "iVar2 = filename_cmp(path,psVar7->name)" identifier = (call_expression "filename_cmp(path,psVar7->name)" identifier (argument_list "(path,psVar7->name)" ( identifier , (field_expression "psVar7->name" identifier -> field_identifier) )))) ;) (if_statement "if (iVar2 == 0) {\n        return psVar7;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        return psVar7;\n      }" { (return_statement "return psVar7;" return identifier ;) })) (expression_statement "psVar7 = psVar7->next;" (assignment_expression "psVar7 = psVar7->next" identifier = (field_expression "psVar7->next" identifier -> field_identifier)) ;) }) while (parenthesized_expression "(psVar7 != (source_file *)0x0)" ( (binary_expression "psVar7 != (source_file *)0x0" identifier != (cast_expression "(source_file *)0x0" ( (type_descriptor "source_file *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (expression_statement "pSVar3 = (Source_File *)xmalloc(0x18);" (assignment_expression "pSVar3 = (Source_File *)xmalloc(0x18)" identifier = (cast_expression "(Source_File *)xmalloc(0x18)" ( (type_descriptor "Source_File *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x18)" identifier (argument_list "(0x18)" ( number_literal ))))) ;) (expression_statement "pSVar3->next = (source_file *)0x0;" (assignment_expression "pSVar3->next = (source_file *)0x0" (field_expression "pSVar3->next" identifier -> field_identifier) = (cast_expression "(source_file *)0x0" ( (type_descriptor "source_file *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "uVar6 = (uint)&pSVar3->name & 0xfffffffc;" (assignment_expression "uVar6 = (uint)&pSVar3->name & 0xfffffffc" identifier = (binary_expression "(uint)&pSVar3->name & 0xfffffffc" (binary_expression "(uint)&pSVar3->name" (parenthesized_expression "(uint)" ( identifier )) & (field_expression "pSVar3->name" identifier -> field_identifier)) & number_literal)) ;) (expression_statement "pSVar3->line = (void **)0x0;" (assignment_expression "pSVar3->line = (void **)0x0" (field_expression "pSVar3->line" identifier -> field_identifier) = (cast_expression "(void **)0x0" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n    *(undefined4 *)(uVar6 + uVar4) = 0;\n    uVar4 = uVar4 + 4;\n  } while (uVar4 < ((int)pSVar3 + (0x18 - uVar6) & 0xfffffffc));" do (compound_statement "{\n    *(undefined4 *)(uVar6 + uVar4) = 0;\n    uVar4 = uVar4 + 4;\n  }" { (expression_statement "*(undefined4 *)(uVar6 + uVar4) = 0;" (assignment_expression "*(undefined4 *)(uVar6 + uVar4) = 0" (pointer_expression "*(undefined4 *)(uVar6 + uVar4)" * (cast_expression "(undefined4 *)(uVar6 + uVar4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar6 + uVar4)" ( (binary_expression "uVar6 + uVar4" identifier + identifier) )))) = number_literal) ;) (expression_statement "uVar4 = uVar4 + 4;" (assignment_expression "uVar4 = uVar4 + 4" identifier = (binary_expression "uVar4 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar4 < ((int)pSVar3 + (0x18 - uVar6) & 0xfffffffc))" ( (binary_expression "uVar4 < ((int)pSVar3 + (0x18 - uVar6) & 0xfffffffc)" identifier < (parenthesized_expression "((int)pSVar3 + (0x18 - uVar6) & 0xfffffffc)" ( (binary_expression "(int)pSVar3 + (0x18 - uVar6) & 0xfffffffc" (binary_expression "(int)pSVar3 + (0x18 - uVar6)" (cast_expression "(int)pSVar3" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x18 - uVar6)" ( (binary_expression "0x18 - uVar6" number_literal - identifier) ))) & number_literal) ))) )) ;) (expression_statement "pcVar5 = (char *)xstrdup(path);" (assignment_expression "pcVar5 = (char *)xstrdup(path)" identifier = (cast_expression "(char *)xstrdup(path)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xstrdup(path)" identifier (argument_list "(path)" ( identifier ))))) ;) (expression_statement "pSVar3->name = pcVar5;" (assignment_expression "pSVar3->name = pcVar5" (field_expression "pSVar3->name" identifier -> field_identifier) = identifier) ;) (expression_statement "pSVar1 = pSVar3;" (assignment_expression "pSVar1 = pSVar3" identifier = identifier) ;) (expression_statement "pSVar3->next = first_src_file;" (assignment_expression "pSVar3->next = first_src_file" (field_expression "pSVar3->next" identifier -> field_identifier) = identifier) ;) (expression_statement "first_src_file = pSVar1;" (assignment_expression "first_src_file = pSVar1" identifier = identifier) ;) (return_statement "return pSVar3;" return identifier ;) })))
(translation_unit "int * FUN_0001c820(undefined4 param_1)\n\n{\n  int *piVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  \n  piVar2 = DAT_0002e178;\n  if (DAT_0002e178 != (int *)0x0) {\n    do {\n      iVar4 = filename_cmp(param_1,piVar2[1]);\n      if (iVar4 == 0) {\n        return piVar2;\n      }\n      piVar2 = (int *)*piVar2;\n    } while (piVar2 != (int *)0x0);\n  }\n  piVar2 = (int *)xmalloc(0x18);\n  *piVar2 = 0;\n  piVar2[5] = 0;\n  uVar3 = 0;\n  do {\n    *(undefined4 *)(((uint)(piVar2 + 1) & 0xfffffffc) + uVar3) = 0;\n    uVar3 = uVar3 + 4;\n  } while (uVar3 < ((int)piVar2 + (0x18 - ((uint)(piVar2 + 1) & 0xfffffffc)) & 0xfffffffc));\n  iVar4 = xstrdup(param_1);\n  piVar2[1] = iVar4;\n  piVar1 = piVar2;\n  *piVar2 = (int)DAT_0002e178;\n  DAT_0002e178 = piVar1;\n  return piVar2;\n}\n\n" (function_definition "int * FUN_0001c820(undefined4 param_1)\n\n{\n  int *piVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  \n  piVar2 = DAT_0002e178;\n  if (DAT_0002e178 != (int *)0x0) {\n    do {\n      iVar4 = filename_cmp(param_1,piVar2[1]);\n      if (iVar4 == 0) {\n        return piVar2;\n      }\n      piVar2 = (int *)*piVar2;\n    } while (piVar2 != (int *)0x0);\n  }\n  piVar2 = (int *)xmalloc(0x18);\n  *piVar2 = 0;\n  piVar2[5] = 0;\n  uVar3 = 0;\n  do {\n    *(undefined4 *)(((uint)(piVar2 + 1) & 0xfffffffc) + uVar3) = 0;\n    uVar3 = uVar3 + 4;\n  } while (uVar3 < ((int)piVar2 + (0x18 - ((uint)(piVar2 + 1) & 0xfffffffc)) & 0xfffffffc));\n  iVar4 = xstrdup(param_1);\n  piVar2[1] = iVar4;\n  piVar1 = piVar2;\n  *piVar2 = (int)DAT_0002e178;\n  DAT_0002e178 = piVar1;\n  return piVar2;\n}" primitive_type (pointer_declarator "* FUN_0001c820(undefined4 param_1)" * (function_declarator "FUN_0001c820(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) )))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  \n  piVar2 = DAT_0002e178;\n  if (DAT_0002e178 != (int *)0x0) {\n    do {\n      iVar4 = filename_cmp(param_1,piVar2[1]);\n      if (iVar4 == 0) {\n        return piVar2;\n      }\n      piVar2 = (int *)*piVar2;\n    } while (piVar2 != (int *)0x0);\n  }\n  piVar2 = (int *)xmalloc(0x18);\n  *piVar2 = 0;\n  piVar2[5] = 0;\n  uVar3 = 0;\n  do {\n    *(undefined4 *)(((uint)(piVar2 + 1) & 0xfffffffc) + uVar3) = 0;\n    uVar3 = uVar3 + 4;\n  } while (uVar3 < ((int)piVar2 + (0x18 - ((uint)(piVar2 + 1) & 0xfffffffc)) & 0xfffffffc));\n  iVar4 = xstrdup(param_1);\n  piVar2[1] = iVar4;\n  piVar1 = piVar2;\n  *piVar2 = (int)DAT_0002e178;\n  DAT_0002e178 = piVar1;\n  return piVar2;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "piVar2 = DAT_0002e178;" (assignment_expression "piVar2 = DAT_0002e178" identifier = identifier) ;) (if_statement "if (DAT_0002e178 != (int *)0x0) {\n    do {\n      iVar4 = filename_cmp(param_1,piVar2[1]);\n      if (iVar4 == 0) {\n        return piVar2;\n      }\n      piVar2 = (int *)*piVar2;\n    } while (piVar2 != (int *)0x0);\n  }" if (parenthesized_expression "(DAT_0002e178 != (int *)0x0)" ( (binary_expression "DAT_0002e178 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      iVar4 = filename_cmp(param_1,piVar2[1]);\n      if (iVar4 == 0) {\n        return piVar2;\n      }\n      piVar2 = (int *)*piVar2;\n    } while (piVar2 != (int *)0x0);\n  }" { (do_statement "do {\n      iVar4 = filename_cmp(param_1,piVar2[1]);\n      if (iVar4 == 0) {\n        return piVar2;\n      }\n      piVar2 = (int *)*piVar2;\n    } while (piVar2 != (int *)0x0);" do (compound_statement "{\n      iVar4 = filename_cmp(param_1,piVar2[1]);\n      if (iVar4 == 0) {\n        return piVar2;\n      }\n      piVar2 = (int *)*piVar2;\n    }" { (expression_statement "iVar4 = filename_cmp(param_1,piVar2[1]);" (assignment_expression "iVar4 = filename_cmp(param_1,piVar2[1])" identifier = (call_expression "filename_cmp(param_1,piVar2[1])" identifier (argument_list "(param_1,piVar2[1])" ( identifier , (subscript_expression "piVar2[1]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar4 == 0) {\n        return piVar2;\n      }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        return piVar2;\n      }" { (return_statement "return piVar2;" return identifier ;) })) (expression_statement "piVar2 = (int *)*piVar2;" (assignment_expression "piVar2 = (int *)*piVar2" identifier = (cast_expression "(int *)*piVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar2" * identifier))) ;) }) while (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (expression_statement "piVar2 = (int *)xmalloc(0x18);" (assignment_expression "piVar2 = (int *)xmalloc(0x18)" identifier = (cast_expression "(int *)xmalloc(0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x18)" identifier (argument_list "(0x18)" ( number_literal ))))) ;) (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" * identifier) = number_literal) ;) (expression_statement "piVar2[5] = 0;" (assignment_expression "piVar2[5] = 0" (subscript_expression "piVar2[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n    *(undefined4 *)(((uint)(piVar2 + 1) & 0xfffffffc) + uVar3) = 0;\n    uVar3 = uVar3 + 4;\n  } while (uVar3 < ((int)piVar2 + (0x18 - ((uint)(piVar2 + 1) & 0xfffffffc)) & 0xfffffffc));" do (compound_statement "{\n    *(undefined4 *)(((uint)(piVar2 + 1) & 0xfffffffc) + uVar3) = 0;\n    uVar3 = uVar3 + 4;\n  }" { (expression_statement "*(undefined4 *)(((uint)(piVar2 + 1) & 0xfffffffc) + uVar3) = 0;" (assignment_expression "*(undefined4 *)(((uint)(piVar2 + 1) & 0xfffffffc) + uVar3) = 0" (pointer_expression "*(undefined4 *)(((uint)(piVar2 + 1) & 0xfffffffc) + uVar3)" * (cast_expression "(undefined4 *)(((uint)(piVar2 + 1) & 0xfffffffc) + uVar3)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(((uint)(piVar2 + 1) & 0xfffffffc) + uVar3)" ( (binary_expression "((uint)(piVar2 + 1) & 0xfffffffc) + uVar3" (parenthesized_expression "((uint)(piVar2 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(piVar2 + 1) & 0xfffffffc" (call_expression "(uint)(piVar2 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(piVar2 + 1)" ( (binary_expression "piVar2 + 1" identifier + number_literal) ))) & number_literal) )) + identifier) )))) = number_literal) ;) (expression_statement "uVar3 = uVar3 + 4;" (assignment_expression "uVar3 = uVar3 + 4" identifier = (binary_expression "uVar3 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar3 < ((int)piVar2 + (0x18 - ((uint)(piVar2 + 1) & 0xfffffffc)) & 0xfffffffc))" ( (binary_expression "uVar3 < ((int)piVar2 + (0x18 - ((uint)(piVar2 + 1) & 0xfffffffc)) & 0xfffffffc)" identifier < (parenthesized_expression "((int)piVar2 + (0x18 - ((uint)(piVar2 + 1) & 0xfffffffc)) & 0xfffffffc)" ( (binary_expression "(int)piVar2 + (0x18 - ((uint)(piVar2 + 1) & 0xfffffffc)) & 0xfffffffc" (binary_expression "(int)piVar2 + (0x18 - ((uint)(piVar2 + 1) & 0xfffffffc))" (cast_expression "(int)piVar2" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x18 - ((uint)(piVar2 + 1) & 0xfffffffc))" ( (binary_expression "0x18 - ((uint)(piVar2 + 1) & 0xfffffffc)" number_literal - (parenthesized_expression "((uint)(piVar2 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(piVar2 + 1) & 0xfffffffc" (call_expression "(uint)(piVar2 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(piVar2 + 1)" ( (binary_expression "piVar2 + 1" identifier + number_literal) ))) & number_literal) ))) ))) & number_literal) ))) )) ;) (expression_statement "iVar4 = xstrdup(param_1);" (assignment_expression "iVar4 = xstrdup(param_1)" identifier = (call_expression "xstrdup(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "piVar2[1] = iVar4;" (assignment_expression "piVar2[1] = iVar4" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar1 = piVar2;" (assignment_expression "piVar1 = piVar2" identifier = identifier) ;) (expression_statement "*piVar2 = (int)DAT_0002e178;" (assignment_expression "*piVar2 = (int)DAT_0002e178" (pointer_expression "*piVar2" * identifier) = (cast_expression "(int)DAT_0002e178" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "DAT_0002e178 = piVar1;" (assignment_expression "DAT_0002e178 = piVar1" identifier = identifier) ;) (return_statement "return piVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (subscript_expression IDENT [ LIT ]) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) )) + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression LIT - (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) ))) ))) & LIT) ))) )) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "int * FUN_0001c820(undefined4 param_1)\n\n{\n  int *piVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  \n  piVar2 = DAT_0002e178;\n  if (DAT_0002e178 != (int *)0x0) {\n    do {\n      iVar4 = filename_cmp(param_1,piVar2[1]);\n      if (iVar4 == 0) {\n        return piVar2;\n      }\n      piVar2 = (int *)*piVar2;\n    } while (piVar2 != (int *)0x0);\n  }\n  piVar2 = (int *)xmalloc(0x18);\n  *piVar2 = 0;\n  piVar2[5] = 0;\n  uVar3 = 0;\n  do {\n    *(undefined4 *)(((uint)(piVar2 + 1) & 0xfffffffc) + uVar3) = 0;\n    uVar3 = uVar3 + 4;\n  } while (uVar3 < ((int)piVar2 + (0x18 - ((uint)(piVar2 + 1) & 0xfffffffc)) & 0xfffffffc));\n  iVar4 = xstrdup(param_1);\n  piVar2[1] = iVar4;\n  piVar1 = piVar2;\n  *piVar2 = (int)DAT_0002e178;\n  DAT_0002e178 = piVar1;\n  return piVar2;\n}" (primitive_type "int") (pointer_declarator "* FUN_0001c820(undefined4 param_1)" (* "*") (function_declarator "FUN_0001c820(undefined4 param_1)" (identifier "FUN_0001c820") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")")))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  \n  piVar2 = DAT_0002e178;\n  if (DAT_0002e178 != (int *)0x0) {\n    do {\n      iVar4 = filename_cmp(param_1,piVar2[1]);\n      if (iVar4 == 0) {\n        return piVar2;\n      }\n      piVar2 = (int *)*piVar2;\n    } while (piVar2 != (int *)0x0);\n  }\n  piVar2 = (int *)xmalloc(0x18);\n  *piVar2 = 0;\n  piVar2[5] = 0;\n  uVar3 = 0;\n  do {\n    *(undefined4 *)(((uint)(piVar2 + 1) & 0xfffffffc) + uVar3) = 0;\n    uVar3 = uVar3 + 4;\n  } while (uVar3 < ((int)piVar2 + (0x18 - ((uint)(piVar2 + 1) & 0xfffffffc)) & 0xfffffffc));\n  iVar4 = xstrdup(param_1);\n  piVar2[1] = iVar4;\n  piVar1 = piVar2;\n  *piVar2 = (int)DAT_0002e178;\n  DAT_0002e178 = piVar1;\n  return piVar2;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (expression_statement "piVar2 = DAT_0002e178;" (assignment_expression "piVar2 = DAT_0002e178" (identifier "piVar2") (= "=") (identifier "DAT_0002e178")) (; ";")) (if_statement "if (DAT_0002e178 != (int *)0x0) {\n    do {\n      iVar4 = filename_cmp(param_1,piVar2[1]);\n      if (iVar4 == 0) {\n        return piVar2;\n      }\n      piVar2 = (int *)*piVar2;\n    } while (piVar2 != (int *)0x0);\n  }" (if "if") (parenthesized_expression "(DAT_0002e178 != (int *)0x0)" (( "(") (binary_expression "DAT_0002e178 != (int *)0x0" (identifier "DAT_0002e178") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    do {\n      iVar4 = filename_cmp(param_1,piVar2[1]);\n      if (iVar4 == 0) {\n        return piVar2;\n      }\n      piVar2 = (int *)*piVar2;\n    } while (piVar2 != (int *)0x0);\n  }" ({ "{") (do_statement "do {\n      iVar4 = filename_cmp(param_1,piVar2[1]);\n      if (iVar4 == 0) {\n        return piVar2;\n      }\n      piVar2 = (int *)*piVar2;\n    } while (piVar2 != (int *)0x0);" (do "do") (compound_statement "{\n      iVar4 = filename_cmp(param_1,piVar2[1]);\n      if (iVar4 == 0) {\n        return piVar2;\n      }\n      piVar2 = (int *)*piVar2;\n    }" ({ "{") (expression_statement "iVar4 = filename_cmp(param_1,piVar2[1]);" (assignment_expression "iVar4 = filename_cmp(param_1,piVar2[1])" (identifier "iVar4") (= "=") (call_expression "filename_cmp(param_1,piVar2[1])" (identifier "filename_cmp") (argument_list "(param_1,piVar2[1])" (( "(") (identifier "param_1") (, ",") (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]")) () ")")))) (; ";")) (if_statement "if (iVar4 == 0) {\n        return piVar2;\n      }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return piVar2;\n      }" ({ "{") (return_statement "return piVar2;" (return "return") (identifier "piVar2") (; ";")) (} "}"))) (expression_statement "piVar2 = (int *)*piVar2;" (assignment_expression "piVar2 = (int *)*piVar2" (identifier "piVar2") (= "=") (cast_expression "(int *)*piVar2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar2" (* "*") (identifier "piVar2")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar2 != (int *)0x0)" (( "(") (binary_expression "piVar2 != (int *)0x0" (identifier "piVar2") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (} "}"))) (expression_statement "piVar2 = (int *)xmalloc(0x18);" (assignment_expression "piVar2 = (int *)xmalloc(0x18)" (identifier "piVar2") (= "=") (cast_expression "(int *)xmalloc(0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(0x18)" (identifier "xmalloc") (argument_list "(0x18)" (( "(") (number_literal "0x18") () ")"))))) (; ";")) (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar2[5] = 0;" (assignment_expression "piVar2[5] = 0" (subscript_expression "piVar2[5]" (identifier "piVar2") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n    *(undefined4 *)(((uint)(piVar2 + 1) & 0xfffffffc) + uVar3) = 0;\n    uVar3 = uVar3 + 4;\n  } while (uVar3 < ((int)piVar2 + (0x18 - ((uint)(piVar2 + 1) & 0xfffffffc)) & 0xfffffffc));" (do "do") (compound_statement "{\n    *(undefined4 *)(((uint)(piVar2 + 1) & 0xfffffffc) + uVar3) = 0;\n    uVar3 = uVar3 + 4;\n  }" ({ "{") (expression_statement "*(undefined4 *)(((uint)(piVar2 + 1) & 0xfffffffc) + uVar3) = 0;" (assignment_expression "*(undefined4 *)(((uint)(piVar2 + 1) & 0xfffffffc) + uVar3) = 0" (pointer_expression "*(undefined4 *)(((uint)(piVar2 + 1) & 0xfffffffc) + uVar3)" (* "*") (cast_expression "(undefined4 *)(((uint)(piVar2 + 1) & 0xfffffffc) + uVar3)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(((uint)(piVar2 + 1) & 0xfffffffc) + uVar3)" (( "(") (binary_expression "((uint)(piVar2 + 1) & 0xfffffffc) + uVar3" (parenthesized_expression "((uint)(piVar2 + 1) & 0xfffffffc)" (( "(") (binary_expression "(uint)(piVar2 + 1) & 0xfffffffc" (call_expression "(uint)(piVar2 + 1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(piVar2 + 1)" (( "(") (binary_expression "piVar2 + 1" (identifier "piVar2") (+ "+") (number_literal "1")) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")")) (+ "+") (identifier "uVar3")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar3 = uVar3 + 4;" (assignment_expression "uVar3 = uVar3 + 4" (identifier "uVar3") (= "=") (binary_expression "uVar3 + 4" (identifier "uVar3") (+ "+") (number_literal "4"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar3 < ((int)piVar2 + (0x18 - ((uint)(piVar2 + 1) & 0xfffffffc)) & 0xfffffffc))" (( "(") (binary_expression "uVar3 < ((int)piVar2 + (0x18 - ((uint)(piVar2 + 1) & 0xfffffffc)) & 0xfffffffc)" (identifier "uVar3") (< "<") (parenthesized_expression "((int)piVar2 + (0x18 - ((uint)(piVar2 + 1) & 0xfffffffc)) & 0xfffffffc)" (( "(") (binary_expression "(int)piVar2 + (0x18 - ((uint)(piVar2 + 1) & 0xfffffffc)) & 0xfffffffc" (binary_expression "(int)piVar2 + (0x18 - ((uint)(piVar2 + 1) & 0xfffffffc))" (cast_expression "(int)piVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar2")) (+ "+") (parenthesized_expression "(0x18 - ((uint)(piVar2 + 1) & 0xfffffffc))" (( "(") (binary_expression "0x18 - ((uint)(piVar2 + 1) & 0xfffffffc)" (number_literal "0x18") (- "-") (parenthesized_expression "((uint)(piVar2 + 1) & 0xfffffffc)" (( "(") (binary_expression "(uint)(piVar2 + 1) & 0xfffffffc" (call_expression "(uint)(piVar2 + 1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(piVar2 + 1)" (( "(") (binary_expression "piVar2 + 1" (identifier "piVar2") (+ "+") (number_literal "1")) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")"))) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")"))) () ")")) (; ";")) (expression_statement "iVar4 = xstrdup(param_1);" (assignment_expression "iVar4 = xstrdup(param_1)" (identifier "iVar4") (= "=") (call_expression "xstrdup(param_1)" (identifier "xstrdup") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "piVar2[1] = iVar4;" (assignment_expression "piVar2[1] = iVar4" (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar4")) (; ";")) (expression_statement "piVar1 = piVar2;" (assignment_expression "piVar1 = piVar2" (identifier "piVar1") (= "=") (identifier "piVar2")) (; ";")) (expression_statement "*piVar2 = (int)DAT_0002e178;" (assignment_expression "*piVar2 = (int)DAT_0002e178" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (cast_expression "(int)DAT_0002e178" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "DAT_0002e178"))) (; ";")) (expression_statement "DAT_0002e178 = piVar1;" (assignment_expression "DAT_0002e178 = piVar1" (identifier "DAT_0002e178") (= "=") (identifier "piVar1")) (; ";")) (return_statement "return piVar2;" (return "return") (identifier "piVar2") (; ";")) (} "}")))

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

type_1 * function_1(char *path)

{
  type_1 *pSVar1;
  int var_3;
  type_1 *pSVar3;
  type_2 var_7;
  char *pcVar5;
  type_2 var_6;
  type_3 *var_4;
  
  var_4 = var_1;
  if (var_1 != (type_1 *)0x0) {
    do {
      var_3 = var_2(path,var_4->name);
      if (var_3 == 0) {
        return var_4;
      }
      var_4 = var_4->next;
    } while (var_4 != (type_3 *)0x0);
  }
  pSVar3 = (type_1 *)var_5(0x18);
  pSVar3->next = (type_3 *)0x0;
  var_6 = (type_2)&pSVar3->name & 0xfffffffc;
  pSVar3->line = (void **)0x0;
  var_7 = 0;
  do {
    *(type_4 *)(var_6 + var_7) = 0;
    var_7 = var_7 + 4;
  } while (var_7 < ((int)pSVar3 + (0x18 - var_6) & 0xfffffffc));
  pcVar5 = (char *)var_8(path);
  pSVar3->name = pcVar5;
  pSVar1 = pSVar3;
  pSVar3->next = var_1;
  var_1 = pSVar1;
  return pSVar3;
}


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

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

int * MASKED(undefined4 param_1)

{
  int *piVar1;
  int *piVar2;
  uint uVar3;
  int iVar4;
  
  piVar2 = DAT_0002e178;
  if (DAT_0002e178 != (int *)0x0) {
    do {
      iVar4 = filename_cmp(param_1,piVar2[1]);
      if (iVar4 == 0) {
        return piVar2;
      }
      piVar2 = (int *)*piVar2;
    } while (piVar2 != (int *)0x0);
  }
  piVar2 = (int *)xmalloc(0x18);
  *piVar2 = 0;
  piVar2[5] = 0;
  uVar3 = 0;
  do {
    *(undefined4 *)(((uint)(piVar2 + 1) & 0xfffffffc) + uVar3) = 0;
    uVar3 = uVar3 + 4;
  } while (uVar3 < ((int)piVar2 + (0x18 - ((uint)(piVar2 + 1) & 0xfffffffc)) & 0xfffffffc));
  iVar4 = xstrdup(param_1);
  piVar2[1] = iVar4;
  piVar1 = piVar2;
  *piVar2 = (int)DAT_0002e178;
  DAT_0002e178 = piVar1;
  return piVar2;
}

