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

int setup_nested_archive(archive_info *nested_arch,char *member_file_name)

{
  int iVar1;
  FILE *file;
  
  if ((nested_arch->file_name != (char *)0x0) &&
     (iVar1 = strcmp(nested_arch->file_name,member_file_name), iVar1 == 0)) {
    return 0;
  }
  if ((FILE *)nested_arch->file != (FILE *)0x0) {
    fclose((FILE *)nested_arch->file);
  }
  release_archive(nested_arch);
  file = fopen64(member_file_name,"rb");
  iVar1 = 1;
  if (file != (FILE *)0x0) {
    iVar1 = setup_archive(nested_arch,member_file_name,(FILE *)file,0,0);
  }
  return iVar1;
}



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

undefined4 FUN_00067480(undefined4 *param_1,char *param_2)

{
  int iVar1;
  FILE *pFVar2;
  undefined4 uVar3;
  
  if (((char *)*param_1 != (char *)0x0) && (iVar1 = strcmp((char *)*param_1,param_2), iVar1 == 0)) {
    return 0;
  }
  if ((FILE *)param_1[1] != (FILE *)0x0) {
    fclose((FILE *)param_1[1]);
  }
  FUN_00067410(param_1);
  pFVar2 = fopen64(param_2,"rb");
  uVar3 = 1;
  if (pFVar2 != (FILE *)0x0) {
    uVar3 = FUN_000670f0(param_1,param_2,pFVar2,0,0);
  }
  return uVar3;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV ESI,dword ptr [ESP + 0x10]
CALL 0x00013f70
ADD EBX,0x4cb74
MOV EDI,dword ptr [ESP + 0x14]
MOV EAX,dword ptr [ESI]
TEST EAX,EAX
JZ 0x000674ad
SUB ESP,0x8
PUSH EDI
PUSH EAX
CALL 0x00013050
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000674f8
MOV EAX,dword ptr [ESI + 0x4]
TEST EAX,EAX
JZ 0x000674c0
SUB ESP,0xc
PUSH EAX
CALL 0x000130e0
ADD ESP,0x10
SUB ESP,0xc
PUSH ESI
CALL 0x00067410
POP EAX
LEA EAX,[EBX + 0xfffda6f8]
POP EDX
PUSH EAX
PUSH EDI
CALL 0x00013140
ADD ESP,0x10
MOV EDX,EAX
MOV EAX,0x1
TEST EDX,EDX
JZ 0x000674f8
SUB ESP,0xc
PUSH 0x0
PUSH 0x0
PUSH EDX
PUSH EDI
PUSH ESI
CALL 0x000670f0
ADD ESP,0x20
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_00067480(undefined4 *param_1,char *param_2)\n\n{\n  int iVar1;\n  FILE *pFVar2;\n  undefined4 uVar3;\n  \n  if (((char *)*param_1 != (char *)0x0) && (iVar1 = strcmp((char *)*param_1,param_2), iVar1 == 0)) {\n    return 0;\n  }\n  if ((FILE *)param_1[1] != (FILE *)0x0) {\n    fclose((FILE *)param_1[1]);\n  }\n  FUN_00067410(param_1);\n  pFVar2 = fopen64(param_2,"rb");\n  uVar3 = 1;\n  if (pFVar2 != (FILE *)0x0) {\n    uVar3 = FUN_000670f0(param_1,param_2,pFVar2,0,0);\n  }\n  return uVar3;\n}\n\n" comment (function_definition "undefined4 FUN_00067480(undefined4 *param_1,char *param_2)\n\n{\n  int iVar1;\n  FILE *pFVar2;\n  undefined4 uVar3;\n  \n  if (((char *)*param_1 != (char *)0x0) && (iVar1 = strcmp((char *)*param_1,param_2), iVar1 == 0)) {\n    return 0;\n  }\n  if ((FILE *)param_1[1] != (FILE *)0x0) {\n    fclose((FILE *)param_1[1]);\n  }\n  FUN_00067410(param_1);\n  pFVar2 = fopen64(param_2,"rb");\n  uVar3 = 1;\n  if (pFVar2 != (FILE *)0x0) {\n    uVar3 = FUN_000670f0(param_1,param_2,pFVar2,0,0);\n  }\n  return uVar3;\n}" type_identifier (function_declarator "FUN_00067480(undefined4 *param_1,char *param_2)" identifier (parameter_list "(undefined4 *param_1,char *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  FILE *pFVar2;\n  undefined4 uVar3;\n  \n  if (((char *)*param_1 != (char *)0x0) && (iVar1 = strcmp((char *)*param_1,param_2), iVar1 == 0)) {\n    return 0;\n  }\n  if ((FILE *)param_1[1] != (FILE *)0x0) {\n    fclose((FILE *)param_1[1]);\n  }\n  FUN_00067410(param_1);\n  pFVar2 = fopen64(param_2,"rb");\n  uVar3 = 1;\n  if (pFVar2 != (FILE *)0x0) {\n    uVar3 = FUN_000670f0(param_1,param_2,pFVar2,0,0);\n  }\n  return uVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "FILE *pFVar2;" type_identifier (pointer_declarator "*pFVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (if_statement "if (((char *)*param_1 != (char *)0x0) && (iVar1 = strcmp((char *)*param_1,param_2), iVar1 == 0)) {\n    return 0;\n  }" if (parenthesized_expression "(((char *)*param_1 != (char *)0x0) && (iVar1 = strcmp((char *)*param_1,param_2), iVar1 == 0))" ( (binary_expression "((char *)*param_1 != (char *)0x0) && (iVar1 = strcmp((char *)*param_1,param_2), iVar1 == 0)" (parenthesized_expression "((char *)*param_1 != (char *)0x0)" ( (binary_expression "(char *)*param_1 != (char *)0x0" (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(iVar1 = strcmp((char *)*param_1,param_2), iVar1 == 0)" ( (comma_expression "iVar1 = strcmp((char *)*param_1,param_2), iVar1 == 0" (assignment_expression "iVar1 = strcmp((char *)*param_1,param_2)" identifier = (call_expression "strcmp((char *)*param_1,param_2)" identifier (argument_list "((char *)*param_1,param_2)" ( (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) , identifier )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((FILE *)param_1[1] != (FILE *)0x0) {\n    fclose((FILE *)param_1[1]);\n  }" if (parenthesized_expression "((FILE *)param_1[1] != (FILE *)0x0)" ( (binary_expression "(FILE *)param_1[1] != (FILE *)0x0" (cast_expression "(FILE *)param_1[1]" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    fclose((FILE *)param_1[1]);\n  }" { (expression_statement "fclose((FILE *)param_1[1]);" (call_expression "fclose((FILE *)param_1[1])" identifier (argument_list "((FILE *)param_1[1])" ( (cast_expression "(FILE *)param_1[1]" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) ))) ;) })) (expression_statement "FUN_00067410(param_1);" (call_expression "FUN_00067410(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "pFVar2 = fopen64(param_2,"rb");" (assignment_expression "pFVar2 = fopen64(param_2,"rb")" identifier = (call_expression "fopen64(param_2,"rb")" identifier (argument_list "(param_2,"rb")" ( identifier , (string_literal ""rb"" " string_content ") )))) ;) (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) (if_statement "if (pFVar2 != (FILE *)0x0) {\n    uVar3 = FUN_000670f0(param_1,param_2,pFVar2,0,0);\n  }" if (parenthesized_expression "(pFVar2 != (FILE *)0x0)" ( (binary_expression "pFVar2 != (FILE *)0x0" identifier != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar3 = FUN_000670f0(param_1,param_2,pFVar2,0,0);\n  }" { (expression_statement "uVar3 = FUN_000670f0(param_1,param_2,pFVar2,0,0);" (assignment_expression "uVar3 = FUN_000670f0(param_1,param_2,pFVar2,0,0)" identifier = (call_expression "FUN_000670f0(param_1,param_2,pFVar2,0,0)" identifier (argument_list "(param_1,param_2,pFVar2,0,0)" ( identifier , identifier , identifier , number_literal , number_literal )))) ;) })) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint setup_nested_archive(archive_info *nested_arch,char *member_file_name)\n\n{\n  int iVar1;\n  FILE *file;\n  \n  if ((nested_arch->file_name != (char *)0x0) &&\n     (iVar1 = strcmp(nested_arch->file_name,member_file_name), iVar1 == 0)) {\n    return 0;\n  }\n  if ((FILE *)nested_arch->file != (FILE *)0x0) {\n    fclose((FILE *)nested_arch->file);\n  }\n  release_archive(nested_arch);\n  file = fopen64(member_file_name,"rb");\n  iVar1 = 1;\n  if (file != (FILE *)0x0) {\n    iVar1 = setup_archive(nested_arch,member_file_name,(FILE *)file,0,0);\n  }\n  return iVar1;\n}\n\n" comment comment (function_definition "int setup_nested_archive(archive_info *nested_arch,char *member_file_name)\n\n{\n  int iVar1;\n  FILE *file;\n  \n  if ((nested_arch->file_name != (char *)0x0) &&\n     (iVar1 = strcmp(nested_arch->file_name,member_file_name), iVar1 == 0)) {\n    return 0;\n  }\n  if ((FILE *)nested_arch->file != (FILE *)0x0) {\n    fclose((FILE *)nested_arch->file);\n  }\n  release_archive(nested_arch);\n  file = fopen64(member_file_name,"rb");\n  iVar1 = 1;\n  if (file != (FILE *)0x0) {\n    iVar1 = setup_archive(nested_arch,member_file_name,(FILE *)file,0,0);\n  }\n  return iVar1;\n}" primitive_type (function_declarator "setup_nested_archive(archive_info *nested_arch,char *member_file_name)" identifier (parameter_list "(archive_info *nested_arch,char *member_file_name)" ( (parameter_declaration "archive_info *nested_arch" type_identifier (pointer_declarator "*nested_arch" * identifier)) , (parameter_declaration "char *member_file_name" primitive_type (pointer_declarator "*member_file_name" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  FILE *file;\n  \n  if ((nested_arch->file_name != (char *)0x0) &&\n     (iVar1 = strcmp(nested_arch->file_name,member_file_name), iVar1 == 0)) {\n    return 0;\n  }\n  if ((FILE *)nested_arch->file != (FILE *)0x0) {\n    fclose((FILE *)nested_arch->file);\n  }\n  release_archive(nested_arch);\n  file = fopen64(member_file_name,"rb");\n  iVar1 = 1;\n  if (file != (FILE *)0x0) {\n    iVar1 = setup_archive(nested_arch,member_file_name,(FILE *)file,0,0);\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "FILE *file;" type_identifier (pointer_declarator "*file" * identifier) ;) (if_statement "if ((nested_arch->file_name != (char *)0x0) &&\n     (iVar1 = strcmp(nested_arch->file_name,member_file_name), iVar1 == 0)) {\n    return 0;\n  }" if (parenthesized_expression "((nested_arch->file_name != (char *)0x0) &&\n     (iVar1 = strcmp(nested_arch->file_name,member_file_name), iVar1 == 0))" ( (binary_expression "(nested_arch->file_name != (char *)0x0) &&\n     (iVar1 = strcmp(nested_arch->file_name,member_file_name), iVar1 == 0)" (parenthesized_expression "(nested_arch->file_name != (char *)0x0)" ( (binary_expression "nested_arch->file_name != (char *)0x0" (field_expression "nested_arch->file_name" identifier -> field_identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(iVar1 = strcmp(nested_arch->file_name,member_file_name), iVar1 == 0)" ( (comma_expression "iVar1 = strcmp(nested_arch->file_name,member_file_name), iVar1 == 0" (assignment_expression "iVar1 = strcmp(nested_arch->file_name,member_file_name)" identifier = (call_expression "strcmp(nested_arch->file_name,member_file_name)" identifier (argument_list "(nested_arch->file_name,member_file_name)" ( (field_expression "nested_arch->file_name" identifier -> field_identifier) , identifier )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((FILE *)nested_arch->file != (FILE *)0x0) {\n    fclose((FILE *)nested_arch->file);\n  }" if (parenthesized_expression "((FILE *)nested_arch->file != (FILE *)0x0)" ( (binary_expression "(FILE *)nested_arch->file != (FILE *)0x0" (cast_expression "(FILE *)nested_arch->file" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "nested_arch->file" identifier -> field_identifier)) != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    fclose((FILE *)nested_arch->file);\n  }" { (expression_statement "fclose((FILE *)nested_arch->file);" (call_expression "fclose((FILE *)nested_arch->file)" identifier (argument_list "((FILE *)nested_arch->file)" ( (cast_expression "(FILE *)nested_arch->file" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "nested_arch->file" identifier -> field_identifier)) ))) ;) })) (expression_statement "release_archive(nested_arch);" (call_expression "release_archive(nested_arch)" identifier (argument_list "(nested_arch)" ( identifier ))) ;) (expression_statement "file = fopen64(member_file_name,"rb");" (assignment_expression "file = fopen64(member_file_name,"rb")" identifier = (call_expression "fopen64(member_file_name,"rb")" identifier (argument_list "(member_file_name,"rb")" ( identifier , (string_literal ""rb"" " string_content ") )))) ;) (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) (if_statement "if (file != (FILE *)0x0) {\n    iVar1 = setup_archive(nested_arch,member_file_name,(FILE *)file,0,0);\n  }" if (parenthesized_expression "(file != (FILE *)0x0)" ( (binary_expression "file != (FILE *)0x0" identifier != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = setup_archive(nested_arch,member_file_name,(FILE *)file,0,0);\n  }" { (expression_statement "iVar1 = setup_archive(nested_arch,member_file_name,(FILE *)file,0,0);" (assignment_expression "iVar1 = setup_archive(nested_arch,member_file_name,(FILE *)file,0,0)" identifier = (call_expression "setup_archive(nested_arch,member_file_name,(FILE *)file,0,0)" identifier (argument_list "(nested_arch,member_file_name,(FILE *)file,0,0)" ( identifier , identifier , (cast_expression "(FILE *)file" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , number_literal , number_literal )))) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "undefined4 FUN_00067480(undefined4 *param_1,char *param_2)\n\n{\n  int iVar1;\n  FILE *pFVar2;\n  undefined4 uVar3;\n  \n  if (((char *)*param_1 != (char *)0x0) && (iVar1 = strcmp((char *)*param_1,param_2), iVar1 == 0)) {\n    return 0;\n  }\n  if ((FILE *)param_1[1] != (FILE *)0x0) {\n    fclose((FILE *)param_1[1]);\n  }\n  FUN_00067410(param_1);\n  pFVar2 = fopen64(param_2,"rb");\n  uVar3 = 1;\n  if (pFVar2 != (FILE *)0x0) {\n    uVar3 = FUN_000670f0(param_1,param_2,pFVar2,0,0);\n  }\n  return uVar3;\n}\n\n" (function_definition "undefined4 FUN_00067480(undefined4 *param_1,char *param_2)\n\n{\n  int iVar1;\n  FILE *pFVar2;\n  undefined4 uVar3;\n  \n  if (((char *)*param_1 != (char *)0x0) && (iVar1 = strcmp((char *)*param_1,param_2), iVar1 == 0)) {\n    return 0;\n  }\n  if ((FILE *)param_1[1] != (FILE *)0x0) {\n    fclose((FILE *)param_1[1]);\n  }\n  FUN_00067410(param_1);\n  pFVar2 = fopen64(param_2,"rb");\n  uVar3 = 1;\n  if (pFVar2 != (FILE *)0x0) {\n    uVar3 = FUN_000670f0(param_1,param_2,pFVar2,0,0);\n  }\n  return uVar3;\n}" type_identifier (function_declarator "FUN_00067480(undefined4 *param_1,char *param_2)" identifier (parameter_list "(undefined4 *param_1,char *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  FILE *pFVar2;\n  undefined4 uVar3;\n  \n  if (((char *)*param_1 != (char *)0x0) && (iVar1 = strcmp((char *)*param_1,param_2), iVar1 == 0)) {\n    return 0;\n  }\n  if ((FILE *)param_1[1] != (FILE *)0x0) {\n    fclose((FILE *)param_1[1]);\n  }\n  FUN_00067410(param_1);\n  pFVar2 = fopen64(param_2,"rb");\n  uVar3 = 1;\n  if (pFVar2 != (FILE *)0x0) {\n    uVar3 = FUN_000670f0(param_1,param_2,pFVar2,0,0);\n  }\n  return uVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "FILE *pFVar2;" type_identifier (pointer_declarator "*pFVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (if_statement "if (((char *)*param_1 != (char *)0x0) && (iVar1 = strcmp((char *)*param_1,param_2), iVar1 == 0)) {\n    return 0;\n  }" if (parenthesized_expression "(((char *)*param_1 != (char *)0x0) && (iVar1 = strcmp((char *)*param_1,param_2), iVar1 == 0))" ( (binary_expression "((char *)*param_1 != (char *)0x0) && (iVar1 = strcmp((char *)*param_1,param_2), iVar1 == 0)" (parenthesized_expression "((char *)*param_1 != (char *)0x0)" ( (binary_expression "(char *)*param_1 != (char *)0x0" (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(iVar1 = strcmp((char *)*param_1,param_2), iVar1 == 0)" ( (comma_expression "iVar1 = strcmp((char *)*param_1,param_2), iVar1 == 0" (assignment_expression "iVar1 = strcmp((char *)*param_1,param_2)" identifier = (call_expression "strcmp((char *)*param_1,param_2)" identifier (argument_list "((char *)*param_1,param_2)" ( (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) , identifier )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((FILE *)param_1[1] != (FILE *)0x0) {\n    fclose((FILE *)param_1[1]);\n  }" if (parenthesized_expression "((FILE *)param_1[1] != (FILE *)0x0)" ( (binary_expression "(FILE *)param_1[1] != (FILE *)0x0" (cast_expression "(FILE *)param_1[1]" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    fclose((FILE *)param_1[1]);\n  }" { (expression_statement "fclose((FILE *)param_1[1]);" (call_expression "fclose((FILE *)param_1[1])" identifier (argument_list "((FILE *)param_1[1])" ( (cast_expression "(FILE *)param_1[1]" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) ))) ;) })) (expression_statement "FUN_00067410(param_1);" (call_expression "FUN_00067410(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "pFVar2 = fopen64(param_2,"rb");" (assignment_expression "pFVar2 = fopen64(param_2,"rb")" identifier = (call_expression "fopen64(param_2,"rb")" identifier (argument_list "(param_2,"rb")" ( identifier , (string_literal ""rb"" " string_content ") )))) ;) (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) (if_statement "if (pFVar2 != (FILE *)0x0) {\n    uVar3 = FUN_000670f0(param_1,param_2,pFVar2,0,0);\n  }" if (parenthesized_expression "(pFVar2 != (FILE *)0x0)" ( (binary_expression "pFVar2 != (FILE *)0x0" identifier != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar3 = FUN_000670f0(param_1,param_2,pFVar2,0,0);\n  }" { (expression_statement "uVar3 = FUN_000670f0(param_1,param_2,pFVar2,0,0);" (assignment_expression "uVar3 = FUN_000670f0(param_1,param_2,pFVar2,0,0)" identifier = (call_expression "FUN_000670f0(param_1,param_2,pFVar2,0,0)" identifier (argument_list "(param_1,param_2,pFVar2,0,0)" ( identifier , identifier , identifier , number_literal , number_literal )))) ;) })) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) , IDENT )))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , LIT , LIT )))) ;) })) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_00067480(undefined4 *param_1,char *param_2)\n\n{\n  int iVar1;\n  FILE *pFVar2;\n  undefined4 uVar3;\n  \n  if (((char *)*param_1 != (char *)0x0) && (iVar1 = strcmp((char *)*param_1,param_2), iVar1 == 0)) {\n    return 0;\n  }\n  if ((FILE *)param_1[1] != (FILE *)0x0) {\n    fclose((FILE *)param_1[1]);\n  }\n  FUN_00067410(param_1);\n  pFVar2 = fopen64(param_2,"rb");\n  uVar3 = 1;\n  if (pFVar2 != (FILE *)0x0) {\n    uVar3 = FUN_000670f0(param_1,param_2,pFVar2,0,0);\n  }\n  return uVar3;\n}" (type_identifier "undefined4") (function_declarator "FUN_00067480(undefined4 *param_1,char *param_2)" (identifier "FUN_00067480") (parameter_list "(undefined4 *param_1,char *param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  FILE *pFVar2;\n  undefined4 uVar3;\n  \n  if (((char *)*param_1 != (char *)0x0) && (iVar1 = strcmp((char *)*param_1,param_2), iVar1 == 0)) {\n    return 0;\n  }\n  if ((FILE *)param_1[1] != (FILE *)0x0) {\n    fclose((FILE *)param_1[1]);\n  }\n  FUN_00067410(param_1);\n  pFVar2 = fopen64(param_2,"rb");\n  uVar3 = 1;\n  if (pFVar2 != (FILE *)0x0) {\n    uVar3 = FUN_000670f0(param_1,param_2,pFVar2,0,0);\n  }\n  return uVar3;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "FILE *pFVar2;" (type_identifier "FILE") (pointer_declarator "*pFVar2" (* "*") (identifier "pFVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (if_statement "if (((char *)*param_1 != (char *)0x0) && (iVar1 = strcmp((char *)*param_1,param_2), iVar1 == 0)) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(((char *)*param_1 != (char *)0x0) && (iVar1 = strcmp((char *)*param_1,param_2), iVar1 == 0))" (( "(") (binary_expression "((char *)*param_1 != (char *)0x0) && (iVar1 = strcmp((char *)*param_1,param_2), iVar1 == 0)" (parenthesized_expression "((char *)*param_1 != (char *)0x0)" (( "(") (binary_expression "(char *)*param_1 != (char *)0x0" (cast_expression "(char *)*param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = strcmp((char *)*param_1,param_2), iVar1 == 0)" (( "(") (comma_expression "iVar1 = strcmp((char *)*param_1,param_2), iVar1 == 0" (assignment_expression "iVar1 = strcmp((char *)*param_1,param_2)" (identifier "iVar1") (= "=") (call_expression "strcmp((char *)*param_1,param_2)" (identifier "strcmp") (argument_list "((char *)*param_1,param_2)" (( "(") (cast_expression "(char *)*param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (, ",") (identifier "param_2") () ")")))) (, ",") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if ((FILE *)param_1[1] != (FILE *)0x0) {\n    fclose((FILE *)param_1[1]);\n  }" (if "if") (parenthesized_expression "((FILE *)param_1[1] != (FILE *)0x0)" (( "(") (binary_expression "(FILE *)param_1[1] != (FILE *)0x0" (cast_expression "(FILE *)param_1[1]" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (!= "!=") (cast_expression "(FILE *)0x0" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    fclose((FILE *)param_1[1]);\n  }" ({ "{") (expression_statement "fclose((FILE *)param_1[1]);" (call_expression "fclose((FILE *)param_1[1])" (identifier "fclose") (argument_list "((FILE *)param_1[1])" (( "(") (cast_expression "(FILE *)param_1[1]" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_00067410(param_1);" (call_expression "FUN_00067410(param_1)" (identifier "FUN_00067410") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "pFVar2 = fopen64(param_2,"rb");" (assignment_expression "pFVar2 = fopen64(param_2,"rb")" (identifier "pFVar2") (= "=") (call_expression "fopen64(param_2,"rb")" (identifier "fopen64") (argument_list "(param_2,"rb")" (( "(") (identifier "param_2") (, ",") (string_literal ""rb"" (" """) (string_content "rb") (" """)) () ")")))) (; ";")) (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" (identifier "uVar3") (= "=") (number_literal "1")) (; ";")) (if_statement "if (pFVar2 != (FILE *)0x0) {\n    uVar3 = FUN_000670f0(param_1,param_2,pFVar2,0,0);\n  }" (if "if") (parenthesized_expression "(pFVar2 != (FILE *)0x0)" (( "(") (binary_expression "pFVar2 != (FILE *)0x0" (identifier "pFVar2") (!= "!=") (cast_expression "(FILE *)0x0" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    uVar3 = FUN_000670f0(param_1,param_2,pFVar2,0,0);\n  }" ({ "{") (expression_statement "uVar3 = FUN_000670f0(param_1,param_2,pFVar2,0,0);" (assignment_expression "uVar3 = FUN_000670f0(param_1,param_2,pFVar2,0,0)" (identifier "uVar3") (= "=") (call_expression "FUN_000670f0(param_1,param_2,pFVar2,0,0)" (identifier "FUN_000670f0") (argument_list "(param_1,param_2,pFVar2,0,0)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "pFVar2") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")")))) (; ";")) (} "}"))) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))

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

int function_1(type_1 *nested_arch,char *member_file_name)

{
  int var_2;
  type_2 *var_6;
  
  if ((nested_arch->file_name != (char *)0x0) &&
     (var_2 = var_1(nested_arch->file_name,member_file_name), var_2 == 0)) {
    return 0;
  }
  if ((type_2 *)nested_arch->var_6 != (type_2 *)0x0) {
    var_3((type_2 *)nested_arch->var_6);
  }
  var_4(nested_arch);
  var_6 = var_5(member_file_name,"rb");
  var_2 = 1;
  if (var_6 != (type_2 *)0x0) {
    var_2 = var_7(nested_arch,member_file_name,(type_2 *)var_6,0,0);
  }
  return var_2;
}


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

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

undefined4 MASKED(undefined4 *param_1,char *param_2)

{
  int iVar1;
  FILE *pFVar2;
  undefined4 uVar3;
  
  if (((char *)*param_1 != (char *)0x0) && (iVar1 = strcmp((char *)*param_1,param_2), iVar1 == 0)) {
    return 0;
  }
  if ((FILE *)param_1[1] != (FILE *)0x0) {
    fclose((FILE *)param_1[1]);
  }
  FUN_00067410(param_1);
  pFVar2 = fopen64(param_2,"rb");
  uVar3 = 1;
  if (pFVar2 != (FILE *)0x0) {
    uVar3 = FUN_000670f0(param_1,param_2,pFVar2,0,0);
  }
  return uVar3;
}

