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

void __regparm3 display_file(char *filename,char *target,bfd_boolean last_file)

{
  bfd *file;
  off_t oVar1;
  
  oVar1 = get_file_size(filename);
  if ((int)(uint)((int)oVar1 != 0) <= -(int)((ulonglong)oVar1 >> 0x20)) {
    exit_status = 1;
    return;
  }
  file = (bfd *)bfd_openr(filename,target);
  if (file != (bfd *)0x0) {
    display_any_bfd(file,0);
    if (last_file == 0) {
      bfd_close(file);
      return;
    }
    bfd_close_all_done(file);
    return;
  }
  bfd_nonfatal(filename);
  exit_status = 1;
  return;
}



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

void __regparm3 FUN_0001c1a0(undefined4 param_1,undefined4 param_2,int param_3)

{
  int iVar1;
  undefined8 uVar2;
  
  uVar2 = FUN_00048290(param_1);
  if ((int)(uint)((int)uVar2 != 0) <= -(int)((ulonglong)uVar2 >> 0x20)) {
    DAT_00074120 = 1;
    return;
  }
  iVar1 = bfd_openr(param_1,param_2);
  if (iVar1 != 0) {
    FUN_000196b0();
    if (param_3 == 0) {
      bfd_close(iVar1);
      return;
    }
    bfd_close_all_done(iVar1);
    return;
  }
  FUN_00047720(param_1);
  DAT_00074120 = 1;
  return;
}


PUSH EBP
MOV EBP,ECX
PUSH EDI
MOV EDI,EDX
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x000153d0
ADD EBX,0x56e51
SUB ESP,0x18
PUSH EAX
CALL 0x00048290
XOR ECX,ECX
ADD ESP,0x10
CMP ECX,EAX
SBB ECX,EDX
JGE 0x0001c200
SUB ESP,0x8
PUSH EDI
PUSH ESI
CALL 0x000141a0
ADD ESP,0x10
MOV EDI,EAX
TEST EAX,EAX
JZ 0x0001c230
XOR EDX,EDX
CALL 0x000196b0
TEST EBP,EBP
JNZ 0x0001c218
SUB ESP,0xc
PUSH EDI
CALL 0x00014680
ADD ESP,0x10
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [EBX + 0x1120],0x1
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH EDI
CALL 0x00014460
ADD ESP,0x10
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH ESI
CALL 0x00047720
ADD ESP,0x10
MOV dword ptr [EBX + 0x1120],0x1
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_0001c1a0(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  \n  uVar2 = FUN_00048290(param_1);\n  if ((int)(uint)((int)uVar2 != 0) <= -(int)((ulonglong)uVar2 >> 0x20)) {\n    DAT_00074120 = 1;\n    return;\n  }\n  iVar1 = bfd_openr(param_1,param_2);\n  if (iVar1 != 0) {\n    FUN_000196b0();\n    if (param_3 == 0) {\n      bfd_close(iVar1);\n      return;\n    }\n    bfd_close_all_done(iVar1);\n    return;\n  }\n  FUN_00047720(param_1);\n  DAT_00074120 = 1;\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_0001c1a0(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  \n  uVar2 = FUN_00048290(param_1);\n  if ((int)(uint)((int)uVar2 != 0) <= -(int)((ulonglong)uVar2 >> 0x20)) {\n    DAT_00074120 = 1;\n    return;\n  }\n  iVar1 = bfd_openr(param_1,param_2);\n  if (iVar1 != 0) {\n    FUN_000196b0();\n    if (param_3 == 0) {\n      bfd_close(iVar1);\n      return;\n    }\n    bfd_close_all_done(iVar1);\n    return;\n  }\n  FUN_00047720(param_1);\n  DAT_00074120 = 1;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0001c1a0(undefined4 param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined8 uVar2;\n  \n  uVar2 = FUN_00048290(param_1);\n  if ((int)(uint)((int)uVar2 != 0) <= -(int)((ulonglong)uVar2 >> 0x20)) {\n    DAT_00074120 = 1;\n    return;\n  }\n  iVar1 = bfd_openr(param_1,param_2);\n  if (iVar1 != 0) {\n    FUN_000196b0();\n    if (param_3 == 0) {\n      bfd_close(iVar1);\n      return;\n    }\n    bfd_close_all_done(iVar1);\n    return;\n  }\n  FUN_00047720(param_1);\n  DAT_00074120 = 1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = FUN_00048290(param_1);" (assignment_expression "uVar2 = FUN_00048290(param_1)" identifier = (call_expression "FUN_00048290(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if ((int)(uint)((int)uVar2 != 0) <= -(int)((ulonglong)uVar2 >> 0x20)) {\n    DAT_00074120 = 1;\n    return;\n  }" if (parenthesized_expression "((int)(uint)((int)uVar2 != 0) <= -(int)((ulonglong)uVar2 >> 0x20))" ( (binary_expression "(int)(uint)((int)uVar2 != 0) <= -(int)((ulonglong)uVar2 >> 0x20)" (cast_expression "(int)(uint)((int)uVar2 != 0)" ( (type_descriptor "int" primitive_type) ) (call_expression "(uint)((int)uVar2 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)uVar2 != 0)" ( (binary_expression "(int)uVar2 != 0" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) != number_literal) )))) <= (unary_expression "-(int)((ulonglong)uVar2 >> 0x20)" - (cast_expression "(int)((ulonglong)uVar2 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar2 >> 0x20)" ( (binary_expression "(ulonglong)uVar2 >> 0x20" (cast_expression "(ulonglong)uVar2" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))))) )) (compound_statement "{\n    DAT_00074120 = 1;\n    return;\n  }" { (expression_statement "DAT_00074120 = 1;" (assignment_expression "DAT_00074120 = 1" identifier = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "iVar1 = bfd_openr(param_1,param_2);" (assignment_expression "iVar1 = bfd_openr(param_1,param_2)" identifier = (call_expression "bfd_openr(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n    FUN_000196b0();\n    if (param_3 == 0) {\n      bfd_close(iVar1);\n      return;\n    }\n    bfd_close_all_done(iVar1);\n    return;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_000196b0();\n    if (param_3 == 0) {\n      bfd_close(iVar1);\n      return;\n    }\n    bfd_close_all_done(iVar1);\n    return;\n  }" { (expression_statement "FUN_000196b0();" (call_expression "FUN_000196b0()" identifier (argument_list "()" ( ))) ;) (if_statement "if (param_3 == 0) {\n      bfd_close(iVar1);\n      return;\n    }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n      bfd_close(iVar1);\n      return;\n    }" { (expression_statement "bfd_close(iVar1);" (call_expression "bfd_close(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "bfd_close_all_done(iVar1);" (call_expression "bfd_close_all_done(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00047720(param_1);" (call_expression "FUN_00047720(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "DAT_00074120 = 1;" (assignment_expression "DAT_00074120 = 1" identifier = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 display_file(char *filename,char *target,bfd_boolean last_file)\n\n{\n  bfd *file;\n  off_t oVar1;\n  \n  oVar1 = get_file_size(filename);\n  if ((int)(uint)((int)oVar1 != 0) <= -(int)((ulonglong)oVar1 >> 0x20)) {\n    exit_status = 1;\n    return;\n  }\n  file = (bfd *)bfd_openr(filename,target);\n  if (file != (bfd *)0x0) {\n    display_any_bfd(file,0);\n    if (last_file == 0) {\n      bfd_close(file);\n      return;\n    }\n    bfd_close_all_done(file);\n    return;\n  }\n  bfd_nonfatal(filename);\n  exit_status = 1;\n  return;\n}\n\n" comment (function_definition "void __regparm3 display_file(char *filename,char *target,bfd_boolean last_file)\n\n{\n  bfd *file;\n  off_t oVar1;\n  \n  oVar1 = get_file_size(filename);\n  if ((int)(uint)((int)oVar1 != 0) <= -(int)((ulonglong)oVar1 >> 0x20)) {\n    exit_status = 1;\n    return;\n  }\n  file = (bfd *)bfd_openr(filename,target);\n  if (file != (bfd *)0x0) {\n    display_any_bfd(file,0);\n    if (last_file == 0) {\n      bfd_close(file);\n      return;\n    }\n    bfd_close_all_done(file);\n    return;\n  }\n  bfd_nonfatal(filename);\n  exit_status = 1;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "display_file(char *filename,char *target,bfd_boolean last_file)" identifier (parameter_list "(char *filename,char *target,bfd_boolean last_file)" ( (parameter_declaration "char *filename" primitive_type (pointer_declarator "*filename" * identifier)) , (parameter_declaration "char *target" primitive_type (pointer_declarator "*target" * identifier)) , (parameter_declaration "bfd_boolean last_file" type_identifier identifier) ))) (compound_statement "{\n  bfd *file;\n  off_t oVar1;\n  \n  oVar1 = get_file_size(filename);\n  if ((int)(uint)((int)oVar1 != 0) <= -(int)((ulonglong)oVar1 >> 0x20)) {\n    exit_status = 1;\n    return;\n  }\n  file = (bfd *)bfd_openr(filename,target);\n  if (file != (bfd *)0x0) {\n    display_any_bfd(file,0);\n    if (last_file == 0) {\n      bfd_close(file);\n      return;\n    }\n    bfd_close_all_done(file);\n    return;\n  }\n  bfd_nonfatal(filename);\n  exit_status = 1;\n  return;\n}" { (declaration "bfd *file;" type_identifier (pointer_declarator "*file" * identifier) ;) (declaration "off_t oVar1;" type_identifier identifier ;) (expression_statement "oVar1 = get_file_size(filename);" (assignment_expression "oVar1 = get_file_size(filename)" identifier = (call_expression "get_file_size(filename)" identifier (argument_list "(filename)" ( identifier )))) ;) (if_statement "if ((int)(uint)((int)oVar1 != 0) <= -(int)((ulonglong)oVar1 >> 0x20)) {\n    exit_status = 1;\n    return;\n  }" if (parenthesized_expression "((int)(uint)((int)oVar1 != 0) <= -(int)((ulonglong)oVar1 >> 0x20))" ( (binary_expression "(int)(uint)((int)oVar1 != 0) <= -(int)((ulonglong)oVar1 >> 0x20)" (cast_expression "(int)(uint)((int)oVar1 != 0)" ( (type_descriptor "int" primitive_type) ) (call_expression "(uint)((int)oVar1 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)oVar1 != 0)" ( (binary_expression "(int)oVar1 != 0" (cast_expression "(int)oVar1" ( (type_descriptor "int" primitive_type) ) identifier) != number_literal) )))) <= (unary_expression "-(int)((ulonglong)oVar1 >> 0x20)" - (cast_expression "(int)((ulonglong)oVar1 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)oVar1 >> 0x20)" ( (binary_expression "(ulonglong)oVar1 >> 0x20" (cast_expression "(ulonglong)oVar1" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))))) )) (compound_statement "{\n    exit_status = 1;\n    return;\n  }" { (expression_statement "exit_status = 1;" (assignment_expression "exit_status = 1" identifier = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "file = (bfd *)bfd_openr(filename,target);" (assignment_expression "file = (bfd *)bfd_openr(filename,target)" identifier = (cast_expression "(bfd *)bfd_openr(filename,target)" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "bfd_openr(filename,target)" identifier (argument_list "(filename,target)" ( identifier , identifier ))))) ;) (if_statement "if (file != (bfd *)0x0) {\n    display_any_bfd(file,0);\n    if (last_file == 0) {\n      bfd_close(file);\n      return;\n    }\n    bfd_close_all_done(file);\n    return;\n  }" if (parenthesized_expression "(file != (bfd *)0x0)" ( (binary_expression "file != (bfd *)0x0" identifier != (cast_expression "(bfd *)0x0" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    display_any_bfd(file,0);\n    if (last_file == 0) {\n      bfd_close(file);\n      return;\n    }\n    bfd_close_all_done(file);\n    return;\n  }" { (expression_statement "display_any_bfd(file,0);" (call_expression "display_any_bfd(file,0)" identifier (argument_list "(file,0)" ( identifier , number_literal ))) ;) (if_statement "if (last_file == 0) {\n      bfd_close(file);\n      return;\n    }" if (parenthesized_expression "(last_file == 0)" ( (binary_expression "last_file == 0" identifier == number_literal) )) (compound_statement "{\n      bfd_close(file);\n      return;\n    }" { (expression_statement "bfd_close(file);" (call_expression "bfd_close(file)" identifier (argument_list "(file)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "bfd_close_all_done(file);" (call_expression "bfd_close_all_done(file)" identifier (argument_list "(file)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "bfd_nonfatal(filename);" (call_expression "bfd_nonfatal(filename)" identifier (argument_list "(filename)" ( identifier ))) ;) (expression_statement "exit_status = 1;" (assignment_expression "exit_status = 1" identifier = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_0001c1a0(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  \n  uVar2 = FUN_00048290(param_1);\n  if ((int)(uint)((int)uVar2 != 0) <= -(int)((ulonglong)uVar2 >> 0x20)) {\n    DAT_00074120 = 1;\n    return;\n  }\n  iVar1 = bfd_openr(param_1,param_2);\n  if (iVar1 != 0) {\n    FUN_000196b0();\n    if (param_3 == 0) {\n      bfd_close(iVar1);\n      return;\n    }\n    bfd_close_all_done(iVar1);\n    return;\n  }\n  FUN_00047720(param_1);\n  DAT_00074120 = 1;\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0001c1a0(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  \n  uVar2 = FUN_00048290(param_1);\n  if ((int)(uint)((int)uVar2 != 0) <= -(int)((ulonglong)uVar2 >> 0x20)) {\n    DAT_00074120 = 1;\n    return;\n  }\n  iVar1 = bfd_openr(param_1,param_2);\n  if (iVar1 != 0) {\n    FUN_000196b0();\n    if (param_3 == 0) {\n      bfd_close(iVar1);\n      return;\n    }\n    bfd_close_all_done(iVar1);\n    return;\n  }\n  FUN_00047720(param_1);\n  DAT_00074120 = 1;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0001c1a0(undefined4 param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined8 uVar2;\n  \n  uVar2 = FUN_00048290(param_1);\n  if ((int)(uint)((int)uVar2 != 0) <= -(int)((ulonglong)uVar2 >> 0x20)) {\n    DAT_00074120 = 1;\n    return;\n  }\n  iVar1 = bfd_openr(param_1,param_2);\n  if (iVar1 != 0) {\n    FUN_000196b0();\n    if (param_3 == 0) {\n      bfd_close(iVar1);\n      return;\n    }\n    bfd_close_all_done(iVar1);\n    return;\n  }\n  FUN_00047720(param_1);\n  DAT_00074120 = 1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = FUN_00048290(param_1);" (assignment_expression "uVar2 = FUN_00048290(param_1)" identifier = (call_expression "FUN_00048290(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if ((int)(uint)((int)uVar2 != 0) <= -(int)((ulonglong)uVar2 >> 0x20)) {\n    DAT_00074120 = 1;\n    return;\n  }" if (parenthesized_expression "((int)(uint)((int)uVar2 != 0) <= -(int)((ulonglong)uVar2 >> 0x20))" ( (binary_expression "(int)(uint)((int)uVar2 != 0) <= -(int)((ulonglong)uVar2 >> 0x20)" (cast_expression "(int)(uint)((int)uVar2 != 0)" ( (type_descriptor "int" primitive_type) ) (call_expression "(uint)((int)uVar2 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)uVar2 != 0)" ( (binary_expression "(int)uVar2 != 0" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) != number_literal) )))) <= (unary_expression "-(int)((ulonglong)uVar2 >> 0x20)" - (cast_expression "(int)((ulonglong)uVar2 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar2 >> 0x20)" ( (binary_expression "(ulonglong)uVar2 >> 0x20" (cast_expression "(ulonglong)uVar2" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))))) )) (compound_statement "{\n    DAT_00074120 = 1;\n    return;\n  }" { (expression_statement "DAT_00074120 = 1;" (assignment_expression "DAT_00074120 = 1" identifier = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "iVar1 = bfd_openr(param_1,param_2);" (assignment_expression "iVar1 = bfd_openr(param_1,param_2)" identifier = (call_expression "bfd_openr(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n    FUN_000196b0();\n    if (param_3 == 0) {\n      bfd_close(iVar1);\n      return;\n    }\n    bfd_close_all_done(iVar1);\n    return;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_000196b0();\n    if (param_3 == 0) {\n      bfd_close(iVar1);\n      return;\n    }\n    bfd_close_all_done(iVar1);\n    return;\n  }" { (expression_statement "FUN_000196b0();" (call_expression "FUN_000196b0()" identifier (argument_list "()" ( ))) ;) (if_statement "if (param_3 == 0) {\n      bfd_close(iVar1);\n      return;\n    }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n      bfd_close(iVar1);\n      return;\n    }" { (expression_statement "bfd_close(iVar1);" (call_expression "bfd_close(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "bfd_close_all_done(iVar1);" (call_expression "bfd_close_all_done(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00047720(param_1);" (call_expression "FUN_00047720(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "DAT_00074120 = 1;" (assignment_expression "DAT_00074120 = 1" identifier = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) != LIT) )))) <= (unary_expression - (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_0001c1a0(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  \n  uVar2 = FUN_00048290(param_1);\n  if ((int)(uint)((int)uVar2 != 0) <= -(int)((ulonglong)uVar2 >> 0x20)) {\n    DAT_00074120 = 1;\n    return;\n  }\n  iVar1 = bfd_openr(param_1,param_2);\n  if (iVar1 != 0) {\n    FUN_000196b0();\n    if (param_3 == 0) {\n      bfd_close(iVar1);\n      return;\n    }\n    bfd_close_all_done(iVar1);\n    return;\n  }\n  FUN_00047720(param_1);\n  DAT_00074120 = 1;\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0001c1a0(undefined4 param_1,undefined4 param_2,int param_3)" (identifier "FUN_0001c1a0") (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined8 uVar2;\n  \n  uVar2 = FUN_00048290(param_1);\n  if ((int)(uint)((int)uVar2 != 0) <= -(int)((ulonglong)uVar2 >> 0x20)) {\n    DAT_00074120 = 1;\n    return;\n  }\n  iVar1 = bfd_openr(param_1,param_2);\n  if (iVar1 != 0) {\n    FUN_000196b0();\n    if (param_3 == 0) {\n      bfd_close(iVar1);\n      return;\n    }\n    bfd_close_all_done(iVar1);\n    return;\n  }\n  FUN_00047720(param_1);\n  DAT_00074120 = 1;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined8 uVar2;" (type_identifier "undefined8") (identifier "uVar2") (; ";")) (expression_statement "uVar2 = FUN_00048290(param_1);" (assignment_expression "uVar2 = FUN_00048290(param_1)" (identifier "uVar2") (= "=") (call_expression "FUN_00048290(param_1)" (identifier "FUN_00048290") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if ((int)(uint)((int)uVar2 != 0) <= -(int)((ulonglong)uVar2 >> 0x20)) {\n    DAT_00074120 = 1;\n    return;\n  }" (if "if") (parenthesized_expression "((int)(uint)((int)uVar2 != 0) <= -(int)((ulonglong)uVar2 >> 0x20))" (( "(") (binary_expression "(int)(uint)((int)uVar2 != 0) <= -(int)((ulonglong)uVar2 >> 0x20)" (cast_expression "(int)(uint)((int)uVar2 != 0)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (call_expression "(uint)((int)uVar2 != 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((int)uVar2 != 0)" (( "(") (binary_expression "(int)uVar2 != 0" (cast_expression "(int)uVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar2")) (!= "!=") (number_literal "0")) () ")")))) (<= "<=") (unary_expression "-(int)((ulonglong)uVar2 >> 0x20)" (- "-") (cast_expression "(int)((ulonglong)uVar2 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)uVar2 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar2 >> 0x20" (cast_expression "(ulonglong)uVar2" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar2")) (>> ">>") (number_literal "0x20")) () ")"))))) () ")")) (compound_statement "{\n    DAT_00074120 = 1;\n    return;\n  }" ({ "{") (expression_statement "DAT_00074120 = 1;" (assignment_expression "DAT_00074120 = 1" (identifier "DAT_00074120") (= "=") (number_literal "1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar1 = bfd_openr(param_1,param_2);" (assignment_expression "iVar1 = bfd_openr(param_1,param_2)" (identifier "iVar1") (= "=") (call_expression "bfd_openr(param_1,param_2)" (identifier "bfd_openr") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    FUN_000196b0();\n    if (param_3 == 0) {\n      bfd_close(iVar1);\n      return;\n    }\n    bfd_close_all_done(iVar1);\n    return;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_000196b0();\n    if (param_3 == 0) {\n      bfd_close(iVar1);\n      return;\n    }\n    bfd_close_all_done(iVar1);\n    return;\n  }" ({ "{") (expression_statement "FUN_000196b0();" (call_expression "FUN_000196b0()" (identifier "FUN_000196b0") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (param_3 == 0) {\n      bfd_close(iVar1);\n      return;\n    }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      bfd_close(iVar1);\n      return;\n    }" ({ "{") (expression_statement "bfd_close(iVar1);" (call_expression "bfd_close(iVar1)" (identifier "bfd_close") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "bfd_close_all_done(iVar1);" (call_expression "bfd_close_all_done(iVar1)" (identifier "bfd_close_all_done") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00047720(param_1);" (call_expression "FUN_00047720(param_1)" (identifier "FUN_00047720") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "DAT_00074120 = 1;" (assignment_expression "DAT_00074120 = 1" (identifier "DAT_00074120") (= "=") (number_literal "1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3 function_1(char *filename,char *target,type_1 var_5)

{
  type_2 *var_3;
  type_3 oVar1;
  
  oVar1 = var_1(filename);
  if ((int)(uint)((int)oVar1 != 0) <= -(int)((type_4)oVar1 >> 0x20)) {
    exit_status = 1;
    return;
  }
  var_3 = (type_2 *)var_2(filename,target);
  if (var_3 != (type_2 *)0x0) {
    var_4(var_3,0);
    if (var_5 == 0) {
      var_6(var_3);
      return;
    }
    var_7(var_3);
    return;
  }
  var_8(filename);
  exit_status = 1;
  return;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (unary_expression argument: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (return_statement))))

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

void __regparm3 MASKED(undefined4 param_1,undefined4 param_2,int param_3)

{
  int iVar1;
  undefined8 uVar2;
  
  uVar2 = FUN_00048290(param_1);
  if ((int)(uint)((int)uVar2 != 0) <= -(int)((ulonglong)uVar2 >> 0x20)) {
    DAT_00074120 = 1;
    return;
  }
  iVar1 = bfd_openr(param_1,param_2);
  if (iVar1 != 0) {
    FUN_000196b0();
    if (param_3 == 0) {
      bfd_close(iVar1);
      return;
    }
    bfd_close_all_done(iVar1);
    return;
  }
  FUN_00047720(param_1);
  DAT_00074120 = 1;
  return;
}

