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

void __regparm3 save_relocs(asection *sec)

{
  int iVar1;
  reloc_cache_entry **pprVar2;
  reloc_cache_entry *prVar3;
  reloc_cache_entry **pprVar4;
  
  sec->relocation = reltab;
  iVar1 = relcount;
  sec->reloc_count = relcount;
  pprVar2 = (reloc_cache_entry **)xmalloc(iVar1 * 4 + 4);
  sec->orelocation = pprVar2;
  if (0 < relcount) {
    prVar3 = sec->relocation;
    pprVar4 = pprVar2;
    do {
      *pprVar4 = prVar3;
      pprVar4 = pprVar4 + 1;
      prVar3 = prVar3 + 1;
    } while (pprVar4 != pprVar2 + relcount);
  }
  pprVar2[relcount] = (reloc_cache_entry *)0x0;
  sec->flags = sec->flags | 4;
  reltab = (arelent *)0x0;
  relsize = 0;
  relcount = 0;
  return;
}



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

void __regparm3 FUN_0005a9f0(int param_1)

{
  int *piVar1;
  int iVar2;
  int *piVar3;
  
  *(undefined4 *)(param_1 + 0x5c) = DAT_001d017c;
  iVar2 = DAT_001d0178;
  *(int *)(param_1 + 100) = DAT_001d0178;
  piVar1 = (int *)xmalloc(iVar2 * 4 + 4);
  *(int **)(param_1 + 0x60) = piVar1;
  if (0 < DAT_001d0178) {
    iVar2 = *(int *)(param_1 + 0x5c);
    piVar3 = piVar1;
    do {
      *piVar3 = iVar2;
      piVar3 = piVar3 + 1;
      iVar2 = iVar2 + 0x18;
    } while (piVar3 != piVar1 + DAT_001d0178);
  }
  piVar1[DAT_001d0178] = 0;
  *(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) | 4;
  DAT_001d017c = 0;
  DAT_001d0174 = 0;
  DAT_001d0178 = 0;
  return;
}


PUSH EBP
PUSH EDI
MOV EDI,EAX
PUSH ESI
PUSH EBX
CALL 0x00017b80
ADD EBX,0x173605
SUB ESP,0x18
MOV EAX,dword ptr [EBX + 0x217c]
MOV dword ptr [EDI + 0x5c],EAX
MOV EAX,dword ptr [EBX + 0x2178]
MOV dword ptr [EDI + 0x64],EAX
LEA EAX,[EAX*0x4 + 0x4]
PUSH EAX
CALL 0x00016dc8
MOV EBP,dword ptr [EBX + 0x2178]
ADD ESP,0x10
MOV dword ptr [EDI + 0x60],EAX
TEST EBP,EBP
JLE 0x0005aa4c
MOV ECX,dword ptr [EDI + 0x5c]
MOV EDX,EAX
LEA ESI,[EAX + EBP*0x4]
LEA ESI,[ESI]
NOP
MOV dword ptr [EDX],ECX
ADD EDX,0x4
ADD ECX,0x18
CMP EDX,ESI
JNZ 0x0005aa40
MOV dword ptr [EAX + EBP*0x4],0x0
OR dword ptr [EDI + 0x14],0x4
MOV dword ptr [EBX + 0x217c],0x0
MOV dword ptr [EBX + 0x2174],0x0
MOV dword ptr [EBX + 0x2178],0x0
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_0005a9f0(int param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  \n  *(undefined4 *)(param_1 + 0x5c) = DAT_001d017c;\n  iVar2 = DAT_001d0178;\n  *(int *)(param_1 + 100) = DAT_001d0178;\n  piVar1 = (int *)xmalloc(iVar2 * 4 + 4);\n  *(int **)(param_1 + 0x60) = piVar1;\n  if (0 < DAT_001d0178) {\n    iVar2 = *(int *)(param_1 + 0x5c);\n    piVar3 = piVar1;\n    do {\n      *piVar3 = iVar2;\n      piVar3 = piVar3 + 1;\n      iVar2 = iVar2 + 0x18;\n    } while (piVar3 != piVar1 + DAT_001d0178);\n  }\n  piVar1[DAT_001d0178] = 0;\n  *(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) | 4;\n  DAT_001d017c = 0;\n  DAT_001d0174 = 0;\n  DAT_001d0178 = 0;\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_0005a9f0(int param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  \n  *(undefined4 *)(param_1 + 0x5c) = DAT_001d017c;\n  iVar2 = DAT_001d0178;\n  *(int *)(param_1 + 100) = DAT_001d0178;\n  piVar1 = (int *)xmalloc(iVar2 * 4 + 4);\n  *(int **)(param_1 + 0x60) = piVar1;\n  if (0 < DAT_001d0178) {\n    iVar2 = *(int *)(param_1 + 0x5c);\n    piVar3 = piVar1;\n    do {\n      *piVar3 = iVar2;\n      piVar3 = piVar3 + 1;\n      iVar2 = iVar2 + 0x18;\n    } while (piVar3 != piVar1 + DAT_001d0178);\n  }\n  piVar1[DAT_001d0178] = 0;\n  *(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) | 4;\n  DAT_001d017c = 0;\n  DAT_001d0174 = 0;\n  DAT_001d0178 = 0;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0005a9f0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  \n  *(undefined4 *)(param_1 + 0x5c) = DAT_001d017c;\n  iVar2 = DAT_001d0178;\n  *(int *)(param_1 + 100) = DAT_001d0178;\n  piVar1 = (int *)xmalloc(iVar2 * 4 + 4);\n  *(int **)(param_1 + 0x60) = piVar1;\n  if (0 < DAT_001d0178) {\n    iVar2 = *(int *)(param_1 + 0x5c);\n    piVar3 = piVar1;\n    do {\n      *piVar3 = iVar2;\n      piVar3 = piVar3 + 1;\n      iVar2 = iVar2 + 0x18;\n    } while (piVar3 != piVar1 + DAT_001d0178);\n  }\n  piVar1[DAT_001d0178] = 0;\n  *(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) | 4;\n  DAT_001d017c = 0;\n  DAT_001d0174 = 0;\n  DAT_001d0178 = 0;\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x5c) = DAT_001d017c;" (assignment_expression "*(undefined4 *)(param_1 + 0x5c) = DAT_001d017c" (pointer_expression "*(undefined4 *)(param_1 + 0x5c)" * (cast_expression "(undefined4 *)(param_1 + 0x5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar2 = DAT_001d0178;" (assignment_expression "iVar2 = DAT_001d0178" identifier = identifier) ;) (expression_statement "*(int *)(param_1 + 100) = DAT_001d0178;" (assignment_expression "*(int *)(param_1 + 100) = DAT_001d0178" (pointer_expression "*(int *)(param_1 + 100)" * (cast_expression "(int *)(param_1 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) )))) = identifier) ;) (expression_statement "piVar1 = (int *)xmalloc(iVar2 * 4 + 4);" (assignment_expression "piVar1 = (int *)xmalloc(iVar2 * 4 + 4)" identifier = (cast_expression "(int *)xmalloc(iVar2 * 4 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(iVar2 * 4 + 4)" identifier (argument_list "(iVar2 * 4 + 4)" ( (binary_expression "iVar2 * 4 + 4" (binary_expression "iVar2 * 4" identifier * number_literal) + number_literal) ))))) ;) (expression_statement "*(int **)(param_1 + 0x60) = piVar1;" (assignment_expression "*(int **)(param_1 + 0x60) = piVar1" (pointer_expression "*(int **)(param_1 + 0x60)" * (cast_expression "(int **)(param_1 + 0x60)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) = identifier) ;) (if_statement "if (0 < DAT_001d0178) {\n    iVar2 = *(int *)(param_1 + 0x5c);\n    piVar3 = piVar1;\n    do {\n      *piVar3 = iVar2;\n      piVar3 = piVar3 + 1;\n      iVar2 = iVar2 + 0x18;\n    } while (piVar3 != piVar1 + DAT_001d0178);\n  }" if (parenthesized_expression "(0 < DAT_001d0178)" ( (binary_expression "0 < DAT_001d0178" number_literal < identifier) )) (compound_statement "{\n    iVar2 = *(int *)(param_1 + 0x5c);\n    piVar3 = piVar1;\n    do {\n      *piVar3 = iVar2;\n      piVar3 = piVar3 + 1;\n      iVar2 = iVar2 + 0x18;\n    } while (piVar3 != piVar1 + DAT_001d0178);\n  }" { (expression_statement "iVar2 = *(int *)(param_1 + 0x5c);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x5c)" identifier = (pointer_expression "*(int *)(param_1 + 0x5c)" * (cast_expression "(int *)(param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) ))))) ;) (expression_statement "piVar3 = piVar1;" (assignment_expression "piVar3 = piVar1" identifier = identifier) ;) (do_statement "do {\n      *piVar3 = iVar2;\n      piVar3 = piVar3 + 1;\n      iVar2 = iVar2 + 0x18;\n    } while (piVar3 != piVar1 + DAT_001d0178);" do (compound_statement "{\n      *piVar3 = iVar2;\n      piVar3 = piVar3 + 1;\n      iVar2 = iVar2 + 0x18;\n    }" { (expression_statement "*piVar3 = iVar2;" (assignment_expression "*piVar3 = iVar2" (pointer_expression "*piVar3" * identifier) = identifier) ;) (expression_statement "piVar3 = piVar3 + 1;" (assignment_expression "piVar3 = piVar3 + 1" identifier = (binary_expression "piVar3 + 1" identifier + number_literal)) ;) (expression_statement "iVar2 = iVar2 + 0x18;" (assignment_expression "iVar2 = iVar2 + 0x18" identifier = (binary_expression "iVar2 + 0x18" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar3 != piVar1 + DAT_001d0178)" ( (binary_expression "piVar3 != piVar1 + DAT_001d0178" identifier != (binary_expression "piVar1 + DAT_001d0178" identifier + identifier)) )) ;) })) (expression_statement "piVar1[DAT_001d0178] = 0;" (assignment_expression "piVar1[DAT_001d0178] = 0" (subscript_expression "piVar1[DAT_001d0178]" identifier [ identifier ]) = number_literal) ;) (expression_statement "*(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) | 4;" (assignment_expression "*(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) | 4" (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_1 + 0x14) | 4" (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "DAT_001d017c = 0;" (assignment_expression "DAT_001d017c = 0" identifier = number_literal) ;) (expression_statement "DAT_001d0174 = 0;" (assignment_expression "DAT_001d0174 = 0" identifier = number_literal) ;) (expression_statement "DAT_001d0178 = 0;" (assignment_expression "DAT_001d0178 = 0" identifier = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 save_relocs(asection *sec)\n\n{\n  int iVar1;\n  reloc_cache_entry **pprVar2;\n  reloc_cache_entry *prVar3;\n  reloc_cache_entry **pprVar4;\n  \n  sec->relocation = reltab;\n  iVar1 = relcount;\n  sec->reloc_count = relcount;\n  pprVar2 = (reloc_cache_entry **)xmalloc(iVar1 * 4 + 4);\n  sec->orelocation = pprVar2;\n  if (0 < relcount) {\n    prVar3 = sec->relocation;\n    pprVar4 = pprVar2;\n    do {\n      *pprVar4 = prVar3;\n      pprVar4 = pprVar4 + 1;\n      prVar3 = prVar3 + 1;\n    } while (pprVar4 != pprVar2 + relcount);\n  }\n  pprVar2[relcount] = (reloc_cache_entry *)0x0;\n  sec->flags = sec->flags | 4;\n  reltab = (arelent *)0x0;\n  relsize = 0;\n  relcount = 0;\n  return;\n}\n\n" comment (function_definition "void __regparm3 save_relocs(asection *sec)\n\n{\n  int iVar1;\n  reloc_cache_entry **pprVar2;\n  reloc_cache_entry *prVar3;\n  reloc_cache_entry **pprVar4;\n  \n  sec->relocation = reltab;\n  iVar1 = relcount;\n  sec->reloc_count = relcount;\n  pprVar2 = (reloc_cache_entry **)xmalloc(iVar1 * 4 + 4);\n  sec->orelocation = pprVar2;\n  if (0 < relcount) {\n    prVar3 = sec->relocation;\n    pprVar4 = pprVar2;\n    do {\n      *pprVar4 = prVar3;\n      pprVar4 = pprVar4 + 1;\n      prVar3 = prVar3 + 1;\n    } while (pprVar4 != pprVar2 + relcount);\n  }\n  pprVar2[relcount] = (reloc_cache_entry *)0x0;\n  sec->flags = sec->flags | 4;\n  reltab = (arelent *)0x0;\n  relsize = 0;\n  relcount = 0;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "save_relocs(asection *sec)" identifier (parameter_list "(asection *sec)" ( (parameter_declaration "asection *sec" type_identifier (pointer_declarator "*sec" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  reloc_cache_entry **pprVar2;\n  reloc_cache_entry *prVar3;\n  reloc_cache_entry **pprVar4;\n  \n  sec->relocation = reltab;\n  iVar1 = relcount;\n  sec->reloc_count = relcount;\n  pprVar2 = (reloc_cache_entry **)xmalloc(iVar1 * 4 + 4);\n  sec->orelocation = pprVar2;\n  if (0 < relcount) {\n    prVar3 = sec->relocation;\n    pprVar4 = pprVar2;\n    do {\n      *pprVar4 = prVar3;\n      pprVar4 = pprVar4 + 1;\n      prVar3 = prVar3 + 1;\n    } while (pprVar4 != pprVar2 + relcount);\n  }\n  pprVar2[relcount] = (reloc_cache_entry *)0x0;\n  sec->flags = sec->flags | 4;\n  reltab = (arelent *)0x0;\n  relsize = 0;\n  relcount = 0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "reloc_cache_entry **pprVar2;" type_identifier (pointer_declarator "**pprVar2" * (pointer_declarator "*pprVar2" * identifier)) ;) (declaration "reloc_cache_entry *prVar3;" type_identifier (pointer_declarator "*prVar3" * identifier) ;) (declaration "reloc_cache_entry **pprVar4;" type_identifier (pointer_declarator "**pprVar4" * (pointer_declarator "*pprVar4" * identifier)) ;) (expression_statement "sec->relocation = reltab;" (assignment_expression "sec->relocation = reltab" (field_expression "sec->relocation" identifier -> field_identifier) = identifier) ;) (expression_statement "iVar1 = relcount;" (assignment_expression "iVar1 = relcount" identifier = identifier) ;) (expression_statement "sec->reloc_count = relcount;" (assignment_expression "sec->reloc_count = relcount" (field_expression "sec->reloc_count" identifier -> field_identifier) = identifier) ;) (expression_statement "pprVar2 = (reloc_cache_entry **)xmalloc(iVar1 * 4 + 4);" (assignment_expression "pprVar2 = (reloc_cache_entry **)xmalloc(iVar1 * 4 + 4)" identifier = (cast_expression "(reloc_cache_entry **)xmalloc(iVar1 * 4 + 4)" ( (type_descriptor "reloc_cache_entry **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (call_expression "xmalloc(iVar1 * 4 + 4)" identifier (argument_list "(iVar1 * 4 + 4)" ( (binary_expression "iVar1 * 4 + 4" (binary_expression "iVar1 * 4" identifier * number_literal) + number_literal) ))))) ;) (expression_statement "sec->orelocation = pprVar2;" (assignment_expression "sec->orelocation = pprVar2" (field_expression "sec->orelocation" identifier -> field_identifier) = identifier) ;) (if_statement "if (0 < relcount) {\n    prVar3 = sec->relocation;\n    pprVar4 = pprVar2;\n    do {\n      *pprVar4 = prVar3;\n      pprVar4 = pprVar4 + 1;\n      prVar3 = prVar3 + 1;\n    } while (pprVar4 != pprVar2 + relcount);\n  }" if (parenthesized_expression "(0 < relcount)" ( (binary_expression "0 < relcount" number_literal < identifier) )) (compound_statement "{\n    prVar3 = sec->relocation;\n    pprVar4 = pprVar2;\n    do {\n      *pprVar4 = prVar3;\n      pprVar4 = pprVar4 + 1;\n      prVar3 = prVar3 + 1;\n    } while (pprVar4 != pprVar2 + relcount);\n  }" { (expression_statement "prVar3 = sec->relocation;" (assignment_expression "prVar3 = sec->relocation" identifier = (field_expression "sec->relocation" identifier -> field_identifier)) ;) (expression_statement "pprVar4 = pprVar2;" (assignment_expression "pprVar4 = pprVar2" identifier = identifier) ;) (do_statement "do {\n      *pprVar4 = prVar3;\n      pprVar4 = pprVar4 + 1;\n      prVar3 = prVar3 + 1;\n    } while (pprVar4 != pprVar2 + relcount);" do (compound_statement "{\n      *pprVar4 = prVar3;\n      pprVar4 = pprVar4 + 1;\n      prVar3 = prVar3 + 1;\n    }" { (expression_statement "*pprVar4 = prVar3;" (assignment_expression "*pprVar4 = prVar3" (pointer_expression "*pprVar4" * identifier) = identifier) ;) (expression_statement "pprVar4 = pprVar4 + 1;" (assignment_expression "pprVar4 = pprVar4 + 1" identifier = (binary_expression "pprVar4 + 1" identifier + number_literal)) ;) (expression_statement "prVar3 = prVar3 + 1;" (assignment_expression "prVar3 = prVar3 + 1" identifier = (binary_expression "prVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pprVar4 != pprVar2 + relcount)" ( (binary_expression "pprVar4 != pprVar2 + relcount" identifier != (binary_expression "pprVar2 + relcount" identifier + identifier)) )) ;) })) (expression_statement "pprVar2[relcount] = (reloc_cache_entry *)0x0;" (assignment_expression "pprVar2[relcount] = (reloc_cache_entry *)0x0" (subscript_expression "pprVar2[relcount]" identifier [ identifier ]) = (cast_expression "(reloc_cache_entry *)0x0" ( (type_descriptor "reloc_cache_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "sec->flags = sec->flags | 4;" (assignment_expression "sec->flags = sec->flags | 4" (field_expression "sec->flags" identifier -> field_identifier) = (binary_expression "sec->flags | 4" (field_expression "sec->flags" identifier -> field_identifier) | number_literal)) ;) (expression_statement "reltab = (arelent *)0x0;" (assignment_expression "reltab = (arelent *)0x0" identifier = (cast_expression "(arelent *)0x0" ( (type_descriptor "arelent *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "relsize = 0;" (assignment_expression "relsize = 0" identifier = number_literal) ;) (expression_statement "relcount = 0;" (assignment_expression "relcount = 0" identifier = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_0005a9f0(int param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  \n  *(undefined4 *)(param_1 + 0x5c) = DAT_001d017c;\n  iVar2 = DAT_001d0178;\n  *(int *)(param_1 + 100) = DAT_001d0178;\n  piVar1 = (int *)xmalloc(iVar2 * 4 + 4);\n  *(int **)(param_1 + 0x60) = piVar1;\n  if (0 < DAT_001d0178) {\n    iVar2 = *(int *)(param_1 + 0x5c);\n    piVar3 = piVar1;\n    do {\n      *piVar3 = iVar2;\n      piVar3 = piVar3 + 1;\n      iVar2 = iVar2 + 0x18;\n    } while (piVar3 != piVar1 + DAT_001d0178);\n  }\n  piVar1[DAT_001d0178] = 0;\n  *(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) | 4;\n  DAT_001d017c = 0;\n  DAT_001d0174 = 0;\n  DAT_001d0178 = 0;\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0005a9f0(int param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  \n  *(undefined4 *)(param_1 + 0x5c) = DAT_001d017c;\n  iVar2 = DAT_001d0178;\n  *(int *)(param_1 + 100) = DAT_001d0178;\n  piVar1 = (int *)xmalloc(iVar2 * 4 + 4);\n  *(int **)(param_1 + 0x60) = piVar1;\n  if (0 < DAT_001d0178) {\n    iVar2 = *(int *)(param_1 + 0x5c);\n    piVar3 = piVar1;\n    do {\n      *piVar3 = iVar2;\n      piVar3 = piVar3 + 1;\n      iVar2 = iVar2 + 0x18;\n    } while (piVar3 != piVar1 + DAT_001d0178);\n  }\n  piVar1[DAT_001d0178] = 0;\n  *(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) | 4;\n  DAT_001d017c = 0;\n  DAT_001d0174 = 0;\n  DAT_001d0178 = 0;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0005a9f0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  \n  *(undefined4 *)(param_1 + 0x5c) = DAT_001d017c;\n  iVar2 = DAT_001d0178;\n  *(int *)(param_1 + 100) = DAT_001d0178;\n  piVar1 = (int *)xmalloc(iVar2 * 4 + 4);\n  *(int **)(param_1 + 0x60) = piVar1;\n  if (0 < DAT_001d0178) {\n    iVar2 = *(int *)(param_1 + 0x5c);\n    piVar3 = piVar1;\n    do {\n      *piVar3 = iVar2;\n      piVar3 = piVar3 + 1;\n      iVar2 = iVar2 + 0x18;\n    } while (piVar3 != piVar1 + DAT_001d0178);\n  }\n  piVar1[DAT_001d0178] = 0;\n  *(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) | 4;\n  DAT_001d017c = 0;\n  DAT_001d0174 = 0;\n  DAT_001d0178 = 0;\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x5c) = DAT_001d017c;" (assignment_expression "*(undefined4 *)(param_1 + 0x5c) = DAT_001d017c" (pointer_expression "*(undefined4 *)(param_1 + 0x5c)" * (cast_expression "(undefined4 *)(param_1 + 0x5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar2 = DAT_001d0178;" (assignment_expression "iVar2 = DAT_001d0178" identifier = identifier) ;) (expression_statement "*(int *)(param_1 + 100) = DAT_001d0178;" (assignment_expression "*(int *)(param_1 + 100) = DAT_001d0178" (pointer_expression "*(int *)(param_1 + 100)" * (cast_expression "(int *)(param_1 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) )))) = identifier) ;) (expression_statement "piVar1 = (int *)xmalloc(iVar2 * 4 + 4);" (assignment_expression "piVar1 = (int *)xmalloc(iVar2 * 4 + 4)" identifier = (cast_expression "(int *)xmalloc(iVar2 * 4 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(iVar2 * 4 + 4)" identifier (argument_list "(iVar2 * 4 + 4)" ( (binary_expression "iVar2 * 4 + 4" (binary_expression "iVar2 * 4" identifier * number_literal) + number_literal) ))))) ;) (expression_statement "*(int **)(param_1 + 0x60) = piVar1;" (assignment_expression "*(int **)(param_1 + 0x60) = piVar1" (pointer_expression "*(int **)(param_1 + 0x60)" * (cast_expression "(int **)(param_1 + 0x60)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) = identifier) ;) (if_statement "if (0 < DAT_001d0178) {\n    iVar2 = *(int *)(param_1 + 0x5c);\n    piVar3 = piVar1;\n    do {\n      *piVar3 = iVar2;\n      piVar3 = piVar3 + 1;\n      iVar2 = iVar2 + 0x18;\n    } while (piVar3 != piVar1 + DAT_001d0178);\n  }" if (parenthesized_expression "(0 < DAT_001d0178)" ( (binary_expression "0 < DAT_001d0178" number_literal < identifier) )) (compound_statement "{\n    iVar2 = *(int *)(param_1 + 0x5c);\n    piVar3 = piVar1;\n    do {\n      *piVar3 = iVar2;\n      piVar3 = piVar3 + 1;\n      iVar2 = iVar2 + 0x18;\n    } while (piVar3 != piVar1 + DAT_001d0178);\n  }" { (expression_statement "iVar2 = *(int *)(param_1 + 0x5c);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x5c)" identifier = (pointer_expression "*(int *)(param_1 + 0x5c)" * (cast_expression "(int *)(param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) ))))) ;) (expression_statement "piVar3 = piVar1;" (assignment_expression "piVar3 = piVar1" identifier = identifier) ;) (do_statement "do {\n      *piVar3 = iVar2;\n      piVar3 = piVar3 + 1;\n      iVar2 = iVar2 + 0x18;\n    } while (piVar3 != piVar1 + DAT_001d0178);" do (compound_statement "{\n      *piVar3 = iVar2;\n      piVar3 = piVar3 + 1;\n      iVar2 = iVar2 + 0x18;\n    }" { (expression_statement "*piVar3 = iVar2;" (assignment_expression "*piVar3 = iVar2" (pointer_expression "*piVar3" * identifier) = identifier) ;) (expression_statement "piVar3 = piVar3 + 1;" (assignment_expression "piVar3 = piVar3 + 1" identifier = (binary_expression "piVar3 + 1" identifier + number_literal)) ;) (expression_statement "iVar2 = iVar2 + 0x18;" (assignment_expression "iVar2 = iVar2 + 0x18" identifier = (binary_expression "iVar2 + 0x18" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar3 != piVar1 + DAT_001d0178)" ( (binary_expression "piVar3 != piVar1 + DAT_001d0178" identifier != (binary_expression "piVar1 + DAT_001d0178" identifier + identifier)) )) ;) })) (expression_statement "piVar1[DAT_001d0178] = 0;" (assignment_expression "piVar1[DAT_001d0178] = 0" (subscript_expression "piVar1[DAT_001d0178]" identifier [ identifier ]) = number_literal) ;) (expression_statement "*(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) | 4;" (assignment_expression "*(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) | 4" (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_1 + 0x14) | 4" (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "DAT_001d017c = 0;" (assignment_expression "DAT_001d017c = 0" identifier = number_literal) ;) (expression_statement "DAT_001d0174 = 0;" (assignment_expression "DAT_001d0174 = 0" identifier = number_literal) ;) (expression_statement "DAT_001d0178 = 0;" (assignment_expression "DAT_001d0178 = 0" identifier = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression (binary_expression IDENT * LIT) + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (binary_expression IDENT + IDENT)) )) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_0005a9f0(int param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  \n  *(undefined4 *)(param_1 + 0x5c) = DAT_001d017c;\n  iVar2 = DAT_001d0178;\n  *(int *)(param_1 + 100) = DAT_001d0178;\n  piVar1 = (int *)xmalloc(iVar2 * 4 + 4);\n  *(int **)(param_1 + 0x60) = piVar1;\n  if (0 < DAT_001d0178) {\n    iVar2 = *(int *)(param_1 + 0x5c);\n    piVar3 = piVar1;\n    do {\n      *piVar3 = iVar2;\n      piVar3 = piVar3 + 1;\n      iVar2 = iVar2 + 0x18;\n    } while (piVar3 != piVar1 + DAT_001d0178);\n  }\n  piVar1[DAT_001d0178] = 0;\n  *(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) | 4;\n  DAT_001d017c = 0;\n  DAT_001d0174 = 0;\n  DAT_001d0178 = 0;\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0005a9f0(int param_1)" (identifier "FUN_0005a9f0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  \n  *(undefined4 *)(param_1 + 0x5c) = DAT_001d017c;\n  iVar2 = DAT_001d0178;\n  *(int *)(param_1 + 100) = DAT_001d0178;\n  piVar1 = (int *)xmalloc(iVar2 * 4 + 4);\n  *(int **)(param_1 + 0x60) = piVar1;\n  if (0 < DAT_001d0178) {\n    iVar2 = *(int *)(param_1 + 0x5c);\n    piVar3 = piVar1;\n    do {\n      *piVar3 = iVar2;\n      piVar3 = piVar3 + 1;\n      iVar2 = iVar2 + 0x18;\n    } while (piVar3 != piVar1 + DAT_001d0178);\n  }\n  piVar1[DAT_001d0178] = 0;\n  *(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) | 4;\n  DAT_001d017c = 0;\n  DAT_001d0174 = 0;\n  DAT_001d0178 = 0;\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x5c) = DAT_001d017c;" (assignment_expression "*(undefined4 *)(param_1 + 0x5c) = DAT_001d017c" (pointer_expression "*(undefined4 *)(param_1 + 0x5c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x5c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x5c)" (( "(") (binary_expression "param_1 + 0x5c" (identifier "param_1") (+ "+") (number_literal "0x5c")) () ")")))) (= "=") (identifier "DAT_001d017c")) (; ";")) (expression_statement "iVar2 = DAT_001d0178;" (assignment_expression "iVar2 = DAT_001d0178" (identifier "iVar2") (= "=") (identifier "DAT_001d0178")) (; ";")) (expression_statement "*(int *)(param_1 + 100) = DAT_001d0178;" (assignment_expression "*(int *)(param_1 + 100) = DAT_001d0178" (pointer_expression "*(int *)(param_1 + 100)" (* "*") (cast_expression "(int *)(param_1 + 100)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 100)" (( "(") (binary_expression "param_1 + 100" (identifier "param_1") (+ "+") (number_literal "100")) () ")")))) (= "=") (identifier "DAT_001d0178")) (; ";")) (expression_statement "piVar1 = (int *)xmalloc(iVar2 * 4 + 4);" (assignment_expression "piVar1 = (int *)xmalloc(iVar2 * 4 + 4)" (identifier "piVar1") (= "=") (cast_expression "(int *)xmalloc(iVar2 * 4 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(iVar2 * 4 + 4)" (identifier "xmalloc") (argument_list "(iVar2 * 4 + 4)" (( "(") (binary_expression "iVar2 * 4 + 4" (binary_expression "iVar2 * 4" (identifier "iVar2") (* "*") (number_literal "4")) (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "*(int **)(param_1 + 0x60) = piVar1;" (assignment_expression "*(int **)(param_1 + 0x60) = piVar1" (pointer_expression "*(int **)(param_1 + 0x60)" (* "*") (cast_expression "(int **)(param_1 + 0x60)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")")))) (= "=") (identifier "piVar1")) (; ";")) (if_statement "if (0 < DAT_001d0178) {\n    iVar2 = *(int *)(param_1 + 0x5c);\n    piVar3 = piVar1;\n    do {\n      *piVar3 = iVar2;\n      piVar3 = piVar3 + 1;\n      iVar2 = iVar2 + 0x18;\n    } while (piVar3 != piVar1 + DAT_001d0178);\n  }" (if "if") (parenthesized_expression "(0 < DAT_001d0178)" (( "(") (binary_expression "0 < DAT_001d0178" (number_literal "0") (< "<") (identifier "DAT_001d0178")) () ")")) (compound_statement "{\n    iVar2 = *(int *)(param_1 + 0x5c);\n    piVar3 = piVar1;\n    do {\n      *piVar3 = iVar2;\n      piVar3 = piVar3 + 1;\n      iVar2 = iVar2 + 0x18;\n    } while (piVar3 != piVar1 + DAT_001d0178);\n  }" ({ "{") (expression_statement "iVar2 = *(int *)(param_1 + 0x5c);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x5c)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0x5c)" (* "*") (cast_expression "(int *)(param_1 + 0x5c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x5c)" (( "(") (binary_expression "param_1 + 0x5c" (identifier "param_1") (+ "+") (number_literal "0x5c")) () ")"))))) (; ";")) (expression_statement "piVar3 = piVar1;" (assignment_expression "piVar3 = piVar1" (identifier "piVar3") (= "=") (identifier "piVar1")) (; ";")) (do_statement "do {\n      *piVar3 = iVar2;\n      piVar3 = piVar3 + 1;\n      iVar2 = iVar2 + 0x18;\n    } while (piVar3 != piVar1 + DAT_001d0178);" (do "do") (compound_statement "{\n      *piVar3 = iVar2;\n      piVar3 = piVar3 + 1;\n      iVar2 = iVar2 + 0x18;\n    }" ({ "{") (expression_statement "*piVar3 = iVar2;" (assignment_expression "*piVar3 = iVar2" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "piVar3 = piVar3 + 1;" (assignment_expression "piVar3 = piVar3 + 1" (identifier "piVar3") (= "=") (binary_expression "piVar3 + 1" (identifier "piVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar2 = iVar2 + 0x18;" (assignment_expression "iVar2 = iVar2 + 0x18" (identifier "iVar2") (= "=") (binary_expression "iVar2 + 0x18" (identifier "iVar2") (+ "+") (number_literal "0x18"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar3 != piVar1 + DAT_001d0178)" (( "(") (binary_expression "piVar3 != piVar1 + DAT_001d0178" (identifier "piVar3") (!= "!=") (binary_expression "piVar1 + DAT_001d0178" (identifier "piVar1") (+ "+") (identifier "DAT_001d0178"))) () ")")) (; ";")) (} "}"))) (expression_statement "piVar1[DAT_001d0178] = 0;" (assignment_expression "piVar1[DAT_001d0178] = 0" (subscript_expression "piVar1[DAT_001d0178]" (identifier "piVar1") ([ "[") (identifier "DAT_001d0178") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) | 4;" (assignment_expression "*(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) | 4" (pointer_expression "*(uint *)(param_1 + 0x14)" (* "*") (cast_expression "(uint *)(param_1 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (binary_expression "*(uint *)(param_1 + 0x14) | 4" (pointer_expression "*(uint *)(param_1 + 0x14)" (* "*") (cast_expression "(uint *)(param_1 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (| "|") (number_literal "4"))) (; ";")) (expression_statement "DAT_001d017c = 0;" (assignment_expression "DAT_001d017c = 0" (identifier "DAT_001d017c") (= "=") (number_literal "0")) (; ";")) (expression_statement "DAT_001d0174 = 0;" (assignment_expression "DAT_001d0174 = 0" (identifier "DAT_001d0174") (= "=") (number_literal "0")) (; ";")) (expression_statement "DAT_001d0178 = 0;" (assignment_expression "DAT_001d0178 = 0" (identifier "DAT_001d0178") (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3 function_1(type_1 *sec)

{
  int var_2;
  type_2 **var_6;
  type_2 *var_5;
  type_2 **var_4;
  
  sec->relocation = reltab;
  var_2 = var_3;
  sec->reloc_count = var_3;
  var_6 = (type_2 **)var_1(var_2 * 4 + 4);
  sec->orelocation = var_6;
  if (0 < var_3) {
    var_5 = sec->relocation;
    var_4 = var_6;
    do {
      *var_4 = var_5;
      var_4 = var_4 + 1;
      var_5 = var_5 + 1;
    } while (var_4 != var_6 + var_3);
  }
  var_6[var_3] = (type_2 *)0x0;
  sec->flags = sec->flags | 4;
  reltab = (type_3 *)0x0;
  relsize = 0;
  var_3 = 0;
  return;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (return_statement))))

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

void __regparm3 MASKED(int param_1)

{
  int *piVar1;
  int iVar2;
  int *piVar3;
  
  *(undefined4 *)(param_1 + 0x5c) = DAT_001d017c;
  iVar2 = DAT_001d0178;
  *(int *)(param_1 + 100) = DAT_001d0178;
  piVar1 = (int *)xmalloc(iVar2 * 4 + 4);
  *(int **)(param_1 + 0x60) = piVar1;
  if (0 < DAT_001d0178) {
    iVar2 = *(int *)(param_1 + 0x5c);
    piVar3 = piVar1;
    do {
      *piVar3 = iVar2;
      piVar3 = piVar3 + 1;
      iVar2 = iVar2 + 0x18;
    } while (piVar3 != piVar1 + DAT_001d0178);
  }
  piVar1[DAT_001d0178] = 0;
  *(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) | 4;
  DAT_001d017c = 0;
  DAT_001d0174 = 0;
  DAT_001d0178 = 0;
  return;
}

