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

void __regparm3
check_refs(char *name,bfd_boolean global,asection *sec,bfd *abfd,lang_nocrossrefs *ncrs)

{
  int iVar1;
  char *fmt;
  check_refs_info info;
  
  iVar1 = bfd_generic_link_read_symbols(abfd);
  if (iVar1 == 0) {
    fmt = (char *)dcgettext(0,"%F%P: %pB: could not read symbols: %E\n",5);
    einfo(fmt,abfd);
  }
  info.ncrs = ncrs;
  info.asymbols = abfd->outsymbols;
  info.sym_name = name;
  info.defsec = sec;
  info.global = global;
  bfd_map_over_sections(abfd,check_reloc_refs,&info);
  return;
}



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

void __regparm3
FUN_00035f10(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,undefined4 param_5
            )

{
  int iVar1;
  undefined4 uVar2;
  undefined1 local_30 [4];
  undefined4 local_2c;
  undefined4 local_28;
  undefined4 local_24;
  undefined4 local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x35f1d;
  iVar1 = bfd_generic_link_read_symbols(param_4);
  if (iVar1 == 0) {
    uVar2 = dcgettext(0,"%F%P: %pB: could not read symbols: %E\n",5);
    FUN_00034dc0(uVar2,param_4);
  }
  local_28 = param_5;
  local_24 = *(undefined4 *)(param_4 + 0x78);
  local_2c = param_3;
  local_20 = param_2;
  bfd_map_over_sections(param_4,FUN_00036250,local_30);
  return;
}


PUSH EBP
MOV EBP,EAX
PUSH EDI
MOV EDI,EDX
PUSH ESI
PUSH EBX
CALL 0x00017c50
ADD EBX,0x18c0e3
SUB ESP,0x48
MOV ESI,dword ptr [ESP + 0x5c]
MOV dword ptr [ESP + 0x18],ECX
PUSH ESI
CALL 0x000161c0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00035f80
MOV EAX,dword ptr [ESP + 0xc]
MOV dword ptr [ESP + 0x1c],EBP
SUB ESP,0x4
MOV dword ptr [ESP + 0x30],EDI
MOV dword ptr [ESP + 0x24],EAX
MOV EAX,dword ptr [ESP + 0x58]
MOV dword ptr [ESP + 0x28],EAX
MOV EAX,dword ptr [ESI + 0x78]
MOV dword ptr [ESP + 0x2c],EAX
LEA EAX,[ESP + 0x20]
PUSH EAX
LEA EAX,[EBX + 0xffe74250]
PUSH EAX
PUSH ESI
CALL 0x00016ce0
ADD ESP,0x4c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xffebe2b0]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00016380
POP EDX
POP ECX
PUSH ESI
PUSH EAX
CALL 0x00034dc0
ADD ESP,0x10
JMP 0x00035f3b
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3\nFUN_00035f10(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,undefined4 param_5\n            )\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined1 local_30 [4];\n  undefined4 local_2c;\n  undefined4 local_28;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x35f1d;\n  iVar1 = bfd_generic_link_read_symbols(param_4);\n  if (iVar1 == 0) {\n    uVar2 = dcgettext(0,"%F%P: %pB: could not read symbols: %E\n",5);\n    FUN_00034dc0(uVar2,param_4);\n  }\n  local_28 = param_5;\n  local_24 = *(undefined4 *)(param_4 + 0x78);\n  local_2c = param_3;\n  local_20 = param_2;\n  bfd_map_over_sections(param_4,FUN_00036250,local_30);\n  return;\n}\n\n" comment (function_definition "void __regparm3\nFUN_00035f10(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,undefined4 param_5\n            )\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined1 local_30 [4];\n  undefined4 local_2c;\n  undefined4 local_28;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x35f1d;\n  iVar1 = bfd_generic_link_read_symbols(param_4);\n  if (iVar1 == 0) {\n    uVar2 = dcgettext(0,"%F%P: %pB: could not read symbols: %E\n",5);\n    FUN_00034dc0(uVar2,param_4);\n  }\n  local_28 = param_5;\n  local_24 = *(undefined4 *)(param_4 + 0x78);\n  local_2c = param_3;\n  local_20 = param_2;\n  bfd_map_over_sections(param_4,FUN_00036250,local_30);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00035f10(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,undefined4 param_5\n            )" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,undefined4 param_5\n            )" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined1 local_30 [4];\n  undefined4 local_2c;\n  undefined4 local_28;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x35f1d;\n  iVar1 = bfd_generic_link_read_symbols(param_4);\n  if (iVar1 == 0) {\n    uVar2 = dcgettext(0,"%F%P: %pB: could not read symbols: %E\n",5);\n    FUN_00034dc0(uVar2,param_4);\n  }\n  local_28 = param_5;\n  local_24 = *(undefined4 *)(param_4 + 0x78);\n  local_2c = param_3;\n  local_20 = param_2;\n  bfd_map_over_sections(param_4,FUN_00036250,local_30);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined1 local_30 [4];" type_identifier (array_declarator "local_30 [4]" identifier [ number_literal ]) ;) (declaration "undefined4 local_2c;" type_identifier identifier ;) (declaration "undefined4 local_28;" type_identifier identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x35f1d;" (assignment_expression "uStack_14 = 0x35f1d" identifier = number_literal) ;) (expression_statement "iVar1 = bfd_generic_link_read_symbols(param_4);" (assignment_expression "iVar1 = bfd_generic_link_read_symbols(param_4)" identifier = (call_expression "bfd_generic_link_read_symbols(param_4)" identifier (argument_list "(param_4)" ( identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    uVar2 = dcgettext(0,"%F%P: %pB: could not read symbols: %E\n",5);\n    FUN_00034dc0(uVar2,param_4);\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar2 = dcgettext(0,"%F%P: %pB: could not read symbols: %E\n",5);\n    FUN_00034dc0(uVar2,param_4);\n  }" { (expression_statement "uVar2 = dcgettext(0,"%F%P: %pB: could not read symbols: %E\n",5);" (assignment_expression "uVar2 = dcgettext(0,"%F%P: %pB: could not read symbols: %E\n",5)" identifier = (call_expression "dcgettext(0,"%F%P: %pB: could not read symbols: %E\n",5)" identifier (argument_list "(0,"%F%P: %pB: could not read symbols: %E\n",5)" ( number_literal , (string_literal ""%F%P: %pB: could not read symbols: %E\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_00034dc0(uVar2,param_4);" (call_expression "FUN_00034dc0(uVar2,param_4)" identifier (argument_list "(uVar2,param_4)" ( identifier , identifier ))) ;) })) (expression_statement "local_28 = param_5;" (assignment_expression "local_28 = param_5" identifier = identifier) ;) (expression_statement "local_24 = *(undefined4 *)(param_4 + 0x78);" (assignment_expression "local_24 = *(undefined4 *)(param_4 + 0x78)" identifier = (pointer_expression "*(undefined4 *)(param_4 + 0x78)" * (cast_expression "(undefined4 *)(param_4 + 0x78)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x78)" ( (binary_expression "param_4 + 0x78" identifier + number_literal) ))))) ;) (expression_statement "local_2c = param_3;" (assignment_expression "local_2c = param_3" identifier = identifier) ;) (expression_statement "local_20 = param_2;" (assignment_expression "local_20 = param_2" identifier = identifier) ;) (expression_statement "bfd_map_over_sections(param_4,FUN_00036250,local_30);" (call_expression "bfd_map_over_sections(param_4,FUN_00036250,local_30)" identifier (argument_list "(param_4,FUN_00036250,local_30)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3\ncheck_refs(char *name,bfd_boolean global,asection *sec,bfd *abfd,lang_nocrossrefs *ncrs)\n\n{\n  int iVar1;\n  char *fmt;\n  check_refs_info info;\n  \n  iVar1 = bfd_generic_link_read_symbols(abfd);\n  if (iVar1 == 0) {\n    fmt = (char *)dcgettext(0,"%F%P: %pB: could not read symbols: %E\n",5);\n    einfo(fmt,abfd);\n  }\n  info.ncrs = ncrs;\n  info.asymbols = abfd->outsymbols;\n  info.sym_name = name;\n  info.defsec = sec;\n  info.global = global;\n  bfd_map_over_sections(abfd,check_reloc_refs,&info);\n  return;\n}\n\n" comment (function_definition "void __regparm3\ncheck_refs(char *name,bfd_boolean global,asection *sec,bfd *abfd,lang_nocrossrefs *ncrs)\n\n{\n  int iVar1;\n  char *fmt;\n  check_refs_info info;\n  \n  iVar1 = bfd_generic_link_read_symbols(abfd);\n  if (iVar1 == 0) {\n    fmt = (char *)dcgettext(0,"%F%P: %pB: could not read symbols: %E\n",5);\n    einfo(fmt,abfd);\n  }\n  info.ncrs = ncrs;\n  info.asymbols = abfd->outsymbols;\n  info.sym_name = name;\n  info.defsec = sec;\n  info.global = global;\n  bfd_map_over_sections(abfd,check_reloc_refs,&info);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "check_refs(char *name,bfd_boolean global,asection *sec,bfd *abfd,lang_nocrossrefs *ncrs)" identifier (parameter_list "(char *name,bfd_boolean global,asection *sec,bfd *abfd,lang_nocrossrefs *ncrs)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "bfd_boolean global" type_identifier identifier) , (parameter_declaration "asection *sec" type_identifier (pointer_declarator "*sec" * identifier)) , (parameter_declaration "bfd *abfd" type_identifier (pointer_declarator "*abfd" * identifier)) , (parameter_declaration "lang_nocrossrefs *ncrs" type_identifier (pointer_declarator "*ncrs" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  char *fmt;\n  check_refs_info info;\n  \n  iVar1 = bfd_generic_link_read_symbols(abfd);\n  if (iVar1 == 0) {\n    fmt = (char *)dcgettext(0,"%F%P: %pB: could not read symbols: %E\n",5);\n    einfo(fmt,abfd);\n  }\n  info.ncrs = ncrs;\n  info.asymbols = abfd->outsymbols;\n  info.sym_name = name;\n  info.defsec = sec;\n  info.global = global;\n  bfd_map_over_sections(abfd,check_reloc_refs,&info);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *fmt;" primitive_type (pointer_declarator "*fmt" * identifier) ;) (declaration "check_refs_info info;" type_identifier identifier ;) (expression_statement "iVar1 = bfd_generic_link_read_symbols(abfd);" (assignment_expression "iVar1 = bfd_generic_link_read_symbols(abfd)" identifier = (call_expression "bfd_generic_link_read_symbols(abfd)" identifier (argument_list "(abfd)" ( identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    fmt = (char *)dcgettext(0,"%F%P: %pB: could not read symbols: %E\n",5);\n    einfo(fmt,abfd);\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    fmt = (char *)dcgettext(0,"%F%P: %pB: could not read symbols: %E\n",5);\n    einfo(fmt,abfd);\n  }" { (expression_statement "fmt = (char *)dcgettext(0,"%F%P: %pB: could not read symbols: %E\n",5);" (assignment_expression "fmt = (char *)dcgettext(0,"%F%P: %pB: could not read symbols: %E\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"%F%P: %pB: could not read symbols: %E\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"%F%P: %pB: could not read symbols: %E\n",5)" identifier (argument_list "(0,"%F%P: %pB: could not read symbols: %E\n",5)" ( number_literal , (string_literal ""%F%P: %pB: could not read symbols: %E\n"" " string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "einfo(fmt,abfd);" (call_expression "einfo(fmt,abfd)" identifier (argument_list "(fmt,abfd)" ( identifier , identifier ))) ;) })) (expression_statement "info.ncrs = ncrs;" (assignment_expression "info.ncrs = ncrs" (field_expression "info.ncrs" identifier . field_identifier) = identifier) ;) (expression_statement "info.asymbols = abfd->outsymbols;" (assignment_expression "info.asymbols = abfd->outsymbols" (field_expression "info.asymbols" identifier . field_identifier) = (field_expression "abfd->outsymbols" identifier -> field_identifier)) ;) (expression_statement "info.sym_name = name;" (assignment_expression "info.sym_name = name" (field_expression "info.sym_name" identifier . field_identifier) = identifier) ;) (expression_statement "info.defsec = sec;" (assignment_expression "info.defsec = sec" (field_expression "info.defsec" identifier . field_identifier) = identifier) ;) (expression_statement "info.global = global;" (assignment_expression "info.global = global" (field_expression "info.global" identifier . field_identifier) = identifier) ;) (expression_statement "bfd_map_over_sections(abfd,check_reloc_refs,&info);" (call_expression "bfd_map_over_sections(abfd,check_reloc_refs,&info)" identifier (argument_list "(abfd,check_reloc_refs,&info)" ( identifier , identifier , (pointer_expression "&info" & identifier) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3\nFUN_00035f10(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,undefined4 param_5\n            )\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined1 local_30 [4];\n  undefined4 local_2c;\n  undefined4 local_28;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x35f1d;\n  iVar1 = bfd_generic_link_read_symbols(param_4);\n  if (iVar1 == 0) {\n    uVar2 = dcgettext(0,"%F%P: %pB: could not read symbols: %E\n",5);\n    FUN_00034dc0(uVar2,param_4);\n  }\n  local_28 = param_5;\n  local_24 = *(undefined4 *)(param_4 + 0x78);\n  local_2c = param_3;\n  local_20 = param_2;\n  bfd_map_over_sections(param_4,FUN_00036250,local_30);\n  return;\n}\n\n" (function_definition "void __regparm3\nFUN_00035f10(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,undefined4 param_5\n            )\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined1 local_30 [4];\n  undefined4 local_2c;\n  undefined4 local_28;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x35f1d;\n  iVar1 = bfd_generic_link_read_symbols(param_4);\n  if (iVar1 == 0) {\n    uVar2 = dcgettext(0,"%F%P: %pB: could not read symbols: %E\n",5);\n    FUN_00034dc0(uVar2,param_4);\n  }\n  local_28 = param_5;\n  local_24 = *(undefined4 *)(param_4 + 0x78);\n  local_2c = param_3;\n  local_20 = param_2;\n  bfd_map_over_sections(param_4,FUN_00036250,local_30);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00035f10(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,undefined4 param_5\n            )" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,undefined4 param_5\n            )" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined1 local_30 [4];\n  undefined4 local_2c;\n  undefined4 local_28;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x35f1d;\n  iVar1 = bfd_generic_link_read_symbols(param_4);\n  if (iVar1 == 0) {\n    uVar2 = dcgettext(0,"%F%P: %pB: could not read symbols: %E\n",5);\n    FUN_00034dc0(uVar2,param_4);\n  }\n  local_28 = param_5;\n  local_24 = *(undefined4 *)(param_4 + 0x78);\n  local_2c = param_3;\n  local_20 = param_2;\n  bfd_map_over_sections(param_4,FUN_00036250,local_30);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined1 local_30 [4];" type_identifier (array_declarator "local_30 [4]" identifier [ number_literal ]) ;) (declaration "undefined4 local_2c;" type_identifier identifier ;) (declaration "undefined4 local_28;" type_identifier identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x35f1d;" (assignment_expression "uStack_14 = 0x35f1d" identifier = number_literal) ;) (expression_statement "iVar1 = bfd_generic_link_read_symbols(param_4);" (assignment_expression "iVar1 = bfd_generic_link_read_symbols(param_4)" identifier = (call_expression "bfd_generic_link_read_symbols(param_4)" identifier (argument_list "(param_4)" ( identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    uVar2 = dcgettext(0,"%F%P: %pB: could not read symbols: %E\n",5);\n    FUN_00034dc0(uVar2,param_4);\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar2 = dcgettext(0,"%F%P: %pB: could not read symbols: %E\n",5);\n    FUN_00034dc0(uVar2,param_4);\n  }" { (expression_statement "uVar2 = dcgettext(0,"%F%P: %pB: could not read symbols: %E\n",5);" (assignment_expression "uVar2 = dcgettext(0,"%F%P: %pB: could not read symbols: %E\n",5)" identifier = (call_expression "dcgettext(0,"%F%P: %pB: could not read symbols: %E\n",5)" identifier (argument_list "(0,"%F%P: %pB: could not read symbols: %E\n",5)" ( number_literal , (string_literal ""%F%P: %pB: could not read symbols: %E\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_00034dc0(uVar2,param_4);" (call_expression "FUN_00034dc0(uVar2,param_4)" identifier (argument_list "(uVar2,param_4)" ( identifier , identifier ))) ;) })) (expression_statement "local_28 = param_5;" (assignment_expression "local_28 = param_5" identifier = identifier) ;) (expression_statement "local_24 = *(undefined4 *)(param_4 + 0x78);" (assignment_expression "local_24 = *(undefined4 *)(param_4 + 0x78)" identifier = (pointer_expression "*(undefined4 *)(param_4 + 0x78)" * (cast_expression "(undefined4 *)(param_4 + 0x78)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x78)" ( (binary_expression "param_4 + 0x78" identifier + number_literal) ))))) ;) (expression_statement "local_2c = param_3;" (assignment_expression "local_2c = param_3" identifier = identifier) ;) (expression_statement "local_20 = param_2;" (assignment_expression "local_20 = param_2" identifier = identifier) ;) (expression_statement "bfd_map_over_sections(param_4,FUN_00036250,local_30);" (call_expression "bfd_map_over_sections(param_4,FUN_00036250,local_30)" identifier (argument_list "(param_4,FUN_00036250,local_30)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (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 , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (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 = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void __regparm3\nFUN_00035f10(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,undefined4 param_5\n            )\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined1 local_30 [4];\n  undefined4 local_2c;\n  undefined4 local_28;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x35f1d;\n  iVar1 = bfd_generic_link_read_symbols(param_4);\n  if (iVar1 == 0) {\n    uVar2 = dcgettext(0,"%F%P: %pB: could not read symbols: %E\n",5);\n    FUN_00034dc0(uVar2,param_4);\n  }\n  local_28 = param_5;\n  local_24 = *(undefined4 *)(param_4 + 0x78);\n  local_2c = param_3;\n  local_20 = param_2;\n  bfd_map_over_sections(param_4,FUN_00036250,local_30);\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00035f10(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,undefined4 param_5\n            )" (identifier "FUN_00035f10") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,undefined4 param_5\n            )" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined1 local_30 [4];\n  undefined4 local_2c;\n  undefined4 local_28;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x35f1d;\n  iVar1 = bfd_generic_link_read_symbols(param_4);\n  if (iVar1 == 0) {\n    uVar2 = dcgettext(0,"%F%P: %pB: could not read symbols: %E\n",5);\n    FUN_00034dc0(uVar2,param_4);\n  }\n  local_28 = param_5;\n  local_24 = *(undefined4 *)(param_4 + 0x78);\n  local_2c = param_3;\n  local_20 = param_2;\n  bfd_map_over_sections(param_4,FUN_00036250,local_30);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined1 local_30 [4];" (type_identifier "undefined1") (array_declarator "local_30 [4]" (identifier "local_30") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "undefined4 local_2c;" (type_identifier "undefined4") (identifier "local_2c") (; ";")) (declaration "undefined4 local_28;" (type_identifier "undefined4") (identifier "local_28") (; ";")) (declaration "undefined4 local_24;" (type_identifier "undefined4") (identifier "local_24") (; ";")) (declaration "undefined4 local_20;" (type_identifier "undefined4") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x35f1d;" (assignment_expression "uStack_14 = 0x35f1d" (identifier "uStack_14") (= "=") (number_literal "0x35f1d")) (; ";")) (expression_statement "iVar1 = bfd_generic_link_read_symbols(param_4);" (assignment_expression "iVar1 = bfd_generic_link_read_symbols(param_4)" (identifier "iVar1") (= "=") (call_expression "bfd_generic_link_read_symbols(param_4)" (identifier "bfd_generic_link_read_symbols") (argument_list "(param_4)" (( "(") (identifier "param_4") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    uVar2 = dcgettext(0,"%F%P: %pB: could not read symbols: %E\n",5);\n    FUN_00034dc0(uVar2,param_4);\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar2 = dcgettext(0,"%F%P: %pB: could not read symbols: %E\n",5);\n    FUN_00034dc0(uVar2,param_4);\n  }" ({ "{") (expression_statement "uVar2 = dcgettext(0,"%F%P: %pB: could not read symbols: %E\n",5);" (assignment_expression "uVar2 = dcgettext(0,"%F%P: %pB: could not read symbols: %E\n",5)" (identifier "uVar2") (= "=") (call_expression "dcgettext(0,"%F%P: %pB: could not read symbols: %E\n",5)" (identifier "dcgettext") (argument_list "(0,"%F%P: %pB: could not read symbols: %E\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""%F%P: %pB: could not read symbols: %E\n"" (" """) (string_content "%F%P: %pB: could not read symbols: %E") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_00034dc0(uVar2,param_4);" (call_expression "FUN_00034dc0(uVar2,param_4)" (identifier "FUN_00034dc0") (argument_list "(uVar2,param_4)" (( "(") (identifier "uVar2") (, ",") (identifier "param_4") () ")"))) (; ";")) (} "}"))) (expression_statement "local_28 = param_5;" (assignment_expression "local_28 = param_5" (identifier "local_28") (= "=") (identifier "param_5")) (; ";")) (expression_statement "local_24 = *(undefined4 *)(param_4 + 0x78);" (assignment_expression "local_24 = *(undefined4 *)(param_4 + 0x78)" (identifier "local_24") (= "=") (pointer_expression "*(undefined4 *)(param_4 + 0x78)" (* "*") (cast_expression "(undefined4 *)(param_4 + 0x78)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 0x78)" (( "(") (binary_expression "param_4 + 0x78" (identifier "param_4") (+ "+") (number_literal "0x78")) () ")"))))) (; ";")) (expression_statement "local_2c = param_3;" (assignment_expression "local_2c = param_3" (identifier "local_2c") (= "=") (identifier "param_3")) (; ";")) (expression_statement "local_20 = param_2;" (assignment_expression "local_20 = param_2" (identifier "local_20") (= "=") (identifier "param_2")) (; ";")) (expression_statement "bfd_map_over_sections(param_4,FUN_00036250,local_30);" (call_expression "bfd_map_over_sections(param_4,FUN_00036250,local_30)" (identifier "bfd_map_over_sections") (argument_list "(param_4,FUN_00036250,local_30)" (( "(") (identifier "param_4") (, ",") (identifier "FUN_00036250") (, ",") (identifier "local_30") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3
function_1(char *name,type_1 global,type_2 *sec,type_3 *abfd,type_4 *ncrs)

{
  int var_2;
  char *fmt;
  type_5 info;
  
  var_2 = var_1(abfd);
  if (var_2 == 0) {
    fmt = (char *)var_3(0,"%F%P: %pB: could not read symbols: %E\n",5);
    var_4(fmt,abfd);
  }
  info.ncrs = ncrs;
  info.asymbols = abfd->outsymbols;
  info.sym_name = name;
  info.defsec = sec;
  info.global = global;
  var_5(abfd,check_reloc_refs,&info);
  return;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) 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: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (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) (string_literal (string_content) (escape_sequence)) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (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: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (return_statement))))

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

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

{
  int iVar1;
  undefined4 uVar2;
  undefined1 local_30 [4];
  undefined4 local_2c;
  undefined4 local_28;
  undefined4 local_24;
  undefined4 local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x35f1d;
  iVar1 = bfd_generic_link_read_symbols(param_4);
  if (iVar1 == 0) {
    uVar2 = dcgettext(0,"%F%P: %pB: could not read symbols: %E\n",5);
    FUN_00034dc0(uVar2,param_4);
  }
  local_28 = param_5;
  local_24 = *(undefined4 *)(param_4 + 0x78);
  local_2c = param_3;
  local_20 = param_2;
  bfd_map_over_sections(param_4,FUN_00036250,local_30);
  return;
}

