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

file_info_type * __regparm3 file_info(char *file_name)

{
  file_info_type *pfVar1;
  int iVar2;
  file_info_type *pfVar3;
  char *pcVar4;
  file_info_struct *pfVar5;
  
  pfVar5 = file_info_head;
  if (file_info_head != (file_info_type *)0x0) {
    do {
      iVar2 = filename_cmp(pfVar5->filename,file_name);
      if (iVar2 == 0) {
        return pfVar5;
      }
      pfVar5 = pfVar5->next;
    } while (pfVar5 != (file_info_struct *)0x0);
  }
  pfVar3 = (file_info_type *)xmalloc(0x14);
  pfVar1 = pfVar3;
  pfVar3->next = file_info_head;
  file_info_head = pfVar1;
  pcVar4 = (char *)xstrdup(file_name);
  pfVar3->pos = 0;
  pfVar3->filename = pcVar4;
  pfVar3->linenum = 0;
  pfVar3->at_end = 0;
  return pfVar3;
}



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

int * __regparm3 FUN_00026a30(undefined4 param_1)

{
  int *piVar1;
  int iVar2;
  int *piVar3;
  
  piVar3 = DAT_00088bf4;
  if (DAT_00088bf4 != (int *)0x0) {
    do {
      iVar2 = filename_cmp(piVar3[1],param_1);
      if (iVar2 == 0) {
        return piVar3;
      }
      piVar3 = (int *)*piVar3;
    } while (piVar3 != (int *)0x0);
  }
  piVar1 = (int *)xmalloc(0x14);
  piVar3 = piVar1;
  *piVar1 = (int)DAT_00088bf4;
  DAT_00088bf4 = piVar3;
  iVar2 = xstrdup(param_1);
  piVar1[2] = 0;
  piVar1[1] = iVar2;
  piVar1[3] = 0;
  piVar1[4] = 0;
  return piVar1;
}


PUSH EDI
MOV EDI,EAX
PUSH ESI
PUSH EBX
CALL 0x00016000
ADD EBX,0x595c6
MOV ESI,dword ptr [EBX + 0x8bf4]
TEST ESI,ESI
JNZ 0x00026a56
JMP 0x00026a70
MOV ESI,dword ptr [ESI]
TEST ESI,ESI
JZ 0x00026a70
SUB ESP,0x8
PUSH EDI
PUSH dword ptr [ESI + 0x4]
CALL 0x00014100
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00026a50
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0xc
PUSH 0x14
CALL 0x00014790
MOV ESI,EAX
MOV EAX,dword ptr [EBX + 0x8bf4]
MOV dword ptr [EBX + 0x8bf4],ESI
MOV dword ptr [ESI],EAX
MOV dword ptr [ESP],EDI
CALL 0x000142f0
ADD ESP,0x10
MOV dword ptr [ESI + 0x8],0x0
MOV dword ptr [ESI + 0x4],EAX
MOV EAX,ESI
MOV dword ptr [ESI + 0xc],0x0
MOV dword ptr [ESI + 0x10],0x0
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint * __regparm3 FUN_00026a30(undefined4 param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  \n  piVar3 = DAT_00088bf4;\n  if (DAT_00088bf4 != (int *)0x0) {\n    do {\n      iVar2 = filename_cmp(piVar3[1],param_1);\n      if (iVar2 == 0) {\n        return piVar3;\n      }\n      piVar3 = (int *)*piVar3;\n    } while (piVar3 != (int *)0x0);\n  }\n  piVar1 = (int *)xmalloc(0x14);\n  piVar3 = piVar1;\n  *piVar1 = (int)DAT_00088bf4;\n  DAT_00088bf4 = piVar3;\n  iVar2 = xstrdup(param_1);\n  piVar1[2] = 0;\n  piVar1[1] = iVar2;\n  piVar1[3] = 0;\n  piVar1[4] = 0;\n  return piVar1;\n}\n\n" comment (function_definition "int * __regparm3 FUN_00026a30(undefined4 param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  \n  piVar3 = DAT_00088bf4;\n  if (DAT_00088bf4 != (int *)0x0) {\n    do {\n      iVar2 = filename_cmp(piVar3[1],param_1);\n      if (iVar2 == 0) {\n        return piVar3;\n      }\n      piVar3 = (int *)*piVar3;\n    } while (piVar3 != (int *)0x0);\n  }\n  piVar1 = (int *)xmalloc(0x14);\n  piVar3 = piVar1;\n  *piVar1 = (int)DAT_00088bf4;\n  DAT_00088bf4 = piVar3;\n  iVar2 = xstrdup(param_1);\n  piVar1[2] = 0;\n  piVar1[1] = iVar2;\n  piVar1[3] = 0;\n  piVar1[4] = 0;\n  return piVar1;\n}" primitive_type (pointer_declarator "* __regparm3 FUN_00026a30(undefined4 param_1)" * (ERROR "__regparm3" identifier) (function_declarator "FUN_00026a30(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) )))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  \n  piVar3 = DAT_00088bf4;\n  if (DAT_00088bf4 != (int *)0x0) {\n    do {\n      iVar2 = filename_cmp(piVar3[1],param_1);\n      if (iVar2 == 0) {\n        return piVar3;\n      }\n      piVar3 = (int *)*piVar3;\n    } while (piVar3 != (int *)0x0);\n  }\n  piVar1 = (int *)xmalloc(0x14);\n  piVar3 = piVar1;\n  *piVar1 = (int)DAT_00088bf4;\n  DAT_00088bf4 = piVar3;\n  iVar2 = xstrdup(param_1);\n  piVar1[2] = 0;\n  piVar1[1] = iVar2;\n  piVar1[3] = 0;\n  piVar1[4] = 0;\n  return piVar1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (expression_statement "piVar3 = DAT_00088bf4;" (assignment_expression "piVar3 = DAT_00088bf4" identifier = identifier) ;) (if_statement "if (DAT_00088bf4 != (int *)0x0) {\n    do {\n      iVar2 = filename_cmp(piVar3[1],param_1);\n      if (iVar2 == 0) {\n        return piVar3;\n      }\n      piVar3 = (int *)*piVar3;\n    } while (piVar3 != (int *)0x0);\n  }" if (parenthesized_expression "(DAT_00088bf4 != (int *)0x0)" ( (binary_expression "DAT_00088bf4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      iVar2 = filename_cmp(piVar3[1],param_1);\n      if (iVar2 == 0) {\n        return piVar3;\n      }\n      piVar3 = (int *)*piVar3;\n    } while (piVar3 != (int *)0x0);\n  }" { (do_statement "do {\n      iVar2 = filename_cmp(piVar3[1],param_1);\n      if (iVar2 == 0) {\n        return piVar3;\n      }\n      piVar3 = (int *)*piVar3;\n    } while (piVar3 != (int *)0x0);" do (compound_statement "{\n      iVar2 = filename_cmp(piVar3[1],param_1);\n      if (iVar2 == 0) {\n        return piVar3;\n      }\n      piVar3 = (int *)*piVar3;\n    }" { (expression_statement "iVar2 = filename_cmp(piVar3[1],param_1);" (assignment_expression "iVar2 = filename_cmp(piVar3[1],param_1)" identifier = (call_expression "filename_cmp(piVar3[1],param_1)" identifier (argument_list "(piVar3[1],param_1)" ( (subscript_expression "piVar3[1]" identifier [ number_literal ]) , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n        return piVar3;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        return piVar3;\n      }" { (return_statement "return piVar3;" return identifier ;) })) (expression_statement "piVar3 = (int *)*piVar3;" (assignment_expression "piVar3 = (int *)*piVar3" identifier = (cast_expression "(int *)*piVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar3" * identifier))) ;) }) while (parenthesized_expression "(piVar3 != (int *)0x0)" ( (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (expression_statement "piVar1 = (int *)xmalloc(0x14);" (assignment_expression "piVar1 = (int *)xmalloc(0x14)" identifier = (cast_expression "(int *)xmalloc(0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x14)" identifier (argument_list "(0x14)" ( number_literal ))))) ;) (expression_statement "piVar3 = piVar1;" (assignment_expression "piVar3 = piVar1" identifier = identifier) ;) (expression_statement "*piVar1 = (int)DAT_00088bf4;" (assignment_expression "*piVar1 = (int)DAT_00088bf4" (pointer_expression "*piVar1" * identifier) = (cast_expression "(int)DAT_00088bf4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "DAT_00088bf4 = piVar3;" (assignment_expression "DAT_00088bf4 = piVar3" identifier = identifier) ;) (expression_statement "iVar2 = xstrdup(param_1);" (assignment_expression "iVar2 = xstrdup(param_1)" identifier = (call_expression "xstrdup(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "piVar1[2] = 0;" (assignment_expression "piVar1[2] = 0" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[1] = iVar2;" (assignment_expression "piVar1[1] = iVar2" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar1[3] = 0;" (assignment_expression "piVar1[3] = 0" (subscript_expression "piVar1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[4] = 0;" (assignment_expression "piVar1[4] = 0" (subscript_expression "piVar1[4]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return piVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nfile_info_type * __regparm3 file_info(char *file_name)\n\n{\n  file_info_type *pfVar1;\n  int iVar2;\n  file_info_type *pfVar3;\n  char *pcVar4;\n  file_info_struct *pfVar5;\n  \n  pfVar5 = file_info_head;\n  if (file_info_head != (file_info_type *)0x0) {\n    do {\n      iVar2 = filename_cmp(pfVar5->filename,file_name);\n      if (iVar2 == 0) {\n        return pfVar5;\n      }\n      pfVar5 = pfVar5->next;\n    } while (pfVar5 != (file_info_struct *)0x0);\n  }\n  pfVar3 = (file_info_type *)xmalloc(0x14);\n  pfVar1 = pfVar3;\n  pfVar3->next = file_info_head;\n  file_info_head = pfVar1;\n  pcVar4 = (char *)xstrdup(file_name);\n  pfVar3->pos = 0;\n  pfVar3->filename = pcVar4;\n  pfVar3->linenum = 0;\n  pfVar3->at_end = 0;\n  return pfVar3;\n}\n\n" comment (ERROR "file_info_type * __regparm3 file_info(char *file_name)" (binary_expression "file_info_type * __regparm3 file_info(char *file_name)" identifier * (ERROR "__regparm3" identifier) (call_expression "file_info(char *file_name)" identifier (argument_list "(char *file_name)" ( (binary_expression "char *file_name" identifier * identifier) ))))) (compound_statement "{\n  file_info_type *pfVar1;\n  int iVar2;\n  file_info_type *pfVar3;\n  char *pcVar4;\n  file_info_struct *pfVar5;\n  \n  pfVar5 = file_info_head;\n  if (file_info_head != (file_info_type *)0x0) {\n    do {\n      iVar2 = filename_cmp(pfVar5->filename,file_name);\n      if (iVar2 == 0) {\n        return pfVar5;\n      }\n      pfVar5 = pfVar5->next;\n    } while (pfVar5 != (file_info_struct *)0x0);\n  }\n  pfVar3 = (file_info_type *)xmalloc(0x14);\n  pfVar1 = pfVar3;\n  pfVar3->next = file_info_head;\n  file_info_head = pfVar1;\n  pcVar4 = (char *)xstrdup(file_name);\n  pfVar3->pos = 0;\n  pfVar3->filename = pcVar4;\n  pfVar3->linenum = 0;\n  pfVar3->at_end = 0;\n  return pfVar3;\n}" { (declaration "file_info_type *pfVar1;" type_identifier (pointer_declarator "*pfVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "file_info_type *pfVar3;" type_identifier (pointer_declarator "*pfVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "file_info_struct *pfVar5;" type_identifier (pointer_declarator "*pfVar5" * identifier) ;) (expression_statement "pfVar5 = file_info_head;" (assignment_expression "pfVar5 = file_info_head" identifier = identifier) ;) (if_statement "if (file_info_head != (file_info_type *)0x0) {\n    do {\n      iVar2 = filename_cmp(pfVar5->filename,file_name);\n      if (iVar2 == 0) {\n        return pfVar5;\n      }\n      pfVar5 = pfVar5->next;\n    } while (pfVar5 != (file_info_struct *)0x0);\n  }" if (parenthesized_expression "(file_info_head != (file_info_type *)0x0)" ( (binary_expression "file_info_head != (file_info_type *)0x0" identifier != (cast_expression "(file_info_type *)0x0" ( (type_descriptor "file_info_type *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      iVar2 = filename_cmp(pfVar5->filename,file_name);\n      if (iVar2 == 0) {\n        return pfVar5;\n      }\n      pfVar5 = pfVar5->next;\n    } while (pfVar5 != (file_info_struct *)0x0);\n  }" { (do_statement "do {\n      iVar2 = filename_cmp(pfVar5->filename,file_name);\n      if (iVar2 == 0) {\n        return pfVar5;\n      }\n      pfVar5 = pfVar5->next;\n    } while (pfVar5 != (file_info_struct *)0x0);" do (compound_statement "{\n      iVar2 = filename_cmp(pfVar5->filename,file_name);\n      if (iVar2 == 0) {\n        return pfVar5;\n      }\n      pfVar5 = pfVar5->next;\n    }" { (expression_statement "iVar2 = filename_cmp(pfVar5->filename,file_name);" (assignment_expression "iVar2 = filename_cmp(pfVar5->filename,file_name)" identifier = (call_expression "filename_cmp(pfVar5->filename,file_name)" identifier (argument_list "(pfVar5->filename,file_name)" ( (field_expression "pfVar5->filename" identifier -> field_identifier) , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n        return pfVar5;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        return pfVar5;\n      }" { (return_statement "return pfVar5;" return identifier ;) })) (expression_statement "pfVar5 = pfVar5->next;" (assignment_expression "pfVar5 = pfVar5->next" identifier = (field_expression "pfVar5->next" identifier -> field_identifier)) ;) }) while (parenthesized_expression "(pfVar5 != (file_info_struct *)0x0)" ( (binary_expression "pfVar5 != (file_info_struct *)0x0" identifier != (cast_expression "(file_info_struct *)0x0" ( (type_descriptor "file_info_struct *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (expression_statement "pfVar3 = (file_info_type *)xmalloc(0x14);" (assignment_expression "pfVar3 = (file_info_type *)xmalloc(0x14)" identifier = (cast_expression "(file_info_type *)xmalloc(0x14)" ( (type_descriptor "file_info_type *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x14)" identifier (argument_list "(0x14)" ( number_literal ))))) ;) (expression_statement "pfVar1 = pfVar3;" (assignment_expression "pfVar1 = pfVar3" identifier = identifier) ;) (expression_statement "pfVar3->next = file_info_head;" (assignment_expression "pfVar3->next = file_info_head" (field_expression "pfVar3->next" identifier -> field_identifier) = identifier) ;) (expression_statement "file_info_head = pfVar1;" (assignment_expression "file_info_head = pfVar1" identifier = identifier) ;) (expression_statement "pcVar4 = (char *)xstrdup(file_name);" (assignment_expression "pcVar4 = (char *)xstrdup(file_name)" identifier = (cast_expression "(char *)xstrdup(file_name)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xstrdup(file_name)" identifier (argument_list "(file_name)" ( identifier ))))) ;) (expression_statement "pfVar3->pos = 0;" (assignment_expression "pfVar3->pos = 0" (field_expression "pfVar3->pos" identifier -> field_identifier) = number_literal) ;) (expression_statement "pfVar3->filename = pcVar4;" (assignment_expression "pfVar3->filename = pcVar4" (field_expression "pfVar3->filename" identifier -> field_identifier) = identifier) ;) (expression_statement "pfVar3->linenum = 0;" (assignment_expression "pfVar3->linenum = 0" (field_expression "pfVar3->linenum" identifier -> field_identifier) = number_literal) ;) (expression_statement "pfVar3->at_end = 0;" (assignment_expression "pfVar3->at_end = 0" (field_expression "pfVar3->at_end" identifier -> field_identifier) = number_literal) ;) (return_statement "return pfVar3;" return identifier ;) }))
(translation_unit "int * __regparm3 FUN_00026a30(undefined4 param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  \n  piVar3 = DAT_00088bf4;\n  if (DAT_00088bf4 != (int *)0x0) {\n    do {\n      iVar2 = filename_cmp(piVar3[1],param_1);\n      if (iVar2 == 0) {\n        return piVar3;\n      }\n      piVar3 = (int *)*piVar3;\n    } while (piVar3 != (int *)0x0);\n  }\n  piVar1 = (int *)xmalloc(0x14);\n  piVar3 = piVar1;\n  *piVar1 = (int)DAT_00088bf4;\n  DAT_00088bf4 = piVar3;\n  iVar2 = xstrdup(param_1);\n  piVar1[2] = 0;\n  piVar1[1] = iVar2;\n  piVar1[3] = 0;\n  piVar1[4] = 0;\n  return piVar1;\n}\n\n" (function_definition "int * __regparm3 FUN_00026a30(undefined4 param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  \n  piVar3 = DAT_00088bf4;\n  if (DAT_00088bf4 != (int *)0x0) {\n    do {\n      iVar2 = filename_cmp(piVar3[1],param_1);\n      if (iVar2 == 0) {\n        return piVar3;\n      }\n      piVar3 = (int *)*piVar3;\n    } while (piVar3 != (int *)0x0);\n  }\n  piVar1 = (int *)xmalloc(0x14);\n  piVar3 = piVar1;\n  *piVar1 = (int)DAT_00088bf4;\n  DAT_00088bf4 = piVar3;\n  iVar2 = xstrdup(param_1);\n  piVar1[2] = 0;\n  piVar1[1] = iVar2;\n  piVar1[3] = 0;\n  piVar1[4] = 0;\n  return piVar1;\n}" primitive_type (pointer_declarator "* __regparm3 FUN_00026a30(undefined4 param_1)" * (ERROR "__regparm3" identifier) (function_declarator "FUN_00026a30(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) )))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  \n  piVar3 = DAT_00088bf4;\n  if (DAT_00088bf4 != (int *)0x0) {\n    do {\n      iVar2 = filename_cmp(piVar3[1],param_1);\n      if (iVar2 == 0) {\n        return piVar3;\n      }\n      piVar3 = (int *)*piVar3;\n    } while (piVar3 != (int *)0x0);\n  }\n  piVar1 = (int *)xmalloc(0x14);\n  piVar3 = piVar1;\n  *piVar1 = (int)DAT_00088bf4;\n  DAT_00088bf4 = piVar3;\n  iVar2 = xstrdup(param_1);\n  piVar1[2] = 0;\n  piVar1[1] = iVar2;\n  piVar1[3] = 0;\n  piVar1[4] = 0;\n  return piVar1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (expression_statement "piVar3 = DAT_00088bf4;" (assignment_expression "piVar3 = DAT_00088bf4" identifier = identifier) ;) (if_statement "if (DAT_00088bf4 != (int *)0x0) {\n    do {\n      iVar2 = filename_cmp(piVar3[1],param_1);\n      if (iVar2 == 0) {\n        return piVar3;\n      }\n      piVar3 = (int *)*piVar3;\n    } while (piVar3 != (int *)0x0);\n  }" if (parenthesized_expression "(DAT_00088bf4 != (int *)0x0)" ( (binary_expression "DAT_00088bf4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      iVar2 = filename_cmp(piVar3[1],param_1);\n      if (iVar2 == 0) {\n        return piVar3;\n      }\n      piVar3 = (int *)*piVar3;\n    } while (piVar3 != (int *)0x0);\n  }" { (do_statement "do {\n      iVar2 = filename_cmp(piVar3[1],param_1);\n      if (iVar2 == 0) {\n        return piVar3;\n      }\n      piVar3 = (int *)*piVar3;\n    } while (piVar3 != (int *)0x0);" do (compound_statement "{\n      iVar2 = filename_cmp(piVar3[1],param_1);\n      if (iVar2 == 0) {\n        return piVar3;\n      }\n      piVar3 = (int *)*piVar3;\n    }" { (expression_statement "iVar2 = filename_cmp(piVar3[1],param_1);" (assignment_expression "iVar2 = filename_cmp(piVar3[1],param_1)" identifier = (call_expression "filename_cmp(piVar3[1],param_1)" identifier (argument_list "(piVar3[1],param_1)" ( (subscript_expression "piVar3[1]" identifier [ number_literal ]) , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n        return piVar3;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        return piVar3;\n      }" { (return_statement "return piVar3;" return identifier ;) })) (expression_statement "piVar3 = (int *)*piVar3;" (assignment_expression "piVar3 = (int *)*piVar3" identifier = (cast_expression "(int *)*piVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar3" * identifier))) ;) }) while (parenthesized_expression "(piVar3 != (int *)0x0)" ( (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (expression_statement "piVar1 = (int *)xmalloc(0x14);" (assignment_expression "piVar1 = (int *)xmalloc(0x14)" identifier = (cast_expression "(int *)xmalloc(0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x14)" identifier (argument_list "(0x14)" ( number_literal ))))) ;) (expression_statement "piVar3 = piVar1;" (assignment_expression "piVar3 = piVar1" identifier = identifier) ;) (expression_statement "*piVar1 = (int)DAT_00088bf4;" (assignment_expression "*piVar1 = (int)DAT_00088bf4" (pointer_expression "*piVar1" * identifier) = (cast_expression "(int)DAT_00088bf4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "DAT_00088bf4 = piVar3;" (assignment_expression "DAT_00088bf4 = piVar3" identifier = identifier) ;) (expression_statement "iVar2 = xstrdup(param_1);" (assignment_expression "iVar2 = xstrdup(param_1)" identifier = (call_expression "xstrdup(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "piVar1[2] = 0;" (assignment_expression "piVar1[2] = 0" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[1] = iVar2;" (assignment_expression "piVar1[1] = iVar2" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar1[3] = 0;" (assignment_expression "piVar1[3] = 0" (subscript_expression "piVar1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[4] = 0;" (assignment_expression "piVar1[4] = 0" (subscript_expression "piVar1[4]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return piVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * 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 ( (subscript_expression IDENT [ LIT ]) , IDENT )))) ;) (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 IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (return_statement return IDENT ;) })))
(function_definition "int * __regparm3 FUN_00026a30(undefined4 param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  \n  piVar3 = DAT_00088bf4;\n  if (DAT_00088bf4 != (int *)0x0) {\n    do {\n      iVar2 = filename_cmp(piVar3[1],param_1);\n      if (iVar2 == 0) {\n        return piVar3;\n      }\n      piVar3 = (int *)*piVar3;\n    } while (piVar3 != (int *)0x0);\n  }\n  piVar1 = (int *)xmalloc(0x14);\n  piVar3 = piVar1;\n  *piVar1 = (int)DAT_00088bf4;\n  DAT_00088bf4 = piVar3;\n  iVar2 = xstrdup(param_1);\n  piVar1[2] = 0;\n  piVar1[1] = iVar2;\n  piVar1[3] = 0;\n  piVar1[4] = 0;\n  return piVar1;\n}" (primitive_type "int") (pointer_declarator "* __regparm3 FUN_00026a30(undefined4 param_1)" (* "*") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00026a30(undefined4 param_1)" (identifier "FUN_00026a30") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")")))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  \n  piVar3 = DAT_00088bf4;\n  if (DAT_00088bf4 != (int *)0x0) {\n    do {\n      iVar2 = filename_cmp(piVar3[1],param_1);\n      if (iVar2 == 0) {\n        return piVar3;\n      }\n      piVar3 = (int *)*piVar3;\n    } while (piVar3 != (int *)0x0);\n  }\n  piVar1 = (int *)xmalloc(0x14);\n  piVar3 = piVar1;\n  *piVar1 = (int)DAT_00088bf4;\n  DAT_00088bf4 = piVar3;\n  iVar2 = xstrdup(param_1);\n  piVar1[2] = 0;\n  piVar1[1] = iVar2;\n  piVar1[3] = 0;\n  piVar1[4] = 0;\n  return piVar1;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (expression_statement "piVar3 = DAT_00088bf4;" (assignment_expression "piVar3 = DAT_00088bf4" (identifier "piVar3") (= "=") (identifier "DAT_00088bf4")) (; ";")) (if_statement "if (DAT_00088bf4 != (int *)0x0) {\n    do {\n      iVar2 = filename_cmp(piVar3[1],param_1);\n      if (iVar2 == 0) {\n        return piVar3;\n      }\n      piVar3 = (int *)*piVar3;\n    } while (piVar3 != (int *)0x0);\n  }" (if "if") (parenthesized_expression "(DAT_00088bf4 != (int *)0x0)" (( "(") (binary_expression "DAT_00088bf4 != (int *)0x0" (identifier "DAT_00088bf4") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    do {\n      iVar2 = filename_cmp(piVar3[1],param_1);\n      if (iVar2 == 0) {\n        return piVar3;\n      }\n      piVar3 = (int *)*piVar3;\n    } while (piVar3 != (int *)0x0);\n  }" ({ "{") (do_statement "do {\n      iVar2 = filename_cmp(piVar3[1],param_1);\n      if (iVar2 == 0) {\n        return piVar3;\n      }\n      piVar3 = (int *)*piVar3;\n    } while (piVar3 != (int *)0x0);" (do "do") (compound_statement "{\n      iVar2 = filename_cmp(piVar3[1],param_1);\n      if (iVar2 == 0) {\n        return piVar3;\n      }\n      piVar3 = (int *)*piVar3;\n    }" ({ "{") (expression_statement "iVar2 = filename_cmp(piVar3[1],param_1);" (assignment_expression "iVar2 = filename_cmp(piVar3[1],param_1)" (identifier "iVar2") (= "=") (call_expression "filename_cmp(piVar3[1],param_1)" (identifier "filename_cmp") (argument_list "(piVar3[1],param_1)" (( "(") (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")) (, ",") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n        return piVar3;\n      }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return piVar3;\n      }" ({ "{") (return_statement "return piVar3;" (return "return") (identifier "piVar3") (; ";")) (} "}"))) (expression_statement "piVar3 = (int *)*piVar3;" (assignment_expression "piVar3 = (int *)*piVar3" (identifier "piVar3") (= "=") (cast_expression "(int *)*piVar3" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar3" (* "*") (identifier "piVar3")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar3 != (int *)0x0)" (( "(") (binary_expression "piVar3 != (int *)0x0" (identifier "piVar3") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (} "}"))) (expression_statement "piVar1 = (int *)xmalloc(0x14);" (assignment_expression "piVar1 = (int *)xmalloc(0x14)" (identifier "piVar1") (= "=") (cast_expression "(int *)xmalloc(0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(0x14)" (identifier "xmalloc") (argument_list "(0x14)" (( "(") (number_literal "0x14") () ")"))))) (; ";")) (expression_statement "piVar3 = piVar1;" (assignment_expression "piVar3 = piVar1" (identifier "piVar3") (= "=") (identifier "piVar1")) (; ";")) (expression_statement "*piVar1 = (int)DAT_00088bf4;" (assignment_expression "*piVar1 = (int)DAT_00088bf4" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (cast_expression "(int)DAT_00088bf4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "DAT_00088bf4"))) (; ";")) (expression_statement "DAT_00088bf4 = piVar3;" (assignment_expression "DAT_00088bf4 = piVar3" (identifier "DAT_00088bf4") (= "=") (identifier "piVar3")) (; ";")) (expression_statement "iVar2 = xstrdup(param_1);" (assignment_expression "iVar2 = xstrdup(param_1)" (identifier "iVar2") (= "=") (call_expression "xstrdup(param_1)" (identifier "xstrdup") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "piVar1[2] = 0;" (assignment_expression "piVar1[2] = 0" (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar1[1] = iVar2;" (assignment_expression "piVar1[1] = iVar2" (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "piVar1[3] = 0;" (assignment_expression "piVar1[3] = 0" (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar1[4] = 0;" (assignment_expression "piVar1[4] = 0" (subscript_expression "piVar1[4]" (identifier "piVar1") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (return_statement "return piVar1;" (return "return") (identifier "piVar1") (; ";")) (} "}")))

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

type_1 * __regparm3 file_info(char *file_name)

{
  type_1 *pfVar1;
  int var_3;
  type_1 *pfVar3;
  char *pcVar4;
  type_2 *var_4;
  
  var_4 = var_1;
  if (var_1 != (type_1 *)0x0) {
    do {
      var_3 = var_2(var_4->filename,file_name);
      if (var_3 == 0) {
        return var_4;
      }
      var_4 = var_4->next;
    } while (var_4 != (type_2 *)0x0);
  }
  pfVar3 = (type_1 *)var_5(0x14);
  pfVar1 = pfVar3;
  pfVar3->next = var_1;
  var_1 = pfVar1;
  pcVar4 = (char *)var_6(file_name);
  pfVar3->pos = 0;
  pfVar3->filename = pcVar4;
  pfVar3->linenum = 0;
  pfVar3->at_end = 0;
  return pfVar3;
}


(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator (ERROR (identifier)) 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: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator 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 (subscript_expression argument: (identifier) index: (number_literal)) (identifier))))) (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: (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))) (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: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (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))) (return_statement (identifier)))))

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

int * __regparm3 MASKED(undefined4 param_1)

{
  int *piVar1;
  int iVar2;
  int *piVar3;
  
  piVar3 = DAT_00088bf4;
  if (DAT_00088bf4 != (int *)0x0) {
    do {
      iVar2 = filename_cmp(piVar3[1],param_1);
      if (iVar2 == 0) {
        return piVar3;
      }
      piVar3 = (int *)*piVar3;
    } while (piVar3 != (int *)0x0);
  }
  piVar1 = (int *)xmalloc(0x14);
  piVar3 = piVar1;
  *piVar1 = (int)DAT_00088bf4;
  DAT_00088bf4 = piVar3;
  iVar2 = xstrdup(param_1);
  piVar1[2] = 0;
  piVar1[1] = iVar2;
  piVar1[3] = 0;
  piVar1[4] = 0;
  return piVar1;
}

