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

void walk_wild_section_specs1_wild0
               (lang_wild_statement_type *ptr,lang_input_statement_type *file,callback_t callback,
               void *data)

{
  wildcard_list *sec;
  section_iterator_callback_data cb_data;
  
  cb_data.found_section = (asection *)0x0;
  sec = ptr->handler_data[0];
  cb_data.multiple_sections_found = 0;
  bfd_get_section_by_name_if(file->the_bfd,(sec->spec).name,section_iterator_callback,&cb_data);
  if (cb_data.multiple_sections_found == 0) {
    if (cb_data.found_section != (asection *)0x0) {
      walk_wild_consider_section(ptr,file,cb_data.found_section,sec,callback,data);
    }
    return;
  }
  walk_wild_section_general(ptr,file,callback,data);
  return;
}



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

void FUN_00020bd0(int param_1,int param_2,undefined4 param_3,undefined4 param_4)

{
  int iVar1;
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x20bd9;
  local_24 = 0;
  iVar1 = *(int *)(param_1 + 0x28);
  local_20 = 0;
  bfd_get_section_by_name_if
            (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar1 + 4),FUN_0001dce0,&local_24);
  if (local_20 == 0) {
    if (local_24 != 0) {
      FUN_000206c0(iVar1,param_3,param_4);
    }
    return;
  }
  FUN_00020760(param_1,param_2,param_3,param_4);
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00015a20
ADD EBX,0x6b427
SUB ESP,0x1c
MOV ESI,dword ptr [ESP + 0x30]
MOV EDI,dword ptr [ESP + 0x34]
LEA EDX,[ESP + 0x8]
MOV dword ptr [ESP + 0x8],0x0
MOV EBP,dword ptr [ESI + 0x28]
MOV EAX,dword ptr [EBP + 0x4]
MOV dword ptr [ESP + 0xc],0x0
PUSH EDX
LEA EDX,[EBX + 0xfff91ce0]
PUSH EDX
PUSH EAX
PUSH dword ptr [EDI + 0x10]
CALL 0x00014060
MOV ECX,dword ptr [ESP + 0x18]
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0xc]
TEST EAX,EAX
JNZ 0x00020c50
TEST ECX,ECX
JZ 0x00020c40
SUB ESP,0x4
MOV EDX,EDI
MOV EAX,ESI
PUSH dword ptr [ESP + 0x40]
PUSH dword ptr [ESP + 0x40]
PUSH EBP
CALL 0x000206c0
ADD ESP,0x10
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
PUSH dword ptr [ESP + 0x3c]
PUSH dword ptr [ESP + 0x3c]
PUSH EDI
PUSH ESI
CALL 0x00020760
ADD ESP,0x10
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00020bd0(int param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x20bd9;\n  local_24 = 0;\n  iVar1 = *(int *)(param_1 + 0x28);\n  local_20 = 0;\n  bfd_get_section_by_name_if\n            (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar1 + 4),FUN_0001dce0,&local_24);\n  if (local_20 == 0) {\n    if (local_24 != 0) {\n      FUN_000206c0(iVar1,param_3,param_4);\n    }\n    return;\n  }\n  FUN_00020760(param_1,param_2,param_3,param_4);\n  return;\n}\n\n" comment (function_definition "void FUN_00020bd0(int param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x20bd9;\n  local_24 = 0;\n  iVar1 = *(int *)(param_1 + 0x28);\n  local_20 = 0;\n  bfd_get_section_by_name_if\n            (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar1 + 4),FUN_0001dce0,&local_24);\n  if (local_20 == 0) {\n    if (local_24 != 0) {\n      FUN_000206c0(iVar1,param_3,param_4);\n    }\n    return;\n  }\n  FUN_00020760(param_1,param_2,param_3,param_4);\n  return;\n}" primitive_type (function_declarator "FUN_00020bd0(int param_1,int param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type 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  int iVar1;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x20bd9;\n  local_24 = 0;\n  iVar1 = *(int *)(param_1 + 0x28);\n  local_20 = 0;\n  bfd_get_section_by_name_if\n            (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar1 + 4),FUN_0001dce0,&local_24);\n  if (local_20 == 0) {\n    if (local_24 != 0) {\n      FUN_000206c0(iVar1,param_3,param_4);\n    }\n    return;\n  }\n  FUN_00020760(param_1,param_2,param_3,param_4);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x20bd9;" (assignment_expression "uStack_14 = 0x20bd9" identifier = number_literal) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x28);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x28)" identifier = (pointer_expression "*(int *)(param_1 + 0x28)" * (cast_expression "(int *)(param_1 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" identifier = number_literal) ;) (expression_statement "bfd_get_section_by_name_if\n            (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar1 + 4),FUN_0001dce0,&local_24);" (call_expression "bfd_get_section_by_name_if\n            (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar1 + 4),FUN_0001dce0,&local_24)" identifier (argument_list "(*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar1 + 4),FUN_0001dce0,&local_24)" ( (pointer_expression "*(undefined4 *)(param_2 + 0x10)" * (cast_expression "(undefined4 *)(param_2 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(iVar1 + 4)" * (cast_expression "(undefined4 *)(iVar1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) , identifier , (pointer_expression "&local_24" & identifier) ))) ;) (if_statement "if (local_20 == 0) {\n    if (local_24 != 0) {\n      FUN_000206c0(iVar1,param_3,param_4);\n    }\n    return;\n  }" if (parenthesized_expression "(local_20 == 0)" ( (binary_expression "local_20 == 0" identifier == number_literal) )) (compound_statement "{\n    if (local_24 != 0) {\n      FUN_000206c0(iVar1,param_3,param_4);\n    }\n    return;\n  }" { (if_statement "if (local_24 != 0) {\n      FUN_000206c0(iVar1,param_3,param_4);\n    }" if (parenthesized_expression "(local_24 != 0)" ( (binary_expression "local_24 != 0" identifier != number_literal) )) (compound_statement "{\n      FUN_000206c0(iVar1,param_3,param_4);\n    }" { (expression_statement "FUN_000206c0(iVar1,param_3,param_4);" (call_expression "FUN_000206c0(iVar1,param_3,param_4)" identifier (argument_list "(iVar1,param_3,param_4)" ( identifier , identifier , identifier ))) ;) })) (return_statement "return;" return ;) })) (expression_statement "FUN_00020760(param_1,param_2,param_3,param_4);" (call_expression "FUN_00020760(param_1,param_2,param_3,param_4)" identifier (argument_list "(param_1,param_2,param_3,param_4)" ( 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 walk_wild_section_specs1_wild0\n               (lang_wild_statement_type *ptr,lang_input_statement_type *file,callback_t callback,\n               void *data)\n\n{\n  wildcard_list *sec;\n  section_iterator_callback_data cb_data;\n  \n  cb_data.found_section = (asection *)0x0;\n  sec = ptr->handler_data[0];\n  cb_data.multiple_sections_found = 0;\n  bfd_get_section_by_name_if(file->the_bfd,(sec->spec).name,section_iterator_callback,&cb_data);\n  if (cb_data.multiple_sections_found == 0) {\n    if (cb_data.found_section != (asection *)0x0) {\n      walk_wild_consider_section(ptr,file,cb_data.found_section,sec,callback,data);\n    }\n    return;\n  }\n  walk_wild_section_general(ptr,file,callback,data);\n  return;\n}\n\n" comment comment (function_definition "void walk_wild_section_specs1_wild0\n               (lang_wild_statement_type *ptr,lang_input_statement_type *file,callback_t callback,\n               void *data)\n\n{\n  wildcard_list *sec;\n  section_iterator_callback_data cb_data;\n  \n  cb_data.found_section = (asection *)0x0;\n  sec = ptr->handler_data[0];\n  cb_data.multiple_sections_found = 0;\n  bfd_get_section_by_name_if(file->the_bfd,(sec->spec).name,section_iterator_callback,&cb_data);\n  if (cb_data.multiple_sections_found == 0) {\n    if (cb_data.found_section != (asection *)0x0) {\n      walk_wild_consider_section(ptr,file,cb_data.found_section,sec,callback,data);\n    }\n    return;\n  }\n  walk_wild_section_general(ptr,file,callback,data);\n  return;\n}" primitive_type (function_declarator "walk_wild_section_specs1_wild0\n               (lang_wild_statement_type *ptr,lang_input_statement_type *file,callback_t callback,\n               void *data)" identifier (parameter_list "(lang_wild_statement_type *ptr,lang_input_statement_type *file,callback_t callback,\n               void *data)" ( (parameter_declaration "lang_wild_statement_type *ptr" type_identifier (pointer_declarator "*ptr" * identifier)) , (parameter_declaration "lang_input_statement_type *file" type_identifier (pointer_declarator "*file" * identifier)) , (parameter_declaration "callback_t callback" type_identifier identifier) , (parameter_declaration "void *data" primitive_type (pointer_declarator "*data" * identifier)) ))) (compound_statement "{\n  wildcard_list *sec;\n  section_iterator_callback_data cb_data;\n  \n  cb_data.found_section = (asection *)0x0;\n  sec = ptr->handler_data[0];\n  cb_data.multiple_sections_found = 0;\n  bfd_get_section_by_name_if(file->the_bfd,(sec->spec).name,section_iterator_callback,&cb_data);\n  if (cb_data.multiple_sections_found == 0) {\n    if (cb_data.found_section != (asection *)0x0) {\n      walk_wild_consider_section(ptr,file,cb_data.found_section,sec,callback,data);\n    }\n    return;\n  }\n  walk_wild_section_general(ptr,file,callback,data);\n  return;\n}" { (declaration "wildcard_list *sec;" type_identifier (pointer_declarator "*sec" * identifier) ;) (declaration "section_iterator_callback_data cb_data;" type_identifier identifier ;) (expression_statement "cb_data.found_section = (asection *)0x0;" (assignment_expression "cb_data.found_section = (asection *)0x0" (field_expression "cb_data.found_section" identifier . field_identifier) = (cast_expression "(asection *)0x0" ( (type_descriptor "asection *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "sec = ptr->handler_data[0];" (assignment_expression "sec = ptr->handler_data[0]" identifier = (subscript_expression "ptr->handler_data[0]" (field_expression "ptr->handler_data" identifier -> field_identifier) [ number_literal ])) ;) (expression_statement "cb_data.multiple_sections_found = 0;" (assignment_expression "cb_data.multiple_sections_found = 0" (field_expression "cb_data.multiple_sections_found" identifier . field_identifier) = number_literal) ;) (expression_statement "bfd_get_section_by_name_if(file->the_bfd,(sec->spec).name,section_iterator_callback,&cb_data);" (call_expression "bfd_get_section_by_name_if(file->the_bfd,(sec->spec).name,section_iterator_callback,&cb_data)" identifier (argument_list "(file->the_bfd,(sec->spec).name,section_iterator_callback,&cb_data)" ( (field_expression "file->the_bfd" identifier -> field_identifier) , (field_expression "(sec->spec).name" (parenthesized_expression "(sec->spec)" ( (field_expression "sec->spec" identifier -> field_identifier) )) . field_identifier) , identifier , (pointer_expression "&cb_data" & identifier) ))) ;) (if_statement "if (cb_data.multiple_sections_found == 0) {\n    if (cb_data.found_section != (asection *)0x0) {\n      walk_wild_consider_section(ptr,file,cb_data.found_section,sec,callback,data);\n    }\n    return;\n  }" if (parenthesized_expression "(cb_data.multiple_sections_found == 0)" ( (binary_expression "cb_data.multiple_sections_found == 0" (field_expression "cb_data.multiple_sections_found" identifier . field_identifier) == number_literal) )) (compound_statement "{\n    if (cb_data.found_section != (asection *)0x0) {\n      walk_wild_consider_section(ptr,file,cb_data.found_section,sec,callback,data);\n    }\n    return;\n  }" { (if_statement "if (cb_data.found_section != (asection *)0x0) {\n      walk_wild_consider_section(ptr,file,cb_data.found_section,sec,callback,data);\n    }" if (parenthesized_expression "(cb_data.found_section != (asection *)0x0)" ( (binary_expression "cb_data.found_section != (asection *)0x0" (field_expression "cb_data.found_section" identifier . field_identifier) != (cast_expression "(asection *)0x0" ( (type_descriptor "asection *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      walk_wild_consider_section(ptr,file,cb_data.found_section,sec,callback,data);\n    }" { (expression_statement "walk_wild_consider_section(ptr,file,cb_data.found_section,sec,callback,data);" (call_expression "walk_wild_consider_section(ptr,file,cb_data.found_section,sec,callback,data)" identifier (argument_list "(ptr,file,cb_data.found_section,sec,callback,data)" ( identifier , identifier , (field_expression "cb_data.found_section" identifier . field_identifier) , identifier , identifier , identifier ))) ;) })) (return_statement "return;" return ;) })) (expression_statement "walk_wild_section_general(ptr,file,callback,data);" (call_expression "walk_wild_section_general(ptr,file,callback,data)" identifier (argument_list "(ptr,file,callback,data)" ( identifier , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00020bd0(int param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x20bd9;\n  local_24 = 0;\n  iVar1 = *(int *)(param_1 + 0x28);\n  local_20 = 0;\n  bfd_get_section_by_name_if\n            (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar1 + 4),FUN_0001dce0,&local_24);\n  if (local_20 == 0) {\n    if (local_24 != 0) {\n      FUN_000206c0(iVar1,param_3,param_4);\n    }\n    return;\n  }\n  FUN_00020760(param_1,param_2,param_3,param_4);\n  return;\n}\n\n" (function_definition "void FUN_00020bd0(int param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x20bd9;\n  local_24 = 0;\n  iVar1 = *(int *)(param_1 + 0x28);\n  local_20 = 0;\n  bfd_get_section_by_name_if\n            (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar1 + 4),FUN_0001dce0,&local_24);\n  if (local_20 == 0) {\n    if (local_24 != 0) {\n      FUN_000206c0(iVar1,param_3,param_4);\n    }\n    return;\n  }\n  FUN_00020760(param_1,param_2,param_3,param_4);\n  return;\n}" primitive_type (function_declarator "FUN_00020bd0(int param_1,int param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type 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  int iVar1;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x20bd9;\n  local_24 = 0;\n  iVar1 = *(int *)(param_1 + 0x28);\n  local_20 = 0;\n  bfd_get_section_by_name_if\n            (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar1 + 4),FUN_0001dce0,&local_24);\n  if (local_20 == 0) {\n    if (local_24 != 0) {\n      FUN_000206c0(iVar1,param_3,param_4);\n    }\n    return;\n  }\n  FUN_00020760(param_1,param_2,param_3,param_4);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x20bd9;" (assignment_expression "uStack_14 = 0x20bd9" identifier = number_literal) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x28);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x28)" identifier = (pointer_expression "*(int *)(param_1 + 0x28)" * (cast_expression "(int *)(param_1 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" identifier = number_literal) ;) (expression_statement "bfd_get_section_by_name_if\n            (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar1 + 4),FUN_0001dce0,&local_24);" (call_expression "bfd_get_section_by_name_if\n            (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar1 + 4),FUN_0001dce0,&local_24)" identifier (argument_list "(*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar1 + 4),FUN_0001dce0,&local_24)" ( (pointer_expression "*(undefined4 *)(param_2 + 0x10)" * (cast_expression "(undefined4 *)(param_2 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(iVar1 + 4)" * (cast_expression "(undefined4 *)(iVar1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) , identifier , (pointer_expression "&local_24" & identifier) ))) ;) (if_statement "if (local_20 == 0) {\n    if (local_24 != 0) {\n      FUN_000206c0(iVar1,param_3,param_4);\n    }\n    return;\n  }" if (parenthesized_expression "(local_20 == 0)" ( (binary_expression "local_20 == 0" identifier == number_literal) )) (compound_statement "{\n    if (local_24 != 0) {\n      FUN_000206c0(iVar1,param_3,param_4);\n    }\n    return;\n  }" { (if_statement "if (local_24 != 0) {\n      FUN_000206c0(iVar1,param_3,param_4);\n    }" if (parenthesized_expression "(local_24 != 0)" ( (binary_expression "local_24 != 0" identifier != number_literal) )) (compound_statement "{\n      FUN_000206c0(iVar1,param_3,param_4);\n    }" { (expression_statement "FUN_000206c0(iVar1,param_3,param_4);" (call_expression "FUN_000206c0(iVar1,param_3,param_4)" identifier (argument_list "(iVar1,param_3,param_4)" ( identifier , identifier , identifier ))) ;) })) (return_statement "return;" return ;) })) (expression_statement "FUN_00020760(param_1,param_2,param_3,param_4);" (call_expression "FUN_00020760(param_1,param_2,param_3,param_4)" identifier (argument_list "(param_1,param_2,param_3,param_4)" ( identifier , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (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 IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_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 = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , (pointer_expression & IDENT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) })) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00020bd0(int param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x20bd9;\n  local_24 = 0;\n  iVar1 = *(int *)(param_1 + 0x28);\n  local_20 = 0;\n  bfd_get_section_by_name_if\n            (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar1 + 4),FUN_0001dce0,&local_24);\n  if (local_20 == 0) {\n    if (local_24 != 0) {\n      FUN_000206c0(iVar1,param_3,param_4);\n    }\n    return;\n  }\n  FUN_00020760(param_1,param_2,param_3,param_4);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00020bd0(int param_1,int param_2,undefined4 param_3,undefined4 param_4)" (identifier "FUN_00020bd0") (parameter_list "(int param_1,int param_2,undefined4 param_3,undefined4 param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (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  int iVar1;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x20bd9;\n  local_24 = 0;\n  iVar1 = *(int *)(param_1 + 0x28);\n  local_20 = 0;\n  bfd_get_section_by_name_if\n            (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar1 + 4),FUN_0001dce0,&local_24);\n  if (local_20 == 0) {\n    if (local_24 != 0) {\n      FUN_000206c0(iVar1,param_3,param_4);\n    }\n    return;\n  }\n  FUN_00020760(param_1,param_2,param_3,param_4);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x20bd9;" (assignment_expression "uStack_14 = 0x20bd9" (identifier "uStack_14") (= "=") (number_literal "0x20bd9")) (; ";")) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" (identifier "local_24") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0x28);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x28)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x28)" (* "*") (cast_expression "(int *)(param_1 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" (identifier "local_20") (= "=") (number_literal "0")) (; ";")) (expression_statement "bfd_get_section_by_name_if\n            (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar1 + 4),FUN_0001dce0,&local_24);" (call_expression "bfd_get_section_by_name_if\n            (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar1 + 4),FUN_0001dce0,&local_24)" (identifier "bfd_get_section_by_name_if") (argument_list "(*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar1 + 4),FUN_0001dce0,&local_24)" (( "(") (pointer_expression "*(undefined4 *)(param_2 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x10)" (( "(") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(iVar1 + 4)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 4)" (( "(") (binary_expression "iVar1 + 4" (identifier "iVar1") (+ "+") (number_literal "4")) () ")")))) (, ",") (identifier "FUN_0001dce0") (, ",") (pointer_expression "&local_24" (& "&") (identifier "local_24")) () ")"))) (; ";")) (if_statement "if (local_20 == 0) {\n    if (local_24 != 0) {\n      FUN_000206c0(iVar1,param_3,param_4);\n    }\n    return;\n  }" (if "if") (parenthesized_expression "(local_20 == 0)" (( "(") (binary_expression "local_20 == 0" (identifier "local_20") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (local_24 != 0) {\n      FUN_000206c0(iVar1,param_3,param_4);\n    }\n    return;\n  }" ({ "{") (if_statement "if (local_24 != 0) {\n      FUN_000206c0(iVar1,param_3,param_4);\n    }" (if "if") (parenthesized_expression "(local_24 != 0)" (( "(") (binary_expression "local_24 != 0" (identifier "local_24") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_000206c0(iVar1,param_3,param_4);\n    }" ({ "{") (expression_statement "FUN_000206c0(iVar1,param_3,param_4);" (call_expression "FUN_000206c0(iVar1,param_3,param_4)" (identifier "FUN_000206c0") (argument_list "(iVar1,param_3,param_4)" (( "(") (identifier "iVar1") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00020760(param_1,param_2,param_3,param_4);" (call_expression "FUN_00020760(param_1,param_2,param_3,param_4)" (identifier "FUN_00020760") (argument_list "(param_1,param_2,param_3,param_4)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (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 *ptr,type_2 *file,type_3 callback,
               void *data)

{
  type_4 *sec;
  type_5 cb_data;
  
  cb_data.found_section = (type_6 *)0x0;
  sec = ptr->handler_data[0];
  cb_data.multiple_sections_found = 0;
  var_1(file->the_bfd,(sec->spec).name,section_iterator_callback,&cb_data);
  if (cb_data.multiple_sections_found == 0) {
    if (cb_data.found_section != (type_6 *)0x0) {
      var_2(ptr,file,cb_data.found_section,sec,callback,data);
    }
    return;
  }
  var_3(ptr,file,callback,data);
  return;
}


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

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

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

{
  int iVar1;
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x20bd9;
  local_24 = 0;
  iVar1 = *(int *)(param_1 + 0x28);
  local_20 = 0;
  bfd_get_section_by_name_if
            (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar1 + 4),FUN_0001dce0,&local_24);
  if (local_20 == 0) {
    if (local_24 != 0) {
      FUN_000206c0(iVar1,param_3,param_4);
    }
    return;
  }
  FUN_00020760(param_1,param_2,param_3,param_4);
  return;
}

