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

void * start_stab(void *dhandle,bfd *abfd,bfd_boolean sections,asymbol **syms,long symcount)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  uint uVar3;
  byte bVar4;
  
  bVar4 = 0;
  puVar1 = (undefined4 *)xmalloc(0xec);
  puVar1[4] = 0;
  puVar1[0x3a] = 0;
  puVar2 = (undefined4 *)((uint)(puVar1 + 5) & 0xfffffffc);
  for (uVar3 = (uint)((int)puVar1 + (0xec - (int)((uint)(puVar1 + 5) & 0xfffffffc))) >> 2;
      uVar3 != 0; uVar3 = uVar3 - 1) {
    *puVar2 = 0;
    puVar2 = puVar2 + (uint)bVar4 * -2 + 1;
  }
  puVar1[0x15] = 1;
  *puVar1 = abfd;
  puVar1[1] = sections;
  puVar1[2] = syms;
  puVar1[3] = symcount;
  puVar2 = (undefined4 *)xmalloc(4);
  puVar1[0x11] = 0xffffffff;
  *puVar2 = 0;
  puVar1[0x16] = puVar2;
  puVar1[0x12] = 0xffffffff;
  return puVar1;
}



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

undefined4 *
FUN_00026910(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
            undefined4 param_5)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  uint uVar3;
  byte bVar4;
  
  bVar4 = 0;
  puVar1 = (undefined4 *)xmalloc(0xec);
  puVar1[4] = 0;
  puVar1[0x3a] = 0;
  puVar2 = (undefined4 *)((uint)(puVar1 + 5) & 0xfffffffc);
  for (uVar3 = (uint)((int)puVar1 + (0xec - (int)((uint)(puVar1 + 5) & 0xfffffffc))) >> 2;
      uVar3 != 0; uVar3 = uVar3 - 1) {
    *puVar2 = 0;
    puVar2 = puVar2 + (uint)bVar4 * -2 + 1;
  }
  puVar1[0x15] = 1;
  *puVar1 = param_2;
  puVar1[1] = param_3;
  puVar1[2] = param_4;
  puVar1[3] = param_5;
  puVar2 = (undefined4 *)xmalloc(4);
  puVar1[0x11] = 0xffffffff;
  *puVar2 = 0;
  puVar1[0x16] = puVar2;
  puVar1[0x12] = 0xffffffff;
  return puVar1;
}


PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000166c0
ADD EBX,0x196e8
SUB ESP,0xc
PUSH 0xec
CALL 0x000132e0
LEA EDI,[EAX + 0x14]
LEA ECX,[EAX + 0x10]
MOV dword ptr [EAX + 0x10],0x0
MOV ESI,EAX
MOV dword ptr [EAX + 0xe8],0x0
AND EDI,0xfffffffc
XOR EAX,EAX
SUB ECX,EDI
ADD ECX,0xdc
SHR ECX,0x2
STOSD.REP ES:EDI
MOV dword ptr [ESI + 0x54],0x1
MOV dword ptr [ESP],0x4
MOV EAX,dword ptr [ESP + 0x24]
MOV dword ptr [ESI],EAX
MOV EAX,dword ptr [ESP + 0x28]
MOV dword ptr [ESI + 0x4],EAX
MOV EAX,dword ptr [ESP + 0x2c]
MOV dword ptr [ESI + 0x8],EAX
MOV EAX,dword ptr [ESP + 0x30]
MOV dword ptr [ESI + 0xc],EAX
CALL 0x000132e0
ADD ESP,0x10
MOV dword ptr [ESI + 0x44],0xffffffff
MOV dword ptr [EAX],0x0
POP EBX
MOV dword ptr [ESI + 0x58],EAX
MOV EAX,ESI
MOV dword ptr [ESI + 0x48],0xffffffff
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 *\nFUN_00026910(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  uint uVar3;\n  byte bVar4;\n  \n  bVar4 = 0;\n  puVar1 = (undefined4 *)xmalloc(0xec);\n  puVar1[4] = 0;\n  puVar1[0x3a] = 0;\n  puVar2 = (undefined4 *)((uint)(puVar1 + 5) & 0xfffffffc);\n  for (uVar3 = (uint)((int)puVar1 + (0xec - (int)((uint)(puVar1 + 5) & 0xfffffffc))) >> 2;\n      uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar2 = 0;\n    puVar2 = puVar2 + (uint)bVar4 * -2 + 1;\n  }\n  puVar1[0x15] = 1;\n  *puVar1 = param_2;\n  puVar1[1] = param_3;\n  puVar1[2] = param_4;\n  puVar1[3] = param_5;\n  puVar2 = (undefined4 *)xmalloc(4);\n  puVar1[0x11] = 0xffffffff;\n  *puVar2 = 0;\n  puVar1[0x16] = puVar2;\n  puVar1[0x12] = 0xffffffff;\n  return puVar1;\n}\n\n" comment (function_definition "undefined4 *\nFUN_00026910(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  uint uVar3;\n  byte bVar4;\n  \n  bVar4 = 0;\n  puVar1 = (undefined4 *)xmalloc(0xec);\n  puVar1[4] = 0;\n  puVar1[0x3a] = 0;\n  puVar2 = (undefined4 *)((uint)(puVar1 + 5) & 0xfffffffc);\n  for (uVar3 = (uint)((int)puVar1 + (0xec - (int)((uint)(puVar1 + 5) & 0xfffffffc))) >> 2;\n      uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar2 = 0;\n    puVar2 = puVar2 + (uint)bVar4 * -2 + 1;\n  }\n  puVar1[0x15] = 1;\n  *puVar1 = param_2;\n  puVar1[1] = param_3;\n  puVar1[2] = param_4;\n  puVar1[3] = param_5;\n  puVar2 = (undefined4 *)xmalloc(4);\n  puVar1[0x11] = 0xffffffff;\n  *puVar2 = 0;\n  puVar1[0x16] = puVar2;\n  puVar1[0x12] = 0xffffffff;\n  return puVar1;\n}" type_identifier (pointer_declarator "*\nFUN_00026910(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5)" * (function_declarator "FUN_00026910(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5)" ( (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 "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) )))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  uint uVar3;\n  byte bVar4;\n  \n  bVar4 = 0;\n  puVar1 = (undefined4 *)xmalloc(0xec);\n  puVar1[4] = 0;\n  puVar1[0x3a] = 0;\n  puVar2 = (undefined4 *)((uint)(puVar1 + 5) & 0xfffffffc);\n  for (uVar3 = (uint)((int)puVar1 + (0xec - (int)((uint)(puVar1 + 5) & 0xfffffffc))) >> 2;\n      uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar2 = 0;\n    puVar2 = puVar2 + (uint)bVar4 * -2 + 1;\n  }\n  puVar1[0x15] = 1;\n  *puVar1 = param_2;\n  puVar1[1] = param_3;\n  puVar1[2] = param_4;\n  puVar1[3] = param_5;\n  puVar2 = (undefined4 *)xmalloc(4);\n  puVar1[0x11] = 0xffffffff;\n  *puVar2 = 0;\n  puVar1[0x16] = puVar2;\n  puVar1[0x12] = 0xffffffff;\n  return puVar1;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "byte bVar4;" type_identifier identifier ;) (expression_statement "bVar4 = 0;" (assignment_expression "bVar4 = 0" identifier = number_literal) ;) (expression_statement "puVar1 = (undefined4 *)xmalloc(0xec);" (assignment_expression "puVar1 = (undefined4 *)xmalloc(0xec)" identifier = (cast_expression "(undefined4 *)xmalloc(0xec)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0xec)" identifier (argument_list "(0xec)" ( number_literal ))))) ;) (expression_statement "puVar1[4] = 0;" (assignment_expression "puVar1[4] = 0" (subscript_expression "puVar1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[0x3a] = 0;" (assignment_expression "puVar1[0x3a] = 0" (subscript_expression "puVar1[0x3a]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2 = (undefined4 *)((uint)(puVar1 + 5) & 0xfffffffc);" (assignment_expression "puVar2 = (undefined4 *)((uint)(puVar1 + 5) & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((uint)(puVar1 + 5) & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)(puVar1 + 5) & 0xfffffffc)" ( (binary_expression "(uint)(puVar1 + 5) & 0xfffffffc" (call_expression "(uint)(puVar1 + 5)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar1 + 5)" ( (binary_expression "puVar1 + 5" identifier + number_literal) ))) & number_literal) )))) ;) (for_statement "for (uVar3 = (uint)((int)puVar1 + (0xec - (int)((uint)(puVar1 + 5) & 0xfffffffc))) >> 2;\n      uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar2 = 0;\n    puVar2 = puVar2 + (uint)bVar4 * -2 + 1;\n  }" for ( (assignment_expression "uVar3 = (uint)((int)puVar1 + (0xec - (int)((uint)(puVar1 + 5) & 0xfffffffc))) >> 2" identifier = (binary_expression "(uint)((int)puVar1 + (0xec - (int)((uint)(puVar1 + 5) & 0xfffffffc))) >> 2" (call_expression "(uint)((int)puVar1 + (0xec - (int)((uint)(puVar1 + 5) & 0xfffffffc)))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)puVar1 + (0xec - (int)((uint)(puVar1 + 5) & 0xfffffffc)))" ( (binary_expression "(int)puVar1 + (0xec - (int)((uint)(puVar1 + 5) & 0xfffffffc))" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0xec - (int)((uint)(puVar1 + 5) & 0xfffffffc))" ( (binary_expression "0xec - (int)((uint)(puVar1 + 5) & 0xfffffffc)" number_literal - (cast_expression "(int)((uint)(puVar1 + 5) & 0xfffffffc)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)(puVar1 + 5) & 0xfffffffc)" ( (binary_expression "(uint)(puVar1 + 5) & 0xfffffffc" (call_expression "(uint)(puVar1 + 5)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar1 + 5)" ( (binary_expression "puVar1 + 5" identifier + number_literal) ))) & number_literal) )))) ))) ))) >> number_literal)) ; (binary_expression "uVar3 != 0" identifier != number_literal) ; (assignment_expression "uVar3 = uVar3 - 1" identifier = (binary_expression "uVar3 - 1" identifier - number_literal)) ) (compound_statement "{\n    *puVar2 = 0;\n    puVar2 = puVar2 + (uint)bVar4 * -2 + 1;\n  }" { (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar2 = puVar2 + (uint)bVar4 * -2 + 1;" (assignment_expression "puVar2 = puVar2 + (uint)bVar4 * -2 + 1" identifier = (binary_expression "puVar2 + (uint)bVar4 * -2 + 1" (binary_expression "puVar2 + (uint)bVar4 * -2" identifier + (binary_expression "(uint)bVar4 * -2" (cast_expression "(uint)bVar4" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "puVar1[0x15] = 1;" (assignment_expression "puVar1[0x15] = 1" (subscript_expression "puVar1[0x15]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar1 = param_2;" (assignment_expression "*puVar1 = param_2" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "puVar1[1] = param_3;" (assignment_expression "puVar1[1] = param_3" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[2] = param_4;" (assignment_expression "puVar1[2] = param_4" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[3] = param_5;" (assignment_expression "puVar1[3] = param_5" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2 = (undefined4 *)xmalloc(4);" (assignment_expression "puVar2 = (undefined4 *)xmalloc(4)" identifier = (cast_expression "(undefined4 *)xmalloc(4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(4)" identifier (argument_list "(4)" ( number_literal ))))) ;) (expression_statement "puVar1[0x11] = 0xffffffff;" (assignment_expression "puVar1[0x11] = 0xffffffff" (subscript_expression "puVar1[0x11]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar1[0x16] = puVar2;" (assignment_expression "puVar1[0x16] = puVar2" (subscript_expression "puVar1[0x16]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[0x12] = 0xffffffff;" (assignment_expression "puVar1[0x12] = 0xffffffff" (subscript_expression "puVar1[0x12]" 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\nvoid * start_stab(void *dhandle,bfd *abfd,bfd_boolean sections,asymbol **syms,long symcount)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  uint uVar3;\n  byte bVar4;\n  \n  bVar4 = 0;\n  puVar1 = (undefined4 *)xmalloc(0xec);\n  puVar1[4] = 0;\n  puVar1[0x3a] = 0;\n  puVar2 = (undefined4 *)((uint)(puVar1 + 5) & 0xfffffffc);\n  for (uVar3 = (uint)((int)puVar1 + (0xec - (int)((uint)(puVar1 + 5) & 0xfffffffc))) >> 2;\n      uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar2 = 0;\n    puVar2 = puVar2 + (uint)bVar4 * -2 + 1;\n  }\n  puVar1[0x15] = 1;\n  *puVar1 = abfd;\n  puVar1[1] = sections;\n  puVar1[2] = syms;\n  puVar1[3] = symcount;\n  puVar2 = (undefined4 *)xmalloc(4);\n  puVar1[0x11] = 0xffffffff;\n  *puVar2 = 0;\n  puVar1[0x16] = puVar2;\n  puVar1[0x12] = 0xffffffff;\n  return puVar1;\n}\n\n" comment (function_definition "void * start_stab(void *dhandle,bfd *abfd,bfd_boolean sections,asymbol **syms,long symcount)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  uint uVar3;\n  byte bVar4;\n  \n  bVar4 = 0;\n  puVar1 = (undefined4 *)xmalloc(0xec);\n  puVar1[4] = 0;\n  puVar1[0x3a] = 0;\n  puVar2 = (undefined4 *)((uint)(puVar1 + 5) & 0xfffffffc);\n  for (uVar3 = (uint)((int)puVar1 + (0xec - (int)((uint)(puVar1 + 5) & 0xfffffffc))) >> 2;\n      uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar2 = 0;\n    puVar2 = puVar2 + (uint)bVar4 * -2 + 1;\n  }\n  puVar1[0x15] = 1;\n  *puVar1 = abfd;\n  puVar1[1] = sections;\n  puVar1[2] = syms;\n  puVar1[3] = symcount;\n  puVar2 = (undefined4 *)xmalloc(4);\n  puVar1[0x11] = 0xffffffff;\n  *puVar2 = 0;\n  puVar1[0x16] = puVar2;\n  puVar1[0x12] = 0xffffffff;\n  return puVar1;\n}" primitive_type (pointer_declarator "* start_stab(void *dhandle,bfd *abfd,bfd_boolean sections,asymbol **syms,long symcount)" * (function_declarator "start_stab(void *dhandle,bfd *abfd,bfd_boolean sections,asymbol **syms,long symcount)" identifier (parameter_list "(void *dhandle,bfd *abfd,bfd_boolean sections,asymbol **syms,long symcount)" ( (parameter_declaration "void *dhandle" primitive_type (pointer_declarator "*dhandle" * identifier)) , (parameter_declaration "bfd *abfd" type_identifier (pointer_declarator "*abfd" * identifier)) , (parameter_declaration "bfd_boolean sections" type_identifier identifier) , (parameter_declaration "asymbol **syms" type_identifier (pointer_declarator "**syms" * (pointer_declarator "*syms" * identifier))) , (parameter_declaration "long symcount" (sized_type_specifier "long" long) identifier) )))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  uint uVar3;\n  byte bVar4;\n  \n  bVar4 = 0;\n  puVar1 = (undefined4 *)xmalloc(0xec);\n  puVar1[4] = 0;\n  puVar1[0x3a] = 0;\n  puVar2 = (undefined4 *)((uint)(puVar1 + 5) & 0xfffffffc);\n  for (uVar3 = (uint)((int)puVar1 + (0xec - (int)((uint)(puVar1 + 5) & 0xfffffffc))) >> 2;\n      uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar2 = 0;\n    puVar2 = puVar2 + (uint)bVar4 * -2 + 1;\n  }\n  puVar1[0x15] = 1;\n  *puVar1 = abfd;\n  puVar1[1] = sections;\n  puVar1[2] = syms;\n  puVar1[3] = symcount;\n  puVar2 = (undefined4 *)xmalloc(4);\n  puVar1[0x11] = 0xffffffff;\n  *puVar2 = 0;\n  puVar1[0x16] = puVar2;\n  puVar1[0x12] = 0xffffffff;\n  return puVar1;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "byte bVar4;" type_identifier identifier ;) (expression_statement "bVar4 = 0;" (assignment_expression "bVar4 = 0" identifier = number_literal) ;) (expression_statement "puVar1 = (undefined4 *)xmalloc(0xec);" (assignment_expression "puVar1 = (undefined4 *)xmalloc(0xec)" identifier = (cast_expression "(undefined4 *)xmalloc(0xec)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0xec)" identifier (argument_list "(0xec)" ( number_literal ))))) ;) (expression_statement "puVar1[4] = 0;" (assignment_expression "puVar1[4] = 0" (subscript_expression "puVar1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[0x3a] = 0;" (assignment_expression "puVar1[0x3a] = 0" (subscript_expression "puVar1[0x3a]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2 = (undefined4 *)((uint)(puVar1 + 5) & 0xfffffffc);" (assignment_expression "puVar2 = (undefined4 *)((uint)(puVar1 + 5) & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((uint)(puVar1 + 5) & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)(puVar1 + 5) & 0xfffffffc)" ( (binary_expression "(uint)(puVar1 + 5) & 0xfffffffc" (call_expression "(uint)(puVar1 + 5)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar1 + 5)" ( (binary_expression "puVar1 + 5" identifier + number_literal) ))) & number_literal) )))) ;) (for_statement "for (uVar3 = (uint)((int)puVar1 + (0xec - (int)((uint)(puVar1 + 5) & 0xfffffffc))) >> 2;\n      uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar2 = 0;\n    puVar2 = puVar2 + (uint)bVar4 * -2 + 1;\n  }" for ( (assignment_expression "uVar3 = (uint)((int)puVar1 + (0xec - (int)((uint)(puVar1 + 5) & 0xfffffffc))) >> 2" identifier = (binary_expression "(uint)((int)puVar1 + (0xec - (int)((uint)(puVar1 + 5) & 0xfffffffc))) >> 2" (call_expression "(uint)((int)puVar1 + (0xec - (int)((uint)(puVar1 + 5) & 0xfffffffc)))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)puVar1 + (0xec - (int)((uint)(puVar1 + 5) & 0xfffffffc)))" ( (binary_expression "(int)puVar1 + (0xec - (int)((uint)(puVar1 + 5) & 0xfffffffc))" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0xec - (int)((uint)(puVar1 + 5) & 0xfffffffc))" ( (binary_expression "0xec - (int)((uint)(puVar1 + 5) & 0xfffffffc)" number_literal - (cast_expression "(int)((uint)(puVar1 + 5) & 0xfffffffc)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)(puVar1 + 5) & 0xfffffffc)" ( (binary_expression "(uint)(puVar1 + 5) & 0xfffffffc" (call_expression "(uint)(puVar1 + 5)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar1 + 5)" ( (binary_expression "puVar1 + 5" identifier + number_literal) ))) & number_literal) )))) ))) ))) >> number_literal)) ; (binary_expression "uVar3 != 0" identifier != number_literal) ; (assignment_expression "uVar3 = uVar3 - 1" identifier = (binary_expression "uVar3 - 1" identifier - number_literal)) ) (compound_statement "{\n    *puVar2 = 0;\n    puVar2 = puVar2 + (uint)bVar4 * -2 + 1;\n  }" { (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar2 = puVar2 + (uint)bVar4 * -2 + 1;" (assignment_expression "puVar2 = puVar2 + (uint)bVar4 * -2 + 1" identifier = (binary_expression "puVar2 + (uint)bVar4 * -2 + 1" (binary_expression "puVar2 + (uint)bVar4 * -2" identifier + (binary_expression "(uint)bVar4 * -2" (cast_expression "(uint)bVar4" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "puVar1[0x15] = 1;" (assignment_expression "puVar1[0x15] = 1" (subscript_expression "puVar1[0x15]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar1 = abfd;" (assignment_expression "*puVar1 = abfd" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "puVar1[1] = sections;" (assignment_expression "puVar1[1] = sections" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[2] = syms;" (assignment_expression "puVar1[2] = syms" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[3] = symcount;" (assignment_expression "puVar1[3] = symcount" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2 = (undefined4 *)xmalloc(4);" (assignment_expression "puVar2 = (undefined4 *)xmalloc(4)" identifier = (cast_expression "(undefined4 *)xmalloc(4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(4)" identifier (argument_list "(4)" ( number_literal ))))) ;) (expression_statement "puVar1[0x11] = 0xffffffff;" (assignment_expression "puVar1[0x11] = 0xffffffff" (subscript_expression "puVar1[0x11]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar1[0x16] = puVar2;" (assignment_expression "puVar1[0x16] = puVar2" (subscript_expression "puVar1[0x16]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[0x12] = 0xffffffff;" (assignment_expression "puVar1[0x12] = 0xffffffff" (subscript_expression "puVar1[0x12]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return puVar1;" return identifier ;) })))
(translation_unit "undefined4 *\nFUN_00026910(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  uint uVar3;\n  byte bVar4;\n  \n  bVar4 = 0;\n  puVar1 = (undefined4 *)xmalloc(0xec);\n  puVar1[4] = 0;\n  puVar1[0x3a] = 0;\n  puVar2 = (undefined4 *)((uint)(puVar1 + 5) & 0xfffffffc);\n  for (uVar3 = (uint)((int)puVar1 + (0xec - (int)((uint)(puVar1 + 5) & 0xfffffffc))) >> 2;\n      uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar2 = 0;\n    puVar2 = puVar2 + (uint)bVar4 * -2 + 1;\n  }\n  puVar1[0x15] = 1;\n  *puVar1 = param_2;\n  puVar1[1] = param_3;\n  puVar1[2] = param_4;\n  puVar1[3] = param_5;\n  puVar2 = (undefined4 *)xmalloc(4);\n  puVar1[0x11] = 0xffffffff;\n  *puVar2 = 0;\n  puVar1[0x16] = puVar2;\n  puVar1[0x12] = 0xffffffff;\n  return puVar1;\n}\n\n" (function_definition "undefined4 *\nFUN_00026910(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  uint uVar3;\n  byte bVar4;\n  \n  bVar4 = 0;\n  puVar1 = (undefined4 *)xmalloc(0xec);\n  puVar1[4] = 0;\n  puVar1[0x3a] = 0;\n  puVar2 = (undefined4 *)((uint)(puVar1 + 5) & 0xfffffffc);\n  for (uVar3 = (uint)((int)puVar1 + (0xec - (int)((uint)(puVar1 + 5) & 0xfffffffc))) >> 2;\n      uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar2 = 0;\n    puVar2 = puVar2 + (uint)bVar4 * -2 + 1;\n  }\n  puVar1[0x15] = 1;\n  *puVar1 = param_2;\n  puVar1[1] = param_3;\n  puVar1[2] = param_4;\n  puVar1[3] = param_5;\n  puVar2 = (undefined4 *)xmalloc(4);\n  puVar1[0x11] = 0xffffffff;\n  *puVar2 = 0;\n  puVar1[0x16] = puVar2;\n  puVar1[0x12] = 0xffffffff;\n  return puVar1;\n}" type_identifier (pointer_declarator "*\nFUN_00026910(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5)" * (function_declarator "FUN_00026910(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5)" ( (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 "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) )))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  uint uVar3;\n  byte bVar4;\n  \n  bVar4 = 0;\n  puVar1 = (undefined4 *)xmalloc(0xec);\n  puVar1[4] = 0;\n  puVar1[0x3a] = 0;\n  puVar2 = (undefined4 *)((uint)(puVar1 + 5) & 0xfffffffc);\n  for (uVar3 = (uint)((int)puVar1 + (0xec - (int)((uint)(puVar1 + 5) & 0xfffffffc))) >> 2;\n      uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar2 = 0;\n    puVar2 = puVar2 + (uint)bVar4 * -2 + 1;\n  }\n  puVar1[0x15] = 1;\n  *puVar1 = param_2;\n  puVar1[1] = param_3;\n  puVar1[2] = param_4;\n  puVar1[3] = param_5;\n  puVar2 = (undefined4 *)xmalloc(4);\n  puVar1[0x11] = 0xffffffff;\n  *puVar2 = 0;\n  puVar1[0x16] = puVar2;\n  puVar1[0x12] = 0xffffffff;\n  return puVar1;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "byte bVar4;" type_identifier identifier ;) (expression_statement "bVar4 = 0;" (assignment_expression "bVar4 = 0" identifier = number_literal) ;) (expression_statement "puVar1 = (undefined4 *)xmalloc(0xec);" (assignment_expression "puVar1 = (undefined4 *)xmalloc(0xec)" identifier = (cast_expression "(undefined4 *)xmalloc(0xec)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0xec)" identifier (argument_list "(0xec)" ( number_literal ))))) ;) (expression_statement "puVar1[4] = 0;" (assignment_expression "puVar1[4] = 0" (subscript_expression "puVar1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[0x3a] = 0;" (assignment_expression "puVar1[0x3a] = 0" (subscript_expression "puVar1[0x3a]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2 = (undefined4 *)((uint)(puVar1 + 5) & 0xfffffffc);" (assignment_expression "puVar2 = (undefined4 *)((uint)(puVar1 + 5) & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((uint)(puVar1 + 5) & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)(puVar1 + 5) & 0xfffffffc)" ( (binary_expression "(uint)(puVar1 + 5) & 0xfffffffc" (call_expression "(uint)(puVar1 + 5)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar1 + 5)" ( (binary_expression "puVar1 + 5" identifier + number_literal) ))) & number_literal) )))) ;) (for_statement "for (uVar3 = (uint)((int)puVar1 + (0xec - (int)((uint)(puVar1 + 5) & 0xfffffffc))) >> 2;\n      uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar2 = 0;\n    puVar2 = puVar2 + (uint)bVar4 * -2 + 1;\n  }" for ( (assignment_expression "uVar3 = (uint)((int)puVar1 + (0xec - (int)((uint)(puVar1 + 5) & 0xfffffffc))) >> 2" identifier = (binary_expression "(uint)((int)puVar1 + (0xec - (int)((uint)(puVar1 + 5) & 0xfffffffc))) >> 2" (call_expression "(uint)((int)puVar1 + (0xec - (int)((uint)(puVar1 + 5) & 0xfffffffc)))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)puVar1 + (0xec - (int)((uint)(puVar1 + 5) & 0xfffffffc)))" ( (binary_expression "(int)puVar1 + (0xec - (int)((uint)(puVar1 + 5) & 0xfffffffc))" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0xec - (int)((uint)(puVar1 + 5) & 0xfffffffc))" ( (binary_expression "0xec - (int)((uint)(puVar1 + 5) & 0xfffffffc)" number_literal - (cast_expression "(int)((uint)(puVar1 + 5) & 0xfffffffc)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)(puVar1 + 5) & 0xfffffffc)" ( (binary_expression "(uint)(puVar1 + 5) & 0xfffffffc" (call_expression "(uint)(puVar1 + 5)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar1 + 5)" ( (binary_expression "puVar1 + 5" identifier + number_literal) ))) & number_literal) )))) ))) ))) >> number_literal)) ; (binary_expression "uVar3 != 0" identifier != number_literal) ; (assignment_expression "uVar3 = uVar3 - 1" identifier = (binary_expression "uVar3 - 1" identifier - number_literal)) ) (compound_statement "{\n    *puVar2 = 0;\n    puVar2 = puVar2 + (uint)bVar4 * -2 + 1;\n  }" { (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar2 = puVar2 + (uint)bVar4 * -2 + 1;" (assignment_expression "puVar2 = puVar2 + (uint)bVar4 * -2 + 1" identifier = (binary_expression "puVar2 + (uint)bVar4 * -2 + 1" (binary_expression "puVar2 + (uint)bVar4 * -2" identifier + (binary_expression "(uint)bVar4 * -2" (cast_expression "(uint)bVar4" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "puVar1[0x15] = 1;" (assignment_expression "puVar1[0x15] = 1" (subscript_expression "puVar1[0x15]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar1 = param_2;" (assignment_expression "*puVar1 = param_2" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "puVar1[1] = param_3;" (assignment_expression "puVar1[1] = param_3" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[2] = param_4;" (assignment_expression "puVar1[2] = param_4" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[3] = param_5;" (assignment_expression "puVar1[3] = param_5" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2 = (undefined4 *)xmalloc(4);" (assignment_expression "puVar2 = (undefined4 *)xmalloc(4)" identifier = (cast_expression "(undefined4 *)xmalloc(4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(4)" identifier (argument_list "(4)" ( number_literal ))))) ;) (expression_statement "puVar1[0x11] = 0xffffffff;" (assignment_expression "puVar1[0x11] = 0xffffffff" (subscript_expression "puVar1[0x11]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar1[0x16] = puVar2;" (assignment_expression "puVar1[0x16] = puVar2" (subscript_expression "puVar1[0x16]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[0x12] = 0xffffffff;" (assignment_expression "puVar1[0x12] = 0xffffffff" (subscript_expression "puVar1[0x12]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return puVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (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 (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) )))) ;) (for_statement for ( (assignment_expression IDENT = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression LIT - (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) )))) ))) ))) >> LIT)) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT - LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 *\nFUN_00026910(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  uint uVar3;\n  byte bVar4;\n  \n  bVar4 = 0;\n  puVar1 = (undefined4 *)xmalloc(0xec);\n  puVar1[4] = 0;\n  puVar1[0x3a] = 0;\n  puVar2 = (undefined4 *)((uint)(puVar1 + 5) & 0xfffffffc);\n  for (uVar3 = (uint)((int)puVar1 + (0xec - (int)((uint)(puVar1 + 5) & 0xfffffffc))) >> 2;\n      uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar2 = 0;\n    puVar2 = puVar2 + (uint)bVar4 * -2 + 1;\n  }\n  puVar1[0x15] = 1;\n  *puVar1 = param_2;\n  puVar1[1] = param_3;\n  puVar1[2] = param_4;\n  puVar1[3] = param_5;\n  puVar2 = (undefined4 *)xmalloc(4);\n  puVar1[0x11] = 0xffffffff;\n  *puVar2 = 0;\n  puVar1[0x16] = puVar2;\n  puVar1[0x12] = 0xffffffff;\n  return puVar1;\n}" (type_identifier "undefined4") (pointer_declarator "*\nFUN_00026910(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5)" (* "*") (function_declarator "FUN_00026910(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5)" (identifier "FUN_00026910") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5)" (( "(") (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 "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) () ")")))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  uint uVar3;\n  byte bVar4;\n  \n  bVar4 = 0;\n  puVar1 = (undefined4 *)xmalloc(0xec);\n  puVar1[4] = 0;\n  puVar1[0x3a] = 0;\n  puVar2 = (undefined4 *)((uint)(puVar1 + 5) & 0xfffffffc);\n  for (uVar3 = (uint)((int)puVar1 + (0xec - (int)((uint)(puVar1 + 5) & 0xfffffffc))) >> 2;\n      uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar2 = 0;\n    puVar2 = puVar2 + (uint)bVar4 * -2 + 1;\n  }\n  puVar1[0x15] = 1;\n  *puVar1 = param_2;\n  puVar1[1] = param_3;\n  puVar1[2] = param_4;\n  puVar1[3] = param_5;\n  puVar2 = (undefined4 *)xmalloc(4);\n  puVar1[0x11] = 0xffffffff;\n  *puVar2 = 0;\n  puVar1[0x16] = puVar2;\n  puVar1[0x12] = 0xffffffff;\n  return puVar1;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "byte bVar4;" (type_identifier "byte") (identifier "bVar4") (; ";")) (expression_statement "bVar4 = 0;" (assignment_expression "bVar4 = 0" (identifier "bVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1 = (undefined4 *)xmalloc(0xec);" (assignment_expression "puVar1 = (undefined4 *)xmalloc(0xec)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)xmalloc(0xec)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(0xec)" (identifier "xmalloc") (argument_list "(0xec)" (( "(") (number_literal "0xec") () ")"))))) (; ";")) (expression_statement "puVar1[4] = 0;" (assignment_expression "puVar1[4] = 0" (subscript_expression "puVar1[4]" (identifier "puVar1") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[0x3a] = 0;" (assignment_expression "puVar1[0x3a] = 0" (subscript_expression "puVar1[0x3a]" (identifier "puVar1") ([ "[") (number_literal "0x3a") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2 = (undefined4 *)((uint)(puVar1 + 5) & 0xfffffffc);" (assignment_expression "puVar2 = (undefined4 *)((uint)(puVar1 + 5) & 0xfffffffc)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)((uint)(puVar1 + 5) & 0xfffffffc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((uint)(puVar1 + 5) & 0xfffffffc)" (( "(") (binary_expression "(uint)(puVar1 + 5) & 0xfffffffc" (call_expression "(uint)(puVar1 + 5)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(puVar1 + 5)" (( "(") (binary_expression "puVar1 + 5" (identifier "puVar1") (+ "+") (number_literal "5")) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")")))) (; ";")) (for_statement "for (uVar3 = (uint)((int)puVar1 + (0xec - (int)((uint)(puVar1 + 5) & 0xfffffffc))) >> 2;\n      uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar2 = 0;\n    puVar2 = puVar2 + (uint)bVar4 * -2 + 1;\n  }" (for "for") (( "(") (assignment_expression "uVar3 = (uint)((int)puVar1 + (0xec - (int)((uint)(puVar1 + 5) & 0xfffffffc))) >> 2" (identifier "uVar3") (= "=") (binary_expression "(uint)((int)puVar1 + (0xec - (int)((uint)(puVar1 + 5) & 0xfffffffc))) >> 2" (call_expression "(uint)((int)puVar1 + (0xec - (int)((uint)(puVar1 + 5) & 0xfffffffc)))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((int)puVar1 + (0xec - (int)((uint)(puVar1 + 5) & 0xfffffffc)))" (( "(") (binary_expression "(int)puVar1 + (0xec - (int)((uint)(puVar1 + 5) & 0xfffffffc))" (cast_expression "(int)puVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar1")) (+ "+") (parenthesized_expression "(0xec - (int)((uint)(puVar1 + 5) & 0xfffffffc))" (( "(") (binary_expression "0xec - (int)((uint)(puVar1 + 5) & 0xfffffffc)" (number_literal "0xec") (- "-") (cast_expression "(int)((uint)(puVar1 + 5) & 0xfffffffc)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((uint)(puVar1 + 5) & 0xfffffffc)" (( "(") (binary_expression "(uint)(puVar1 + 5) & 0xfffffffc" (call_expression "(uint)(puVar1 + 5)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(puVar1 + 5)" (( "(") (binary_expression "puVar1 + 5" (identifier "puVar1") (+ "+") (number_literal "5")) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")")))) () ")"))) () ")"))) (>> ">>") (number_literal "2"))) (; ";") (binary_expression "uVar3 != 0" (identifier "uVar3") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "uVar3 = uVar3 - 1" (identifier "uVar3") (= "=") (binary_expression "uVar3 - 1" (identifier "uVar3") (- "-") (number_literal "1"))) () ")") (compound_statement "{\n    *puVar2 = 0;\n    puVar2 = puVar2 + (uint)bVar4 * -2 + 1;\n  }" ({ "{") (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2 = puVar2 + (uint)bVar4 * -2 + 1;" (assignment_expression "puVar2 = puVar2 + (uint)bVar4 * -2 + 1" (identifier "puVar2") (= "=") (binary_expression "puVar2 + (uint)bVar4 * -2 + 1" (binary_expression "puVar2 + (uint)bVar4 * -2" (identifier "puVar2") (+ "+") (binary_expression "(uint)bVar4 * -2" (cast_expression "(uint)bVar4" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar4")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "puVar1[0x15] = 1;" (assignment_expression "puVar1[0x15] = 1" (subscript_expression "puVar1[0x15]" (identifier "puVar1") ([ "[") (number_literal "0x15") (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "*puVar1 = param_2;" (assignment_expression "*puVar1 = param_2" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "puVar1[1] = param_3;" (assignment_expression "puVar1[1] = param_3" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "puVar1[2] = param_4;" (assignment_expression "puVar1[2] = param_4" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "param_4")) (; ";")) (expression_statement "puVar1[3] = param_5;" (assignment_expression "puVar1[3] = param_5" (subscript_expression "puVar1[3]" (identifier "puVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "param_5")) (; ";")) (expression_statement "puVar2 = (undefined4 *)xmalloc(4);" (assignment_expression "puVar2 = (undefined4 *)xmalloc(4)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)xmalloc(4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(4)" (identifier "xmalloc") (argument_list "(4)" (( "(") (number_literal "4") () ")"))))) (; ";")) (expression_statement "puVar1[0x11] = 0xffffffff;" (assignment_expression "puVar1[0x11] = 0xffffffff" (subscript_expression "puVar1[0x11]" (identifier "puVar1") ([ "[") (number_literal "0x11") (] "]")) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[0x16] = puVar2;" (assignment_expression "puVar1[0x16] = puVar2" (subscript_expression "puVar1[0x16]" (identifier "puVar1") ([ "[") (number_literal "0x16") (] "]")) (= "=") (identifier "puVar2")) (; ";")) (expression_statement "puVar1[0x12] = 0xffffffff;" (assignment_expression "puVar1[0x12] = 0xffffffff" (subscript_expression "puVar1[0x12]" (identifier "puVar1") ([ "[") (number_literal "0x12") (] "]")) (= "=") (number_literal "0xffffffff")) (; ";")) (return_statement "return puVar1;" (return "return") (identifier "puVar1") (; ";")) (} "}")))

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

void * function_1(void *dhandle,type_1 *abfd,type_2 sections,type_3 **syms,long symcount)

{
  type_4 *var_2;
  type_4 *var_4;
  type_5 var_3;
  type_6 bVar4;
  
  bVar4 = 0;
  var_2 = (type_4 *)var_1(0xec);
  var_2[4] = 0;
  var_2[0x3a] = 0;
  var_4 = (type_4 *)((type_5)(var_2 + 5) & 0xfffffffc);
  for (var_3 = (type_5)((int)var_2 + (0xec - (int)((type_5)(var_2 + 5) & 0xfffffffc))) >> 2;
      var_3 != 0; var_3 = var_3 - 1) {
    *var_4 = 0;
    var_4 = var_4 + (type_5)bVar4 * -2 + 1;
  }
  var_2[0x15] = 1;
  *var_2 = abfd;
  var_2[1] = sections;
  var_2[2] = syms;
  var_2[3] = symcount;
  var_4 = (type_4 *)var_1(4);
  var_2[0x11] = 0xffffffff;
  *var_4 = 0;
  var_2[0x16] = var_4;
  var_2[0x12] = 0xffffffff;
  return var_2;
}


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

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

undefined4 *
MASKED(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
            undefined4 param_5)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  uint uVar3;
  byte bVar4;
  
  bVar4 = 0;
  puVar1 = (undefined4 *)xmalloc(0xec);
  puVar1[4] = 0;
  puVar1[0x3a] = 0;
  puVar2 = (undefined4 *)((uint)(puVar1 + 5) & 0xfffffffc);
  for (uVar3 = (uint)((int)puVar1 + (0xec - (int)((uint)(puVar1 + 5) & 0xfffffffc))) >> 2;
      uVar3 != 0; uVar3 = uVar3 - 1) {
    *puVar2 = 0;
    puVar2 = puVar2 + (uint)bVar4 * -2 + 1;
  }
  puVar1[0x15] = 1;
  *puVar1 = param_2;
  puVar1[1] = param_3;
  puVar1[2] = param_4;
  puVar1[3] = param_5;
  puVar2 = (undefined4 *)xmalloc(4);
  puVar1[0x11] = 0xffffffff;
  *puVar2 = 0;
  puVar1[0x16] = puVar2;
  puVar1[0x12] = 0xffffffff;
  return puVar1;
}

