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

void output_file_close(char *filename)

{
  int iVar1;
  undefined4 uVar2;
  char *format;
  
  if (stdoutput != (bfd *)0x0) {
    iVar1 = had_errors();
    if (iVar1 == 0) {
      iVar1 = bfd_close(stdoutput);
    }
    else {
      iVar1 = bfd_cache_close_all();
    }
    stdoutput = (bfd *)0x0;
    if (iVar1 == 0) {
      uVar2 = bfd_get_error();
      uVar2 = bfd_errmsg(uVar2);
      format = (char *)dcgettext(0,"can\'t close %s: %s",5);
                    /* WARNING: Subroutine does not return */
      as_fatal(format,filename,uVar2);
    }
  }
  return;
}



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

void FUN_0002c430(undefined4 param_1)

{
  int iVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  
  if (DAT_00089944 != 0) {
    iVar1 = FUN_0002bc20();
    if (iVar1 == 0) {
      iVar1 = bfd_close(DAT_00089944);
    }
    else {
      iVar1 = bfd_cache_close_all();
    }
    DAT_00089944 = 0;
    if (iVar1 == 0) {
      uVar2 = bfd_get_error();
      uVar2 = bfd_errmsg(uVar2);
      uVar3 = dcgettext(0,"can\'t close %s: %s",5);
                    /* WARNING: Subroutine does not return */
      FUN_0002be00(uVar3,param_1,uVar2);
    }
  }
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00016000
ADD EBX,0x53bc9
SUB ESP,0x4
LEA ESI,[EBX + 0x9944]
MOV EAX,dword ptr [ESI]
TEST EAX,EAX
JZ 0x0002c46c
CALL 0x0002bc20
TEST EAX,EAX
JNZ 0x0002c478
SUB ESP,0xc
PUSH dword ptr [ESI]
CALL 0x00014640
ADD ESP,0x10
MOV dword ptr [ESI],0x0
TEST EAX,EAX
JZ 0x0002c47f
ADD ESP,0x4
POP EBX
POP ESI
RET
CALL 0x000145e0
JMP 0x0002c462
CALL 0x000142a0
SUB ESP,0xc
PUSH EAX
CALL 0x00014680
ADD ESP,0xc
MOV ESI,EAX
LEA EAX,[EBX + 0xfffdeba7]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000141a0
ADD ESP,0xc
PUSH ESI
PUSH dword ptr [ESP + 0x18]
PUSH EAX
CALL 0x0002be00
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0002c430(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  if (DAT_00089944 != 0) {\n    iVar1 = FUN_0002bc20();\n    if (iVar1 == 0) {\n      iVar1 = bfd_close(DAT_00089944);\n    }\n    else {\n      iVar1 = bfd_cache_close_all();\n    }\n    DAT_00089944 = 0;\n    if (iVar1 == 0) {\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      uVar3 = dcgettext(0,"can\'t close %s: %s",5);\n                    /* WARNING: Subroutine does not return */\n      FUN_0002be00(uVar3,param_1,uVar2);\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_0002c430(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  if (DAT_00089944 != 0) {\n    iVar1 = FUN_0002bc20();\n    if (iVar1 == 0) {\n      iVar1 = bfd_close(DAT_00089944);\n    }\n    else {\n      iVar1 = bfd_cache_close_all();\n    }\n    DAT_00089944 = 0;\n    if (iVar1 == 0) {\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      uVar3 = dcgettext(0,"can\'t close %s: %s",5);\n                    /* WARNING: Subroutine does not return */\n      FUN_0002be00(uVar3,param_1,uVar2);\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0002c430(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  if (DAT_00089944 != 0) {\n    iVar1 = FUN_0002bc20();\n    if (iVar1 == 0) {\n      iVar1 = bfd_close(DAT_00089944);\n    }\n    else {\n      iVar1 = bfd_cache_close_all();\n    }\n    DAT_00089944 = 0;\n    if (iVar1 == 0) {\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      uVar3 = dcgettext(0,"can\'t close %s: %s",5);\n                    /* WARNING: Subroutine does not return */\n      FUN_0002be00(uVar3,param_1,uVar2);\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (if_statement "if (DAT_00089944 != 0) {\n    iVar1 = FUN_0002bc20();\n    if (iVar1 == 0) {\n      iVar1 = bfd_close(DAT_00089944);\n    }\n    else {\n      iVar1 = bfd_cache_close_all();\n    }\n    DAT_00089944 = 0;\n    if (iVar1 == 0) {\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      uVar3 = dcgettext(0,"can\'t close %s: %s",5);\n                    /* WARNING: Subroutine does not return */\n      FUN_0002be00(uVar3,param_1,uVar2);\n    }\n  }" if (parenthesized_expression "(DAT_00089944 != 0)" ( (binary_expression "DAT_00089944 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = FUN_0002bc20();\n    if (iVar1 == 0) {\n      iVar1 = bfd_close(DAT_00089944);\n    }\n    else {\n      iVar1 = bfd_cache_close_all();\n    }\n    DAT_00089944 = 0;\n    if (iVar1 == 0) {\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      uVar3 = dcgettext(0,"can\'t close %s: %s",5);\n                    /* WARNING: Subroutine does not return */\n      FUN_0002be00(uVar3,param_1,uVar2);\n    }\n  }" { (expression_statement "iVar1 = FUN_0002bc20();" (assignment_expression "iVar1 = FUN_0002bc20()" identifier = (call_expression "FUN_0002bc20()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n      iVar1 = bfd_close(DAT_00089944);\n    }\n    else {\n      iVar1 = bfd_cache_close_all();\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar1 = bfd_close(DAT_00089944);\n    }" { (expression_statement "iVar1 = bfd_close(DAT_00089944);" (assignment_expression "iVar1 = bfd_close(DAT_00089944)" identifier = (call_expression "bfd_close(DAT_00089944)" identifier (argument_list "(DAT_00089944)" ( identifier )))) ;) }) (else_clause "else {\n      iVar1 = bfd_cache_close_all();\n    }" else (compound_statement "{\n      iVar1 = bfd_cache_close_all();\n    }" { (expression_statement "iVar1 = bfd_cache_close_all();" (assignment_expression "iVar1 = bfd_cache_close_all()" identifier = (call_expression "bfd_cache_close_all()" identifier (argument_list "()" ( )))) ;) }))) (expression_statement "DAT_00089944 = 0;" (assignment_expression "DAT_00089944 = 0" identifier = number_literal) ;) (if_statement "if (iVar1 == 0) {\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      uVar3 = dcgettext(0,"can\'t close %s: %s",5);\n                    /* WARNING: Subroutine does not return */\n      FUN_0002be00(uVar3,param_1,uVar2);\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      uVar3 = dcgettext(0,"can\'t close %s: %s",5);\n                    /* WARNING: Subroutine does not return */\n      FUN_0002be00(uVar3,param_1,uVar2);\n    }" { (expression_statement "uVar2 = bfd_get_error();" (assignment_expression "uVar2 = bfd_get_error()" identifier = (call_expression "bfd_get_error()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar2 = bfd_errmsg(uVar2);" (assignment_expression "uVar2 = bfd_errmsg(uVar2)" identifier = (call_expression "bfd_errmsg(uVar2)" identifier (argument_list "(uVar2)" ( identifier )))) ;) (expression_statement "uVar3 = dcgettext(0,"can\'t close %s: %s",5);" (assignment_expression "uVar3 = dcgettext(0,"can\'t close %s: %s",5)" identifier = (call_expression "dcgettext(0,"can\'t close %s: %s",5)" identifier (argument_list "(0,"can\'t close %s: %s",5)" ( number_literal , (string_literal ""can\'t close %s: %s"" " string_content escape_sequence string_content ") , number_literal )))) ;) comment (expression_statement "FUN_0002be00(uVar3,param_1,uVar2);" (call_expression "FUN_0002be00(uVar3,param_1,uVar2)" identifier (argument_list "(uVar3,param_1,uVar2)" ( identifier , identifier , identifier ))) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid output_file_close(char *filename)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  char *format;\n  \n  if (stdoutput != (bfd *)0x0) {\n    iVar1 = had_errors();\n    if (iVar1 == 0) {\n      iVar1 = bfd_close(stdoutput);\n    }\n    else {\n      iVar1 = bfd_cache_close_all();\n    }\n    stdoutput = (bfd *)0x0;\n    if (iVar1 == 0) {\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      format = (char *)dcgettext(0,"can\'t close %s: %s",5);\n                    /* WARNING: Subroutine does not return */\n      as_fatal(format,filename,uVar2);\n    }\n  }\n  return;\n}\n\n" comment comment (function_definition "void output_file_close(char *filename)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  char *format;\n  \n  if (stdoutput != (bfd *)0x0) {\n    iVar1 = had_errors();\n    if (iVar1 == 0) {\n      iVar1 = bfd_close(stdoutput);\n    }\n    else {\n      iVar1 = bfd_cache_close_all();\n    }\n    stdoutput = (bfd *)0x0;\n    if (iVar1 == 0) {\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      format = (char *)dcgettext(0,"can\'t close %s: %s",5);\n                    /* WARNING: Subroutine does not return */\n      as_fatal(format,filename,uVar2);\n    }\n  }\n  return;\n}" primitive_type (function_declarator "output_file_close(char *filename)" identifier (parameter_list "(char *filename)" ( (parameter_declaration "char *filename" primitive_type (pointer_declarator "*filename" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  char *format;\n  \n  if (stdoutput != (bfd *)0x0) {\n    iVar1 = had_errors();\n    if (iVar1 == 0) {\n      iVar1 = bfd_close(stdoutput);\n    }\n    else {\n      iVar1 = bfd_cache_close_all();\n    }\n    stdoutput = (bfd *)0x0;\n    if (iVar1 == 0) {\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      format = (char *)dcgettext(0,"can\'t close %s: %s",5);\n                    /* WARNING: Subroutine does not return */\n      as_fatal(format,filename,uVar2);\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "char *format;" primitive_type (pointer_declarator "*format" * identifier) ;) (if_statement "if (stdoutput != (bfd *)0x0) {\n    iVar1 = had_errors();\n    if (iVar1 == 0) {\n      iVar1 = bfd_close(stdoutput);\n    }\n    else {\n      iVar1 = bfd_cache_close_all();\n    }\n    stdoutput = (bfd *)0x0;\n    if (iVar1 == 0) {\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      format = (char *)dcgettext(0,"can\'t close %s: %s",5);\n                    /* WARNING: Subroutine does not return */\n      as_fatal(format,filename,uVar2);\n    }\n  }" if (parenthesized_expression "(stdoutput != (bfd *)0x0)" ( (binary_expression "stdoutput != (bfd *)0x0" identifier != (cast_expression "(bfd *)0x0" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = had_errors();\n    if (iVar1 == 0) {\n      iVar1 = bfd_close(stdoutput);\n    }\n    else {\n      iVar1 = bfd_cache_close_all();\n    }\n    stdoutput = (bfd *)0x0;\n    if (iVar1 == 0) {\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      format = (char *)dcgettext(0,"can\'t close %s: %s",5);\n                    /* WARNING: Subroutine does not return */\n      as_fatal(format,filename,uVar2);\n    }\n  }" { (expression_statement "iVar1 = had_errors();" (assignment_expression "iVar1 = had_errors()" identifier = (call_expression "had_errors()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n      iVar1 = bfd_close(stdoutput);\n    }\n    else {\n      iVar1 = bfd_cache_close_all();\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar1 = bfd_close(stdoutput);\n    }" { (expression_statement "iVar1 = bfd_close(stdoutput);" (assignment_expression "iVar1 = bfd_close(stdoutput)" identifier = (call_expression "bfd_close(stdoutput)" identifier (argument_list "(stdoutput)" ( identifier )))) ;) }) (else_clause "else {\n      iVar1 = bfd_cache_close_all();\n    }" else (compound_statement "{\n      iVar1 = bfd_cache_close_all();\n    }" { (expression_statement "iVar1 = bfd_cache_close_all();" (assignment_expression "iVar1 = bfd_cache_close_all()" identifier = (call_expression "bfd_cache_close_all()" identifier (argument_list "()" ( )))) ;) }))) (expression_statement "stdoutput = (bfd *)0x0;" (assignment_expression "stdoutput = (bfd *)0x0" identifier = (cast_expression "(bfd *)0x0" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (iVar1 == 0) {\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      format = (char *)dcgettext(0,"can\'t close %s: %s",5);\n                    /* WARNING: Subroutine does not return */\n      as_fatal(format,filename,uVar2);\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      format = (char *)dcgettext(0,"can\'t close %s: %s",5);\n                    /* WARNING: Subroutine does not return */\n      as_fatal(format,filename,uVar2);\n    }" { (expression_statement "uVar2 = bfd_get_error();" (assignment_expression "uVar2 = bfd_get_error()" identifier = (call_expression "bfd_get_error()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar2 = bfd_errmsg(uVar2);" (assignment_expression "uVar2 = bfd_errmsg(uVar2)" identifier = (call_expression "bfd_errmsg(uVar2)" identifier (argument_list "(uVar2)" ( identifier )))) ;) (expression_statement "format = (char *)dcgettext(0,"can\'t close %s: %s",5);" (assignment_expression "format = (char *)dcgettext(0,"can\'t close %s: %s",5)" identifier = (cast_expression "(char *)dcgettext(0,"can\'t close %s: %s",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"can\'t close %s: %s",5)" identifier (argument_list "(0,"can\'t close %s: %s",5)" ( number_literal , (string_literal ""can\'t close %s: %s"" " string_content escape_sequence string_content ") , number_literal ))))) ;) comment (expression_statement "as_fatal(format,filename,uVar2);" (call_expression "as_fatal(format,filename,uVar2)" identifier (argument_list "(format,filename,uVar2)" ( identifier , identifier , identifier ))) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0002c430(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  if (DAT_00089944 != 0) {\n    iVar1 = FUN_0002bc20();\n    if (iVar1 == 0) {\n      iVar1 = bfd_close(DAT_00089944);\n    }\n    else {\n      iVar1 = bfd_cache_close_all();\n    }\n    DAT_00089944 = 0;\n    if (iVar1 == 0) {\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      uVar3 = dcgettext(0,"can\'t close %s: %s",5);\n                    \n      FUN_0002be00(uVar3,param_1,uVar2);\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_0002c430(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  if (DAT_00089944 != 0) {\n    iVar1 = FUN_0002bc20();\n    if (iVar1 == 0) {\n      iVar1 = bfd_close(DAT_00089944);\n    }\n    else {\n      iVar1 = bfd_cache_close_all();\n    }\n    DAT_00089944 = 0;\n    if (iVar1 == 0) {\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      uVar3 = dcgettext(0,"can\'t close %s: %s",5);\n                    \n      FUN_0002be00(uVar3,param_1,uVar2);\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0002c430(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  if (DAT_00089944 != 0) {\n    iVar1 = FUN_0002bc20();\n    if (iVar1 == 0) {\n      iVar1 = bfd_close(DAT_00089944);\n    }\n    else {\n      iVar1 = bfd_cache_close_all();\n    }\n    DAT_00089944 = 0;\n    if (iVar1 == 0) {\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      uVar3 = dcgettext(0,"can\'t close %s: %s",5);\n                    \n      FUN_0002be00(uVar3,param_1,uVar2);\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (if_statement "if (DAT_00089944 != 0) {\n    iVar1 = FUN_0002bc20();\n    if (iVar1 == 0) {\n      iVar1 = bfd_close(DAT_00089944);\n    }\n    else {\n      iVar1 = bfd_cache_close_all();\n    }\n    DAT_00089944 = 0;\n    if (iVar1 == 0) {\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      uVar3 = dcgettext(0,"can\'t close %s: %s",5);\n                    \n      FUN_0002be00(uVar3,param_1,uVar2);\n    }\n  }" if (parenthesized_expression "(DAT_00089944 != 0)" ( (binary_expression "DAT_00089944 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = FUN_0002bc20();\n    if (iVar1 == 0) {\n      iVar1 = bfd_close(DAT_00089944);\n    }\n    else {\n      iVar1 = bfd_cache_close_all();\n    }\n    DAT_00089944 = 0;\n    if (iVar1 == 0) {\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      uVar3 = dcgettext(0,"can\'t close %s: %s",5);\n                    \n      FUN_0002be00(uVar3,param_1,uVar2);\n    }\n  }" { (expression_statement "iVar1 = FUN_0002bc20();" (assignment_expression "iVar1 = FUN_0002bc20()" identifier = (call_expression "FUN_0002bc20()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n      iVar1 = bfd_close(DAT_00089944);\n    }\n    else {\n      iVar1 = bfd_cache_close_all();\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar1 = bfd_close(DAT_00089944);\n    }" { (expression_statement "iVar1 = bfd_close(DAT_00089944);" (assignment_expression "iVar1 = bfd_close(DAT_00089944)" identifier = (call_expression "bfd_close(DAT_00089944)" identifier (argument_list "(DAT_00089944)" ( identifier )))) ;) }) (else_clause "else {\n      iVar1 = bfd_cache_close_all();\n    }" else (compound_statement "{\n      iVar1 = bfd_cache_close_all();\n    }" { (expression_statement "iVar1 = bfd_cache_close_all();" (assignment_expression "iVar1 = bfd_cache_close_all()" identifier = (call_expression "bfd_cache_close_all()" identifier (argument_list "()" ( )))) ;) }))) (expression_statement "DAT_00089944 = 0;" (assignment_expression "DAT_00089944 = 0" identifier = number_literal) ;) (if_statement "if (iVar1 == 0) {\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      uVar3 = dcgettext(0,"can\'t close %s: %s",5);\n                    \n      FUN_0002be00(uVar3,param_1,uVar2);\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      uVar3 = dcgettext(0,"can\'t close %s: %s",5);\n                    \n      FUN_0002be00(uVar3,param_1,uVar2);\n    }" { (expression_statement "uVar2 = bfd_get_error();" (assignment_expression "uVar2 = bfd_get_error()" identifier = (call_expression "bfd_get_error()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar2 = bfd_errmsg(uVar2);" (assignment_expression "uVar2 = bfd_errmsg(uVar2)" identifier = (call_expression "bfd_errmsg(uVar2)" identifier (argument_list "(uVar2)" ( identifier )))) ;) (expression_statement "uVar3 = dcgettext(0,"can\'t close %s: %s",5);" (assignment_expression "uVar3 = dcgettext(0,"can\'t close %s: %s",5)" identifier = (call_expression "dcgettext(0,"can\'t close %s: %s",5)" identifier (argument_list "(0,"can\'t close %s: %s",5)" ( number_literal , (string_literal ""can\'t close %s: %s"" " string_content escape_sequence string_content ") , number_literal )))) ;) (expression_statement "FUN_0002be00(uVar3,param_1,uVar2);" (call_expression "FUN_0002be00(uVar3,param_1,uVar2)" identifier (argument_list "(uVar3,param_1,uVar2)" ( identifier , identifier , identifier ))) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) }))) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) })) })) (return_statement return ;) })))
(function_definition "void FUN_0002c430(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  if (DAT_00089944 != 0) {\n    iVar1 = FUN_0002bc20();\n    if (iVar1 == 0) {\n      iVar1 = bfd_close(DAT_00089944);\n    }\n    else {\n      iVar1 = bfd_cache_close_all();\n    }\n    DAT_00089944 = 0;\n    if (iVar1 == 0) {\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      uVar3 = dcgettext(0,"can\'t close %s: %s",5);\n                    \n      FUN_0002be00(uVar3,param_1,uVar2);\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0002c430(undefined4 param_1)" (identifier "FUN_0002c430") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  if (DAT_00089944 != 0) {\n    iVar1 = FUN_0002bc20();\n    if (iVar1 == 0) {\n      iVar1 = bfd_close(DAT_00089944);\n    }\n    else {\n      iVar1 = bfd_cache_close_all();\n    }\n    DAT_00089944 = 0;\n    if (iVar1 == 0) {\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      uVar3 = dcgettext(0,"can\'t close %s: %s",5);\n                    \n      FUN_0002be00(uVar3,param_1,uVar2);\n    }\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (if_statement "if (DAT_00089944 != 0) {\n    iVar1 = FUN_0002bc20();\n    if (iVar1 == 0) {\n      iVar1 = bfd_close(DAT_00089944);\n    }\n    else {\n      iVar1 = bfd_cache_close_all();\n    }\n    DAT_00089944 = 0;\n    if (iVar1 == 0) {\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      uVar3 = dcgettext(0,"can\'t close %s: %s",5);\n                    \n      FUN_0002be00(uVar3,param_1,uVar2);\n    }\n  }" (if "if") (parenthesized_expression "(DAT_00089944 != 0)" (( "(") (binary_expression "DAT_00089944 != 0" (identifier "DAT_00089944") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = FUN_0002bc20();\n    if (iVar1 == 0) {\n      iVar1 = bfd_close(DAT_00089944);\n    }\n    else {\n      iVar1 = bfd_cache_close_all();\n    }\n    DAT_00089944 = 0;\n    if (iVar1 == 0) {\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      uVar3 = dcgettext(0,"can\'t close %s: %s",5);\n                    \n      FUN_0002be00(uVar3,param_1,uVar2);\n    }\n  }" ({ "{") (expression_statement "iVar1 = FUN_0002bc20();" (assignment_expression "iVar1 = FUN_0002bc20()" (identifier "iVar1") (= "=") (call_expression "FUN_0002bc20()" (identifier "FUN_0002bc20") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n      iVar1 = bfd_close(DAT_00089944);\n    }\n    else {\n      iVar1 = bfd_cache_close_all();\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar1 = bfd_close(DAT_00089944);\n    }" ({ "{") (expression_statement "iVar1 = bfd_close(DAT_00089944);" (assignment_expression "iVar1 = bfd_close(DAT_00089944)" (identifier "iVar1") (= "=") (call_expression "bfd_close(DAT_00089944)" (identifier "bfd_close") (argument_list "(DAT_00089944)" (( "(") (identifier "DAT_00089944") () ")")))) (; ";")) (} "}")) (else_clause "else {\n      iVar1 = bfd_cache_close_all();\n    }" (else "else") (compound_statement "{\n      iVar1 = bfd_cache_close_all();\n    }" ({ "{") (expression_statement "iVar1 = bfd_cache_close_all();" (assignment_expression "iVar1 = bfd_cache_close_all()" (identifier "iVar1") (= "=") (call_expression "bfd_cache_close_all()" (identifier "bfd_cache_close_all") (argument_list "()" (( "(") () ")")))) (; ";")) (} "}")))) (expression_statement "DAT_00089944 = 0;" (assignment_expression "DAT_00089944 = 0" (identifier "DAT_00089944") (= "=") (number_literal "0")) (; ";")) (if_statement "if (iVar1 == 0) {\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      uVar3 = dcgettext(0,"can\'t close %s: %s",5);\n                    \n      FUN_0002be00(uVar3,param_1,uVar2);\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      uVar3 = dcgettext(0,"can\'t close %s: %s",5);\n                    \n      FUN_0002be00(uVar3,param_1,uVar2);\n    }" ({ "{") (expression_statement "uVar2 = bfd_get_error();" (assignment_expression "uVar2 = bfd_get_error()" (identifier "uVar2") (= "=") (call_expression "bfd_get_error()" (identifier "bfd_get_error") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar2 = bfd_errmsg(uVar2);" (assignment_expression "uVar2 = bfd_errmsg(uVar2)" (identifier "uVar2") (= "=") (call_expression "bfd_errmsg(uVar2)" (identifier "bfd_errmsg") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")")))) (; ";")) (expression_statement "uVar3 = dcgettext(0,"can\'t close %s: %s",5);" (assignment_expression "uVar3 = dcgettext(0,"can\'t close %s: %s",5)" (identifier "uVar3") (= "=") (call_expression "dcgettext(0,"can\'t close %s: %s",5)" (identifier "dcgettext") (argument_list "(0,"can\'t close %s: %s",5)" (( "(") (number_literal "0") (, ",") (string_literal ""can\'t close %s: %s"" (" """) (string_content "can") (escape_sequence "\'") (string_content "t close %s: %s") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_0002be00(uVar3,param_1,uVar2);" (call_expression "FUN_0002be00(uVar3,param_1,uVar2)" (identifier "FUN_0002be00") (argument_list "(uVar3,param_1,uVar2)" (( "(") (identifier "uVar3") (, ",") (identifier "param_1") (, ",") (identifier "uVar2") () ")"))) (; ";")) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(char *filename)

{
  int var_3;
  type_1 uVar2;
  char *format;
  
  if (var_1 != (type_2 *)0x0) {
    var_3 = var_2();
    if (var_3 == 0) {
      var_3 = var_4(var_1);
    }
    else {
      var_3 = var_5();
    }
    var_1 = (type_2 *)0x0;
    if (var_3 == 0) {
      uVar2 = var_6();
      uVar2 = var_7(uVar2);
      format = (char *)var_8(0,"can\'t close %s: %s",5);
                    /* WARNING: Subroutine does not return */
      var_9(format,filename,uVar2);
    }
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content) (escape_sequence) (string_content)) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))))))) (return_statement))))

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

void MASKED(undefined4 param_1)

{
  int iVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  
  if (DAT_00089944 != 0) {
    iVar1 = FUN_0002bc20();
    if (iVar1 == 0) {
      iVar1 = bfd_close(DAT_00089944);
    }
    else {
      iVar1 = bfd_cache_close_all();
    }
    DAT_00089944 = 0;
    if (iVar1 == 0) {
      uVar2 = bfd_get_error();
      uVar2 = bfd_errmsg(uVar2);
      uVar3 = dcgettext(0,"can\'t close %s: %s",5);
                    /* WARNING: Subroutine does not return */
      FUN_0002be00(uVar3,param_1,uVar2);
    }
  }
  return;
}

