
/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* WARNING: Enum "DT": Some values do not have unique names */
/* WARNING: Enum "ELFOSABI": Some values do not have unique names */
/* DWARF original prototype: bool open_binary(Input_file * this, Task * task, string * name) */

bool __thiscall gold::Input_file::open_binary(Input_file *this,Task *task,string *name)

{
  Target_info *pTVar1;
  uchar *puVar2;
  undefined1 uVar3;
  int iVar4;
  Task *__in_chrg;
  Binary_to_elf binary_to_elf;
  
  parameters_force_valid_target();
  if (parameters->target_ != (Target *)0x0) {
    pTVar1 = parameters->target_->pti_;
    Binary_to_elf::Binary_to_elf
              (&binary_to_elf,pTVar1->machine_code,pTVar1->size,pTVar1->is_big_endian,name);
    __in_chrg = task;
                    /* try { // try from 0023e3a1 to 0023e3f6 has its CatchHandler @ 0023e412 */
    uVar3 = Binary_to_elf::convert(&binary_to_elf,task);
    puVar2 = binary_to_elf.data_;
    if ((bool)uVar3) {
      __in_chrg = (Task *)0x0;
      binary_to_elf.data_ = (uchar *)0x0;
      iVar4 = File_read::open(&this->file_,(char *)task,(int)name,puVar2,binary_to_elf.filesize_);
      uVar3 = (undefined1)iVar4;
    }
    Binary_to_elf::~Binary_to_elf(&binary_to_elf,(int)__in_chrg);
    return (bool)uVar3;
  }
                    /* WARNING: Subroutine does not return */
  do_gold_unreachable("../../gold/parameters.h",0x69,"target");
}



/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

char FUN_0023e350(int param_1,undefined4 param_2,undefined4 param_3)

{
  undefined4 *puVar1;
  undefined4 uVar2;
  char cVar3;
  undefined4 extraout_EDX;
  undefined1 local_48 [36];
  undefined4 local_24;
  undefined4 local_20;
  
  FUN_0030b1b0();
  if (*(int *)(DAT_005ea7c8 + 0xc) != 0) {
    puVar1 = *(undefined4 **)(*(int *)(DAT_005ea7c8 + 0xc) + 4);
    FUN_00369800(local_48,puVar1[2],*puVar1,*(undefined1 *)(puVar1 + 1),param_3);
                    /* try { // try from 0023e3a1 to 0023e3f6 has its CatchHandler @ 0023e412 */
    cVar3 = FUN_00369850(local_48,param_2);
    uVar2 = local_24;
    if (cVar3 != '\0') {
      local_24 = 0;
      cVar3 = FUN_0023e250(param_1 + 0x1c,param_2,param_3,uVar2,local_20,0);
    }
    FUN_003697b0(local_48);
    return cVar3;
  }
                    /* WARNING: Subroutine does not return */
  FUN_002446e0("../../gold/parameters.h",0x69,"target",extraout_EDX);
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
PUSH ESI
CALL 0x00063c76
ADD ESI,0x3abca6
PUSH EBX
SUB ESP,0x4c
MOV EBX,ESI
CALL 0x0030b1b0
LEA EAX,[ESI + 0x7c8]
MOV EAX,dword ptr [EAX]
MOV EAX,dword ptr [EAX + 0xc]
TEST EAX,EAX
JZ 0x0023e3fc
MOV EAX,dword ptr [EAX + 0x4]
SUB ESP,0xc
LEA EDI,[EBP + -0x44]
PUSH dword ptr [EBP + 0x10]
MOVZX EDX,byte ptr [EAX + 0x4]
PUSH EDX
PUSH dword ptr [EAX]
PUSH dword ptr [EAX + 0x8]
PUSH EDI
CALL 0x00369800
ADD ESP,0x18
PUSH dword ptr [EBP + 0xc]
PUSH EDI
CALL 0x00369850
ADD ESP,0x10
TEST AL,AL
JNZ 0x0023e3d0
SUB ESP,0xc
MOV EBX,ESI
MOV byte ptr [EBP + -0x4c],AL
PUSH EDI
CALL 0x003697b0
MOVZX EAX,byte ptr [EBP + -0x4c]
ADD ESP,0x10
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [EBP + -0x20]
MOV ECX,dword ptr [EBP + -0x1c]
SUB ESP,0x8
XOR EBX,EBX
PUSH EBX
PUSH ECX
PUSH EAX
MOV EAX,dword ptr [EBP + 0x8]
PUSH dword ptr [EBP + 0x10]
ADD EAX,0x1c
PUSH dword ptr [EBP + 0xc]
PUSH EAX
MOV dword ptr [EBP + -0x20],0x0
CALL 0x0023e250
ADD ESP,0x20
JMP 0x0023e3ad
LEA EAX,[ESI + 0xffe9cb98]
PUSH EDX
PUSH EAX
LEA EAX,[ESI + 0xffe5e26d]
PUSH 0x69
PUSH EAX
CALL 0x002446e0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nchar FUN_0023e350(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  char cVar3;\n  undefined4 extraout_EDX;\n  undefined1 local_48 [36];\n  undefined4 local_24;\n  undefined4 local_20;\n  \n  FUN_0030b1b0();\n  if (*(int *)(DAT_005ea7c8 + 0xc) != 0) {\n    puVar1 = *(undefined4 **)(*(int *)(DAT_005ea7c8 + 0xc) + 4);\n    FUN_00369800(local_48,puVar1[2],*puVar1,*(undefined1 *)(puVar1 + 1),param_3);\n                    /* try { // try from 0023e3a1 to 0023e3f6 has its CatchHandler @ 0023e412 */\n    cVar3 = FUN_00369850(local_48,param_2);\n    uVar2 = local_24;\n    if (cVar3 != '\0') {\n      local_24 = 0;\n      cVar3 = FUN_0023e250(param_1 + 0x1c,param_2,param_3,uVar2,local_20,0);\n    }\n    FUN_003697b0(local_48);\n    return cVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_002446e0("../../gold/parameters.h",0x69,"target",extraout_EDX);\n}\n\n" comment (function_definition "char FUN_0023e350(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  char cVar3;\n  undefined4 extraout_EDX;\n  undefined1 local_48 [36];\n  undefined4 local_24;\n  undefined4 local_20;\n  \n  FUN_0030b1b0();\n  if (*(int *)(DAT_005ea7c8 + 0xc) != 0) {\n    puVar1 = *(undefined4 **)(*(int *)(DAT_005ea7c8 + 0xc) + 4);\n    FUN_00369800(local_48,puVar1[2],*puVar1,*(undefined1 *)(puVar1 + 1),param_3);\n                    /* try { // try from 0023e3a1 to 0023e3f6 has its CatchHandler @ 0023e412 */\n    cVar3 = FUN_00369850(local_48,param_2);\n    uVar2 = local_24;\n    if (cVar3 != '\0') {\n      local_24 = 0;\n      cVar3 = FUN_0023e250(param_1 + 0x1c,param_2,param_3,uVar2,local_20,0);\n    }\n    FUN_003697b0(local_48);\n    return cVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_002446e0("../../gold/parameters.h",0x69,"target",extraout_EDX);\n}" primitive_type (function_declarator "FUN_0023e350(int param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  char cVar3;\n  undefined4 extraout_EDX;\n  undefined1 local_48 [36];\n  undefined4 local_24;\n  undefined4 local_20;\n  \n  FUN_0030b1b0();\n  if (*(int *)(DAT_005ea7c8 + 0xc) != 0) {\n    puVar1 = *(undefined4 **)(*(int *)(DAT_005ea7c8 + 0xc) + 4);\n    FUN_00369800(local_48,puVar1[2],*puVar1,*(undefined1 *)(puVar1 + 1),param_3);\n                    /* try { // try from 0023e3a1 to 0023e3f6 has its CatchHandler @ 0023e412 */\n    cVar3 = FUN_00369850(local_48,param_2);\n    uVar2 = local_24;\n    if (cVar3 != '\0') {\n      local_24 = 0;\n      cVar3 = FUN_0023e250(param_1 + 0x1c,param_2,param_3,uVar2,local_20,0);\n    }\n    FUN_003697b0(local_48);\n    return cVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_002446e0("../../gold/parameters.h",0x69,"target",extraout_EDX);\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "char cVar3;" primitive_type identifier ;) (declaration "undefined4 extraout_EDX;" type_identifier identifier ;) (declaration "undefined1 local_48 [36];" type_identifier (array_declarator "local_48 [36]" identifier [ number_literal ]) ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (expression_statement "FUN_0030b1b0();" (call_expression "FUN_0030b1b0()" identifier (argument_list "()" ( ))) ;) (if_statement "if (*(int *)(DAT_005ea7c8 + 0xc) != 0) {\n    puVar1 = *(undefined4 **)(*(int *)(DAT_005ea7c8 + 0xc) + 4);\n    FUN_00369800(local_48,puVar1[2],*puVar1,*(undefined1 *)(puVar1 + 1),param_3);\n                    /* try { // try from 0023e3a1 to 0023e3f6 has its CatchHandler @ 0023e412 */\n    cVar3 = FUN_00369850(local_48,param_2);\n    uVar2 = local_24;\n    if (cVar3 != '\0') {\n      local_24 = 0;\n      cVar3 = FUN_0023e250(param_1 + 0x1c,param_2,param_3,uVar2,local_20,0);\n    }\n    FUN_003697b0(local_48);\n    return cVar3;\n  }" if (parenthesized_expression "(*(int *)(DAT_005ea7c8 + 0xc) != 0)" ( (binary_expression "*(int *)(DAT_005ea7c8 + 0xc) != 0" (pointer_expression "*(int *)(DAT_005ea7c8 + 0xc)" * (cast_expression "(int *)(DAT_005ea7c8 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_005ea7c8 + 0xc)" ( (binary_expression "DAT_005ea7c8 + 0xc" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    puVar1 = *(undefined4 **)(*(int *)(DAT_005ea7c8 + 0xc) + 4);\n    FUN_00369800(local_48,puVar1[2],*puVar1,*(undefined1 *)(puVar1 + 1),param_3);\n                    /* try { // try from 0023e3a1 to 0023e3f6 has its CatchHandler @ 0023e412 */\n    cVar3 = FUN_00369850(local_48,param_2);\n    uVar2 = local_24;\n    if (cVar3 != '\0') {\n      local_24 = 0;\n      cVar3 = FUN_0023e250(param_1 + 0x1c,param_2,param_3,uVar2,local_20,0);\n    }\n    FUN_003697b0(local_48);\n    return cVar3;\n  }" { (expression_statement "puVar1 = *(undefined4 **)(*(int *)(DAT_005ea7c8 + 0xc) + 4);" (assignment_expression "puVar1 = *(undefined4 **)(*(int *)(DAT_005ea7c8 + 0xc) + 4)" identifier = (pointer_expression "*(undefined4 **)(*(int *)(DAT_005ea7c8 + 0xc) + 4)" * (cast_expression "(undefined4 **)(*(int *)(DAT_005ea7c8 + 0xc) + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(DAT_005ea7c8 + 0xc) + 4)" ( (binary_expression "*(int *)(DAT_005ea7c8 + 0xc) + 4" (pointer_expression "*(int *)(DAT_005ea7c8 + 0xc)" * (cast_expression "(int *)(DAT_005ea7c8 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_005ea7c8 + 0xc)" ( (binary_expression "DAT_005ea7c8 + 0xc" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "FUN_00369800(local_48,puVar1[2],*puVar1,*(undefined1 *)(puVar1 + 1),param_3);" (call_expression "FUN_00369800(local_48,puVar1[2],*puVar1,*(undefined1 *)(puVar1 + 1),param_3)" identifier (argument_list "(local_48,puVar1[2],*puVar1,*(undefined1 *)(puVar1 + 1),param_3)" ( identifier , (subscript_expression "puVar1[2]" identifier [ number_literal ]) , (pointer_expression "*puVar1" * identifier) , (pointer_expression "*(undefined1 *)(puVar1 + 1)" * (cast_expression "(undefined1 *)(puVar1 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 1)" ( (binary_expression "puVar1 + 1" identifier + number_literal) )))) , identifier ))) ;) comment (expression_statement "cVar3 = FUN_00369850(local_48,param_2);" (assignment_expression "cVar3 = FUN_00369850(local_48,param_2)" identifier = (call_expression "FUN_00369850(local_48,param_2)" identifier (argument_list "(local_48,param_2)" ( identifier , identifier )))) ;) (expression_statement "uVar2 = local_24;" (assignment_expression "uVar2 = local_24" identifier = identifier) ;) (if_statement "if (cVar3 != '\0') {\n      local_24 = 0;\n      cVar3 = FUN_0023e250(param_1 + 0x1c,param_2,param_3,uVar2,local_20,0);\n    }" if (parenthesized_expression "(cVar3 != '\0')" ( (binary_expression "cVar3 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      local_24 = 0;\n      cVar3 = FUN_0023e250(param_1 + 0x1c,param_2,param_3,uVar2,local_20,0);\n    }" { (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "cVar3 = FUN_0023e250(param_1 + 0x1c,param_2,param_3,uVar2,local_20,0);" (assignment_expression "cVar3 = FUN_0023e250(param_1 + 0x1c,param_2,param_3,uVar2,local_20,0)" identifier = (call_expression "FUN_0023e250(param_1 + 0x1c,param_2,param_3,uVar2,local_20,0)" identifier (argument_list "(param_1 + 0x1c,param_2,param_3,uVar2,local_20,0)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) , identifier , identifier , identifier , identifier , number_literal )))) ;) })) (expression_statement "FUN_003697b0(local_48);" (call_expression "FUN_003697b0(local_48)" identifier (argument_list "(local_48)" ( identifier ))) ;) (return_statement "return cVar3;" return identifier ;) })) comment (expression_statement "FUN_002446e0("../../gold/parameters.h",0x69,"target",extraout_EDX);" (call_expression "FUN_002446e0("../../gold/parameters.h",0x69,"target",extraout_EDX)" identifier (argument_list "("../../gold/parameters.h",0x69,"target",extraout_EDX)" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""target"" " string_content ") , identifier ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n/* WARNING: Enum "DT": Some values do not have unique names */\n/* WARNING: Enum "ELFOSABI": Some values do not have unique names */\n/* DWARF original prototype: bool open_binary(Input_file * this, Task * task, string * name) */\n\nbool __thiscall gold::Input_file::open_binary(Input_file *this,Task *task,string *name)\n\n{\n  Target_info *pTVar1;\n  uchar *puVar2;\n  undefined1 uVar3;\n  int iVar4;\n  Task *__in_chrg;\n  Binary_to_elf binary_to_elf;\n  \n  parameters_force_valid_target();\n  if (parameters->target_ != (Target *)0x0) {\n    pTVar1 = parameters->target_->pti_;\n    Binary_to_elf::Binary_to_elf\n              (&binary_to_elf,pTVar1->machine_code,pTVar1->size,pTVar1->is_big_endian,name);\n    __in_chrg = task;\n                    /* try { // try from 0023e3a1 to 0023e3f6 has its CatchHandler @ 0023e412 */\n    uVar3 = Binary_to_elf::convert(&binary_to_elf,task);\n    puVar2 = binary_to_elf.data_;\n    if ((bool)uVar3) {\n      __in_chrg = (Task *)0x0;\n      binary_to_elf.data_ = (uchar *)0x0;\n      iVar4 = File_read::open(&this->file_,(char *)task,(int)name,puVar2,binary_to_elf.filesize_);\n      uVar3 = (undefined1)iVar4;\n    }\n    Binary_to_elf::~Binary_to_elf(&binary_to_elf,(int)__in_chrg);\n    return (bool)uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/parameters.h",0x69,"target");\n}\n\n" comment comment comment comment (function_definition "bool __thiscall gold::Input_file::open_binary(Input_file *this,Task *task,string *name)\n\n{\n  Target_info *pTVar1;\n  uchar *puVar2;\n  undefined1 uVar3;\n  int iVar4;\n  Task *__in_chrg;\n  Binary_to_elf binary_to_elf;\n  \n  parameters_force_valid_target();\n  if (parameters->target_ != (Target *)0x0) {\n    pTVar1 = parameters->target_->pti_;\n    Binary_to_elf::Binary_to_elf\n              (&binary_to_elf,pTVar1->machine_code,pTVar1->size,pTVar1->is_big_endian,name);\n    __in_chrg = task;\n                    /* try { // try from 0023e3a1 to 0023e3f6 has its CatchHandler @ 0023e412 */\n    uVar3 = Binary_to_elf::convert(&binary_to_elf,task);\n    puVar2 = binary_to_elf.data_;\n    if ((bool)uVar3) {\n      __in_chrg = (Task *)0x0;\n      binary_to_elf.data_ = (uchar *)0x0;\n      iVar4 = File_read::open(&this->file_,(char *)task,(int)name,puVar2,binary_to_elf.filesize_);\n      uVar3 = (undefined1)iVar4;\n    }\n    Binary_to_elf::~Binary_to_elf(&binary_to_elf,(int)__in_chrg);\n    return (bool)uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/parameters.h",0x69,"target");\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Input_file::" identifier : : identifier : :) (function_declarator "open_binary(Input_file *this,Task *task,string *name)" identifier (parameter_list "(Input_file *this,Task *task,string *name)" ( (parameter_declaration "Input_file *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "Task *task" type_identifier (pointer_declarator "*task" * identifier)) , (parameter_declaration "string *name" type_identifier (pointer_declarator "*name" * identifier)) ))) (compound_statement "{\n  Target_info *pTVar1;\n  uchar *puVar2;\n  undefined1 uVar3;\n  int iVar4;\n  Task *__in_chrg;\n  Binary_to_elf binary_to_elf;\n  \n  parameters_force_valid_target();\n  if (parameters->target_ != (Target *)0x0) {\n    pTVar1 = parameters->target_->pti_;\n    Binary_to_elf::Binary_to_elf\n              (&binary_to_elf,pTVar1->machine_code,pTVar1->size,pTVar1->is_big_endian,name);\n    __in_chrg = task;\n                    /* try { // try from 0023e3a1 to 0023e3f6 has its CatchHandler @ 0023e412 */\n    uVar3 = Binary_to_elf::convert(&binary_to_elf,task);\n    puVar2 = binary_to_elf.data_;\n    if ((bool)uVar3) {\n      __in_chrg = (Task *)0x0;\n      binary_to_elf.data_ = (uchar *)0x0;\n      iVar4 = File_read::open(&this->file_,(char *)task,(int)name,puVar2,binary_to_elf.filesize_);\n      uVar3 = (undefined1)iVar4;\n    }\n    Binary_to_elf::~Binary_to_elf(&binary_to_elf,(int)__in_chrg);\n    return (bool)uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/parameters.h",0x69,"target");\n}" { (declaration "Target_info *pTVar1;" type_identifier (pointer_declarator "*pTVar1" * identifier) ;) (declaration "uchar *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined1 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "Task *__in_chrg;" type_identifier (pointer_declarator "*__in_chrg" * identifier) ;) (declaration "Binary_to_elf binary_to_elf;" type_identifier identifier ;) (expression_statement "parameters_force_valid_target();" (call_expression "parameters_force_valid_target()" identifier (argument_list "()" ( ))) ;) (if_statement "if (parameters->target_ != (Target *)0x0) {\n    pTVar1 = parameters->target_->pti_;\n    Binary_to_elf::Binary_to_elf\n              (&binary_to_elf,pTVar1->machine_code,pTVar1->size,pTVar1->is_big_endian,name);\n    __in_chrg = task;\n                    /* try { // try from 0023e3a1 to 0023e3f6 has its CatchHandler @ 0023e412 */\n    uVar3 = Binary_to_elf::convert(&binary_to_elf,task);\n    puVar2 = binary_to_elf.data_;\n    if ((bool)uVar3) {\n      __in_chrg = (Task *)0x0;\n      binary_to_elf.data_ = (uchar *)0x0;\n      iVar4 = File_read::open(&this->file_,(char *)task,(int)name,puVar2,binary_to_elf.filesize_);\n      uVar3 = (undefined1)iVar4;\n    }\n    Binary_to_elf::~Binary_to_elf(&binary_to_elf,(int)__in_chrg);\n    return (bool)uVar3;\n  }" if (parenthesized_expression "(parameters->target_ != (Target *)0x0)" ( (binary_expression "parameters->target_ != (Target *)0x0" (field_expression "parameters->target_" identifier -> field_identifier) != (cast_expression "(Target *)0x0" ( (type_descriptor "Target *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pTVar1 = parameters->target_->pti_;\n    Binary_to_elf::Binary_to_elf\n              (&binary_to_elf,pTVar1->machine_code,pTVar1->size,pTVar1->is_big_endian,name);\n    __in_chrg = task;\n                    /* try { // try from 0023e3a1 to 0023e3f6 has its CatchHandler @ 0023e412 */\n    uVar3 = Binary_to_elf::convert(&binary_to_elf,task);\n    puVar2 = binary_to_elf.data_;\n    if ((bool)uVar3) {\n      __in_chrg = (Task *)0x0;\n      binary_to_elf.data_ = (uchar *)0x0;\n      iVar4 = File_read::open(&this->file_,(char *)task,(int)name,puVar2,binary_to_elf.filesize_);\n      uVar3 = (undefined1)iVar4;\n    }\n    Binary_to_elf::~Binary_to_elf(&binary_to_elf,(int)__in_chrg);\n    return (bool)uVar3;\n  }" { (expression_statement "pTVar1 = parameters->target_->pti_;" (assignment_expression "pTVar1 = parameters->target_->pti_" identifier = (field_expression "parameters->target_->pti_" (field_expression "parameters->target_" identifier -> field_identifier) -> field_identifier)) ;) (labeled_statement "Binary_to_elf::Binary_to_elf\n              (&binary_to_elf,pTVar1->machine_code,pTVar1->size,pTVar1->is_big_endian,name);" statement_identifier : (ERROR ":" :) (expression_statement "Binary_to_elf\n              (&binary_to_elf,pTVar1->machine_code,pTVar1->size,pTVar1->is_big_endian,name);" (call_expression "Binary_to_elf\n              (&binary_to_elf,pTVar1->machine_code,pTVar1->size,pTVar1->is_big_endian,name)" identifier (argument_list "(&binary_to_elf,pTVar1->machine_code,pTVar1->size,pTVar1->is_big_endian,name)" ( (pointer_expression "&binary_to_elf" & identifier) , (field_expression "pTVar1->machine_code" identifier -> field_identifier) , (field_expression "pTVar1->size" identifier -> field_identifier) , (field_expression "pTVar1->is_big_endian" identifier -> field_identifier) , identifier ))) ;)) (expression_statement "__in_chrg = task;" (assignment_expression "__in_chrg = task" identifier = identifier) ;) comment (ERROR "uVar3 = Binary_to_elf::" (assignment_expression "uVar3 = Binary_to_elf" identifier = identifier) : :) (expression_statement "convert(&binary_to_elf,task);" (call_expression "convert(&binary_to_elf,task)" identifier (argument_list "(&binary_to_elf,task)" ( (pointer_expression "&binary_to_elf" & identifier) , identifier ))) ;) (expression_statement "puVar2 = binary_to_elf.data_;" (assignment_expression "puVar2 = binary_to_elf.data_" identifier = (field_expression "binary_to_elf.data_" identifier . field_identifier)) ;) (if_statement "if ((bool)uVar3) {\n      __in_chrg = (Task *)0x0;\n      binary_to_elf.data_ = (uchar *)0x0;\n      iVar4 = File_read::open(&this->file_,(char *)task,(int)name,puVar2,binary_to_elf.filesize_);\n      uVar3 = (undefined1)iVar4;\n    }" if (parenthesized_expression "((bool)uVar3)" ( (cast_expression "(bool)uVar3" ( (type_descriptor "bool" primitive_type) ) identifier) )) (compound_statement "{\n      __in_chrg = (Task *)0x0;\n      binary_to_elf.data_ = (uchar *)0x0;\n      iVar4 = File_read::open(&this->file_,(char *)task,(int)name,puVar2,binary_to_elf.filesize_);\n      uVar3 = (undefined1)iVar4;\n    }" { (expression_statement "__in_chrg = (Task *)0x0;" (assignment_expression "__in_chrg = (Task *)0x0" identifier = (cast_expression "(Task *)0x0" ( (type_descriptor "Task *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "binary_to_elf.data_ = (uchar *)0x0;" (assignment_expression "binary_to_elf.data_ = (uchar *)0x0" (field_expression "binary_to_elf.data_" identifier . field_identifier) = (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (ERROR "iVar4 = File_read::" (assignment_expression "iVar4 = File_read" identifier = identifier) : :) (expression_statement "open(&this->file_,(char *)task,(int)name,puVar2,binary_to_elf.filesize_);" (call_expression "open(&this->file_,(char *)task,(int)name,puVar2,binary_to_elf.filesize_)" identifier (argument_list "(&this->file_,(char *)task,(int)name,puVar2,binary_to_elf.filesize_)" ( (pointer_expression "&this->file_" & (field_expression "this->file_" identifier -> field_identifier)) , (cast_expression "(char *)task" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(int)name" ( (type_descriptor "int" primitive_type) ) identifier) , identifier , (field_expression "binary_to_elf.filesize_" identifier . field_identifier) ))) ;) (expression_statement "uVar3 = (undefined1)iVar4;" (assignment_expression "uVar3 = (undefined1)iVar4" identifier = (cast_expression "(undefined1)iVar4" ( (type_descriptor "undefined1" type_identifier) ) identifier)) ;) })) (labeled_statement "Binary_to_elf::~Binary_to_elf(&binary_to_elf,(int)__in_chrg);" statement_identifier : (ERROR ":" :) (expression_statement "~Binary_to_elf(&binary_to_elf,(int)__in_chrg);" (unary_expression "~Binary_to_elf(&binary_to_elf,(int)__in_chrg)" ~ (call_expression "Binary_to_elf(&binary_to_elf,(int)__in_chrg)" identifier (argument_list "(&binary_to_elf,(int)__in_chrg)" ( (pointer_expression "&binary_to_elf" & identifier) , (cast_expression "(int)__in_chrg" ( (type_descriptor "int" primitive_type) ) identifier) )))) ;)) (return_statement "return (bool)uVar3;" return (cast_expression "(bool)uVar3" ( (type_descriptor "bool" primitive_type) ) identifier) ;) })) comment (expression_statement "do_gold_unreachable("../../gold/parameters.h",0x69,"target");" (call_expression "do_gold_unreachable("../../gold/parameters.h",0x69,"target")" identifier (argument_list "("../../gold/parameters.h",0x69,"target")" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""target"" " string_content ") ))) ;) })))
(translation_unit "char FUN_0023e350(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  char cVar3;\n  undefined4 extraout_EDX;\n  undefined1 local_48 [36];\n  undefined4 local_24;\n  undefined4 local_20;\n  \n  FUN_0030b1b0();\n  if (*(int *)(DAT_005ea7c8 + 0xc) != 0) {\n    puVar1 = *(undefined4 **)(*(int *)(DAT_005ea7c8 + 0xc) + 4);\n    FUN_00369800(local_48,puVar1[2],*puVar1,*(undefined1 *)(puVar1 + 1),param_3);\n                    \n    cVar3 = FUN_00369850(local_48,param_2);\n    uVar2 = local_24;\n    if (cVar3 != '\0') {\n      local_24 = 0;\n      cVar3 = FUN_0023e250(param_1 + 0x1c,param_2,param_3,uVar2,local_20,0);\n    }\n    FUN_003697b0(local_48);\n    return cVar3;\n  }\n                    \n  FUN_002446e0("../../gold/parameters.h",0x69,"target",extraout_EDX);\n}\n\n" (function_definition "char FUN_0023e350(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  char cVar3;\n  undefined4 extraout_EDX;\n  undefined1 local_48 [36];\n  undefined4 local_24;\n  undefined4 local_20;\n  \n  FUN_0030b1b0();\n  if (*(int *)(DAT_005ea7c8 + 0xc) != 0) {\n    puVar1 = *(undefined4 **)(*(int *)(DAT_005ea7c8 + 0xc) + 4);\n    FUN_00369800(local_48,puVar1[2],*puVar1,*(undefined1 *)(puVar1 + 1),param_3);\n                    \n    cVar3 = FUN_00369850(local_48,param_2);\n    uVar2 = local_24;\n    if (cVar3 != '\0') {\n      local_24 = 0;\n      cVar3 = FUN_0023e250(param_1 + 0x1c,param_2,param_3,uVar2,local_20,0);\n    }\n    FUN_003697b0(local_48);\n    return cVar3;\n  }\n                    \n  FUN_002446e0("../../gold/parameters.h",0x69,"target",extraout_EDX);\n}" primitive_type (function_declarator "FUN_0023e350(int param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  char cVar3;\n  undefined4 extraout_EDX;\n  undefined1 local_48 [36];\n  undefined4 local_24;\n  undefined4 local_20;\n  \n  FUN_0030b1b0();\n  if (*(int *)(DAT_005ea7c8 + 0xc) != 0) {\n    puVar1 = *(undefined4 **)(*(int *)(DAT_005ea7c8 + 0xc) + 4);\n    FUN_00369800(local_48,puVar1[2],*puVar1,*(undefined1 *)(puVar1 + 1),param_3);\n                    \n    cVar3 = FUN_00369850(local_48,param_2);\n    uVar2 = local_24;\n    if (cVar3 != '\0') {\n      local_24 = 0;\n      cVar3 = FUN_0023e250(param_1 + 0x1c,param_2,param_3,uVar2,local_20,0);\n    }\n    FUN_003697b0(local_48);\n    return cVar3;\n  }\n                    \n  FUN_002446e0("../../gold/parameters.h",0x69,"target",extraout_EDX);\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "char cVar3;" primitive_type identifier ;) (declaration "undefined4 extraout_EDX;" type_identifier identifier ;) (declaration "undefined1 local_48 [36];" type_identifier (array_declarator "local_48 [36]" identifier [ number_literal ]) ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (expression_statement "FUN_0030b1b0();" (call_expression "FUN_0030b1b0()" identifier (argument_list "()" ( ))) ;) (if_statement "if (*(int *)(DAT_005ea7c8 + 0xc) != 0) {\n    puVar1 = *(undefined4 **)(*(int *)(DAT_005ea7c8 + 0xc) + 4);\n    FUN_00369800(local_48,puVar1[2],*puVar1,*(undefined1 *)(puVar1 + 1),param_3);\n                    \n    cVar3 = FUN_00369850(local_48,param_2);\n    uVar2 = local_24;\n    if (cVar3 != '\0') {\n      local_24 = 0;\n      cVar3 = FUN_0023e250(param_1 + 0x1c,param_2,param_3,uVar2,local_20,0);\n    }\n    FUN_003697b0(local_48);\n    return cVar3;\n  }" if (parenthesized_expression "(*(int *)(DAT_005ea7c8 + 0xc) != 0)" ( (binary_expression "*(int *)(DAT_005ea7c8 + 0xc) != 0" (pointer_expression "*(int *)(DAT_005ea7c8 + 0xc)" * (cast_expression "(int *)(DAT_005ea7c8 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_005ea7c8 + 0xc)" ( (binary_expression "DAT_005ea7c8 + 0xc" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    puVar1 = *(undefined4 **)(*(int *)(DAT_005ea7c8 + 0xc) + 4);\n    FUN_00369800(local_48,puVar1[2],*puVar1,*(undefined1 *)(puVar1 + 1),param_3);\n                    \n    cVar3 = FUN_00369850(local_48,param_2);\n    uVar2 = local_24;\n    if (cVar3 != '\0') {\n      local_24 = 0;\n      cVar3 = FUN_0023e250(param_1 + 0x1c,param_2,param_3,uVar2,local_20,0);\n    }\n    FUN_003697b0(local_48);\n    return cVar3;\n  }" { (expression_statement "puVar1 = *(undefined4 **)(*(int *)(DAT_005ea7c8 + 0xc) + 4);" (assignment_expression "puVar1 = *(undefined4 **)(*(int *)(DAT_005ea7c8 + 0xc) + 4)" identifier = (pointer_expression "*(undefined4 **)(*(int *)(DAT_005ea7c8 + 0xc) + 4)" * (cast_expression "(undefined4 **)(*(int *)(DAT_005ea7c8 + 0xc) + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(DAT_005ea7c8 + 0xc) + 4)" ( (binary_expression "*(int *)(DAT_005ea7c8 + 0xc) + 4" (pointer_expression "*(int *)(DAT_005ea7c8 + 0xc)" * (cast_expression "(int *)(DAT_005ea7c8 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_005ea7c8 + 0xc)" ( (binary_expression "DAT_005ea7c8 + 0xc" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "FUN_00369800(local_48,puVar1[2],*puVar1,*(undefined1 *)(puVar1 + 1),param_3);" (call_expression "FUN_00369800(local_48,puVar1[2],*puVar1,*(undefined1 *)(puVar1 + 1),param_3)" identifier (argument_list "(local_48,puVar1[2],*puVar1,*(undefined1 *)(puVar1 + 1),param_3)" ( identifier , (subscript_expression "puVar1[2]" identifier [ number_literal ]) , (pointer_expression "*puVar1" * identifier) , (pointer_expression "*(undefined1 *)(puVar1 + 1)" * (cast_expression "(undefined1 *)(puVar1 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 1)" ( (binary_expression "puVar1 + 1" identifier + number_literal) )))) , identifier ))) ;) (expression_statement "cVar3 = FUN_00369850(local_48,param_2);" (assignment_expression "cVar3 = FUN_00369850(local_48,param_2)" identifier = (call_expression "FUN_00369850(local_48,param_2)" identifier (argument_list "(local_48,param_2)" ( identifier , identifier )))) ;) (expression_statement "uVar2 = local_24;" (assignment_expression "uVar2 = local_24" identifier = identifier) ;) (if_statement "if (cVar3 != '\0') {\n      local_24 = 0;\n      cVar3 = FUN_0023e250(param_1 + 0x1c,param_2,param_3,uVar2,local_20,0);\n    }" if (parenthesized_expression "(cVar3 != '\0')" ( (binary_expression "cVar3 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      local_24 = 0;\n      cVar3 = FUN_0023e250(param_1 + 0x1c,param_2,param_3,uVar2,local_20,0);\n    }" { (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "cVar3 = FUN_0023e250(param_1 + 0x1c,param_2,param_3,uVar2,local_20,0);" (assignment_expression "cVar3 = FUN_0023e250(param_1 + 0x1c,param_2,param_3,uVar2,local_20,0)" identifier = (call_expression "FUN_0023e250(param_1 + 0x1c,param_2,param_3,uVar2,local_20,0)" identifier (argument_list "(param_1 + 0x1c,param_2,param_3,uVar2,local_20,0)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) , identifier , identifier , identifier , identifier , number_literal )))) ;) })) (expression_statement "FUN_003697b0(local_48);" (call_expression "FUN_003697b0(local_48)" identifier (argument_list "(local_48)" ( identifier ))) ;) (return_statement "return cVar3;" return identifier ;) })) (expression_statement "FUN_002446e0("../../gold/parameters.h",0x69,"target",extraout_EDX);" (call_expression "FUN_002446e0("../../gold/parameters.h",0x69,"target",extraout_EDX)" identifier (argument_list "("../../gold/parameters.h",0x69,"target",extraout_EDX)" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""target"" " string_content ") , identifier ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (subscript_expression IDENT [ LIT ]) , (pointer_expression * IDENT) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT , IDENT , IDENT , LIT )))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , IDENT ))) ;) })))
(function_definition "char FUN_0023e350(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  char cVar3;\n  undefined4 extraout_EDX;\n  undefined1 local_48 [36];\n  undefined4 local_24;\n  undefined4 local_20;\n  \n  FUN_0030b1b0();\n  if (*(int *)(DAT_005ea7c8 + 0xc) != 0) {\n    puVar1 = *(undefined4 **)(*(int *)(DAT_005ea7c8 + 0xc) + 4);\n    FUN_00369800(local_48,puVar1[2],*puVar1,*(undefined1 *)(puVar1 + 1),param_3);\n                    \n    cVar3 = FUN_00369850(local_48,param_2);\n    uVar2 = local_24;\n    if (cVar3 != '\0') {\n      local_24 = 0;\n      cVar3 = FUN_0023e250(param_1 + 0x1c,param_2,param_3,uVar2,local_20,0);\n    }\n    FUN_003697b0(local_48);\n    return cVar3;\n  }\n                    \n  FUN_002446e0("../../gold/parameters.h",0x69,"target",extraout_EDX);\n}" (primitive_type "char") (function_declarator "FUN_0023e350(int param_1,undefined4 param_2,undefined4 param_3)" (identifier "FUN_0023e350") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  char cVar3;\n  undefined4 extraout_EDX;\n  undefined1 local_48 [36];\n  undefined4 local_24;\n  undefined4 local_20;\n  \n  FUN_0030b1b0();\n  if (*(int *)(DAT_005ea7c8 + 0xc) != 0) {\n    puVar1 = *(undefined4 **)(*(int *)(DAT_005ea7c8 + 0xc) + 4);\n    FUN_00369800(local_48,puVar1[2],*puVar1,*(undefined1 *)(puVar1 + 1),param_3);\n                    \n    cVar3 = FUN_00369850(local_48,param_2);\n    uVar2 = local_24;\n    if (cVar3 != '\0') {\n      local_24 = 0;\n      cVar3 = FUN_0023e250(param_1 + 0x1c,param_2,param_3,uVar2,local_20,0);\n    }\n    FUN_003697b0(local_48);\n    return cVar3;\n  }\n                    \n  FUN_002446e0("../../gold/parameters.h",0x69,"target",extraout_EDX);\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "char cVar3;" (primitive_type "char") (identifier "cVar3") (; ";")) (declaration "undefined4 extraout_EDX;" (type_identifier "undefined4") (identifier "extraout_EDX") (; ";")) (declaration "undefined1 local_48 [36];" (type_identifier "undefined1") (array_declarator "local_48 [36]" (identifier "local_48") ([ "[") (number_literal "36") (] "]")) (; ";")) (declaration "undefined4 local_24;" (type_identifier "undefined4") (identifier "local_24") (; ";")) (declaration "undefined4 local_20;" (type_identifier "undefined4") (identifier "local_20") (; ";")) (expression_statement "FUN_0030b1b0();" (call_expression "FUN_0030b1b0()" (identifier "FUN_0030b1b0") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (*(int *)(DAT_005ea7c8 + 0xc) != 0) {\n    puVar1 = *(undefined4 **)(*(int *)(DAT_005ea7c8 + 0xc) + 4);\n    FUN_00369800(local_48,puVar1[2],*puVar1,*(undefined1 *)(puVar1 + 1),param_3);\n                    \n    cVar3 = FUN_00369850(local_48,param_2);\n    uVar2 = local_24;\n    if (cVar3 != '\0') {\n      local_24 = 0;\n      cVar3 = FUN_0023e250(param_1 + 0x1c,param_2,param_3,uVar2,local_20,0);\n    }\n    FUN_003697b0(local_48);\n    return cVar3;\n  }" (if "if") (parenthesized_expression "(*(int *)(DAT_005ea7c8 + 0xc) != 0)" (( "(") (binary_expression "*(int *)(DAT_005ea7c8 + 0xc) != 0" (pointer_expression "*(int *)(DAT_005ea7c8 + 0xc)" (* "*") (cast_expression "(int *)(DAT_005ea7c8 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_005ea7c8 + 0xc)" (( "(") (binary_expression "DAT_005ea7c8 + 0xc" (identifier "DAT_005ea7c8") (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    puVar1 = *(undefined4 **)(*(int *)(DAT_005ea7c8 + 0xc) + 4);\n    FUN_00369800(local_48,puVar1[2],*puVar1,*(undefined1 *)(puVar1 + 1),param_3);\n                    \n    cVar3 = FUN_00369850(local_48,param_2);\n    uVar2 = local_24;\n    if (cVar3 != '\0') {\n      local_24 = 0;\n      cVar3 = FUN_0023e250(param_1 + 0x1c,param_2,param_3,uVar2,local_20,0);\n    }\n    FUN_003697b0(local_48);\n    return cVar3;\n  }" ({ "{") (expression_statement "puVar1 = *(undefined4 **)(*(int *)(DAT_005ea7c8 + 0xc) + 4);" (assignment_expression "puVar1 = *(undefined4 **)(*(int *)(DAT_005ea7c8 + 0xc) + 4)" (identifier "puVar1") (= "=") (pointer_expression "*(undefined4 **)(*(int *)(DAT_005ea7c8 + 0xc) + 4)" (* "*") (cast_expression "(undefined4 **)(*(int *)(DAT_005ea7c8 + 0xc) + 4)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(DAT_005ea7c8 + 0xc) + 4)" (( "(") (binary_expression "*(int *)(DAT_005ea7c8 + 0xc) + 4" (pointer_expression "*(int *)(DAT_005ea7c8 + 0xc)" (* "*") (cast_expression "(int *)(DAT_005ea7c8 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_005ea7c8 + 0xc)" (( "(") (binary_expression "DAT_005ea7c8 + 0xc" (identifier "DAT_005ea7c8") (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "FUN_00369800(local_48,puVar1[2],*puVar1,*(undefined1 *)(puVar1 + 1),param_3);" (call_expression "FUN_00369800(local_48,puVar1[2],*puVar1,*(undefined1 *)(puVar1 + 1),param_3)" (identifier "FUN_00369800") (argument_list "(local_48,puVar1[2],*puVar1,*(undefined1 *)(puVar1 + 1),param_3)" (( "(") (identifier "local_48") (, ",") (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (, ",") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (, ",") (pointer_expression "*(undefined1 *)(puVar1 + 1)" (* "*") (cast_expression "(undefined1 *)(puVar1 + 1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 1)" (( "(") (binary_expression "puVar1 + 1" (identifier "puVar1") (+ "+") (number_literal "1")) () ")")))) (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "cVar3 = FUN_00369850(local_48,param_2);" (assignment_expression "cVar3 = FUN_00369850(local_48,param_2)" (identifier "cVar3") (= "=") (call_expression "FUN_00369850(local_48,param_2)" (identifier "FUN_00369850") (argument_list "(local_48,param_2)" (( "(") (identifier "local_48") (, ",") (identifier "param_2") () ")")))) (; ";")) (expression_statement "uVar2 = local_24;" (assignment_expression "uVar2 = local_24" (identifier "uVar2") (= "=") (identifier "local_24")) (; ";")) (if_statement "if (cVar3 != '\0') {\n      local_24 = 0;\n      cVar3 = FUN_0023e250(param_1 + 0x1c,param_2,param_3,uVar2,local_20,0);\n    }" (if "if") (parenthesized_expression "(cVar3 != '\0')" (( "(") (binary_expression "cVar3 != '\0'" (identifier "cVar3") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      local_24 = 0;\n      cVar3 = FUN_0023e250(param_1 + 0x1c,param_2,param_3,uVar2,local_20,0);\n    }" ({ "{") (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" (identifier "local_24") (= "=") (number_literal "0")) (; ";")) (expression_statement "cVar3 = FUN_0023e250(param_1 + 0x1c,param_2,param_3,uVar2,local_20,0);" (assignment_expression "cVar3 = FUN_0023e250(param_1 + 0x1c,param_2,param_3,uVar2,local_20,0)" (identifier "cVar3") (= "=") (call_expression "FUN_0023e250(param_1 + 0x1c,param_2,param_3,uVar2,local_20,0)" (identifier "FUN_0023e250") (argument_list "(param_1 + 0x1c,param_2,param_3,uVar2,local_20,0)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "uVar2") (, ",") (identifier "local_20") (, ",") (number_literal "0") () ")")))) (; ";")) (} "}"))) (expression_statement "FUN_003697b0(local_48);" (call_expression "FUN_003697b0(local_48)" (identifier "FUN_003697b0") (argument_list "(local_48)" (( "(") (identifier "local_48") () ")"))) (; ";")) (return_statement "return cVar3;" (return "return") (identifier "cVar3") (; ";")) (} "}"))) (expression_statement "FUN_002446e0("../../gold/parameters.h",0x69,"target",extraout_EDX);" (call_expression "FUN_002446e0("../../gold/parameters.h",0x69,"target",extraout_EDX)" (identifier "FUN_002446e0") (argument_list "("../../gold/parameters.h",0x69,"target",extraout_EDX)" (( "(") (string_literal ""../../gold/parameters.h"" (" """) (string_content "../../gold/parameters.h") (" """)) (, ",") (number_literal "0x69") (, ",") (string_literal ""target"" (" """) (string_content "target") (" """)) (, ",") (identifier "extraout_EDX") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* WARNING: Enum "DT": Some values do not have unique names */
/* WARNING: Enum "ELFOSABI": Some values do not have unique names */
/* DWARF original prototype: bool open_binary(Input_file * this, Task * task, string * name) */

bool __thiscall gold::type_1::function_1(type_1 *this,type_2 *task,type_3 *name)

{
  type_4 *pTVar1;
  type_5 *puVar2;
  type_6 uVar3;
  int iVar4;
  type_2 *__in_chrg;
  type_7 binary_to_elf;
  
  var_1();
  if (parameters->target_ != (type_8 *)0x0) {
    pTVar1 = parameters->target_->pti_;
    Binary_to_elf::type_7
              (&binary_to_elf,pTVar1->machine_code,pTVar1->size,pTVar1->is_big_endian,name);
    __in_chrg = task;
                    /* try { // try from 0023e3a1 to 0023e3f6 has its CatchHandler @ 0023e412 */
    uVar3 = type_7::var_2(&binary_to_elf,task);
    puVar2 = binary_to_elf.data_;
    if ((bool)uVar3) {
      __in_chrg = (type_2 *)0x0;
      binary_to_elf.data_ = (type_5 *)0x0;
      iVar4 = File_read::var_3(&this->file_,(char *)task,(int)name,puVar2,binary_to_elf.filesize_);
      uVar3 = (type_6)iVar4;
    }
    Binary_to_elf::~type_7(&binary_to_elf,(int)__in_chrg);
    return (bool)uVar3;
  }
                    /* WARNING: Subroutine does not return */
  var_4("../../gold/parameters.h",0x69,"target");
}


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

/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

char MASKED(int param_1,undefined4 param_2,undefined4 param_3)

{
  undefined4 *puVar1;
  undefined4 uVar2;
  char cVar3;
  undefined4 extraout_EDX;
  undefined1 local_48 [36];
  undefined4 local_24;
  undefined4 local_20;
  
  FUN_0030b1b0();
  if (*(int *)(DAT_005ea7c8 + 0xc) != 0) {
    puVar1 = *(undefined4 **)(*(int *)(DAT_005ea7c8 + 0xc) + 4);
    FUN_00369800(local_48,puVar1[2],*puVar1,*(undefined1 *)(puVar1 + 1),param_3);
                    /* try { // try from 0023e3a1 to 0023e3f6 has its CatchHandler @ 0023e412 */
    cVar3 = FUN_00369850(local_48,param_2);
    uVar2 = local_24;
    if (cVar3 != '\0') {
      local_24 = 0;
      cVar3 = FUN_0023e250(param_1 + 0x1c,param_2,param_3,uVar2,local_20,0);
    }
    FUN_003697b0(local_48);
    return cVar3;
  }
                    /* WARNING: Subroutine does not return */
  FUN_002446e0("../../gold/parameters.h",0x69,"target",extraout_EDX);
}

