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

void add_wrap(char *name)

{
  int iVar1;
  char *pcVar2;
  
  if (link_info.wrap_hash == (bfd_hash_table *)0x0) {
    link_info.wrap_hash = (bfd_hash_table *)xmalloc(0x1c);
    iVar1 = bfd_hash_table_init_n(link_info.wrap_hash,PTR_bfd_hash_newfunc_0013bfa0,0xc,0x3d);
    if (iVar1 == 0) {
      pcVar2 = (char *)dcgettext(0,"%F%P: bfd_hash_table_init failed: %E\n",5);
      einfo(pcVar2);
    }
  }
  iVar1 = bfd_hash_lookup(link_info.wrap_hash,name,1,1);
  if (iVar1 == 0) {
    pcVar2 = (char *)dcgettext(0,"%F%P: bfd_hash_lookup failed: %E\n",5);
    einfo(pcVar2);
    return;
  }
  return;
}



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

void FUN_0002e5e0(undefined4 param_1)

{
  int iVar1;
  undefined4 uVar2;
  
  if (DAT_0013d6ec == 0) {
    DAT_0013d6ec = xmalloc(0x1c);
    iVar1 = bfd_hash_table_init_n(DAT_0013d6ec,PTR_bfd_hash_newfunc_0013bfa0,0xc,0x3d);
    if (iVar1 == 0) {
      uVar2 = dcgettext(0,"%F%P: bfd_hash_table_init failed: %E\n",5);
      FUN_00033ba0(uVar2);
    }
  }
  iVar1 = bfd_hash_lookup(DAT_0013d6ec,param_1,1,1);
  if (iVar1 == 0) {
    uVar2 = dcgettext(0,"%F%P: bfd_hash_lookup failed: %E\n",5);
    FUN_00033ba0(uVar2);
    return;
  }
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00016a30
ADD EBX,0x10da19
SUB ESP,0x4
LEA ESI,[EBX + 0x16c0]
MOV EAX,dword ptr [ESI + 0x2c]
TEST EAX,EAX
JZ 0x0002e620
PUSH 0x1
PUSH 0x1
PUSH dword ptr [ESP + 0x18]
PUSH EAX
CALL 0x00015670
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0002e650
ADD ESP,0x4
POP EBX
POP ESI
RET
SUB ESP,0xc
PUSH 0x1c
CALL 0x00015c78
PUSH 0x3d
PUSH 0xc
PUSH dword ptr [EBX + 0xffffffa0]
PUSH EAX
MOV dword ptr [ESI + 0x2c],EAX
CALL 0x00015550
ADD ESP,0x20
TEST EAX,EAX
JZ 0x0002e678
MOV EAX,dword ptr [ESI + 0x2c]
JMP 0x0002e5fd
SUB ESP,0x4
LEA EAX,[EBX + 0xfff27910]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000152e0
MOV dword ptr [ESP],EAX
CALL 0x00033ba0
ADD ESP,0x10
ADD ESP,0x4
POP EBX
POP ESI
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xfff278e8]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000152e0
MOV dword ptr [ESP],EAX
CALL 0x00033ba0
MOV EAX,dword ptr [ESI + 0x2c]
ADD ESP,0x10
JMP 0x0002e5fd
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0002e5e0(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (DAT_0013d6ec == 0) {\n    DAT_0013d6ec = xmalloc(0x1c);\n    iVar1 = bfd_hash_table_init_n(DAT_0013d6ec,PTR_bfd_hash_newfunc_0013bfa0,0xc,0x3d);\n    if (iVar1 == 0) {\n      uVar2 = dcgettext(0,"%F%P: bfd_hash_table_init failed: %E\n",5);\n      FUN_00033ba0(uVar2);\n    }\n  }\n  iVar1 = bfd_hash_lookup(DAT_0013d6ec,param_1,1,1);\n  if (iVar1 == 0) {\n    uVar2 = dcgettext(0,"%F%P: bfd_hash_lookup failed: %E\n",5);\n    FUN_00033ba0(uVar2);\n    return;\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_0002e5e0(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (DAT_0013d6ec == 0) {\n    DAT_0013d6ec = xmalloc(0x1c);\n    iVar1 = bfd_hash_table_init_n(DAT_0013d6ec,PTR_bfd_hash_newfunc_0013bfa0,0xc,0x3d);\n    if (iVar1 == 0) {\n      uVar2 = dcgettext(0,"%F%P: bfd_hash_table_init failed: %E\n",5);\n      FUN_00033ba0(uVar2);\n    }\n  }\n  iVar1 = bfd_hash_lookup(DAT_0013d6ec,param_1,1,1);\n  if (iVar1 == 0) {\n    uVar2 = dcgettext(0,"%F%P: bfd_hash_lookup failed: %E\n",5);\n    FUN_00033ba0(uVar2);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0002e5e0(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (DAT_0013d6ec == 0) {\n    DAT_0013d6ec = xmalloc(0x1c);\n    iVar1 = bfd_hash_table_init_n(DAT_0013d6ec,PTR_bfd_hash_newfunc_0013bfa0,0xc,0x3d);\n    if (iVar1 == 0) {\n      uVar2 = dcgettext(0,"%F%P: bfd_hash_table_init failed: %E\n",5);\n      FUN_00033ba0(uVar2);\n    }\n  }\n  iVar1 = bfd_hash_lookup(DAT_0013d6ec,param_1,1,1);\n  if (iVar1 == 0) {\n    uVar2 = dcgettext(0,"%F%P: bfd_hash_lookup failed: %E\n",5);\n    FUN_00033ba0(uVar2);\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if (DAT_0013d6ec == 0) {\n    DAT_0013d6ec = xmalloc(0x1c);\n    iVar1 = bfd_hash_table_init_n(DAT_0013d6ec,PTR_bfd_hash_newfunc_0013bfa0,0xc,0x3d);\n    if (iVar1 == 0) {\n      uVar2 = dcgettext(0,"%F%P: bfd_hash_table_init failed: %E\n",5);\n      FUN_00033ba0(uVar2);\n    }\n  }" if (parenthesized_expression "(DAT_0013d6ec == 0)" ( (binary_expression "DAT_0013d6ec == 0" identifier == number_literal) )) (compound_statement "{\n    DAT_0013d6ec = xmalloc(0x1c);\n    iVar1 = bfd_hash_table_init_n(DAT_0013d6ec,PTR_bfd_hash_newfunc_0013bfa0,0xc,0x3d);\n    if (iVar1 == 0) {\n      uVar2 = dcgettext(0,"%F%P: bfd_hash_table_init failed: %E\n",5);\n      FUN_00033ba0(uVar2);\n    }\n  }" { (expression_statement "DAT_0013d6ec = xmalloc(0x1c);" (assignment_expression "DAT_0013d6ec = xmalloc(0x1c)" identifier = (call_expression "xmalloc(0x1c)" identifier (argument_list "(0x1c)" ( number_literal )))) ;) (expression_statement "iVar1 = bfd_hash_table_init_n(DAT_0013d6ec,PTR_bfd_hash_newfunc_0013bfa0,0xc,0x3d);" (assignment_expression "iVar1 = bfd_hash_table_init_n(DAT_0013d6ec,PTR_bfd_hash_newfunc_0013bfa0,0xc,0x3d)" identifier = (call_expression "bfd_hash_table_init_n(DAT_0013d6ec,PTR_bfd_hash_newfunc_0013bfa0,0xc,0x3d)" identifier (argument_list "(DAT_0013d6ec,PTR_bfd_hash_newfunc_0013bfa0,0xc,0x3d)" ( identifier , identifier , number_literal , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n      uVar2 = dcgettext(0,"%F%P: bfd_hash_table_init failed: %E\n",5);\n      FUN_00033ba0(uVar2);\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar2 = dcgettext(0,"%F%P: bfd_hash_table_init failed: %E\n",5);\n      FUN_00033ba0(uVar2);\n    }" { (expression_statement "uVar2 = dcgettext(0,"%F%P: bfd_hash_table_init failed: %E\n",5);" (assignment_expression "uVar2 = dcgettext(0,"%F%P: bfd_hash_table_init failed: %E\n",5)" identifier = (call_expression "dcgettext(0,"%F%P: bfd_hash_table_init failed: %E\n",5)" identifier (argument_list "(0,"%F%P: bfd_hash_table_init failed: %E\n",5)" ( number_literal , (string_literal ""%F%P: bfd_hash_table_init failed: %E\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_00033ba0(uVar2);" (call_expression "FUN_00033ba0(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) })) })) (expression_statement "iVar1 = bfd_hash_lookup(DAT_0013d6ec,param_1,1,1);" (assignment_expression "iVar1 = bfd_hash_lookup(DAT_0013d6ec,param_1,1,1)" identifier = (call_expression "bfd_hash_lookup(DAT_0013d6ec,param_1,1,1)" identifier (argument_list "(DAT_0013d6ec,param_1,1,1)" ( identifier , identifier , number_literal , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n    uVar2 = dcgettext(0,"%F%P: bfd_hash_lookup failed: %E\n",5);\n    FUN_00033ba0(uVar2);\n    return;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar2 = dcgettext(0,"%F%P: bfd_hash_lookup failed: %E\n",5);\n    FUN_00033ba0(uVar2);\n    return;\n  }" { (expression_statement "uVar2 = dcgettext(0,"%F%P: bfd_hash_lookup failed: %E\n",5);" (assignment_expression "uVar2 = dcgettext(0,"%F%P: bfd_hash_lookup failed: %E\n",5)" identifier = (call_expression "dcgettext(0,"%F%P: bfd_hash_lookup failed: %E\n",5)" identifier (argument_list "(0,"%F%P: bfd_hash_lookup failed: %E\n",5)" ( number_literal , (string_literal ""%F%P: bfd_hash_lookup failed: %E\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_00033ba0(uVar2);" (call_expression "FUN_00033ba0(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (return_statement "return;" return ;) })) (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 add_wrap(char *name)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  if (link_info.wrap_hash == (bfd_hash_table *)0x0) {\n    link_info.wrap_hash = (bfd_hash_table *)xmalloc(0x1c);\n    iVar1 = bfd_hash_table_init_n(link_info.wrap_hash,PTR_bfd_hash_newfunc_0013bfa0,0xc,0x3d);\n    if (iVar1 == 0) {\n      pcVar2 = (char *)dcgettext(0,"%F%P: bfd_hash_table_init failed: %E\n",5);\n      einfo(pcVar2);\n    }\n  }\n  iVar1 = bfd_hash_lookup(link_info.wrap_hash,name,1,1);\n  if (iVar1 == 0) {\n    pcVar2 = (char *)dcgettext(0,"%F%P: bfd_hash_lookup failed: %E\n",5);\n    einfo(pcVar2);\n    return;\n  }\n  return;\n}\n\n" comment comment (function_definition "void add_wrap(char *name)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  if (link_info.wrap_hash == (bfd_hash_table *)0x0) {\n    link_info.wrap_hash = (bfd_hash_table *)xmalloc(0x1c);\n    iVar1 = bfd_hash_table_init_n(link_info.wrap_hash,PTR_bfd_hash_newfunc_0013bfa0,0xc,0x3d);\n    if (iVar1 == 0) {\n      pcVar2 = (char *)dcgettext(0,"%F%P: bfd_hash_table_init failed: %E\n",5);\n      einfo(pcVar2);\n    }\n  }\n  iVar1 = bfd_hash_lookup(link_info.wrap_hash,name,1,1);\n  if (iVar1 == 0) {\n    pcVar2 = (char *)dcgettext(0,"%F%P: bfd_hash_lookup failed: %E\n",5);\n    einfo(pcVar2);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "add_wrap(char *name)" identifier (parameter_list "(char *name)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  \n  if (link_info.wrap_hash == (bfd_hash_table *)0x0) {\n    link_info.wrap_hash = (bfd_hash_table *)xmalloc(0x1c);\n    iVar1 = bfd_hash_table_init_n(link_info.wrap_hash,PTR_bfd_hash_newfunc_0013bfa0,0xc,0x3d);\n    if (iVar1 == 0) {\n      pcVar2 = (char *)dcgettext(0,"%F%P: bfd_hash_table_init failed: %E\n",5);\n      einfo(pcVar2);\n    }\n  }\n  iVar1 = bfd_hash_lookup(link_info.wrap_hash,name,1,1);\n  if (iVar1 == 0) {\n    pcVar2 = (char *)dcgettext(0,"%F%P: bfd_hash_lookup failed: %E\n",5);\n    einfo(pcVar2);\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (if_statement "if (link_info.wrap_hash == (bfd_hash_table *)0x0) {\n    link_info.wrap_hash = (bfd_hash_table *)xmalloc(0x1c);\n    iVar1 = bfd_hash_table_init_n(link_info.wrap_hash,PTR_bfd_hash_newfunc_0013bfa0,0xc,0x3d);\n    if (iVar1 == 0) {\n      pcVar2 = (char *)dcgettext(0,"%F%P: bfd_hash_table_init failed: %E\n",5);\n      einfo(pcVar2);\n    }\n  }" if (parenthesized_expression "(link_info.wrap_hash == (bfd_hash_table *)0x0)" ( (binary_expression "link_info.wrap_hash == (bfd_hash_table *)0x0" (field_expression "link_info.wrap_hash" identifier . field_identifier) == (cast_expression "(bfd_hash_table *)0x0" ( (type_descriptor "bfd_hash_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    link_info.wrap_hash = (bfd_hash_table *)xmalloc(0x1c);\n    iVar1 = bfd_hash_table_init_n(link_info.wrap_hash,PTR_bfd_hash_newfunc_0013bfa0,0xc,0x3d);\n    if (iVar1 == 0) {\n      pcVar2 = (char *)dcgettext(0,"%F%P: bfd_hash_table_init failed: %E\n",5);\n      einfo(pcVar2);\n    }\n  }" { (expression_statement "link_info.wrap_hash = (bfd_hash_table *)xmalloc(0x1c);" (assignment_expression "link_info.wrap_hash = (bfd_hash_table *)xmalloc(0x1c)" (field_expression "link_info.wrap_hash" identifier . field_identifier) = (cast_expression "(bfd_hash_table *)xmalloc(0x1c)" ( (type_descriptor "bfd_hash_table *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x1c)" identifier (argument_list "(0x1c)" ( number_literal ))))) ;) (expression_statement "iVar1 = bfd_hash_table_init_n(link_info.wrap_hash,PTR_bfd_hash_newfunc_0013bfa0,0xc,0x3d);" (assignment_expression "iVar1 = bfd_hash_table_init_n(link_info.wrap_hash,PTR_bfd_hash_newfunc_0013bfa0,0xc,0x3d)" identifier = (call_expression "bfd_hash_table_init_n(link_info.wrap_hash,PTR_bfd_hash_newfunc_0013bfa0,0xc,0x3d)" identifier (argument_list "(link_info.wrap_hash,PTR_bfd_hash_newfunc_0013bfa0,0xc,0x3d)" ( (field_expression "link_info.wrap_hash" identifier . field_identifier) , identifier , number_literal , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n      pcVar2 = (char *)dcgettext(0,"%F%P: bfd_hash_table_init failed: %E\n",5);\n      einfo(pcVar2);\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      pcVar2 = (char *)dcgettext(0,"%F%P: bfd_hash_table_init failed: %E\n",5);\n      einfo(pcVar2);\n    }" { (expression_statement "pcVar2 = (char *)dcgettext(0,"%F%P: bfd_hash_table_init failed: %E\n",5);" (assignment_expression "pcVar2 = (char *)dcgettext(0,"%F%P: bfd_hash_table_init failed: %E\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"%F%P: bfd_hash_table_init failed: %E\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"%F%P: bfd_hash_table_init failed: %E\n",5)" identifier (argument_list "(0,"%F%P: bfd_hash_table_init failed: %E\n",5)" ( number_literal , (string_literal ""%F%P: bfd_hash_table_init failed: %E\n"" " string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "einfo(pcVar2);" (call_expression "einfo(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier ))) ;) })) })) (expression_statement "iVar1 = bfd_hash_lookup(link_info.wrap_hash,name,1,1);" (assignment_expression "iVar1 = bfd_hash_lookup(link_info.wrap_hash,name,1,1)" identifier = (call_expression "bfd_hash_lookup(link_info.wrap_hash,name,1,1)" identifier (argument_list "(link_info.wrap_hash,name,1,1)" ( (field_expression "link_info.wrap_hash" identifier . field_identifier) , identifier , number_literal , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n    pcVar2 = (char *)dcgettext(0,"%F%P: bfd_hash_lookup failed: %E\n",5);\n    einfo(pcVar2);\n    return;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    pcVar2 = (char *)dcgettext(0,"%F%P: bfd_hash_lookup failed: %E\n",5);\n    einfo(pcVar2);\n    return;\n  }" { (expression_statement "pcVar2 = (char *)dcgettext(0,"%F%P: bfd_hash_lookup failed: %E\n",5);" (assignment_expression "pcVar2 = (char *)dcgettext(0,"%F%P: bfd_hash_lookup failed: %E\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"%F%P: bfd_hash_lookup failed: %E\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"%F%P: bfd_hash_lookup failed: %E\n",5)" identifier (argument_list "(0,"%F%P: bfd_hash_lookup failed: %E\n",5)" ( number_literal , (string_literal ""%F%P: bfd_hash_lookup failed: %E\n"" " string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "einfo(pcVar2);" (call_expression "einfo(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0002e5e0(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (DAT_0013d6ec == 0) {\n    DAT_0013d6ec = xmalloc(0x1c);\n    iVar1 = bfd_hash_table_init_n(DAT_0013d6ec,PTR_bfd_hash_newfunc_0013bfa0,0xc,0x3d);\n    if (iVar1 == 0) {\n      uVar2 = dcgettext(0,"%F%P: bfd_hash_table_init failed: %E\n",5);\n      FUN_00033ba0(uVar2);\n    }\n  }\n  iVar1 = bfd_hash_lookup(DAT_0013d6ec,param_1,1,1);\n  if (iVar1 == 0) {\n    uVar2 = dcgettext(0,"%F%P: bfd_hash_lookup failed: %E\n",5);\n    FUN_00033ba0(uVar2);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0002e5e0(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (DAT_0013d6ec == 0) {\n    DAT_0013d6ec = xmalloc(0x1c);\n    iVar1 = bfd_hash_table_init_n(DAT_0013d6ec,PTR_bfd_hash_newfunc_0013bfa0,0xc,0x3d);\n    if (iVar1 == 0) {\n      uVar2 = dcgettext(0,"%F%P: bfd_hash_table_init failed: %E\n",5);\n      FUN_00033ba0(uVar2);\n    }\n  }\n  iVar1 = bfd_hash_lookup(DAT_0013d6ec,param_1,1,1);\n  if (iVar1 == 0) {\n    uVar2 = dcgettext(0,"%F%P: bfd_hash_lookup failed: %E\n",5);\n    FUN_00033ba0(uVar2);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0002e5e0(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (DAT_0013d6ec == 0) {\n    DAT_0013d6ec = xmalloc(0x1c);\n    iVar1 = bfd_hash_table_init_n(DAT_0013d6ec,PTR_bfd_hash_newfunc_0013bfa0,0xc,0x3d);\n    if (iVar1 == 0) {\n      uVar2 = dcgettext(0,"%F%P: bfd_hash_table_init failed: %E\n",5);\n      FUN_00033ba0(uVar2);\n    }\n  }\n  iVar1 = bfd_hash_lookup(DAT_0013d6ec,param_1,1,1);\n  if (iVar1 == 0) {\n    uVar2 = dcgettext(0,"%F%P: bfd_hash_lookup failed: %E\n",5);\n    FUN_00033ba0(uVar2);\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if (DAT_0013d6ec == 0) {\n    DAT_0013d6ec = xmalloc(0x1c);\n    iVar1 = bfd_hash_table_init_n(DAT_0013d6ec,PTR_bfd_hash_newfunc_0013bfa0,0xc,0x3d);\n    if (iVar1 == 0) {\n      uVar2 = dcgettext(0,"%F%P: bfd_hash_table_init failed: %E\n",5);\n      FUN_00033ba0(uVar2);\n    }\n  }" if (parenthesized_expression "(DAT_0013d6ec == 0)" ( (binary_expression "DAT_0013d6ec == 0" identifier == number_literal) )) (compound_statement "{\n    DAT_0013d6ec = xmalloc(0x1c);\n    iVar1 = bfd_hash_table_init_n(DAT_0013d6ec,PTR_bfd_hash_newfunc_0013bfa0,0xc,0x3d);\n    if (iVar1 == 0) {\n      uVar2 = dcgettext(0,"%F%P: bfd_hash_table_init failed: %E\n",5);\n      FUN_00033ba0(uVar2);\n    }\n  }" { (expression_statement "DAT_0013d6ec = xmalloc(0x1c);" (assignment_expression "DAT_0013d6ec = xmalloc(0x1c)" identifier = (call_expression "xmalloc(0x1c)" identifier (argument_list "(0x1c)" ( number_literal )))) ;) (expression_statement "iVar1 = bfd_hash_table_init_n(DAT_0013d6ec,PTR_bfd_hash_newfunc_0013bfa0,0xc,0x3d);" (assignment_expression "iVar1 = bfd_hash_table_init_n(DAT_0013d6ec,PTR_bfd_hash_newfunc_0013bfa0,0xc,0x3d)" identifier = (call_expression "bfd_hash_table_init_n(DAT_0013d6ec,PTR_bfd_hash_newfunc_0013bfa0,0xc,0x3d)" identifier (argument_list "(DAT_0013d6ec,PTR_bfd_hash_newfunc_0013bfa0,0xc,0x3d)" ( identifier , identifier , number_literal , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n      uVar2 = dcgettext(0,"%F%P: bfd_hash_table_init failed: %E\n",5);\n      FUN_00033ba0(uVar2);\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar2 = dcgettext(0,"%F%P: bfd_hash_table_init failed: %E\n",5);\n      FUN_00033ba0(uVar2);\n    }" { (expression_statement "uVar2 = dcgettext(0,"%F%P: bfd_hash_table_init failed: %E\n",5);" (assignment_expression "uVar2 = dcgettext(0,"%F%P: bfd_hash_table_init failed: %E\n",5)" identifier = (call_expression "dcgettext(0,"%F%P: bfd_hash_table_init failed: %E\n",5)" identifier (argument_list "(0,"%F%P: bfd_hash_table_init failed: %E\n",5)" ( number_literal , (string_literal ""%F%P: bfd_hash_table_init failed: %E\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_00033ba0(uVar2);" (call_expression "FUN_00033ba0(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) })) })) (expression_statement "iVar1 = bfd_hash_lookup(DAT_0013d6ec,param_1,1,1);" (assignment_expression "iVar1 = bfd_hash_lookup(DAT_0013d6ec,param_1,1,1)" identifier = (call_expression "bfd_hash_lookup(DAT_0013d6ec,param_1,1,1)" identifier (argument_list "(DAT_0013d6ec,param_1,1,1)" ( identifier , identifier , number_literal , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n    uVar2 = dcgettext(0,"%F%P: bfd_hash_lookup failed: %E\n",5);\n    FUN_00033ba0(uVar2);\n    return;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar2 = dcgettext(0,"%F%P: bfd_hash_lookup failed: %E\n",5);\n    FUN_00033ba0(uVar2);\n    return;\n  }" { (expression_statement "uVar2 = dcgettext(0,"%F%P: bfd_hash_lookup failed: %E\n",5);" (assignment_expression "uVar2 = dcgettext(0,"%F%P: bfd_hash_lookup failed: %E\n",5)" identifier = (call_expression "dcgettext(0,"%F%P: bfd_hash_lookup failed: %E\n",5)" identifier (argument_list "(0,"%F%P: bfd_hash_lookup failed: %E\n",5)" ( number_literal , (string_literal ""%F%P: bfd_hash_lookup failed: %E\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_00033ba0(uVar2);" (call_expression "FUN_00033ba0(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (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 ))) ;) })) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (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 ))) ;) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void FUN_0002e5e0(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (DAT_0013d6ec == 0) {\n    DAT_0013d6ec = xmalloc(0x1c);\n    iVar1 = bfd_hash_table_init_n(DAT_0013d6ec,PTR_bfd_hash_newfunc_0013bfa0,0xc,0x3d);\n    if (iVar1 == 0) {\n      uVar2 = dcgettext(0,"%F%P: bfd_hash_table_init failed: %E\n",5);\n      FUN_00033ba0(uVar2);\n    }\n  }\n  iVar1 = bfd_hash_lookup(DAT_0013d6ec,param_1,1,1);\n  if (iVar1 == 0) {\n    uVar2 = dcgettext(0,"%F%P: bfd_hash_lookup failed: %E\n",5);\n    FUN_00033ba0(uVar2);\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0002e5e0(undefined4 param_1)" (identifier "FUN_0002e5e0") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (DAT_0013d6ec == 0) {\n    DAT_0013d6ec = xmalloc(0x1c);\n    iVar1 = bfd_hash_table_init_n(DAT_0013d6ec,PTR_bfd_hash_newfunc_0013bfa0,0xc,0x3d);\n    if (iVar1 == 0) {\n      uVar2 = dcgettext(0,"%F%P: bfd_hash_table_init failed: %E\n",5);\n      FUN_00033ba0(uVar2);\n    }\n  }\n  iVar1 = bfd_hash_lookup(DAT_0013d6ec,param_1,1,1);\n  if (iVar1 == 0) {\n    uVar2 = dcgettext(0,"%F%P: bfd_hash_lookup failed: %E\n",5);\n    FUN_00033ba0(uVar2);\n    return;\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (if_statement "if (DAT_0013d6ec == 0) {\n    DAT_0013d6ec = xmalloc(0x1c);\n    iVar1 = bfd_hash_table_init_n(DAT_0013d6ec,PTR_bfd_hash_newfunc_0013bfa0,0xc,0x3d);\n    if (iVar1 == 0) {\n      uVar2 = dcgettext(0,"%F%P: bfd_hash_table_init failed: %E\n",5);\n      FUN_00033ba0(uVar2);\n    }\n  }" (if "if") (parenthesized_expression "(DAT_0013d6ec == 0)" (( "(") (binary_expression "DAT_0013d6ec == 0" (identifier "DAT_0013d6ec") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    DAT_0013d6ec = xmalloc(0x1c);\n    iVar1 = bfd_hash_table_init_n(DAT_0013d6ec,PTR_bfd_hash_newfunc_0013bfa0,0xc,0x3d);\n    if (iVar1 == 0) {\n      uVar2 = dcgettext(0,"%F%P: bfd_hash_table_init failed: %E\n",5);\n      FUN_00033ba0(uVar2);\n    }\n  }" ({ "{") (expression_statement "DAT_0013d6ec = xmalloc(0x1c);" (assignment_expression "DAT_0013d6ec = xmalloc(0x1c)" (identifier "DAT_0013d6ec") (= "=") (call_expression "xmalloc(0x1c)" (identifier "xmalloc") (argument_list "(0x1c)" (( "(") (number_literal "0x1c") () ")")))) (; ";")) (expression_statement "iVar1 = bfd_hash_table_init_n(DAT_0013d6ec,PTR_bfd_hash_newfunc_0013bfa0,0xc,0x3d);" (assignment_expression "iVar1 = bfd_hash_table_init_n(DAT_0013d6ec,PTR_bfd_hash_newfunc_0013bfa0,0xc,0x3d)" (identifier "iVar1") (= "=") (call_expression "bfd_hash_table_init_n(DAT_0013d6ec,PTR_bfd_hash_newfunc_0013bfa0,0xc,0x3d)" (identifier "bfd_hash_table_init_n") (argument_list "(DAT_0013d6ec,PTR_bfd_hash_newfunc_0013bfa0,0xc,0x3d)" (( "(") (identifier "DAT_0013d6ec") (, ",") (identifier "PTR_bfd_hash_newfunc_0013bfa0") (, ",") (number_literal "0xc") (, ",") (number_literal "0x3d") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n      uVar2 = dcgettext(0,"%F%P: bfd_hash_table_init failed: %E\n",5);\n      FUN_00033ba0(uVar2);\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar2 = dcgettext(0,"%F%P: bfd_hash_table_init failed: %E\n",5);\n      FUN_00033ba0(uVar2);\n    }" ({ "{") (expression_statement "uVar2 = dcgettext(0,"%F%P: bfd_hash_table_init failed: %E\n",5);" (assignment_expression "uVar2 = dcgettext(0,"%F%P: bfd_hash_table_init failed: %E\n",5)" (identifier "uVar2") (= "=") (call_expression "dcgettext(0,"%F%P: bfd_hash_table_init failed: %E\n",5)" (identifier "dcgettext") (argument_list "(0,"%F%P: bfd_hash_table_init failed: %E\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""%F%P: bfd_hash_table_init failed: %E\n"" (" """) (string_content "%F%P: bfd_hash_table_init failed: %E") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_00033ba0(uVar2);" (call_expression "FUN_00033ba0(uVar2)" (identifier "FUN_00033ba0") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "iVar1 = bfd_hash_lookup(DAT_0013d6ec,param_1,1,1);" (assignment_expression "iVar1 = bfd_hash_lookup(DAT_0013d6ec,param_1,1,1)" (identifier "iVar1") (= "=") (call_expression "bfd_hash_lookup(DAT_0013d6ec,param_1,1,1)" (identifier "bfd_hash_lookup") (argument_list "(DAT_0013d6ec,param_1,1,1)" (( "(") (identifier "DAT_0013d6ec") (, ",") (identifier "param_1") (, ",") (number_literal "1") (, ",") (number_literal "1") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    uVar2 = dcgettext(0,"%F%P: bfd_hash_lookup failed: %E\n",5);\n    FUN_00033ba0(uVar2);\n    return;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar2 = dcgettext(0,"%F%P: bfd_hash_lookup failed: %E\n",5);\n    FUN_00033ba0(uVar2);\n    return;\n  }" ({ "{") (expression_statement "uVar2 = dcgettext(0,"%F%P: bfd_hash_lookup failed: %E\n",5);" (assignment_expression "uVar2 = dcgettext(0,"%F%P: bfd_hash_lookup failed: %E\n",5)" (identifier "uVar2") (= "=") (call_expression "dcgettext(0,"%F%P: bfd_hash_lookup failed: %E\n",5)" (identifier "dcgettext") (argument_list "(0,"%F%P: bfd_hash_lookup failed: %E\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""%F%P: bfd_hash_lookup failed: %E\n"" (" """) (string_content "%F%P: bfd_hash_lookup failed: %E") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_00033ba0(uVar2);" (call_expression "FUN_00033ba0(uVar2)" (identifier "FUN_00033ba0") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(char *name)

{
  int var_3;
  char *pcVar2;
  
  if (link_info.wrap_hash == (type_1 *)0x0) {
    link_info.wrap_hash = (type_1 *)var_1(0x1c);
    var_3 = var_2(link_info.wrap_hash,PTR_bfd_hash_newfunc_0013bfa0,0xc,0x3d);
    if (var_3 == 0) {
      pcVar2 = (char *)var_4(0,"%F%P: bfd_hash_table_init failed: %E\n",5);
      var_5(pcVar2);
    }
  }
  var_3 = var_6(link_info.wrap_hash,name,1,1);
  if (var_3 == 0) {
    pcVar2 = (char *)var_4(0,"%F%P: bfd_hash_lookup failed: %E\n",5);
    var_5(pcVar2);
    return;
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (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: (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)))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (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: (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)))) (return_statement))) (return_statement))))

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

void MASKED(undefined4 param_1)

{
  int iVar1;
  undefined4 uVar2;
  
  if (DAT_0013d6ec == 0) {
    DAT_0013d6ec = xmalloc(0x1c);
    iVar1 = bfd_hash_table_init_n(DAT_0013d6ec,PTR_bfd_hash_newfunc_0013bfa0,0xc,0x3d);
    if (iVar1 == 0) {
      uVar2 = dcgettext(0,"%F%P: bfd_hash_table_init failed: %E\n",5);
      FUN_00033ba0(uVar2);
    }
  }
  iVar1 = bfd_hash_lookup(DAT_0013d6ec,param_1,1,1);
  if (iVar1 == 0) {
    uVar2 = dcgettext(0,"%F%P: bfd_hash_lookup failed: %E\n",5);
    FUN_00033ba0(uVar2);
    return;
  }
  return;
}

