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

void make_import_fixup(arelent *rel,asection *s,char *name,char *symname)

{
  bfd *pbVar1;
  bfd_vma addend_00;
  bfd_size_type bVar2;
  undefined4 uVar3;
  int iVar4;
  char *fmt;
  undefined4 uVar5;
  char addend [4];
  
  uVar3 = (undefined4)rel->address;
  uVar5 = *(undefined4 *)((int)&rel->address + 4);
  if (pe_dll_extra_pe_debug != 0) {
    printf("arelent: %s@%#lx: add=%li\n",(*rel->sym_ptr_ptr)->name,uVar3,(int)rel->addend);
    uVar3 = (undefined4)rel->address;
    uVar5 = *(undefined4 *)((int)&rel->address + 4);
  }
  iVar4 = bfd_get_section_contents(s->owner,s,addend,uVar3,uVar5,4,0);
  if (iVar4 == 0) {
    uVar3 = *(undefined4 *)((int)&rel->address + 4);
    bVar2 = rel->address;
    pbVar1 = s->owner;
    fmt = (char *)dcgettext(0,"%P: %C: cannot get section contents - auto-import exception\n",5);
    einfo(fmt,pbVar1,s,(int)bVar2,uVar3);
  }
  addend_00 = (*s->owner->xvec->bfd_getx32)(addend);
  pe_create_import_fixup(rel,s,addend_00,name,symname);
  return;
}



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

void FUN_00055b50(undefined4 *param_1,int param_2,undefined4 param_3,undefined4 param_4)

{
  undefined4 uVar1;
  undefined4 uVar2;
  int iVar3;
  undefined4 uVar4;
  undefined4 uVar5;
  undefined8 uVar6;
  undefined1 local_20 [12];
  undefined4 uStack_14;
  
  uStack_14 = 0x55b59;
  uVar2 = param_1[1];
  uVar5 = param_1[2];
  if (DAT_001d01fc != 0) {
    printf("arelent: %s@%#lx: add=%li\n",*(undefined4 *)(*(int *)*param_1 + 4),uVar2,param_1[3]);
    uVar2 = param_1[1];
    uVar5 = param_1[2];
  }
  iVar3 = bfd_get_section_contents(*(undefined4 *)(param_2 + 0xac),param_2,local_20,uVar2,uVar5,4,0)
  ;
  if (iVar3 == 0) {
    uVar2 = param_1[2];
    uVar5 = param_1[1];
    uVar1 = *(undefined4 *)(param_2 + 0xac);
    uVar4 = dcgettext(0,"%P: %C: cannot get section contents - auto-import exception\n",5);
    FUN_00034d20(uVar4,uVar1,param_2,uVar5,uVar2);
  }
  uVar6 = (**(code **)(*(int *)(*(int *)(param_2 + 0xac) + 4) + 0x28))(local_20);
  FUN_00064730(param_1,param_2,uVar6,param_3,param_4);
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00017b80
ADD EBX,0x1784a7
SUB ESP,0x2c
MOV EDI,dword ptr [ESP + 0x40]
MOV ESI,dword ptr [ESP + 0x44]
MOV EAX,dword ptr [EDI + 0x4]
MOV EDX,dword ptr [EDI + 0x8]
LEA ECX,[EBX + 0x21fc]
MOV ECX,dword ptr [ECX]
TEST ECX,ECX
JNZ 0x00055bd0
SUB ESP,0x4
PUSH 0x0
PUSH 0x4
PUSH EDX
PUSH EAX
LEA EBP,[ESP + 0x30]
PUSH EBP
PUSH ESI
PUSH dword ptr [ESI + 0xac]
CALL 0x000162f0
ADD ESP,0x20
TEST EAX,EAX
JZ 0x00055bf8
MOV EAX,dword ptr [ESI + 0xac]
SUB ESP,0xc
MOV EAX,dword ptr [EAX + 0x4]
PUSH EBP
CALL dword ptr [EAX + 0x28]
POP ECX
POP EBP
PUSH dword ptr [ESP + 0x54]
PUSH dword ptr [ESP + 0x54]
PUSH EDX
PUSH EAX
PUSH ESI
PUSH EDI
CALL 0x00064730
ADD ESP,0x4c
POP EBX
POP ESI
POP EDI
POP EBP
RET
PUSH dword ptr [EDI + 0xc]
PUSH EAX
MOV EAX,dword ptr [EDI]
MOV EAX,dword ptr [EAX]
PUSH dword ptr [EAX + 0x4]
LEA EAX,[EBX + 0xfffc4e04]
PUSH EAX
CALL 0x00016110
MOV EAX,dword ptr [EDI + 0x4]
MOV EDX,dword ptr [EDI + 0x8]
ADD ESP,0x10
JMP 0x00055b7c
MOV EDX,dword ptr [EDI + 0x8]
MOV EAX,dword ptr [EDI + 0x4]
SUB ESP,0x4
MOV dword ptr [ESP + 0x8],EDX
MOV EDX,dword ptr [ESI + 0xac]
MOV dword ptr [ESP + 0x4],EAX
LEA EAX,[EBX + 0xfffc66b0]
MOV dword ptr [ESP + 0x10],EDX
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00016310
POP EDX
PUSH dword ptr [ESP + 0x10]
PUSH dword ptr [ESP + 0x10]
PUSH ESI
MOV EDX,dword ptr [ESP + 0x24]
PUSH EDX
PUSH EAX
CALL 0x00034d20
ADD ESP,0x20
JMP 0x00055b9d
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00055b50(undefined4 *param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined8 uVar6;\n  undefined1 local_20 [12];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x55b59;\n  uVar2 = param_1[1];\n  uVar5 = param_1[2];\n  if (DAT_001d01fc != 0) {\n    printf("arelent: %s@%#lx: add=%li\n",*(undefined4 *)(*(int *)*param_1 + 4),uVar2,param_1[3]);\n    uVar2 = param_1[1];\n    uVar5 = param_1[2];\n  }\n  iVar3 = bfd_get_section_contents(*(undefined4 *)(param_2 + 0xac),param_2,local_20,uVar2,uVar5,4,0)\n  ;\n  if (iVar3 == 0) {\n    uVar2 = param_1[2];\n    uVar5 = param_1[1];\n    uVar1 = *(undefined4 *)(param_2 + 0xac);\n    uVar4 = dcgettext(0,"%P: %C: cannot get section contents - auto-import exception\n",5);\n    FUN_00034d20(uVar4,uVar1,param_2,uVar5,uVar2);\n  }\n  uVar6 = (**(code **)(*(int *)(*(int *)(param_2 + 0xac) + 4) + 0x28))(local_20);\n  FUN_00064730(param_1,param_2,uVar6,param_3,param_4);\n  return;\n}\n\n" comment (function_definition "void FUN_00055b50(undefined4 *param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined8 uVar6;\n  undefined1 local_20 [12];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x55b59;\n  uVar2 = param_1[1];\n  uVar5 = param_1[2];\n  if (DAT_001d01fc != 0) {\n    printf("arelent: %s@%#lx: add=%li\n",*(undefined4 *)(*(int *)*param_1 + 4),uVar2,param_1[3]);\n    uVar2 = param_1[1];\n    uVar5 = param_1[2];\n  }\n  iVar3 = bfd_get_section_contents(*(undefined4 *)(param_2 + 0xac),param_2,local_20,uVar2,uVar5,4,0)\n  ;\n  if (iVar3 == 0) {\n    uVar2 = param_1[2];\n    uVar5 = param_1[1];\n    uVar1 = *(undefined4 *)(param_2 + 0xac);\n    uVar4 = dcgettext(0,"%P: %C: cannot get section contents - auto-import exception\n",5);\n    FUN_00034d20(uVar4,uVar1,param_2,uVar5,uVar2);\n  }\n  uVar6 = (**(code **)(*(int *)(*(int *)(param_2 + 0xac) + 4) + 0x28))(local_20);\n  FUN_00064730(param_1,param_2,uVar6,param_3,param_4);\n  return;\n}" primitive_type (function_declarator "FUN_00055b50(undefined4 *param_1,int param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 *param_1,int param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined8 uVar6;\n  undefined1 local_20 [12];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x55b59;\n  uVar2 = param_1[1];\n  uVar5 = param_1[2];\n  if (DAT_001d01fc != 0) {\n    printf("arelent: %s@%#lx: add=%li\n",*(undefined4 *)(*(int *)*param_1 + 4),uVar2,param_1[3]);\n    uVar2 = param_1[1];\n    uVar5 = param_1[2];\n  }\n  iVar3 = bfd_get_section_contents(*(undefined4 *)(param_2 + 0xac),param_2,local_20,uVar2,uVar5,4,0)\n  ;\n  if (iVar3 == 0) {\n    uVar2 = param_1[2];\n    uVar5 = param_1[1];\n    uVar1 = *(undefined4 *)(param_2 + 0xac);\n    uVar4 = dcgettext(0,"%P: %C: cannot get section contents - auto-import exception\n",5);\n    FUN_00034d20(uVar4,uVar1,param_2,uVar5,uVar2);\n  }\n  uVar6 = (**(code **)(*(int *)(*(int *)(param_2 + 0xac) + 4) + 0x28))(local_20);\n  FUN_00064730(param_1,param_2,uVar6,param_3,param_4);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined8 uVar6;" type_identifier identifier ;) (declaration "undefined1 local_20 [12];" type_identifier (array_declarator "local_20 [12]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x55b59;" (assignment_expression "uStack_14 = 0x55b59" identifier = number_literal) ;) (expression_statement "uVar2 = param_1[1];" (assignment_expression "uVar2 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "uVar5 = param_1[2];" (assignment_expression "uVar5 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (if_statement "if (DAT_001d01fc != 0) {\n    printf("arelent: %s@%#lx: add=%li\n",*(undefined4 *)(*(int *)*param_1 + 4),uVar2,param_1[3]);\n    uVar2 = param_1[1];\n    uVar5 = param_1[2];\n  }" if (parenthesized_expression "(DAT_001d01fc != 0)" ( (binary_expression "DAT_001d01fc != 0" identifier != number_literal) )) (compound_statement "{\n    printf("arelent: %s@%#lx: add=%li\n",*(undefined4 *)(*(int *)*param_1 + 4),uVar2,param_1[3]);\n    uVar2 = param_1[1];\n    uVar5 = param_1[2];\n  }" { (expression_statement "printf("arelent: %s@%#lx: add=%li\n",*(undefined4 *)(*(int *)*param_1 + 4),uVar2,param_1[3]);" (call_expression "printf("arelent: %s@%#lx: add=%li\n",*(undefined4 *)(*(int *)*param_1 + 4),uVar2,param_1[3])" identifier (argument_list "("arelent: %s@%#lx: add=%li\n",*(undefined4 *)(*(int *)*param_1 + 4),uVar2,param_1[3])" ( (string_literal ""arelent: %s@%#lx: add=%li\n"" " string_content escape_sequence ") , (pointer_expression "*(undefined4 *)(*(int *)*param_1 + 4)" * (cast_expression "(undefined4 *)(*(int *)*param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)*param_1 + 4)" ( (binary_expression "*(int *)*param_1 + 4" (pointer_expression "*(int *)*param_1" * (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) + number_literal) )))) , identifier , (subscript_expression "param_1[3]" identifier [ number_literal ]) ))) ;) (expression_statement "uVar2 = param_1[1];" (assignment_expression "uVar2 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "uVar5 = param_1[2];" (assignment_expression "uVar5 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) })) (expression_statement "iVar3 = bfd_get_section_contents(*(undefined4 *)(param_2 + 0xac),param_2,local_20,uVar2,uVar5,4,0)\n  ;" (assignment_expression "iVar3 = bfd_get_section_contents(*(undefined4 *)(param_2 + 0xac),param_2,local_20,uVar2,uVar5,4,0)" identifier = (call_expression "bfd_get_section_contents(*(undefined4 *)(param_2 + 0xac),param_2,local_20,uVar2,uVar5,4,0)" identifier (argument_list "(*(undefined4 *)(param_2 + 0xac),param_2,local_20,uVar2,uVar5,4,0)" ( (pointer_expression "*(undefined4 *)(param_2 + 0xac)" * (cast_expression "(undefined4 *)(param_2 + 0xac)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xac)" ( (binary_expression "param_2 + 0xac" identifier + number_literal) )))) , identifier , identifier , identifier , identifier , number_literal , number_literal )))) ;) (if_statement "if (iVar3 == 0) {\n    uVar2 = param_1[2];\n    uVar5 = param_1[1];\n    uVar1 = *(undefined4 *)(param_2 + 0xac);\n    uVar4 = dcgettext(0,"%P: %C: cannot get section contents - auto-import exception\n",5);\n    FUN_00034d20(uVar4,uVar1,param_2,uVar5,uVar2);\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar2 = param_1[2];\n    uVar5 = param_1[1];\n    uVar1 = *(undefined4 *)(param_2 + 0xac);\n    uVar4 = dcgettext(0,"%P: %C: cannot get section contents - auto-import exception\n",5);\n    FUN_00034d20(uVar4,uVar1,param_2,uVar5,uVar2);\n  }" { (expression_statement "uVar2 = param_1[2];" (assignment_expression "uVar2 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "uVar5 = param_1[1];" (assignment_expression "uVar5 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "uVar1 = *(undefined4 *)(param_2 + 0xac);" (assignment_expression "uVar1 = *(undefined4 *)(param_2 + 0xac)" identifier = (pointer_expression "*(undefined4 *)(param_2 + 0xac)" * (cast_expression "(undefined4 *)(param_2 + 0xac)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xac)" ( (binary_expression "param_2 + 0xac" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = dcgettext(0,"%P: %C: cannot get section contents - auto-import exception\n",5);" (assignment_expression "uVar4 = dcgettext(0,"%P: %C: cannot get section contents - auto-import exception\n",5)" identifier = (call_expression "dcgettext(0,"%P: %C: cannot get section contents - auto-import exception\n",5)" identifier (argument_list "(0,"%P: %C: cannot get section contents - auto-import exception\n",5)" ( number_literal , (string_literal ""%P: %C: cannot get section contents - auto-import exception\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_00034d20(uVar4,uVar1,param_2,uVar5,uVar2);" (call_expression "FUN_00034d20(uVar4,uVar1,param_2,uVar5,uVar2)" identifier (argument_list "(uVar4,uVar1,param_2,uVar5,uVar2)" ( identifier , identifier , identifier , identifier , identifier ))) ;) })) (expression_statement "uVar6 = (**(code **)(*(int *)(*(int *)(param_2 + 0xac) + 4) + 0x28))(local_20);" (assignment_expression "uVar6 = (**(code **)(*(int *)(*(int *)(param_2 + 0xac) + 4) + 0x28))(local_20)" identifier = (call_expression "(**(code **)(*(int *)(*(int *)(param_2 + 0xac) + 4) + 0x28))(local_20)" (parenthesized_expression "(**(code **)(*(int *)(*(int *)(param_2 + 0xac) + 4) + 0x28))" ( (pointer_expression "**(code **)(*(int *)(*(int *)(param_2 + 0xac) + 4) + 0x28)" * (pointer_expression "*(code **)(*(int *)(*(int *)(param_2 + 0xac) + 4) + 0x28)" * (cast_expression "(code **)(*(int *)(*(int *)(param_2 + 0xac) + 4) + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(*(int *)(param_2 + 0xac) + 4) + 0x28)" ( (binary_expression "*(int *)(*(int *)(param_2 + 0xac) + 4) + 0x28" (pointer_expression "*(int *)(*(int *)(param_2 + 0xac) + 4)" * (cast_expression "(int *)(*(int *)(param_2 + 0xac) + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 0xac) + 4)" ( (binary_expression "*(int *)(param_2 + 0xac) + 4" (pointer_expression "*(int *)(param_2 + 0xac)" * (cast_expression "(int *)(param_2 + 0xac)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xac)" ( (binary_expression "param_2 + 0xac" identifier + number_literal) )))) + number_literal) )))) + number_literal) ))))) )) (argument_list "(local_20)" ( identifier )))) ;) (expression_statement "FUN_00064730(param_1,param_2,uVar6,param_3,param_4);" (call_expression "FUN_00064730(param_1,param_2,uVar6,param_3,param_4)" identifier (argument_list "(param_1,param_2,uVar6,param_3,param_4)" ( identifier , identifier , 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 make_import_fixup(arelent *rel,asection *s,char *name,char *symname)\n\n{\n  bfd *pbVar1;\n  bfd_vma addend_00;\n  bfd_size_type bVar2;\n  undefined4 uVar3;\n  int iVar4;\n  char *fmt;\n  undefined4 uVar5;\n  char addend [4];\n  \n  uVar3 = (undefined4)rel->address;\n  uVar5 = *(undefined4 *)((int)&rel->address + 4);\n  if (pe_dll_extra_pe_debug != 0) {\n    printf("arelent: %s@%#lx: add=%li\n",(*rel->sym_ptr_ptr)->name,uVar3,(int)rel->addend);\n    uVar3 = (undefined4)rel->address;\n    uVar5 = *(undefined4 *)((int)&rel->address + 4);\n  }\n  iVar4 = bfd_get_section_contents(s->owner,s,addend,uVar3,uVar5,4,0);\n  if (iVar4 == 0) {\n    uVar3 = *(undefined4 *)((int)&rel->address + 4);\n    bVar2 = rel->address;\n    pbVar1 = s->owner;\n    fmt = (char *)dcgettext(0,"%P: %C: cannot get section contents - auto-import exception\n",5);\n    einfo(fmt,pbVar1,s,(int)bVar2,uVar3);\n  }\n  addend_00 = (*s->owner->xvec->bfd_getx32)(addend);\n  pe_create_import_fixup(rel,s,addend_00,name,symname);\n  return;\n}\n\n" comment comment (function_definition "void make_import_fixup(arelent *rel,asection *s,char *name,char *symname)\n\n{\n  bfd *pbVar1;\n  bfd_vma addend_00;\n  bfd_size_type bVar2;\n  undefined4 uVar3;\n  int iVar4;\n  char *fmt;\n  undefined4 uVar5;\n  char addend [4];\n  \n  uVar3 = (undefined4)rel->address;\n  uVar5 = *(undefined4 *)((int)&rel->address + 4);\n  if (pe_dll_extra_pe_debug != 0) {\n    printf("arelent: %s@%#lx: add=%li\n",(*rel->sym_ptr_ptr)->name,uVar3,(int)rel->addend);\n    uVar3 = (undefined4)rel->address;\n    uVar5 = *(undefined4 *)((int)&rel->address + 4);\n  }\n  iVar4 = bfd_get_section_contents(s->owner,s,addend,uVar3,uVar5,4,0);\n  if (iVar4 == 0) {\n    uVar3 = *(undefined4 *)((int)&rel->address + 4);\n    bVar2 = rel->address;\n    pbVar1 = s->owner;\n    fmt = (char *)dcgettext(0,"%P: %C: cannot get section contents - auto-import exception\n",5);\n    einfo(fmt,pbVar1,s,(int)bVar2,uVar3);\n  }\n  addend_00 = (*s->owner->xvec->bfd_getx32)(addend);\n  pe_create_import_fixup(rel,s,addend_00,name,symname);\n  return;\n}" primitive_type (function_declarator "make_import_fixup(arelent *rel,asection *s,char *name,char *symname)" identifier (parameter_list "(arelent *rel,asection *s,char *name,char *symname)" ( (parameter_declaration "arelent *rel" type_identifier (pointer_declarator "*rel" * identifier)) , (parameter_declaration "asection *s" type_identifier (pointer_declarator "*s" * identifier)) , (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "char *symname" primitive_type (pointer_declarator "*symname" * identifier)) ))) (compound_statement "{\n  bfd *pbVar1;\n  bfd_vma addend_00;\n  bfd_size_type bVar2;\n  undefined4 uVar3;\n  int iVar4;\n  char *fmt;\n  undefined4 uVar5;\n  char addend [4];\n  \n  uVar3 = (undefined4)rel->address;\n  uVar5 = *(undefined4 *)((int)&rel->address + 4);\n  if (pe_dll_extra_pe_debug != 0) {\n    printf("arelent: %s@%#lx: add=%li\n",(*rel->sym_ptr_ptr)->name,uVar3,(int)rel->addend);\n    uVar3 = (undefined4)rel->address;\n    uVar5 = *(undefined4 *)((int)&rel->address + 4);\n  }\n  iVar4 = bfd_get_section_contents(s->owner,s,addend,uVar3,uVar5,4,0);\n  if (iVar4 == 0) {\n    uVar3 = *(undefined4 *)((int)&rel->address + 4);\n    bVar2 = rel->address;\n    pbVar1 = s->owner;\n    fmt = (char *)dcgettext(0,"%P: %C: cannot get section contents - auto-import exception\n",5);\n    einfo(fmt,pbVar1,s,(int)bVar2,uVar3);\n  }\n  addend_00 = (*s->owner->xvec->bfd_getx32)(addend);\n  pe_create_import_fixup(rel,s,addend_00,name,symname);\n  return;\n}" { (declaration "bfd *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "bfd_vma addend_00;" type_identifier identifier ;) (declaration "bfd_size_type bVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "char *fmt;" primitive_type (pointer_declarator "*fmt" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "char addend [4];" primitive_type (array_declarator "addend [4]" identifier [ number_literal ]) ;) (expression_statement "uVar3 = (undefined4)rel->address;" (assignment_expression "uVar3 = (undefined4)rel->address" identifier = (cast_expression "(undefined4)rel->address" ( (type_descriptor "undefined4" type_identifier) ) (field_expression "rel->address" identifier -> field_identifier))) ;) (expression_statement "uVar5 = *(undefined4 *)((int)&rel->address + 4);" (assignment_expression "uVar5 = *(undefined4 *)((int)&rel->address + 4)" identifier = (pointer_expression "*(undefined4 *)((int)&rel->address + 4)" * (cast_expression "(undefined4 *)((int)&rel->address + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&rel->address + 4)" ( (binary_expression "(int)&rel->address + 4" (cast_expression "(int)&rel->address" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&rel->address" & (field_expression "rel->address" identifier -> field_identifier))) + number_literal) ))))) ;) (if_statement "if (pe_dll_extra_pe_debug != 0) {\n    printf("arelent: %s@%#lx: add=%li\n",(*rel->sym_ptr_ptr)->name,uVar3,(int)rel->addend);\n    uVar3 = (undefined4)rel->address;\n    uVar5 = *(undefined4 *)((int)&rel->address + 4);\n  }" if (parenthesized_expression "(pe_dll_extra_pe_debug != 0)" ( (binary_expression "pe_dll_extra_pe_debug != 0" identifier != number_literal) )) (compound_statement "{\n    printf("arelent: %s@%#lx: add=%li\n",(*rel->sym_ptr_ptr)->name,uVar3,(int)rel->addend);\n    uVar3 = (undefined4)rel->address;\n    uVar5 = *(undefined4 *)((int)&rel->address + 4);\n  }" { (expression_statement "printf("arelent: %s@%#lx: add=%li\n",(*rel->sym_ptr_ptr)->name,uVar3,(int)rel->addend);" (call_expression "printf("arelent: %s@%#lx: add=%li\n",(*rel->sym_ptr_ptr)->name,uVar3,(int)rel->addend)" identifier (argument_list "("arelent: %s@%#lx: add=%li\n",(*rel->sym_ptr_ptr)->name,uVar3,(int)rel->addend)" ( (string_literal ""arelent: %s@%#lx: add=%li\n"" " string_content escape_sequence ") , (field_expression "(*rel->sym_ptr_ptr)->name" (parenthesized_expression "(*rel->sym_ptr_ptr)" ( (pointer_expression "*rel->sym_ptr_ptr" * (field_expression "rel->sym_ptr_ptr" identifier -> field_identifier)) )) -> field_identifier) , identifier , (cast_expression "(int)rel->addend" ( (type_descriptor "int" primitive_type) ) (field_expression "rel->addend" identifier -> field_identifier)) ))) ;) (expression_statement "uVar3 = (undefined4)rel->address;" (assignment_expression "uVar3 = (undefined4)rel->address" identifier = (cast_expression "(undefined4)rel->address" ( (type_descriptor "undefined4" type_identifier) ) (field_expression "rel->address" identifier -> field_identifier))) ;) (expression_statement "uVar5 = *(undefined4 *)((int)&rel->address + 4);" (assignment_expression "uVar5 = *(undefined4 *)((int)&rel->address + 4)" identifier = (pointer_expression "*(undefined4 *)((int)&rel->address + 4)" * (cast_expression "(undefined4 *)((int)&rel->address + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&rel->address + 4)" ( (binary_expression "(int)&rel->address + 4" (cast_expression "(int)&rel->address" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&rel->address" & (field_expression "rel->address" identifier -> field_identifier))) + number_literal) ))))) ;) })) (expression_statement "iVar4 = bfd_get_section_contents(s->owner,s,addend,uVar3,uVar5,4,0);" (assignment_expression "iVar4 = bfd_get_section_contents(s->owner,s,addend,uVar3,uVar5,4,0)" identifier = (call_expression "bfd_get_section_contents(s->owner,s,addend,uVar3,uVar5,4,0)" identifier (argument_list "(s->owner,s,addend,uVar3,uVar5,4,0)" ( (field_expression "s->owner" identifier -> field_identifier) , identifier , identifier , identifier , identifier , number_literal , number_literal )))) ;) (if_statement "if (iVar4 == 0) {\n    uVar3 = *(undefined4 *)((int)&rel->address + 4);\n    bVar2 = rel->address;\n    pbVar1 = s->owner;\n    fmt = (char *)dcgettext(0,"%P: %C: cannot get section contents - auto-import exception\n",5);\n    einfo(fmt,pbVar1,s,(int)bVar2,uVar3);\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar3 = *(undefined4 *)((int)&rel->address + 4);\n    bVar2 = rel->address;\n    pbVar1 = s->owner;\n    fmt = (char *)dcgettext(0,"%P: %C: cannot get section contents - auto-import exception\n",5);\n    einfo(fmt,pbVar1,s,(int)bVar2,uVar3);\n  }" { (expression_statement "uVar3 = *(undefined4 *)((int)&rel->address + 4);" (assignment_expression "uVar3 = *(undefined4 *)((int)&rel->address + 4)" identifier = (pointer_expression "*(undefined4 *)((int)&rel->address + 4)" * (cast_expression "(undefined4 *)((int)&rel->address + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&rel->address + 4)" ( (binary_expression "(int)&rel->address + 4" (cast_expression "(int)&rel->address" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&rel->address" & (field_expression "rel->address" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "bVar2 = rel->address;" (assignment_expression "bVar2 = rel->address" identifier = (field_expression "rel->address" identifier -> field_identifier)) ;) (expression_statement "pbVar1 = s->owner;" (assignment_expression "pbVar1 = s->owner" identifier = (field_expression "s->owner" identifier -> field_identifier)) ;) (expression_statement "fmt = (char *)dcgettext(0,"%P: %C: cannot get section contents - auto-import exception\n",5);" (assignment_expression "fmt = (char *)dcgettext(0,"%P: %C: cannot get section contents - auto-import exception\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"%P: %C: cannot get section contents - auto-import exception\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"%P: %C: cannot get section contents - auto-import exception\n",5)" identifier (argument_list "(0,"%P: %C: cannot get section contents - auto-import exception\n",5)" ( number_literal , (string_literal ""%P: %C: cannot get section contents - auto-import exception\n"" " string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "einfo(fmt,pbVar1,s,(int)bVar2,uVar3);" (call_expression "einfo(fmt,pbVar1,s,(int)bVar2,uVar3)" identifier (argument_list "(fmt,pbVar1,s,(int)bVar2,uVar3)" ( identifier , identifier , identifier , (cast_expression "(int)bVar2" ( (type_descriptor "int" primitive_type) ) identifier) , identifier ))) ;) })) (expression_statement "addend_00 = (*s->owner->xvec->bfd_getx32)(addend);" (assignment_expression "addend_00 = (*s->owner->xvec->bfd_getx32)(addend)" identifier = (call_expression "(*s->owner->xvec->bfd_getx32)(addend)" (parenthesized_expression "(*s->owner->xvec->bfd_getx32)" ( (pointer_expression "*s->owner->xvec->bfd_getx32" * (field_expression "s->owner->xvec->bfd_getx32" (field_expression "s->owner->xvec" (field_expression "s->owner" identifier -> field_identifier) -> field_identifier) -> field_identifier)) )) (argument_list "(addend)" ( identifier )))) ;) (expression_statement "pe_create_import_fixup(rel,s,addend_00,name,symname);" (call_expression "pe_create_import_fixup(rel,s,addend_00,name,symname)" identifier (argument_list "(rel,s,addend_00,name,symname)" ( identifier , identifier , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00055b50(undefined4 *param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined8 uVar6;\n  undefined1 local_20 [12];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x55b59;\n  uVar2 = param_1[1];\n  uVar5 = param_1[2];\n  if (DAT_001d01fc != 0) {\n    printf("arelent: %s@%#lx: add=%li\n",*(undefined4 *)(*(int *)*param_1 + 4),uVar2,param_1[3]);\n    uVar2 = param_1[1];\n    uVar5 = param_1[2];\n  }\n  iVar3 = bfd_get_section_contents(*(undefined4 *)(param_2 + 0xac),param_2,local_20,uVar2,uVar5,4,0)\n  ;\n  if (iVar3 == 0) {\n    uVar2 = param_1[2];\n    uVar5 = param_1[1];\n    uVar1 = *(undefined4 *)(param_2 + 0xac);\n    uVar4 = dcgettext(0,"%P: %C: cannot get section contents - auto-import exception\n",5);\n    FUN_00034d20(uVar4,uVar1,param_2,uVar5,uVar2);\n  }\n  uVar6 = (**(code **)(*(int *)(*(int *)(param_2 + 0xac) + 4) + 0x28))(local_20);\n  FUN_00064730(param_1,param_2,uVar6,param_3,param_4);\n  return;\n}\n\n" (function_definition "void FUN_00055b50(undefined4 *param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined8 uVar6;\n  undefined1 local_20 [12];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x55b59;\n  uVar2 = param_1[1];\n  uVar5 = param_1[2];\n  if (DAT_001d01fc != 0) {\n    printf("arelent: %s@%#lx: add=%li\n",*(undefined4 *)(*(int *)*param_1 + 4),uVar2,param_1[3]);\n    uVar2 = param_1[1];\n    uVar5 = param_1[2];\n  }\n  iVar3 = bfd_get_section_contents(*(undefined4 *)(param_2 + 0xac),param_2,local_20,uVar2,uVar5,4,0)\n  ;\n  if (iVar3 == 0) {\n    uVar2 = param_1[2];\n    uVar5 = param_1[1];\n    uVar1 = *(undefined4 *)(param_2 + 0xac);\n    uVar4 = dcgettext(0,"%P: %C: cannot get section contents - auto-import exception\n",5);\n    FUN_00034d20(uVar4,uVar1,param_2,uVar5,uVar2);\n  }\n  uVar6 = (**(code **)(*(int *)(*(int *)(param_2 + 0xac) + 4) + 0x28))(local_20);\n  FUN_00064730(param_1,param_2,uVar6,param_3,param_4);\n  return;\n}" primitive_type (function_declarator "FUN_00055b50(undefined4 *param_1,int param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 *param_1,int param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined8 uVar6;\n  undefined1 local_20 [12];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x55b59;\n  uVar2 = param_1[1];\n  uVar5 = param_1[2];\n  if (DAT_001d01fc != 0) {\n    printf("arelent: %s@%#lx: add=%li\n",*(undefined4 *)(*(int *)*param_1 + 4),uVar2,param_1[3]);\n    uVar2 = param_1[1];\n    uVar5 = param_1[2];\n  }\n  iVar3 = bfd_get_section_contents(*(undefined4 *)(param_2 + 0xac),param_2,local_20,uVar2,uVar5,4,0)\n  ;\n  if (iVar3 == 0) {\n    uVar2 = param_1[2];\n    uVar5 = param_1[1];\n    uVar1 = *(undefined4 *)(param_2 + 0xac);\n    uVar4 = dcgettext(0,"%P: %C: cannot get section contents - auto-import exception\n",5);\n    FUN_00034d20(uVar4,uVar1,param_2,uVar5,uVar2);\n  }\n  uVar6 = (**(code **)(*(int *)(*(int *)(param_2 + 0xac) + 4) + 0x28))(local_20);\n  FUN_00064730(param_1,param_2,uVar6,param_3,param_4);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined8 uVar6;" type_identifier identifier ;) (declaration "undefined1 local_20 [12];" type_identifier (array_declarator "local_20 [12]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x55b59;" (assignment_expression "uStack_14 = 0x55b59" identifier = number_literal) ;) (expression_statement "uVar2 = param_1[1];" (assignment_expression "uVar2 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "uVar5 = param_1[2];" (assignment_expression "uVar5 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (if_statement "if (DAT_001d01fc != 0) {\n    printf("arelent: %s@%#lx: add=%li\n",*(undefined4 *)(*(int *)*param_1 + 4),uVar2,param_1[3]);\n    uVar2 = param_1[1];\n    uVar5 = param_1[2];\n  }" if (parenthesized_expression "(DAT_001d01fc != 0)" ( (binary_expression "DAT_001d01fc != 0" identifier != number_literal) )) (compound_statement "{\n    printf("arelent: %s@%#lx: add=%li\n",*(undefined4 *)(*(int *)*param_1 + 4),uVar2,param_1[3]);\n    uVar2 = param_1[1];\n    uVar5 = param_1[2];\n  }" { (expression_statement "printf("arelent: %s@%#lx: add=%li\n",*(undefined4 *)(*(int *)*param_1 + 4),uVar2,param_1[3]);" (call_expression "printf("arelent: %s@%#lx: add=%li\n",*(undefined4 *)(*(int *)*param_1 + 4),uVar2,param_1[3])" identifier (argument_list "("arelent: %s@%#lx: add=%li\n",*(undefined4 *)(*(int *)*param_1 + 4),uVar2,param_1[3])" ( (string_literal ""arelent: %s@%#lx: add=%li\n"" " string_content escape_sequence ") , (pointer_expression "*(undefined4 *)(*(int *)*param_1 + 4)" * (cast_expression "(undefined4 *)(*(int *)*param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)*param_1 + 4)" ( (binary_expression "*(int *)*param_1 + 4" (pointer_expression "*(int *)*param_1" * (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) + number_literal) )))) , identifier , (subscript_expression "param_1[3]" identifier [ number_literal ]) ))) ;) (expression_statement "uVar2 = param_1[1];" (assignment_expression "uVar2 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "uVar5 = param_1[2];" (assignment_expression "uVar5 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) })) (expression_statement "iVar3 = bfd_get_section_contents(*(undefined4 *)(param_2 + 0xac),param_2,local_20,uVar2,uVar5,4,0)\n  ;" (assignment_expression "iVar3 = bfd_get_section_contents(*(undefined4 *)(param_2 + 0xac),param_2,local_20,uVar2,uVar5,4,0)" identifier = (call_expression "bfd_get_section_contents(*(undefined4 *)(param_2 + 0xac),param_2,local_20,uVar2,uVar5,4,0)" identifier (argument_list "(*(undefined4 *)(param_2 + 0xac),param_2,local_20,uVar2,uVar5,4,0)" ( (pointer_expression "*(undefined4 *)(param_2 + 0xac)" * (cast_expression "(undefined4 *)(param_2 + 0xac)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xac)" ( (binary_expression "param_2 + 0xac" identifier + number_literal) )))) , identifier , identifier , identifier , identifier , number_literal , number_literal )))) ;) (if_statement "if (iVar3 == 0) {\n    uVar2 = param_1[2];\n    uVar5 = param_1[1];\n    uVar1 = *(undefined4 *)(param_2 + 0xac);\n    uVar4 = dcgettext(0,"%P: %C: cannot get section contents - auto-import exception\n",5);\n    FUN_00034d20(uVar4,uVar1,param_2,uVar5,uVar2);\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar2 = param_1[2];\n    uVar5 = param_1[1];\n    uVar1 = *(undefined4 *)(param_2 + 0xac);\n    uVar4 = dcgettext(0,"%P: %C: cannot get section contents - auto-import exception\n",5);\n    FUN_00034d20(uVar4,uVar1,param_2,uVar5,uVar2);\n  }" { (expression_statement "uVar2 = param_1[2];" (assignment_expression "uVar2 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "uVar5 = param_1[1];" (assignment_expression "uVar5 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "uVar1 = *(undefined4 *)(param_2 + 0xac);" (assignment_expression "uVar1 = *(undefined4 *)(param_2 + 0xac)" identifier = (pointer_expression "*(undefined4 *)(param_2 + 0xac)" * (cast_expression "(undefined4 *)(param_2 + 0xac)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xac)" ( (binary_expression "param_2 + 0xac" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = dcgettext(0,"%P: %C: cannot get section contents - auto-import exception\n",5);" (assignment_expression "uVar4 = dcgettext(0,"%P: %C: cannot get section contents - auto-import exception\n",5)" identifier = (call_expression "dcgettext(0,"%P: %C: cannot get section contents - auto-import exception\n",5)" identifier (argument_list "(0,"%P: %C: cannot get section contents - auto-import exception\n",5)" ( number_literal , (string_literal ""%P: %C: cannot get section contents - auto-import exception\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_00034d20(uVar4,uVar1,param_2,uVar5,uVar2);" (call_expression "FUN_00034d20(uVar4,uVar1,param_2,uVar5,uVar2)" identifier (argument_list "(uVar4,uVar1,param_2,uVar5,uVar2)" ( identifier , identifier , identifier , identifier , identifier ))) ;) })) (expression_statement "uVar6 = (**(code **)(*(int *)(*(int *)(param_2 + 0xac) + 4) + 0x28))(local_20);" (assignment_expression "uVar6 = (**(code **)(*(int *)(*(int *)(param_2 + 0xac) + 4) + 0x28))(local_20)" identifier = (call_expression "(**(code **)(*(int *)(*(int *)(param_2 + 0xac) + 4) + 0x28))(local_20)" (parenthesized_expression "(**(code **)(*(int *)(*(int *)(param_2 + 0xac) + 4) + 0x28))" ( (pointer_expression "**(code **)(*(int *)(*(int *)(param_2 + 0xac) + 4) + 0x28)" * (pointer_expression "*(code **)(*(int *)(*(int *)(param_2 + 0xac) + 4) + 0x28)" * (cast_expression "(code **)(*(int *)(*(int *)(param_2 + 0xac) + 4) + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(*(int *)(param_2 + 0xac) + 4) + 0x28)" ( (binary_expression "*(int *)(*(int *)(param_2 + 0xac) + 4) + 0x28" (pointer_expression "*(int *)(*(int *)(param_2 + 0xac) + 4)" * (cast_expression "(int *)(*(int *)(param_2 + 0xac) + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 0xac) + 4)" ( (binary_expression "*(int *)(param_2 + 0xac) + 4" (pointer_expression "*(int *)(param_2 + 0xac)" * (cast_expression "(int *)(param_2 + 0xac)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xac)" ( (binary_expression "param_2 + 0xac" identifier + number_literal) )))) + number_literal) )))) + number_literal) ))))) )) (argument_list "(local_20)" ( identifier )))) ;) (expression_statement "FUN_00064730(param_1,param_2,uVar6,param_3,param_4);" (call_expression "FUN_00064730(param_1,param_2,uVar6,param_3,param_4)" identifier (argument_list "(param_1,param_2,uVar6,param_3,param_4)" ( identifier , identifier , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence ") , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) + LIT) )))) , IDENT , (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , IDENT , IDENT , IDENT , LIT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) + LIT) ))))) )) (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00055b50(undefined4 *param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined8 uVar6;\n  undefined1 local_20 [12];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x55b59;\n  uVar2 = param_1[1];\n  uVar5 = param_1[2];\n  if (DAT_001d01fc != 0) {\n    printf("arelent: %s@%#lx: add=%li\n",*(undefined4 *)(*(int *)*param_1 + 4),uVar2,param_1[3]);\n    uVar2 = param_1[1];\n    uVar5 = param_1[2];\n  }\n  iVar3 = bfd_get_section_contents(*(undefined4 *)(param_2 + 0xac),param_2,local_20,uVar2,uVar5,4,0)\n  ;\n  if (iVar3 == 0) {\n    uVar2 = param_1[2];\n    uVar5 = param_1[1];\n    uVar1 = *(undefined4 *)(param_2 + 0xac);\n    uVar4 = dcgettext(0,"%P: %C: cannot get section contents - auto-import exception\n",5);\n    FUN_00034d20(uVar4,uVar1,param_2,uVar5,uVar2);\n  }\n  uVar6 = (**(code **)(*(int *)(*(int *)(param_2 + 0xac) + 4) + 0x28))(local_20);\n  FUN_00064730(param_1,param_2,uVar6,param_3,param_4);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00055b50(undefined4 *param_1,int param_2,undefined4 param_3,undefined4 param_4)" (identifier "FUN_00055b50") (parameter_list "(undefined4 *param_1,int param_2,undefined4 param_3,undefined4 param_4)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined8 uVar6;\n  undefined1 local_20 [12];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x55b59;\n  uVar2 = param_1[1];\n  uVar5 = param_1[2];\n  if (DAT_001d01fc != 0) {\n    printf("arelent: %s@%#lx: add=%li\n",*(undefined4 *)(*(int *)*param_1 + 4),uVar2,param_1[3]);\n    uVar2 = param_1[1];\n    uVar5 = param_1[2];\n  }\n  iVar3 = bfd_get_section_contents(*(undefined4 *)(param_2 + 0xac),param_2,local_20,uVar2,uVar5,4,0)\n  ;\n  if (iVar3 == 0) {\n    uVar2 = param_1[2];\n    uVar5 = param_1[1];\n    uVar1 = *(undefined4 *)(param_2 + 0xac);\n    uVar4 = dcgettext(0,"%P: %C: cannot get section contents - auto-import exception\n",5);\n    FUN_00034d20(uVar4,uVar1,param_2,uVar5,uVar2);\n  }\n  uVar6 = (**(code **)(*(int *)(*(int *)(param_2 + 0xac) + 4) + 0x28))(local_20);\n  FUN_00064730(param_1,param_2,uVar6,param_3,param_4);\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "undefined8 uVar6;" (type_identifier "undefined8") (identifier "uVar6") (; ";")) (declaration "undefined1 local_20 [12];" (type_identifier "undefined1") (array_declarator "local_20 [12]" (identifier "local_20") ([ "[") (number_literal "12") (] "]")) (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x55b59;" (assignment_expression "uStack_14 = 0x55b59" (identifier "uStack_14") (= "=") (number_literal "0x55b59")) (; ";")) (expression_statement "uVar2 = param_1[1];" (assignment_expression "uVar2 = param_1[1]" (identifier "uVar2") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "uVar5 = param_1[2];" (assignment_expression "uVar5 = param_1[2]" (identifier "uVar5") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (if_statement "if (DAT_001d01fc != 0) {\n    printf("arelent: %s@%#lx: add=%li\n",*(undefined4 *)(*(int *)*param_1 + 4),uVar2,param_1[3]);\n    uVar2 = param_1[1];\n    uVar5 = param_1[2];\n  }" (if "if") (parenthesized_expression "(DAT_001d01fc != 0)" (( "(") (binary_expression "DAT_001d01fc != 0" (identifier "DAT_001d01fc") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    printf("arelent: %s@%#lx: add=%li\n",*(undefined4 *)(*(int *)*param_1 + 4),uVar2,param_1[3]);\n    uVar2 = param_1[1];\n    uVar5 = param_1[2];\n  }" ({ "{") (expression_statement "printf("arelent: %s@%#lx: add=%li\n",*(undefined4 *)(*(int *)*param_1 + 4),uVar2,param_1[3]);" (call_expression "printf("arelent: %s@%#lx: add=%li\n",*(undefined4 *)(*(int *)*param_1 + 4),uVar2,param_1[3])" (identifier "printf") (argument_list "("arelent: %s@%#lx: add=%li\n",*(undefined4 *)(*(int *)*param_1 + 4),uVar2,param_1[3])" (( "(") (string_literal ""arelent: %s@%#lx: add=%li\n"" (" """) (string_content "arelent: %s@%#lx: add=%li") (escape_sequence "\n") (" """)) (, ",") (pointer_expression "*(undefined4 *)(*(int *)*param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(*(int *)*param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)*param_1 + 4)" (( "(") (binary_expression "*(int *)*param_1 + 4" (pointer_expression "*(int *)*param_1" (* "*") (cast_expression "(int *)*param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (+ "+") (number_literal "4")) () ")")))) (, ",") (identifier "uVar2") (, ",") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) () ")"))) (; ";")) (expression_statement "uVar2 = param_1[1];" (assignment_expression "uVar2 = param_1[1]" (identifier "uVar2") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "uVar5 = param_1[2];" (assignment_expression "uVar5 = param_1[2]" (identifier "uVar5") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (} "}"))) (expression_statement "iVar3 = bfd_get_section_contents(*(undefined4 *)(param_2 + 0xac),param_2,local_20,uVar2,uVar5,4,0)\n  ;" (assignment_expression "iVar3 = bfd_get_section_contents(*(undefined4 *)(param_2 + 0xac),param_2,local_20,uVar2,uVar5,4,0)" (identifier "iVar3") (= "=") (call_expression "bfd_get_section_contents(*(undefined4 *)(param_2 + 0xac),param_2,local_20,uVar2,uVar5,4,0)" (identifier "bfd_get_section_contents") (argument_list "(*(undefined4 *)(param_2 + 0xac),param_2,local_20,uVar2,uVar5,4,0)" (( "(") (pointer_expression "*(undefined4 *)(param_2 + 0xac)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0xac)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xac)" (( "(") (binary_expression "param_2 + 0xac" (identifier "param_2") (+ "+") (number_literal "0xac")) () ")")))) (, ",") (identifier "param_2") (, ",") (identifier "local_20") (, ",") (identifier "uVar2") (, ",") (identifier "uVar5") (, ",") (number_literal "4") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n    uVar2 = param_1[2];\n    uVar5 = param_1[1];\n    uVar1 = *(undefined4 *)(param_2 + 0xac);\n    uVar4 = dcgettext(0,"%P: %C: cannot get section contents - auto-import exception\n",5);\n    FUN_00034d20(uVar4,uVar1,param_2,uVar5,uVar2);\n  }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar2 = param_1[2];\n    uVar5 = param_1[1];\n    uVar1 = *(undefined4 *)(param_2 + 0xac);\n    uVar4 = dcgettext(0,"%P: %C: cannot get section contents - auto-import exception\n",5);\n    FUN_00034d20(uVar4,uVar1,param_2,uVar5,uVar2);\n  }" ({ "{") (expression_statement "uVar2 = param_1[2];" (assignment_expression "uVar2 = param_1[2]" (identifier "uVar2") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "uVar5 = param_1[1];" (assignment_expression "uVar5 = param_1[1]" (identifier "uVar5") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "uVar1 = *(undefined4 *)(param_2 + 0xac);" (assignment_expression "uVar1 = *(undefined4 *)(param_2 + 0xac)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined4 *)(param_2 + 0xac)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0xac)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xac)" (( "(") (binary_expression "param_2 + 0xac" (identifier "param_2") (+ "+") (number_literal "0xac")) () ")"))))) (; ";")) (expression_statement "uVar4 = dcgettext(0,"%P: %C: cannot get section contents - auto-import exception\n",5);" (assignment_expression "uVar4 = dcgettext(0,"%P: %C: cannot get section contents - auto-import exception\n",5)" (identifier "uVar4") (= "=") (call_expression "dcgettext(0,"%P: %C: cannot get section contents - auto-import exception\n",5)" (identifier "dcgettext") (argument_list "(0,"%P: %C: cannot get section contents - auto-import exception\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""%P: %C: cannot get section contents - auto-import exception\n"" (" """) (string_content "%P: %C: cannot get section contents - auto-import exception") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_00034d20(uVar4,uVar1,param_2,uVar5,uVar2);" (call_expression "FUN_00034d20(uVar4,uVar1,param_2,uVar5,uVar2)" (identifier "FUN_00034d20") (argument_list "(uVar4,uVar1,param_2,uVar5,uVar2)" (( "(") (identifier "uVar4") (, ",") (identifier "uVar1") (, ",") (identifier "param_2") (, ",") (identifier "uVar5") (, ",") (identifier "uVar2") () ")"))) (; ";")) (} "}"))) (expression_statement "uVar6 = (**(code **)(*(int *)(*(int *)(param_2 + 0xac) + 4) + 0x28))(local_20);" (assignment_expression "uVar6 = (**(code **)(*(int *)(*(int *)(param_2 + 0xac) + 4) + 0x28))(local_20)" (identifier "uVar6") (= "=") (call_expression "(**(code **)(*(int *)(*(int *)(param_2 + 0xac) + 4) + 0x28))(local_20)" (parenthesized_expression "(**(code **)(*(int *)(*(int *)(param_2 + 0xac) + 4) + 0x28))" (( "(") (pointer_expression "**(code **)(*(int *)(*(int *)(param_2 + 0xac) + 4) + 0x28)" (* "*") (pointer_expression "*(code **)(*(int *)(*(int *)(param_2 + 0xac) + 4) + 0x28)" (* "*") (cast_expression "(code **)(*(int *)(*(int *)(param_2 + 0xac) + 4) + 0x28)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(*(int *)(param_2 + 0xac) + 4) + 0x28)" (( "(") (binary_expression "*(int *)(*(int *)(param_2 + 0xac) + 4) + 0x28" (pointer_expression "*(int *)(*(int *)(param_2 + 0xac) + 4)" (* "*") (cast_expression "(int *)(*(int *)(param_2 + 0xac) + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_2 + 0xac) + 4)" (( "(") (binary_expression "*(int *)(param_2 + 0xac) + 4" (pointer_expression "*(int *)(param_2 + 0xac)" (* "*") (cast_expression "(int *)(param_2 + 0xac)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xac)" (( "(") (binary_expression "param_2 + 0xac" (identifier "param_2") (+ "+") (number_literal "0xac")) () ")")))) (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (argument_list "(local_20)" (( "(") (identifier "local_20") () ")")))) (; ";")) (expression_statement "FUN_00064730(param_1,param_2,uVar6,param_3,param_4);" (call_expression "FUN_00064730(param_1,param_2,uVar6,param_3,param_4)" (identifier "FUN_00064730") (argument_list "(param_1,param_2,uVar6,param_3,param_4)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "uVar6") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")"))) (; ";")) (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(type_1 *rel,type_2 *s,char *name,char *symname)

{
  type_3 *pbVar1;
  type_4 addend_00;
  type_5 bVar2;
  type_6 uVar3;
  int var_4;
  char *fmt;
  type_6 uVar5;
  char addend [4];
  
  uVar3 = (type_6)rel->address;
  uVar5 = *(type_6 *)((int)&rel->address + 4);
  if (var_1 != 0) {
    var_2("arelent: %s@%#lx: add=%li\n",(*rel->sym_ptr_ptr)->name,uVar3,(int)rel->addend);
    uVar3 = (type_6)rel->address;
    uVar5 = *(type_6 *)((int)&rel->address + 4);
  }
  var_4 = var_3(s->owner,s,addend,uVar3,uVar5,4,0);
  if (var_4 == 0) {
    uVar3 = *(type_6 *)((int)&rel->address + 4);
    bVar2 = rel->address;
    pbVar1 = s->owner;
    fmt = (char *)var_5(0,"%P: %C: cannot get section contents - auto-import exception\n",5);
    var_6(fmt,pbVar1,s,(int)bVar2,uVar3);
  }
  addend_00 = (*s->owner->xvec->bfd_getx32)(addend);
  var_7(rel,s,addend_00,name,symname);
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (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: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) 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)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content) (escape_sequence)) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) 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: (pointer_expression argument: (identifier)))) right: (number_literal))))) (identifier) (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (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) (identifier) (identifier) (identifier) (number_literal) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content) (escape_sequence)) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (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: (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))))) right: (number_literal))))))) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (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 param_2,undefined4 param_3,undefined4 param_4)

{
  undefined4 uVar1;
  undefined4 uVar2;
  int iVar3;
  undefined4 uVar4;
  undefined4 uVar5;
  undefined8 uVar6;
  undefined1 local_20 [12];
  undefined4 uStack_14;
  
  uStack_14 = 0x55b59;
  uVar2 = param_1[1];
  uVar5 = param_1[2];
  if (DAT_001d01fc != 0) {
    printf("arelent: %s@%#lx: add=%li\n",*(undefined4 *)(*(int *)*param_1 + 4),uVar2,param_1[3]);
    uVar2 = param_1[1];
    uVar5 = param_1[2];
  }
  iVar3 = bfd_get_section_contents(*(undefined4 *)(param_2 + 0xac),param_2,local_20,uVar2,uVar5,4,0)
  ;
  if (iVar3 == 0) {
    uVar2 = param_1[2];
    uVar5 = param_1[1];
    uVar1 = *(undefined4 *)(param_2 + 0xac);
    uVar4 = dcgettext(0,"%P: %C: cannot get section contents - auto-import exception\n",5);
    FUN_00034d20(uVar4,uVar1,param_2,uVar5,uVar2);
  }
  uVar6 = (**(code **)(*(int *)(*(int *)(param_2 + 0xac) + 4) + 0x28))(local_20);
  FUN_00064730(param_1,param_2,uVar6,param_3,param_4);
  return;
}

