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

void gldi386pe_add_options
               (int ns,char **shortopts,int nl,option **longopts,int nrl,option **really_longopts)

{
  option *poVar1;
  int iVar2;
  uint uVar3;
  undefined4 *puVar4;
  undefined4 *puVar5;
  byte bVar6;
  
  bVar6 = 0;
  poVar1 = (option *)xrealloc(*longopts,(nl + 0x3c) * 0x10);
  *longopts = poVar1;
  poVar1 = poVar1 + nl;
  poVar1->name = gldi386pe_add_options::xtra_long[0].name;
  puVar5 = (undefined4 *)((uint)&poVar1->has_arg & 0xfffffffc);
  poVar1[0x3b].val = gldi386pe_add_options::xtra_long[0x3b].val;
  iVar2 = (int)poVar1 - (int)puVar5;
  puVar4 = (undefined4 *)((int)gldi386pe_add_options::xtra_long - iVar2);
  for (uVar3 = iVar2 + 0x3c0U >> 2; uVar3 != 0; uVar3 = uVar3 - 1) {
    *puVar5 = *puVar4;
    puVar4 = puVar4 + (uint)bVar6 * -2 + 1;
    puVar5 = puVar5 + (uint)bVar6 * -2 + 1;
  }
  return;
}



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

void FUN_000555e0(undefined4 param_1,undefined4 param_2,int param_3,int *param_4)

{
  int iVar1;
  uint uVar2;
  undefined4 *puVar3;
  int iVar4;
  undefined4 *puVar5;
  byte bVar6;
  
  bVar6 = 0;
  iVar4 = (param_3 + 0x3c) * 0x10;
  iVar1 = xrealloc(*param_4,iVar4);
  *param_4 = iVar1;
  puVar5 = (undefined4 *)(iVar1 + -0x3c0 + iVar4);
  *puVar5 = PTR_s_base_file_001ce560;
  puVar5[0xef] = DAT_001ce91c;
  iVar1 = (int)puVar5 - (int)((uint)(puVar5 + 1) & 0xfffffffc);
  puVar3 = (undefined4 *)((int)&PTR_s_base_file_001ce560 - iVar1);
  puVar5 = (undefined4 *)((uint)(puVar5 + 1) & 0xfffffffc);
  for (uVar2 = iVar1 + 0x3c0U >> 2; uVar2 != 0; uVar2 = uVar2 - 1) {
    *puVar5 = *puVar3;
    puVar3 = puVar3 + (uint)bVar6 * -2 + 1;
    puVar5 = puVar5 + (uint)bVar6 * -2 + 1;
  }
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EAX,dword ptr [ESP + 0x18]
CALL 0x00017b80
ADD EBX,0x179a14
MOV ESI,dword ptr [ESP + 0x1c]
LEA EDI,[EAX + 0x3c]
SUB ESP,0x8
SHL EDI,0x4
PUSH EDI
PUSH dword ptr [ESI]
CALL 0x000163f0
ADD ESP,0x10
MOV dword ptr [ESI],EAX
LEA ECX,[EAX + EDI*0x1 + 0xfffffc40]
MOV EAX,dword ptr [EBX + 0xfffff560]
LEA ESI,[EBX + 0xfffff560]
LEA EDI,[ECX + 0x4]
MOV dword ptr [ECX],EAX
MOV EAX,dword ptr [EBX + 0xfffff91c]
AND EDI,0xfffffffc
MOV dword ptr [ECX + 0x3bc],EAX
SUB ECX,EDI
SUB ESI,ECX
ADD ECX,0x3c0
SHR ECX,0x2
MOVSD.REP ES:EDI,ESI
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000555e0(undefined4 param_1,undefined4 param_2,int param_3,int *param_4)\n\n{\n  int iVar1;\n  uint uVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  iVar4 = (param_3 + 0x3c) * 0x10;\n  iVar1 = xrealloc(*param_4,iVar4);\n  *param_4 = iVar1;\n  puVar5 = (undefined4 *)(iVar1 + -0x3c0 + iVar4);\n  *puVar5 = PTR_s_base_file_001ce560;\n  puVar5[0xef] = DAT_001ce91c;\n  iVar1 = (int)puVar5 - (int)((uint)(puVar5 + 1) & 0xfffffffc);\n  puVar3 = (undefined4 *)((int)&PTR_s_base_file_001ce560 - iVar1);\n  puVar5 = (undefined4 *)((uint)(puVar5 + 1) & 0xfffffffc);\n  for (uVar2 = iVar1 + 0x3c0U >> 2; uVar2 != 0; uVar2 = uVar2 - 1) {\n    *puVar5 = *puVar3;\n    puVar3 = puVar3 + (uint)bVar6 * -2 + 1;\n    puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_000555e0(undefined4 param_1,undefined4 param_2,int param_3,int *param_4)\n\n{\n  int iVar1;\n  uint uVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  iVar4 = (param_3 + 0x3c) * 0x10;\n  iVar1 = xrealloc(*param_4,iVar4);\n  *param_4 = iVar1;\n  puVar5 = (undefined4 *)(iVar1 + -0x3c0 + iVar4);\n  *puVar5 = PTR_s_base_file_001ce560;\n  puVar5[0xef] = DAT_001ce91c;\n  iVar1 = (int)puVar5 - (int)((uint)(puVar5 + 1) & 0xfffffffc);\n  puVar3 = (undefined4 *)((int)&PTR_s_base_file_001ce560 - iVar1);\n  puVar5 = (undefined4 *)((uint)(puVar5 + 1) & 0xfffffffc);\n  for (uVar2 = iVar1 + 0x3c0U >> 2; uVar2 != 0; uVar2 = uVar2 - 1) {\n    *puVar5 = *puVar3;\n    puVar3 = puVar3 + (uint)bVar6 * -2 + 1;\n    puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000555e0(undefined4 param_1,undefined4 param_2,int param_3,int *param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3,int *param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  iVar4 = (param_3 + 0x3c) * 0x10;\n  iVar1 = xrealloc(*param_4,iVar4);\n  *param_4 = iVar1;\n  puVar5 = (undefined4 *)(iVar1 + -0x3c0 + iVar4);\n  *puVar5 = PTR_s_base_file_001ce560;\n  puVar5[0xef] = DAT_001ce91c;\n  iVar1 = (int)puVar5 - (int)((uint)(puVar5 + 1) & 0xfffffffc);\n  puVar3 = (undefined4 *)((int)&PTR_s_base_file_001ce560 - iVar1);\n  puVar5 = (undefined4 *)((uint)(puVar5 + 1) & 0xfffffffc);\n  for (uVar2 = iVar1 + 0x3c0U >> 2; uVar2 != 0; uVar2 = uVar2 - 1) {\n    *puVar5 = *puVar3;\n    puVar3 = puVar3 + (uint)bVar6 * -2 + 1;\n    puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "byte bVar6;" type_identifier identifier ;) (expression_statement "bVar6 = 0;" (assignment_expression "bVar6 = 0" identifier = number_literal) ;) (expression_statement "iVar4 = (param_3 + 0x3c) * 0x10;" (assignment_expression "iVar4 = (param_3 + 0x3c) * 0x10" identifier = (binary_expression "(param_3 + 0x3c) * 0x10" (parenthesized_expression "(param_3 + 0x3c)" ( (binary_expression "param_3 + 0x3c" identifier + number_literal) )) * number_literal)) ;) (expression_statement "iVar1 = xrealloc(*param_4,iVar4);" (assignment_expression "iVar1 = xrealloc(*param_4,iVar4)" identifier = (call_expression "xrealloc(*param_4,iVar4)" identifier (argument_list "(*param_4,iVar4)" ( (pointer_expression "*param_4" * identifier) , identifier )))) ;) (expression_statement "*param_4 = iVar1;" (assignment_expression "*param_4 = iVar1" (pointer_expression "*param_4" * identifier) = identifier) ;) (expression_statement "puVar5 = (undefined4 *)(iVar1 + -0x3c0 + iVar4);" (assignment_expression "puVar5 = (undefined4 *)(iVar1 + -0x3c0 + iVar4)" identifier = (cast_expression "(undefined4 *)(iVar1 + -0x3c0 + iVar4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0x3c0 + iVar4)" ( (binary_expression "iVar1 + -0x3c0 + iVar4" (binary_expression "iVar1 + -0x3c0" identifier + number_literal) + identifier) )))) ;) (expression_statement "*puVar5 = PTR_s_base_file_001ce560;" (assignment_expression "*puVar5 = PTR_s_base_file_001ce560" (pointer_expression "*puVar5" * identifier) = identifier) ;) (expression_statement "puVar5[0xef] = DAT_001ce91c;" (assignment_expression "puVar5[0xef] = DAT_001ce91c" (subscript_expression "puVar5[0xef]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar1 = (int)puVar5 - (int)((uint)(puVar5 + 1) & 0xfffffffc);" (assignment_expression "iVar1 = (int)puVar5 - (int)((uint)(puVar5 + 1) & 0xfffffffc)" identifier = (binary_expression "(int)puVar5 - (int)((uint)(puVar5 + 1) & 0xfffffffc)" (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)((uint)(puVar5 + 1) & 0xfffffffc)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)(puVar5 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(puVar5 + 1) & 0xfffffffc" (call_expression "(uint)(puVar5 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar5 + 1)" ( (binary_expression "puVar5 + 1" identifier + number_literal) ))) & number_literal) ))))) ;) (expression_statement "puVar3 = (undefined4 *)((int)&PTR_s_base_file_001ce560 - iVar1);" (assignment_expression "puVar3 = (undefined4 *)((int)&PTR_s_base_file_001ce560 - iVar1)" identifier = (cast_expression "(undefined4 *)((int)&PTR_s_base_file_001ce560 - iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&PTR_s_base_file_001ce560 - iVar1)" ( (binary_expression "(int)&PTR_s_base_file_001ce560 - iVar1" (cast_expression "(int)&PTR_s_base_file_001ce560" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&PTR_s_base_file_001ce560" & identifier)) - identifier) )))) ;) (expression_statement "puVar5 = (undefined4 *)((uint)(puVar5 + 1) & 0xfffffffc);" (assignment_expression "puVar5 = (undefined4 *)((uint)(puVar5 + 1) & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((uint)(puVar5 + 1) & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)(puVar5 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(puVar5 + 1) & 0xfffffffc" (call_expression "(uint)(puVar5 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar5 + 1)" ( (binary_expression "puVar5 + 1" identifier + number_literal) ))) & number_literal) )))) ;) (for_statement "for (uVar2 = iVar1 + 0x3c0U >> 2; uVar2 != 0; uVar2 = uVar2 - 1) {\n    *puVar5 = *puVar3;\n    puVar3 = puVar3 + (uint)bVar6 * -2 + 1;\n    puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n  }" for ( (assignment_expression "uVar2 = iVar1 + 0x3c0U >> 2" identifier = (binary_expression "iVar1 + 0x3c0U >> 2" (binary_expression "iVar1 + 0x3c0U" identifier + number_literal) >> number_literal)) ; (binary_expression "uVar2 != 0" identifier != number_literal) ; (assignment_expression "uVar2 = uVar2 - 1" identifier = (binary_expression "uVar2 - 1" identifier - number_literal)) ) (compound_statement "{\n    *puVar5 = *puVar3;\n    puVar3 = puVar3 + (uint)bVar6 * -2 + 1;\n    puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n  }" { (expression_statement "*puVar5 = *puVar3;" (assignment_expression "*puVar5 = *puVar3" (pointer_expression "*puVar5" * identifier) = (pointer_expression "*puVar3" * identifier)) ;) (expression_statement "puVar3 = puVar3 + (uint)bVar6 * -2 + 1;" (assignment_expression "puVar3 = puVar3 + (uint)bVar6 * -2 + 1" identifier = (binary_expression "puVar3 + (uint)bVar6 * -2 + 1" (binary_expression "puVar3 + (uint)bVar6 * -2" identifier + (binary_expression "(uint)bVar6 * -2" (cast_expression "(uint)bVar6" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "puVar5 = puVar5 + (uint)bVar6 * -2 + 1;" (assignment_expression "puVar5 = puVar5 + (uint)bVar6 * -2 + 1" identifier = (binary_expression "puVar5 + (uint)bVar6 * -2 + 1" (binary_expression "puVar5 + (uint)bVar6 * -2" identifier + (binary_expression "(uint)bVar6 * -2" (cast_expression "(uint)bVar6" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid gldi386pe_add_options\n               (int ns,char **shortopts,int nl,option **longopts,int nrl,option **really_longopts)\n\n{\n  option *poVar1;\n  int iVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  poVar1 = (option *)xrealloc(*longopts,(nl + 0x3c) * 0x10);\n  *longopts = poVar1;\n  poVar1 = poVar1 + nl;\n  poVar1->name = gldi386pe_add_options::xtra_long[0].name;\n  puVar5 = (undefined4 *)((uint)&poVar1->has_arg & 0xfffffffc);\n  poVar1[0x3b].val = gldi386pe_add_options::xtra_long[0x3b].val;\n  iVar2 = (int)poVar1 - (int)puVar5;\n  puVar4 = (undefined4 *)((int)gldi386pe_add_options::xtra_long - iVar2);\n  for (uVar3 = iVar2 + 0x3c0U >> 2; uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar5 = *puVar4;\n    puVar4 = puVar4 + (uint)bVar6 * -2 + 1;\n    puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n  }\n  return;\n}\n\n" comment (function_definition "void gldi386pe_add_options\n               (int ns,char **shortopts,int nl,option **longopts,int nrl,option **really_longopts)\n\n{\n  option *poVar1;\n  int iVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  poVar1 = (option *)xrealloc(*longopts,(nl + 0x3c) * 0x10);\n  *longopts = poVar1;\n  poVar1 = poVar1 + nl;\n  poVar1->name = gldi386pe_add_options::xtra_long[0].name;\n  puVar5 = (undefined4 *)((uint)&poVar1->has_arg & 0xfffffffc);\n  poVar1[0x3b].val = gldi386pe_add_options::xtra_long[0x3b].val;\n  iVar2 = (int)poVar1 - (int)puVar5;\n  puVar4 = (undefined4 *)((int)gldi386pe_add_options::xtra_long - iVar2);\n  for (uVar3 = iVar2 + 0x3c0U >> 2; uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar5 = *puVar4;\n    puVar4 = puVar4 + (uint)bVar6 * -2 + 1;\n    puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n  }\n  return;\n}" primitive_type (function_declarator "gldi386pe_add_options\n               (int ns,char **shortopts,int nl,option **longopts,int nrl,option **really_longopts)" identifier (parameter_list "(int ns,char **shortopts,int nl,option **longopts,int nrl,option **really_longopts)" ( (parameter_declaration "int ns" primitive_type identifier) , (parameter_declaration "char **shortopts" primitive_type (pointer_declarator "**shortopts" * (pointer_declarator "*shortopts" * identifier))) , (parameter_declaration "int nl" primitive_type identifier) , (parameter_declaration "option **longopts" type_identifier (pointer_declarator "**longopts" * (pointer_declarator "*longopts" * identifier))) , (parameter_declaration "int nrl" primitive_type identifier) , (parameter_declaration "option **really_longopts" type_identifier (pointer_declarator "**really_longopts" * (pointer_declarator "*really_longopts" * identifier))) ))) (compound_statement "{\n  option *poVar1;\n  int iVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  poVar1 = (option *)xrealloc(*longopts,(nl + 0x3c) * 0x10);\n  *longopts = poVar1;\n  poVar1 = poVar1 + nl;\n  poVar1->name = gldi386pe_add_options::xtra_long[0].name;\n  puVar5 = (undefined4 *)((uint)&poVar1->has_arg & 0xfffffffc);\n  poVar1[0x3b].val = gldi386pe_add_options::xtra_long[0x3b].val;\n  iVar2 = (int)poVar1 - (int)puVar5;\n  puVar4 = (undefined4 *)((int)gldi386pe_add_options::xtra_long - iVar2);\n  for (uVar3 = iVar2 + 0x3c0U >> 2; uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar5 = *puVar4;\n    puVar4 = puVar4 + (uint)bVar6 * -2 + 1;\n    puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n  }\n  return;\n}" { (declaration "option *poVar1;" type_identifier (pointer_declarator "*poVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "byte bVar6;" type_identifier identifier ;) (expression_statement "bVar6 = 0;" (assignment_expression "bVar6 = 0" identifier = number_literal) ;) (expression_statement "poVar1 = (option *)xrealloc(*longopts,(nl + 0x3c) * 0x10);" (assignment_expression "poVar1 = (option *)xrealloc(*longopts,(nl + 0x3c) * 0x10)" identifier = (cast_expression "(option *)xrealloc(*longopts,(nl + 0x3c) * 0x10)" ( (type_descriptor "option *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(*longopts,(nl + 0x3c) * 0x10)" identifier (argument_list "(*longopts,(nl + 0x3c) * 0x10)" ( (pointer_expression "*longopts" * identifier) , (binary_expression "(nl + 0x3c) * 0x10" (parenthesized_expression "(nl + 0x3c)" ( (binary_expression "nl + 0x3c" identifier + number_literal) )) * number_literal) ))))) ;) (expression_statement "*longopts = poVar1;" (assignment_expression "*longopts = poVar1" (pointer_expression "*longopts" * identifier) = identifier) ;) (expression_statement "poVar1 = poVar1 + nl;" (assignment_expression "poVar1 = poVar1 + nl" identifier = (binary_expression "poVar1 + nl" identifier + identifier)) ;) (expression_statement "poVar1->name = gldi386pe_add_options::xtra_long[0].name;" (field_expression "poVar1->name = gldi386pe_add_options::xtra_long[0].name" (subscript_expression "poVar1->name = gldi386pe_add_options::xtra_long[0]" (assignment_expression "poVar1->name = gldi386pe_add_options" (field_expression "poVar1->name" identifier -> field_identifier) = identifier) (ERROR "::xtra_long" : : identifier) [ number_literal ]) . field_identifier) ;) (expression_statement "puVar5 = (undefined4 *)((uint)&poVar1->has_arg & 0xfffffffc);" (assignment_expression "puVar5 = (undefined4 *)((uint)&poVar1->has_arg & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((uint)&poVar1->has_arg & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)&poVar1->has_arg & 0xfffffffc)" ( (binary_expression "(uint)&poVar1->has_arg & 0xfffffffc" (binary_expression "(uint)&poVar1->has_arg" (parenthesized_expression "(uint)" ( identifier )) & (field_expression "poVar1->has_arg" identifier -> field_identifier)) & number_literal) )))) ;) (expression_statement "poVar1[0x3b].val = gldi386pe_add_options::xtra_long[0x3b].val;" (field_expression "poVar1[0x3b].val = gldi386pe_add_options::xtra_long[0x3b].val" (subscript_expression "poVar1[0x3b].val = gldi386pe_add_options::xtra_long[0x3b]" (assignment_expression "poVar1[0x3b].val = gldi386pe_add_options" (field_expression "poVar1[0x3b].val" (subscript_expression "poVar1[0x3b]" identifier [ number_literal ]) . field_identifier) = identifier) (ERROR "::xtra_long" : : identifier) [ number_literal ]) . field_identifier) ;) (expression_statement "iVar2 = (int)poVar1 - (int)puVar5;" (assignment_expression "iVar2 = (int)poVar1 - (int)puVar5" identifier = (binary_expression "(int)poVar1 - (int)puVar5" (cast_expression "(int)poVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "puVar4 = (undefined4 *)((int)gldi386pe_add_options::xtra_long - iVar2);" (assignment_expression "puVar4 = (undefined4 *)((int)gldi386pe_add_options::xtra_long - iVar2)" identifier = (cast_expression "(undefined4 *)((int)gldi386pe_add_options::xtra_long - iVar2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)gldi386pe_add_options::xtra_long - iVar2)" ( (binary_expression "(int)gldi386pe_add_options::xtra_long - iVar2" (cast_expression "(int)gldi386pe_add_options" ( (type_descriptor "int" primitive_type) ) identifier) (ERROR "::xtra_long" : : identifier) - identifier) )))) ;) (for_statement "for (uVar3 = iVar2 + 0x3c0U >> 2; uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar5 = *puVar4;\n    puVar4 = puVar4 + (uint)bVar6 * -2 + 1;\n    puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n  }" for ( (assignment_expression "uVar3 = iVar2 + 0x3c0U >> 2" identifier = (binary_expression "iVar2 + 0x3c0U >> 2" (binary_expression "iVar2 + 0x3c0U" identifier + 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    *puVar5 = *puVar4;\n    puVar4 = puVar4 + (uint)bVar6 * -2 + 1;\n    puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n  }" { (expression_statement "*puVar5 = *puVar4;" (assignment_expression "*puVar5 = *puVar4" (pointer_expression "*puVar5" * identifier) = (pointer_expression "*puVar4" * identifier)) ;) (expression_statement "puVar4 = puVar4 + (uint)bVar6 * -2 + 1;" (assignment_expression "puVar4 = puVar4 + (uint)bVar6 * -2 + 1" identifier = (binary_expression "puVar4 + (uint)bVar6 * -2 + 1" (binary_expression "puVar4 + (uint)bVar6 * -2" identifier + (binary_expression "(uint)bVar6 * -2" (cast_expression "(uint)bVar6" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "puVar5 = puVar5 + (uint)bVar6 * -2 + 1;" (assignment_expression "puVar5 = puVar5 + (uint)bVar6 * -2 + 1" identifier = (binary_expression "puVar5 + (uint)bVar6 * -2 + 1" (binary_expression "puVar5 + (uint)bVar6 * -2" identifier + (binary_expression "(uint)bVar6 * -2" (cast_expression "(uint)bVar6" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000555e0(undefined4 param_1,undefined4 param_2,int param_3,int *param_4)\n\n{\n  int iVar1;\n  uint uVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  iVar4 = (param_3 + 0x3c) * 0x10;\n  iVar1 = xrealloc(*param_4,iVar4);\n  *param_4 = iVar1;\n  puVar5 = (undefined4 *)(iVar1 + -0x3c0 + iVar4);\n  *puVar5 = PTR_s_base_file_001ce560;\n  puVar5[0xef] = DAT_001ce91c;\n  iVar1 = (int)puVar5 - (int)((uint)(puVar5 + 1) & 0xfffffffc);\n  puVar3 = (undefined4 *)((int)&PTR_s_base_file_001ce560 - iVar1);\n  puVar5 = (undefined4 *)((uint)(puVar5 + 1) & 0xfffffffc);\n  for (uVar2 = iVar1 + 0x3c0U >> 2; uVar2 != 0; uVar2 = uVar2 - 1) {\n    *puVar5 = *puVar3;\n    puVar3 = puVar3 + (uint)bVar6 * -2 + 1;\n    puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n  }\n  return;\n}\n\n" (function_definition "void FUN_000555e0(undefined4 param_1,undefined4 param_2,int param_3,int *param_4)\n\n{\n  int iVar1;\n  uint uVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  iVar4 = (param_3 + 0x3c) * 0x10;\n  iVar1 = xrealloc(*param_4,iVar4);\n  *param_4 = iVar1;\n  puVar5 = (undefined4 *)(iVar1 + -0x3c0 + iVar4);\n  *puVar5 = PTR_s_base_file_001ce560;\n  puVar5[0xef] = DAT_001ce91c;\n  iVar1 = (int)puVar5 - (int)((uint)(puVar5 + 1) & 0xfffffffc);\n  puVar3 = (undefined4 *)((int)&PTR_s_base_file_001ce560 - iVar1);\n  puVar5 = (undefined4 *)((uint)(puVar5 + 1) & 0xfffffffc);\n  for (uVar2 = iVar1 + 0x3c0U >> 2; uVar2 != 0; uVar2 = uVar2 - 1) {\n    *puVar5 = *puVar3;\n    puVar3 = puVar3 + (uint)bVar6 * -2 + 1;\n    puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000555e0(undefined4 param_1,undefined4 param_2,int param_3,int *param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3,int *param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  iVar4 = (param_3 + 0x3c) * 0x10;\n  iVar1 = xrealloc(*param_4,iVar4);\n  *param_4 = iVar1;\n  puVar5 = (undefined4 *)(iVar1 + -0x3c0 + iVar4);\n  *puVar5 = PTR_s_base_file_001ce560;\n  puVar5[0xef] = DAT_001ce91c;\n  iVar1 = (int)puVar5 - (int)((uint)(puVar5 + 1) & 0xfffffffc);\n  puVar3 = (undefined4 *)((int)&PTR_s_base_file_001ce560 - iVar1);\n  puVar5 = (undefined4 *)((uint)(puVar5 + 1) & 0xfffffffc);\n  for (uVar2 = iVar1 + 0x3c0U >> 2; uVar2 != 0; uVar2 = uVar2 - 1) {\n    *puVar5 = *puVar3;\n    puVar3 = puVar3 + (uint)bVar6 * -2 + 1;\n    puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "byte bVar6;" type_identifier identifier ;) (expression_statement "bVar6 = 0;" (assignment_expression "bVar6 = 0" identifier = number_literal) ;) (expression_statement "iVar4 = (param_3 + 0x3c) * 0x10;" (assignment_expression "iVar4 = (param_3 + 0x3c) * 0x10" identifier = (binary_expression "(param_3 + 0x3c) * 0x10" (parenthesized_expression "(param_3 + 0x3c)" ( (binary_expression "param_3 + 0x3c" identifier + number_literal) )) * number_literal)) ;) (expression_statement "iVar1 = xrealloc(*param_4,iVar4);" (assignment_expression "iVar1 = xrealloc(*param_4,iVar4)" identifier = (call_expression "xrealloc(*param_4,iVar4)" identifier (argument_list "(*param_4,iVar4)" ( (pointer_expression "*param_4" * identifier) , identifier )))) ;) (expression_statement "*param_4 = iVar1;" (assignment_expression "*param_4 = iVar1" (pointer_expression "*param_4" * identifier) = identifier) ;) (expression_statement "puVar5 = (undefined4 *)(iVar1 + -0x3c0 + iVar4);" (assignment_expression "puVar5 = (undefined4 *)(iVar1 + -0x3c0 + iVar4)" identifier = (cast_expression "(undefined4 *)(iVar1 + -0x3c0 + iVar4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0x3c0 + iVar4)" ( (binary_expression "iVar1 + -0x3c0 + iVar4" (binary_expression "iVar1 + -0x3c0" identifier + number_literal) + identifier) )))) ;) (expression_statement "*puVar5 = PTR_s_base_file_001ce560;" (assignment_expression "*puVar5 = PTR_s_base_file_001ce560" (pointer_expression "*puVar5" * identifier) = identifier) ;) (expression_statement "puVar5[0xef] = DAT_001ce91c;" (assignment_expression "puVar5[0xef] = DAT_001ce91c" (subscript_expression "puVar5[0xef]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar1 = (int)puVar5 - (int)((uint)(puVar5 + 1) & 0xfffffffc);" (assignment_expression "iVar1 = (int)puVar5 - (int)((uint)(puVar5 + 1) & 0xfffffffc)" identifier = (binary_expression "(int)puVar5 - (int)((uint)(puVar5 + 1) & 0xfffffffc)" (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)((uint)(puVar5 + 1) & 0xfffffffc)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)(puVar5 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(puVar5 + 1) & 0xfffffffc" (call_expression "(uint)(puVar5 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar5 + 1)" ( (binary_expression "puVar5 + 1" identifier + number_literal) ))) & number_literal) ))))) ;) (expression_statement "puVar3 = (undefined4 *)((int)&PTR_s_base_file_001ce560 - iVar1);" (assignment_expression "puVar3 = (undefined4 *)((int)&PTR_s_base_file_001ce560 - iVar1)" identifier = (cast_expression "(undefined4 *)((int)&PTR_s_base_file_001ce560 - iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&PTR_s_base_file_001ce560 - iVar1)" ( (binary_expression "(int)&PTR_s_base_file_001ce560 - iVar1" (cast_expression "(int)&PTR_s_base_file_001ce560" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&PTR_s_base_file_001ce560" & identifier)) - identifier) )))) ;) (expression_statement "puVar5 = (undefined4 *)((uint)(puVar5 + 1) & 0xfffffffc);" (assignment_expression "puVar5 = (undefined4 *)((uint)(puVar5 + 1) & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((uint)(puVar5 + 1) & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)(puVar5 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(puVar5 + 1) & 0xfffffffc" (call_expression "(uint)(puVar5 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar5 + 1)" ( (binary_expression "puVar5 + 1" identifier + number_literal) ))) & number_literal) )))) ;) (for_statement "for (uVar2 = iVar1 + 0x3c0U >> 2; uVar2 != 0; uVar2 = uVar2 - 1) {\n    *puVar5 = *puVar3;\n    puVar3 = puVar3 + (uint)bVar6 * -2 + 1;\n    puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n  }" for ( (assignment_expression "uVar2 = iVar1 + 0x3c0U >> 2" identifier = (binary_expression "iVar1 + 0x3c0U >> 2" (binary_expression "iVar1 + 0x3c0U" identifier + number_literal) >> number_literal)) ; (binary_expression "uVar2 != 0" identifier != number_literal) ; (assignment_expression "uVar2 = uVar2 - 1" identifier = (binary_expression "uVar2 - 1" identifier - number_literal)) ) (compound_statement "{\n    *puVar5 = *puVar3;\n    puVar3 = puVar3 + (uint)bVar6 * -2 + 1;\n    puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n  }" { (expression_statement "*puVar5 = *puVar3;" (assignment_expression "*puVar5 = *puVar3" (pointer_expression "*puVar5" * identifier) = (pointer_expression "*puVar3" * identifier)) ;) (expression_statement "puVar3 = puVar3 + (uint)bVar6 * -2 + 1;" (assignment_expression "puVar3 = puVar3 + (uint)bVar6 * -2 + 1" identifier = (binary_expression "puVar3 + (uint)bVar6 * -2 + 1" (binary_expression "puVar3 + (uint)bVar6 * -2" identifier + (binary_expression "(uint)bVar6 * -2" (cast_expression "(uint)bVar6" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "puVar5 = puVar5 + (uint)bVar6 * -2 + 1;" (assignment_expression "puVar5 = puVar5 + (uint)bVar6 * -2 + 1" identifier = (binary_expression "puVar5 + (uint)bVar6 * -2 + 1" (binary_expression "puVar5 + (uint)bVar6 * -2" identifier + (binary_expression "(uint)bVar6 * -2" (cast_expression "(uint)bVar6" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (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 (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) * LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression & IDENT)) - IDENT) )))) ;) (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 (binary_expression IDENT + LIT) >> LIT)) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT - LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) })) (return_statement return ;) })))
(function_definition "void FUN_000555e0(undefined4 param_1,undefined4 param_2,int param_3,int *param_4)\n\n{\n  int iVar1;\n  uint uVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  iVar4 = (param_3 + 0x3c) * 0x10;\n  iVar1 = xrealloc(*param_4,iVar4);\n  *param_4 = iVar1;\n  puVar5 = (undefined4 *)(iVar1 + -0x3c0 + iVar4);\n  *puVar5 = PTR_s_base_file_001ce560;\n  puVar5[0xef] = DAT_001ce91c;\n  iVar1 = (int)puVar5 - (int)((uint)(puVar5 + 1) & 0xfffffffc);\n  puVar3 = (undefined4 *)((int)&PTR_s_base_file_001ce560 - iVar1);\n  puVar5 = (undefined4 *)((uint)(puVar5 + 1) & 0xfffffffc);\n  for (uVar2 = iVar1 + 0x3c0U >> 2; uVar2 != 0; uVar2 = uVar2 - 1) {\n    *puVar5 = *puVar3;\n    puVar3 = puVar3 + (uint)bVar6 * -2 + 1;\n    puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000555e0(undefined4 param_1,undefined4 param_2,int param_3,int *param_4)" (identifier "FUN_000555e0") (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3,int *param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int *param_4" (primitive_type "int") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  iVar4 = (param_3 + 0x3c) * 0x10;\n  iVar1 = xrealloc(*param_4,iVar4);\n  *param_4 = iVar1;\n  puVar5 = (undefined4 *)(iVar1 + -0x3c0 + iVar4);\n  *puVar5 = PTR_s_base_file_001ce560;\n  puVar5[0xef] = DAT_001ce91c;\n  iVar1 = (int)puVar5 - (int)((uint)(puVar5 + 1) & 0xfffffffc);\n  puVar3 = (undefined4 *)((int)&PTR_s_base_file_001ce560 - iVar1);\n  puVar5 = (undefined4 *)((uint)(puVar5 + 1) & 0xfffffffc);\n  for (uVar2 = iVar1 + 0x3c0U >> 2; uVar2 != 0; uVar2 = uVar2 - 1) {\n    *puVar5 = *puVar3;\n    puVar3 = puVar3 + (uint)bVar6 * -2 + 1;\n    puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "byte bVar6;" (type_identifier "byte") (identifier "bVar6") (; ";")) (expression_statement "bVar6 = 0;" (assignment_expression "bVar6 = 0" (identifier "bVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar4 = (param_3 + 0x3c) * 0x10;" (assignment_expression "iVar4 = (param_3 + 0x3c) * 0x10" (identifier "iVar4") (= "=") (binary_expression "(param_3 + 0x3c) * 0x10" (parenthesized_expression "(param_3 + 0x3c)" (( "(") (binary_expression "param_3 + 0x3c" (identifier "param_3") (+ "+") (number_literal "0x3c")) () ")")) (* "*") (number_literal "0x10"))) (; ";")) (expression_statement "iVar1 = xrealloc(*param_4,iVar4);" (assignment_expression "iVar1 = xrealloc(*param_4,iVar4)" (identifier "iVar1") (= "=") (call_expression "xrealloc(*param_4,iVar4)" (identifier "xrealloc") (argument_list "(*param_4,iVar4)" (( "(") (pointer_expression "*param_4" (* "*") (identifier "param_4")) (, ",") (identifier "iVar4") () ")")))) (; ";")) (expression_statement "*param_4 = iVar1;" (assignment_expression "*param_4 = iVar1" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "puVar5 = (undefined4 *)(iVar1 + -0x3c0 + iVar4);" (assignment_expression "puVar5 = (undefined4 *)(iVar1 + -0x3c0 + iVar4)" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)(iVar1 + -0x3c0 + iVar4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + -0x3c0 + iVar4)" (( "(") (binary_expression "iVar1 + -0x3c0 + iVar4" (binary_expression "iVar1 + -0x3c0" (identifier "iVar1") (+ "+") (number_literal "-0x3c0")) (+ "+") (identifier "iVar4")) () ")")))) (; ";")) (expression_statement "*puVar5 = PTR_s_base_file_001ce560;" (assignment_expression "*puVar5 = PTR_s_base_file_001ce560" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (identifier "PTR_s_base_file_001ce560")) (; ";")) (expression_statement "puVar5[0xef] = DAT_001ce91c;" (assignment_expression "puVar5[0xef] = DAT_001ce91c" (subscript_expression "puVar5[0xef]" (identifier "puVar5") ([ "[") (number_literal "0xef") (] "]")) (= "=") (identifier "DAT_001ce91c")) (; ";")) (expression_statement "iVar1 = (int)puVar5 - (int)((uint)(puVar5 + 1) & 0xfffffffc);" (assignment_expression "iVar1 = (int)puVar5 - (int)((uint)(puVar5 + 1) & 0xfffffffc)" (identifier "iVar1") (= "=") (binary_expression "(int)puVar5 - (int)((uint)(puVar5 + 1) & 0xfffffffc)" (cast_expression "(int)puVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar5")) (- "-") (cast_expression "(int)((uint)(puVar5 + 1) & 0xfffffffc)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((uint)(puVar5 + 1) & 0xfffffffc)" (( "(") (binary_expression "(uint)(puVar5 + 1) & 0xfffffffc" (call_expression "(uint)(puVar5 + 1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(puVar5 + 1)" (( "(") (binary_expression "puVar5 + 1" (identifier "puVar5") (+ "+") (number_literal "1")) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")"))))) (; ";")) (expression_statement "puVar3 = (undefined4 *)((int)&PTR_s_base_file_001ce560 - iVar1);" (assignment_expression "puVar3 = (undefined4 *)((int)&PTR_s_base_file_001ce560 - iVar1)" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)((int)&PTR_s_base_file_001ce560 - iVar1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)&PTR_s_base_file_001ce560 - iVar1)" (( "(") (binary_expression "(int)&PTR_s_base_file_001ce560 - iVar1" (cast_expression "(int)&PTR_s_base_file_001ce560" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "&PTR_s_base_file_001ce560" (& "&") (identifier "PTR_s_base_file_001ce560"))) (- "-") (identifier "iVar1")) () ")")))) (; ";")) (expression_statement "puVar5 = (undefined4 *)((uint)(puVar5 + 1) & 0xfffffffc);" (assignment_expression "puVar5 = (undefined4 *)((uint)(puVar5 + 1) & 0xfffffffc)" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)((uint)(puVar5 + 1) & 0xfffffffc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((uint)(puVar5 + 1) & 0xfffffffc)" (( "(") (binary_expression "(uint)(puVar5 + 1) & 0xfffffffc" (call_expression "(uint)(puVar5 + 1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(puVar5 + 1)" (( "(") (binary_expression "puVar5 + 1" (identifier "puVar5") (+ "+") (number_literal "1")) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")")))) (; ";")) (for_statement "for (uVar2 = iVar1 + 0x3c0U >> 2; uVar2 != 0; uVar2 = uVar2 - 1) {\n    *puVar5 = *puVar3;\n    puVar3 = puVar3 + (uint)bVar6 * -2 + 1;\n    puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n  }" (for "for") (( "(") (assignment_expression "uVar2 = iVar1 + 0x3c0U >> 2" (identifier "uVar2") (= "=") (binary_expression "iVar1 + 0x3c0U >> 2" (binary_expression "iVar1 + 0x3c0U" (identifier "iVar1") (+ "+") (number_literal "0x3c0U")) (>> ">>") (number_literal "2"))) (; ";") (binary_expression "uVar2 != 0" (identifier "uVar2") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "uVar2 = uVar2 - 1" (identifier "uVar2") (= "=") (binary_expression "uVar2 - 1" (identifier "uVar2") (- "-") (number_literal "1"))) () ")") (compound_statement "{\n    *puVar5 = *puVar3;\n    puVar3 = puVar3 + (uint)bVar6 * -2 + 1;\n    puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n  }" ({ "{") (expression_statement "*puVar5 = *puVar3;" (assignment_expression "*puVar5 = *puVar3" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (pointer_expression "*puVar3" (* "*") (identifier "puVar3"))) (; ";")) (expression_statement "puVar3 = puVar3 + (uint)bVar6 * -2 + 1;" (assignment_expression "puVar3 = puVar3 + (uint)bVar6 * -2 + 1" (identifier "puVar3") (= "=") (binary_expression "puVar3 + (uint)bVar6 * -2 + 1" (binary_expression "puVar3 + (uint)bVar6 * -2" (identifier "puVar3") (+ "+") (binary_expression "(uint)bVar6 * -2" (cast_expression "(uint)bVar6" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar6")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar5 = puVar5 + (uint)bVar6 * -2 + 1;" (assignment_expression "puVar5 = puVar5 + (uint)bVar6 * -2 + 1" (identifier "puVar5") (= "=") (binary_expression "puVar5 + (uint)bVar6 * -2 + 1" (binary_expression "puVar5 + (uint)bVar6 * -2" (identifier "puVar5") (+ "+") (binary_expression "(uint)bVar6 * -2" (cast_expression "(uint)bVar6" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar6")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1
               (int ns,char **shortopts,int var_2,type_1 **longopts,int nrl,type_1 **really_longopts)

{
  type_1 *var_3;
  int var_4;
  type_2 var_5;
  type_3 *var_6;
  type_3 *var_7;
  type_4 bVar6;
  
  bVar6 = 0;
  var_3 = (type_1 *)var_1(*longopts,(var_2 + 0x3c) * 0x10);
  *longopts = var_3;
  var_3 = var_3 + var_2;
  var_3->name = function_1::xtra_long[0].name;
  var_7 = (type_3 *)((type_2)&var_3->has_arg & 0xfffffffc);
  var_3[0x3b].val = function_1::xtra_long[0x3b].val;
  var_4 = (int)var_3 - (int)var_7;
  var_6 = (type_3 *)((int)function_1::xtra_long - var_4);
  for (var_5 = var_4 + 0x3c0U >> 2; var_5 != 0; var_5 = var_5 - 1) {
    *var_7 = *var_6;
    var_6 = var_6 + (type_2)bVar6 * -2 + 1;
    var_7 = var_7 + (type_2)bVar6 * -2 + 1;
  }
  return;
}


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

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

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

{
  int iVar1;
  uint uVar2;
  undefined4 *puVar3;
  int iVar4;
  undefined4 *puVar5;
  byte bVar6;
  
  bVar6 = 0;
  iVar4 = (param_3 + 0x3c) * 0x10;
  iVar1 = xrealloc(*param_4,iVar4);
  *param_4 = iVar1;
  puVar5 = (undefined4 *)(iVar1 + -0x3c0 + iVar4);
  *puVar5 = PTR_s_base_file_001ce560;
  puVar5[0xef] = DAT_001ce91c;
  iVar1 = (int)puVar5 - (int)((uint)(puVar5 + 1) & 0xfffffffc);
  puVar3 = (undefined4 *)((int)&PTR_s_base_file_001ce560 - iVar1);
  puVar5 = (undefined4 *)((uint)(puVar5 + 1) & 0xfffffffc);
  for (uVar2 = iVar1 + 0x3c0U >> 2; uVar2 != 0; uVar2 = uVar2 - 1) {
    *puVar5 = *puVar3;
    puVar3 = puVar3 + (uint)bVar6 * -2 + 1;
    puVar5 = puVar5 + (uint)bVar6 * -2 + 1;
  }
  return;
}

