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

asection * __regparm3 quick_section(bfd *abfd,char *name,int flags,int align)

{
  bfd_target *pbVar1;
  bfd_section *pbVar2;
  bfd_symbol *pbVar3;
  
  pbVar2 = (bfd_section *)bfd_make_section_old_way(abfd,name);
  bfd_set_section_flags(abfd,pbVar2,flags | 0x200003);
  pbVar1 = abfd->xvec;
  pbVar2->alignment_power = 2;
  pbVar2->output_section = pbVar2;
  pbVar3 = (*pbVar1->_bfd_make_empty_symbol)(abfd);
  symtab[symptr] = pbVar3;
  symptr = symptr + 1;
  pbVar3->name = pbVar2->name;
  pbVar3->section = pbVar2;
  pbVar3->flags = 1;
  *(undefined4 *)&pbVar3->value = 0;
  *(undefined4 *)((int)&pbVar3->value + 4) = 0;
  return pbVar2;
}



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

undefined4 * __regparm3 FUN_00062b90(int param_1,undefined4 param_2,uint param_3)

{
  undefined4 *puVar1;
  int iVar2;
  
  puVar1 = (undefined4 *)bfd_make_section_old_way(param_1,param_2);
  bfd_set_section_flags(param_1,puVar1,param_3 | 0x200003);
  iVar2 = *(int *)(param_1 + 4);
  puVar1[0x16] = 2;
  puVar1[0x15] = puVar1;
  iVar2 = (**(code **)(iVar2 + 0x10c))(param_1);
  *(int *)(DAT_001d0248 + DAT_001d0244 * 4) = iVar2;
  DAT_001d0244 = DAT_001d0244 + 1;
  *(undefined4 *)(iVar2 + 4) = *puVar1;
  *(undefined4 **)(iVar2 + 0x14) = puVar1;
  *(undefined4 *)(iVar2 + 0x10) = 1;
  *(undefined4 *)(iVar2 + 8) = 0;
  *(undefined4 *)(iVar2 + 0xc) = 0;
  return puVar1;
}


PUSH EBP
MOV EBP,ECX
PUSH EDI
OR EBP,0x200003
MOV EDI,EAX
PUSH ESI
PUSH EBX
CALL 0x00017b80
ADD EBX,0x16b45d
SUB ESP,0x14
PUSH EDX
PUSH EAX
CALL 0x00016120
ADD ESP,0xc
PUSH EBP
MOV ESI,EAX
PUSH EAX
PUSH EDI
CALL 0x00016cc0
MOV EAX,dword ptr [EDI + 0x4]
MOV dword ptr [ESI + 0x58],0x2
MOV dword ptr [ESI + 0x54],ESI
MOV dword ptr [ESP],EDI
CALL dword ptr [EAX + 0x10c]
MOV EDX,dword ptr [EBX + 0x2244]
MOV ECX,dword ptr [EBX + 0x2248]
LEA EDI,[EDX + 0x1]
MOV dword ptr [ECX + EDX*0x4],EAX
MOV EDX,dword ptr [ESI]
MOV dword ptr [EBX + 0x2244],EDI
MOV dword ptr [EAX + 0x4],EDX
MOV dword ptr [EAX + 0x14],ESI
MOV dword ptr [EAX + 0x10],0x1
MOV dword ptr [EAX + 0x8],0x0
MOV dword ptr [EAX + 0xc],0x0
ADD ESP,0x1c
MOV EAX,ESI
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\nundefined4 * __regparm3 FUN_00062b90(int param_1,undefined4 param_2,uint param_3)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  \n  puVar1 = (undefined4 *)bfd_make_section_old_way(param_1,param_2);\n  bfd_set_section_flags(param_1,puVar1,param_3 | 0x200003);\n  iVar2 = *(int *)(param_1 + 4);\n  puVar1[0x16] = 2;\n  puVar1[0x15] = puVar1;\n  iVar2 = (**(code **)(iVar2 + 0x10c))(param_1);\n  *(int *)(DAT_001d0248 + DAT_001d0244 * 4) = iVar2;\n  DAT_001d0244 = DAT_001d0244 + 1;\n  *(undefined4 *)(iVar2 + 4) = *puVar1;\n  *(undefined4 **)(iVar2 + 0x14) = puVar1;\n  *(undefined4 *)(iVar2 + 0x10) = 1;\n  *(undefined4 *)(iVar2 + 8) = 0;\n  *(undefined4 *)(iVar2 + 0xc) = 0;\n  return puVar1;\n}\n\n" comment (ERROR "undefined4 * __regparm3 FUN_00062b90(int param_1,undefined4 param_2,uint param_3)" (binary_expression "undefined4 * __regparm3 FUN_00062b90(int param_1,undefined4 param_2,uint param_3)" identifier * (ERROR "__regparm3" identifier) (call_expression "FUN_00062b90(int param_1,undefined4 param_2,uint param_3)" identifier (argument_list "(int param_1,undefined4 param_2,uint param_3)" ( (ERROR "int" identifier) identifier , identifier (ERROR "param_2" identifier) , (ERROR "uint" identifier) identifier ))))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  \n  puVar1 = (undefined4 *)bfd_make_section_old_way(param_1,param_2);\n  bfd_set_section_flags(param_1,puVar1,param_3 | 0x200003);\n  iVar2 = *(int *)(param_1 + 4);\n  puVar1[0x16] = 2;\n  puVar1[0x15] = puVar1;\n  iVar2 = (**(code **)(iVar2 + 0x10c))(param_1);\n  *(int *)(DAT_001d0248 + DAT_001d0244 * 4) = iVar2;\n  DAT_001d0244 = DAT_001d0244 + 1;\n  *(undefined4 *)(iVar2 + 4) = *puVar1;\n  *(undefined4 **)(iVar2 + 0x14) = puVar1;\n  *(undefined4 *)(iVar2 + 0x10) = 1;\n  *(undefined4 *)(iVar2 + 8) = 0;\n  *(undefined4 *)(iVar2 + 0xc) = 0;\n  return puVar1;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "puVar1 = (undefined4 *)bfd_make_section_old_way(param_1,param_2);" (assignment_expression "puVar1 = (undefined4 *)bfd_make_section_old_way(param_1,param_2)" identifier = (cast_expression "(undefined4 *)bfd_make_section_old_way(param_1,param_2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "bfd_make_section_old_way(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))))) ;) (expression_statement "bfd_set_section_flags(param_1,puVar1,param_3 | 0x200003);" (call_expression "bfd_set_section_flags(param_1,puVar1,param_3 | 0x200003)" identifier (argument_list "(param_1,puVar1,param_3 | 0x200003)" ( identifier , identifier , (binary_expression "param_3 | 0x200003" identifier | number_literal) ))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 4);" (assignment_expression "iVar2 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "puVar1[0x16] = 2;" (assignment_expression "puVar1[0x16] = 2" (subscript_expression "puVar1[0x16]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[0x15] = puVar1;" (assignment_expression "puVar1[0x15] = puVar1" (subscript_expression "puVar1[0x15]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar2 = (**(code **)(iVar2 + 0x10c))(param_1);" (assignment_expression "iVar2 = (**(code **)(iVar2 + 0x10c))(param_1)" identifier = (call_expression "(**(code **)(iVar2 + 0x10c))(param_1)" (parenthesized_expression "(**(code **)(iVar2 + 0x10c))" ( (pointer_expression "**(code **)(iVar2 + 0x10c)" * (pointer_expression "*(code **)(iVar2 + 0x10c)" * (cast_expression "(code **)(iVar2 + 0x10c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x10c)" ( (binary_expression "iVar2 + 0x10c" identifier + number_literal) ))))) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "*(int *)(DAT_001d0248 + DAT_001d0244 * 4) = iVar2;" (assignment_expression "*(int *)(DAT_001d0248 + DAT_001d0244 * 4) = iVar2" (pointer_expression "*(int *)(DAT_001d0248 + DAT_001d0244 * 4)" * (cast_expression "(int *)(DAT_001d0248 + DAT_001d0244 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001d0248 + DAT_001d0244 * 4)" ( (binary_expression "DAT_001d0248 + DAT_001d0244 * 4" identifier + (binary_expression "DAT_001d0244 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "DAT_001d0244 = DAT_001d0244 + 1;" (assignment_expression "DAT_001d0244 = DAT_001d0244 + 1" identifier = (binary_expression "DAT_001d0244 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(iVar2 + 4) = *puVar1;" (assignment_expression "*(undefined4 *)(iVar2 + 4) = *puVar1" (pointer_expression "*(undefined4 *)(iVar2 + 4)" * (cast_expression "(undefined4 *)(iVar2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "*(undefined4 **)(iVar2 + 0x14) = puVar1;" (assignment_expression "*(undefined4 **)(iVar2 + 0x14) = puVar1" (pointer_expression "*(undefined4 **)(iVar2 + 0x14)" * (cast_expression "(undefined4 **)(iVar2 + 0x14)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x10) = 1;" (assignment_expression "*(undefined4 *)(iVar2 + 0x10) = 1" (pointer_expression "*(undefined4 *)(iVar2 + 0x10)" * (cast_expression "(undefined4 *)(iVar2 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar2 + 8) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + 8) = 0" (pointer_expression "*(undefined4 *)(iVar2 + 8)" * (cast_expression "(undefined4 *)(iVar2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar2 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + 0xc) = 0" (pointer_expression "*(undefined4 *)(iVar2 + 0xc)" * (cast_expression "(undefined4 *)(iVar2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) )))) = number_literal) ;) (return_statement "return puVar1;" return identifier ;) }))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nasection * __regparm3 quick_section(bfd *abfd,char *name,int flags,int align)\n\n{\n  bfd_target *pbVar1;\n  bfd_section *pbVar2;\n  bfd_symbol *pbVar3;\n  \n  pbVar2 = (bfd_section *)bfd_make_section_old_way(abfd,name);\n  bfd_set_section_flags(abfd,pbVar2,flags | 0x200003);\n  pbVar1 = abfd->xvec;\n  pbVar2->alignment_power = 2;\n  pbVar2->output_section = pbVar2;\n  pbVar3 = (*pbVar1->_bfd_make_empty_symbol)(abfd);\n  symtab[symptr] = pbVar3;\n  symptr = symptr + 1;\n  pbVar3->name = pbVar2->name;\n  pbVar3->section = pbVar2;\n  pbVar3->flags = 1;\n  *(undefined4 *)&pbVar3->value = 0;\n  *(undefined4 *)((int)&pbVar3->value + 4) = 0;\n  return pbVar2;\n}\n\n" comment (ERROR "asection * __regparm3 quick_section(bfd *abfd,char *name,int flags,int align)" (binary_expression "asection * __regparm3 quick_section(bfd *abfd,char *name,int flags,int align)" identifier * (ERROR "__regparm3" identifier) (call_expression "quick_section(bfd *abfd,char *name,int flags,int align)" identifier (argument_list "(bfd *abfd,char *name,int flags,int align)" ( (binary_expression "bfd *abfd" identifier * identifier) , (binary_expression "char *name" identifier * identifier) , (ERROR "int" identifier) identifier , (ERROR "int" identifier) identifier ))))) (compound_statement "{\n  bfd_target *pbVar1;\n  bfd_section *pbVar2;\n  bfd_symbol *pbVar3;\n  \n  pbVar2 = (bfd_section *)bfd_make_section_old_way(abfd,name);\n  bfd_set_section_flags(abfd,pbVar2,flags | 0x200003);\n  pbVar1 = abfd->xvec;\n  pbVar2->alignment_power = 2;\n  pbVar2->output_section = pbVar2;\n  pbVar3 = (*pbVar1->_bfd_make_empty_symbol)(abfd);\n  symtab[symptr] = pbVar3;\n  symptr = symptr + 1;\n  pbVar3->name = pbVar2->name;\n  pbVar3->section = pbVar2;\n  pbVar3->flags = 1;\n  *(undefined4 *)&pbVar3->value = 0;\n  *(undefined4 *)((int)&pbVar3->value + 4) = 0;\n  return pbVar2;\n}" { (declaration "bfd_target *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "bfd_section *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "bfd_symbol *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (expression_statement "pbVar2 = (bfd_section *)bfd_make_section_old_way(abfd,name);" (assignment_expression "pbVar2 = (bfd_section *)bfd_make_section_old_way(abfd,name)" identifier = (cast_expression "(bfd_section *)bfd_make_section_old_way(abfd,name)" ( (type_descriptor "bfd_section *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "bfd_make_section_old_way(abfd,name)" identifier (argument_list "(abfd,name)" ( identifier , identifier ))))) ;) (expression_statement "bfd_set_section_flags(abfd,pbVar2,flags | 0x200003);" (call_expression "bfd_set_section_flags(abfd,pbVar2,flags | 0x200003)" identifier (argument_list "(abfd,pbVar2,flags | 0x200003)" ( identifier , identifier , (binary_expression "flags | 0x200003" identifier | number_literal) ))) ;) (expression_statement "pbVar1 = abfd->xvec;" (assignment_expression "pbVar1 = abfd->xvec" identifier = (field_expression "abfd->xvec" identifier -> field_identifier)) ;) (expression_statement "pbVar2->alignment_power = 2;" (assignment_expression "pbVar2->alignment_power = 2" (field_expression "pbVar2->alignment_power" identifier -> field_identifier) = number_literal) ;) (expression_statement "pbVar2->output_section = pbVar2;" (assignment_expression "pbVar2->output_section = pbVar2" (field_expression "pbVar2->output_section" identifier -> field_identifier) = identifier) ;) (expression_statement "pbVar3 = (*pbVar1->_bfd_make_empty_symbol)(abfd);" (assignment_expression "pbVar3 = (*pbVar1->_bfd_make_empty_symbol)(abfd)" identifier = (call_expression "(*pbVar1->_bfd_make_empty_symbol)(abfd)" (parenthesized_expression "(*pbVar1->_bfd_make_empty_symbol)" ( (pointer_expression "*pbVar1->_bfd_make_empty_symbol" * (field_expression "pbVar1->_bfd_make_empty_symbol" identifier -> field_identifier)) )) (argument_list "(abfd)" ( identifier )))) ;) (expression_statement "symtab[symptr] = pbVar3;" (assignment_expression "symtab[symptr] = pbVar3" (subscript_expression "symtab[symptr]" identifier [ identifier ]) = identifier) ;) (expression_statement "symptr = symptr + 1;" (assignment_expression "symptr = symptr + 1" identifier = (binary_expression "symptr + 1" identifier + number_literal)) ;) (expression_statement "pbVar3->name = pbVar2->name;" (assignment_expression "pbVar3->name = pbVar2->name" (field_expression "pbVar3->name" identifier -> field_identifier) = (field_expression "pbVar2->name" identifier -> field_identifier)) ;) (expression_statement "pbVar3->section = pbVar2;" (assignment_expression "pbVar3->section = pbVar2" (field_expression "pbVar3->section" identifier -> field_identifier) = identifier) ;) (expression_statement "pbVar3->flags = 1;" (assignment_expression "pbVar3->flags = 1" (field_expression "pbVar3->flags" identifier -> field_identifier) = number_literal) ;) (expression_statement "*(undefined4 *)&pbVar3->value = 0;" (assignment_expression "*(undefined4 *)&pbVar3->value = 0" (pointer_expression "*(undefined4 *)&pbVar3->value" * (cast_expression "(undefined4 *)&pbVar3->value" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pbVar3->value" & (field_expression "pbVar3->value" identifier -> field_identifier)))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)&pbVar3->value + 4) = 0;" (assignment_expression "*(undefined4 *)((int)&pbVar3->value + 4) = 0" (pointer_expression "*(undefined4 *)((int)&pbVar3->value + 4)" * (cast_expression "(undefined4 *)((int)&pbVar3->value + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pbVar3->value + 4)" ( (binary_expression "(int)&pbVar3->value + 4" (cast_expression "(int)&pbVar3->value" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pbVar3->value" & (field_expression "pbVar3->value" identifier -> field_identifier))) + number_literal) )))) = number_literal) ;) (return_statement "return pbVar2;" return identifier ;) }))
(translation_unit "undefined4 * __regparm3 FUN_00062b90(int param_1,undefined4 param_2,uint param_3)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  \n  puVar1 = (undefined4 *)bfd_make_section_old_way(param_1,param_2);\n  bfd_set_section_flags(param_1,puVar1,param_3 | 0x200003);\n  iVar2 = *(int *)(param_1 + 4);\n  puVar1[0x16] = 2;\n  puVar1[0x15] = puVar1;\n  iVar2 = (**(code **)(iVar2 + 0x10c))(param_1);\n  *(int *)(DAT_001d0248 + DAT_001d0244 * 4) = iVar2;\n  DAT_001d0244 = DAT_001d0244 + 1;\n  *(undefined4 *)(iVar2 + 4) = *puVar1;\n  *(undefined4 **)(iVar2 + 0x14) = puVar1;\n  *(undefined4 *)(iVar2 + 0x10) = 1;\n  *(undefined4 *)(iVar2 + 8) = 0;\n  *(undefined4 *)(iVar2 + 0xc) = 0;\n  return puVar1;\n}\n\n" (ERROR "undefined4 * __regparm3 FUN_00062b90(int param_1,undefined4 param_2,uint param_3)" (binary_expression "undefined4 * __regparm3 FUN_00062b90(int param_1,undefined4 param_2,uint param_3)" identifier * (ERROR "__regparm3" identifier) (call_expression "FUN_00062b90(int param_1,undefined4 param_2,uint param_3)" identifier (argument_list "(int param_1,undefined4 param_2,uint param_3)" ( (ERROR "int" identifier) identifier , identifier (ERROR "param_2" identifier) , (ERROR "uint" identifier) identifier ))))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  \n  puVar1 = (undefined4 *)bfd_make_section_old_way(param_1,param_2);\n  bfd_set_section_flags(param_1,puVar1,param_3 | 0x200003);\n  iVar2 = *(int *)(param_1 + 4);\n  puVar1[0x16] = 2;\n  puVar1[0x15] = puVar1;\n  iVar2 = (**(code **)(iVar2 + 0x10c))(param_1);\n  *(int *)(DAT_001d0248 + DAT_001d0244 * 4) = iVar2;\n  DAT_001d0244 = DAT_001d0244 + 1;\n  *(undefined4 *)(iVar2 + 4) = *puVar1;\n  *(undefined4 **)(iVar2 + 0x14) = puVar1;\n  *(undefined4 *)(iVar2 + 0x10) = 1;\n  *(undefined4 *)(iVar2 + 8) = 0;\n  *(undefined4 *)(iVar2 + 0xc) = 0;\n  return puVar1;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "puVar1 = (undefined4 *)bfd_make_section_old_way(param_1,param_2);" (assignment_expression "puVar1 = (undefined4 *)bfd_make_section_old_way(param_1,param_2)" identifier = (cast_expression "(undefined4 *)bfd_make_section_old_way(param_1,param_2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "bfd_make_section_old_way(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))))) ;) (expression_statement "bfd_set_section_flags(param_1,puVar1,param_3 | 0x200003);" (call_expression "bfd_set_section_flags(param_1,puVar1,param_3 | 0x200003)" identifier (argument_list "(param_1,puVar1,param_3 | 0x200003)" ( identifier , identifier , (binary_expression "param_3 | 0x200003" identifier | number_literal) ))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 4);" (assignment_expression "iVar2 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "puVar1[0x16] = 2;" (assignment_expression "puVar1[0x16] = 2" (subscript_expression "puVar1[0x16]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[0x15] = puVar1;" (assignment_expression "puVar1[0x15] = puVar1" (subscript_expression "puVar1[0x15]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar2 = (**(code **)(iVar2 + 0x10c))(param_1);" (assignment_expression "iVar2 = (**(code **)(iVar2 + 0x10c))(param_1)" identifier = (call_expression "(**(code **)(iVar2 + 0x10c))(param_1)" (parenthesized_expression "(**(code **)(iVar2 + 0x10c))" ( (pointer_expression "**(code **)(iVar2 + 0x10c)" * (pointer_expression "*(code **)(iVar2 + 0x10c)" * (cast_expression "(code **)(iVar2 + 0x10c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x10c)" ( (binary_expression "iVar2 + 0x10c" identifier + number_literal) ))))) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "*(int *)(DAT_001d0248 + DAT_001d0244 * 4) = iVar2;" (assignment_expression "*(int *)(DAT_001d0248 + DAT_001d0244 * 4) = iVar2" (pointer_expression "*(int *)(DAT_001d0248 + DAT_001d0244 * 4)" * (cast_expression "(int *)(DAT_001d0248 + DAT_001d0244 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001d0248 + DAT_001d0244 * 4)" ( (binary_expression "DAT_001d0248 + DAT_001d0244 * 4" identifier + (binary_expression "DAT_001d0244 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "DAT_001d0244 = DAT_001d0244 + 1;" (assignment_expression "DAT_001d0244 = DAT_001d0244 + 1" identifier = (binary_expression "DAT_001d0244 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(iVar2 + 4) = *puVar1;" (assignment_expression "*(undefined4 *)(iVar2 + 4) = *puVar1" (pointer_expression "*(undefined4 *)(iVar2 + 4)" * (cast_expression "(undefined4 *)(iVar2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "*(undefined4 **)(iVar2 + 0x14) = puVar1;" (assignment_expression "*(undefined4 **)(iVar2 + 0x14) = puVar1" (pointer_expression "*(undefined4 **)(iVar2 + 0x14)" * (cast_expression "(undefined4 **)(iVar2 + 0x14)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x10) = 1;" (assignment_expression "*(undefined4 *)(iVar2 + 0x10) = 1" (pointer_expression "*(undefined4 *)(iVar2 + 0x10)" * (cast_expression "(undefined4 *)(iVar2 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar2 + 8) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + 8) = 0" (pointer_expression "*(undefined4 *)(iVar2 + 8)" * (cast_expression "(undefined4 *)(iVar2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar2 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + 0xc) = 0" (pointer_expression "*(undefined4 *)(iVar2 + 0xc)" * (cast_expression "(undefined4 *)(iVar2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) )))) = number_literal) ;) (return_statement "return puVar1;" return identifier ;) }))
(translation_unit (ERROR (binary_expression IDENT * (ERROR IDENT) (call_expression IDENT (argument_list ( (ERROR IDENT) IDENT , IDENT (ERROR IDENT) , (ERROR IDENT) IDENT ))))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_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 (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return IDENT ;) }))
(ERROR "undefined4 * __regparm3 FUN_00062b90(int param_1,undefined4 param_2,uint param_3)" (binary_expression "undefined4 * __regparm3 FUN_00062b90(int param_1,undefined4 param_2,uint param_3)" (identifier "undefined4") (* "*") (ERROR "__regparm3" (identifier "__regparm3")) (call_expression "FUN_00062b90(int param_1,undefined4 param_2,uint param_3)" (identifier "FUN_00062b90") (argument_list "(int param_1,undefined4 param_2,uint param_3)" (( "(") (ERROR "int" (identifier "int")) (identifier "param_1") (, ",") (identifier "undefined4") (ERROR "param_2" (identifier "param_2")) (, ",") (ERROR "uint" (identifier "uint")) (identifier "param_3") () ")"))))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  \n  puVar1 = (undefined4 *)bfd_make_section_old_way(param_1,param_2);\n  bfd_set_section_flags(param_1,puVar1,param_3 | 0x200003);\n  iVar2 = *(int *)(param_1 + 4);\n  puVar1[0x16] = 2;\n  puVar1[0x15] = puVar1;\n  iVar2 = (**(code **)(iVar2 + 0x10c))(param_1);\n  *(int *)(DAT_001d0248 + DAT_001d0244 * 4) = iVar2;\n  DAT_001d0244 = DAT_001d0244 + 1;\n  *(undefined4 *)(iVar2 + 4) = *puVar1;\n  *(undefined4 **)(iVar2 + 0x14) = puVar1;\n  *(undefined4 *)(iVar2 + 0x10) = 1;\n  *(undefined4 *)(iVar2 + 8) = 0;\n  *(undefined4 *)(iVar2 + 0xc) = 0;\n  return puVar1;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "puVar1 = (undefined4 *)bfd_make_section_old_way(param_1,param_2);" (assignment_expression "puVar1 = (undefined4 *)bfd_make_section_old_way(param_1,param_2)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)bfd_make_section_old_way(param_1,param_2)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "bfd_make_section_old_way(param_1,param_2)" (identifier "bfd_make_section_old_way") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")"))))) (; ";")) (expression_statement "bfd_set_section_flags(param_1,puVar1,param_3 | 0x200003);" (call_expression "bfd_set_section_flags(param_1,puVar1,param_3 | 0x200003)" (identifier "bfd_set_section_flags") (argument_list "(param_1,puVar1,param_3 | 0x200003)" (( "(") (identifier "param_1") (, ",") (identifier "puVar1") (, ",") (binary_expression "param_3 | 0x200003" (identifier "param_3") (| "|") (number_literal "0x200003")) () ")"))) (; ";")) (expression_statement "iVar2 = *(int *)(param_1 + 4);" (assignment_expression "iVar2 = *(int *)(param_1 + 4)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "puVar1[0x16] = 2;" (assignment_expression "puVar1[0x16] = 2" (subscript_expression "puVar1[0x16]" (identifier "puVar1") ([ "[") (number_literal "0x16") (] "]")) (= "=") (number_literal "2")) (; ";")) (expression_statement "puVar1[0x15] = puVar1;" (assignment_expression "puVar1[0x15] = puVar1" (subscript_expression "puVar1[0x15]" (identifier "puVar1") ([ "[") (number_literal "0x15") (] "]")) (= "=") (identifier "puVar1")) (; ";")) (expression_statement "iVar2 = (**(code **)(iVar2 + 0x10c))(param_1);" (assignment_expression "iVar2 = (**(code **)(iVar2 + 0x10c))(param_1)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(iVar2 + 0x10c))(param_1)" (parenthesized_expression "(**(code **)(iVar2 + 0x10c))" (( "(") (pointer_expression "**(code **)(iVar2 + 0x10c)" (* "*") (pointer_expression "*(code **)(iVar2 + 0x10c)" (* "*") (cast_expression "(code **)(iVar2 + 0x10c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar2 + 0x10c)" (( "(") (binary_expression "iVar2 + 0x10c" (identifier "iVar2") (+ "+") (number_literal "0x10c")) () ")"))))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "*(int *)(DAT_001d0248 + DAT_001d0244 * 4) = iVar2;" (assignment_expression "*(int *)(DAT_001d0248 + DAT_001d0244 * 4) = iVar2" (pointer_expression "*(int *)(DAT_001d0248 + DAT_001d0244 * 4)" (* "*") (cast_expression "(int *)(DAT_001d0248 + DAT_001d0244 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_001d0248 + DAT_001d0244 * 4)" (( "(") (binary_expression "DAT_001d0248 + DAT_001d0244 * 4" (identifier "DAT_001d0248") (+ "+") (binary_expression "DAT_001d0244 * 4" (identifier "DAT_001d0244") (* "*") (number_literal "4"))) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "DAT_001d0244 = DAT_001d0244 + 1;" (assignment_expression "DAT_001d0244 = DAT_001d0244 + 1" (identifier "DAT_001d0244") (= "=") (binary_expression "DAT_001d0244 + 1" (identifier "DAT_001d0244") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(undefined4 *)(iVar2 + 4) = *puVar1;" (assignment_expression "*(undefined4 *)(iVar2 + 4) = *puVar1" (pointer_expression "*(undefined4 *)(iVar2 + 4)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 4)" (( "(") (binary_expression "iVar2 + 4" (identifier "iVar2") (+ "+") (number_literal "4")) () ")")))) (= "=") (pointer_expression "*puVar1" (* "*") (identifier "puVar1"))) (; ";")) (expression_statement "*(undefined4 **)(iVar2 + 0x14) = puVar1;" (assignment_expression "*(undefined4 **)(iVar2 + 0x14) = puVar1" (pointer_expression "*(undefined4 **)(iVar2 + 0x14)" (* "*") (cast_expression "(undefined4 **)(iVar2 + 0x14)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar2 + 0x14)" (( "(") (binary_expression "iVar2 + 0x14" (identifier "iVar2") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "puVar1")) (; ";")) (expression_statement "*(undefined4 *)(iVar2 + 0x10) = 1;" (assignment_expression "*(undefined4 *)(iVar2 + 0x10) = 1" (pointer_expression "*(undefined4 *)(iVar2 + 0x10)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x10)" (( "(") (binary_expression "iVar2 + 0x10" (identifier "iVar2") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "*(undefined4 *)(iVar2 + 8) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + 8) = 0" (pointer_expression "*(undefined4 *)(iVar2 + 8)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 8)" (( "(") (binary_expression "iVar2 + 8" (identifier "iVar2") (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(iVar2 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + 0xc) = 0" (pointer_expression "*(undefined4 *)(iVar2 + 0xc)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xc)" (( "(") (binary_expression "iVar2 + 0xc" (identifier "iVar2") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return puVar1;" (return "return") (identifier "puVar1") (; ";")) (} "}"))

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

asection * __regparm3 quick_section(bfd *abfd,char *name,int var_3,int align)

{
  type_1 *pbVar1;
  type_2 *pbVar2;
  type_3 *pbVar3;
  
  pbVar2 = (type_2 *)var_1(abfd,name);
  var_2(abfd,pbVar2,var_3 | 0x200003);
  pbVar1 = abfd->xvec;
  pbVar2->alignment_power = 2;
  pbVar2->output_section = pbVar2;
  pbVar3 = (*pbVar1->_bfd_make_empty_symbol)(abfd);
  symtab[var_4] = pbVar3;
  var_4 = var_4 + 1;
  pbVar3->name = pbVar2->name;
  pbVar3->section = pbVar2;
  pbVar3->var_3 = 1;
  *(type_4 *)&pbVar3->value = 0;
  *(type_4 *)((int)&pbVar3->value + 4) = 0;
  return pbVar2;
}


(translation_unit (ERROR (binary_expression left: (identifier) (ERROR (identifier)) right: (call_expression function: (identifier) arguments: (argument_list (ERROR (identifier)) (identifier) (identifier) (ERROR (identifier)) (ERROR (identifier)) (identifier))))) (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (binary_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: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (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))))) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (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))))) right: (number_literal))) (expression_statement (assignment_expression left: (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))))) right: (number_literal))) (expression_statement (assignment_expression left: (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))))) right: (number_literal))) (return_statement (identifier))))

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

undefined4 * __regparm3 MASKED(int param_1,undefined4 param_2,uint param_3)

{
  undefined4 *puVar1;
  int iVar2;
  
  puVar1 = (undefined4 *)bfd_make_section_old_way(param_1,param_2);
  bfd_set_section_flags(param_1,puVar1,param_3 | 0x200003);
  iVar2 = *(int *)(param_1 + 4);
  puVar1[0x16] = 2;
  puVar1[0x15] = puVar1;
  iVar2 = (**(code **)(iVar2 + 0x10c))(param_1);
  *(int *)(DAT_001d0248 + DAT_001d0244 * 4) = iVar2;
  DAT_001d0244 = DAT_001d0244 + 1;
  *(undefined4 *)(iVar2 + 4) = *puVar1;
  *(undefined4 **)(iVar2 + 0x14) = puVar1;
  *(undefined4 *)(iVar2 + 0x10) = 1;
  *(undefined4 *)(iVar2 + 8) = 0;
  *(undefined4 *)(iVar2 + 0xc) = 0;
  return puVar1;
}

