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

void clear_array(xhash *array)

{
}



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

void __regparm3 FUN_0009af30(undefined4 *param_1)

{
  void *pvVar1;
  int iVar2;
  uint uVar3;
  int *piVar4;
  uint uVar5;
  void *__ptr;
  
  uVar3 = param_1[1];
  if (uVar3 != 0) {
    iVar2 = param_1[4];
    uVar5 = 0;
    do {
      piVar4 = (int *)(uVar5 * 4 + iVar2);
      __ptr = (void *)*piVar4;
      if ((void *)*piVar4 != (void *)0x0) {
        do {
          pvVar1 = *(void **)((int)__ptr + 0x18);
          free(*(void **)((int)__ptr + 0xc));
          free(__ptr);
          __ptr = pvVar1;
        } while (pvVar1 != (void *)0x0);
        iVar2 = param_1[4];
        piVar4 = (int *)(uVar5 * 4 + iVar2);
        uVar3 = param_1[1];
      }
      *piVar4 = 0;
      uVar5 = uVar5 + 1;
    } while (uVar5 < uVar3);
  }
  *param_1 = 0;
  param_1[3] = 0;
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x1c
CALL 0x00017650
ADD EBX,0x40ae4
MOV ESI,EAX
MOV ECX,dword ptr [EAX + 0x4]
TEST ECX,ECX
JZ 0x0009afa1
MOV EAX,dword ptr [EAX + 0x10]
XOR EDX,EDX
MOV EBP,EDX
LEA EDX,[EBP*0x4 + 0x0]
MOV dword ptr [ESP + 0xc],EDX
ADD EDX,EAX
MOV EDI,dword ptr [EDX]
TEST EDI,EDI
JZ 0x0009af96
MOV EAX,dword ptr [EDI + 0x18]
MOV dword ptr [ESP + 0x8],EAX
SUB ESP,0xc
PUSH dword ptr [EDI + 0xc]
CALL 0x000175a0
MOV dword ptr [ESP],EDI
CALL 0x000175a0
MOV EDI,dword ptr [ESP + 0x18]
ADD ESP,0x10
TEST EDI,EDI
JNZ 0x0009af65
MOV EAX,dword ptr [ESI + 0x10]
MOV EDX,dword ptr [ESP + 0xc]
ADD EDX,EAX
MOV ECX,dword ptr [ESI + 0x4]
MOV dword ptr [EDX],0x0
INC EBP
CMP EBP,ECX
JC 0x0009af52
MOV dword ptr [ESI],0x0
MOV dword ptr [ESI + 0xc],0x0
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_0009af30(undefined4 *param_1)\n\n{\n  void *pvVar1;\n  int iVar2;\n  uint uVar3;\n  int *piVar4;\n  uint uVar5;\n  void *__ptr;\n  \n  uVar3 = param_1[1];\n  if (uVar3 != 0) {\n    iVar2 = param_1[4];\n    uVar5 = 0;\n    do {\n      piVar4 = (int *)(uVar5 * 4 + iVar2);\n      __ptr = (void *)*piVar4;\n      if ((void *)*piVar4 != (void *)0x0) {\n        do {\n          pvVar1 = *(void **)((int)__ptr + 0x18);\n          free(*(void **)((int)__ptr + 0xc));\n          free(__ptr);\n          __ptr = pvVar1;\n        } while (pvVar1 != (void *)0x0);\n        iVar2 = param_1[4];\n        piVar4 = (int *)(uVar5 * 4 + iVar2);\n        uVar3 = param_1[1];\n      }\n      *piVar4 = 0;\n      uVar5 = uVar5 + 1;\n    } while (uVar5 < uVar3);\n  }\n  *param_1 = 0;\n  param_1[3] = 0;\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_0009af30(undefined4 *param_1)\n\n{\n  void *pvVar1;\n  int iVar2;\n  uint uVar3;\n  int *piVar4;\n  uint uVar5;\n  void *__ptr;\n  \n  uVar3 = param_1[1];\n  if (uVar3 != 0) {\n    iVar2 = param_1[4];\n    uVar5 = 0;\n    do {\n      piVar4 = (int *)(uVar5 * 4 + iVar2);\n      __ptr = (void *)*piVar4;\n      if ((void *)*piVar4 != (void *)0x0) {\n        do {\n          pvVar1 = *(void **)((int)__ptr + 0x18);\n          free(*(void **)((int)__ptr + 0xc));\n          free(__ptr);\n          __ptr = pvVar1;\n        } while (pvVar1 != (void *)0x0);\n        iVar2 = param_1[4];\n        piVar4 = (int *)(uVar5 * 4 + iVar2);\n        uVar3 = param_1[1];\n      }\n      *piVar4 = 0;\n      uVar5 = uVar5 + 1;\n    } while (uVar5 < uVar3);\n  }\n  *param_1 = 0;\n  param_1[3] = 0;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0009af30(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  void *pvVar1;\n  int iVar2;\n  uint uVar3;\n  int *piVar4;\n  uint uVar5;\n  void *__ptr;\n  \n  uVar3 = param_1[1];\n  if (uVar3 != 0) {\n    iVar2 = param_1[4];\n    uVar5 = 0;\n    do {\n      piVar4 = (int *)(uVar5 * 4 + iVar2);\n      __ptr = (void *)*piVar4;\n      if ((void *)*piVar4 != (void *)0x0) {\n        do {\n          pvVar1 = *(void **)((int)__ptr + 0x18);\n          free(*(void **)((int)__ptr + 0xc));\n          free(__ptr);\n          __ptr = pvVar1;\n        } while (pvVar1 != (void *)0x0);\n        iVar2 = param_1[4];\n        piVar4 = (int *)(uVar5 * 4 + iVar2);\n        uVar3 = param_1[1];\n      }\n      *piVar4 = 0;\n      uVar5 = uVar5 + 1;\n    } while (uVar5 < uVar3);\n  }\n  *param_1 = 0;\n  param_1[3] = 0;\n  return;\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (expression_statement "uVar3 = param_1[1];" (assignment_expression "uVar3 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (if_statement "if (uVar3 != 0) {\n    iVar2 = param_1[4];\n    uVar5 = 0;\n    do {\n      piVar4 = (int *)(uVar5 * 4 + iVar2);\n      __ptr = (void *)*piVar4;\n      if ((void *)*piVar4 != (void *)0x0) {\n        do {\n          pvVar1 = *(void **)((int)__ptr + 0x18);\n          free(*(void **)((int)__ptr + 0xc));\n          free(__ptr);\n          __ptr = pvVar1;\n        } while (pvVar1 != (void *)0x0);\n        iVar2 = param_1[4];\n        piVar4 = (int *)(uVar5 * 4 + iVar2);\n        uVar3 = param_1[1];\n      }\n      *piVar4 = 0;\n      uVar5 = uVar5 + 1;\n    } while (uVar5 < uVar3);\n  }" if (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar2 = param_1[4];\n    uVar5 = 0;\n    do {\n      piVar4 = (int *)(uVar5 * 4 + iVar2);\n      __ptr = (void *)*piVar4;\n      if ((void *)*piVar4 != (void *)0x0) {\n        do {\n          pvVar1 = *(void **)((int)__ptr + 0x18);\n          free(*(void **)((int)__ptr + 0xc));\n          free(__ptr);\n          __ptr = pvVar1;\n        } while (pvVar1 != (void *)0x0);\n        iVar2 = param_1[4];\n        piVar4 = (int *)(uVar5 * 4 + iVar2);\n        uVar3 = param_1[1];\n      }\n      *piVar4 = 0;\n      uVar5 = uVar5 + 1;\n    } while (uVar5 < uVar3);\n  }" { (expression_statement "iVar2 = param_1[4];" (assignment_expression "iVar2 = param_1[4]" identifier = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n      piVar4 = (int *)(uVar5 * 4 + iVar2);\n      __ptr = (void *)*piVar4;\n      if ((void *)*piVar4 != (void *)0x0) {\n        do {\n          pvVar1 = *(void **)((int)__ptr + 0x18);\n          free(*(void **)((int)__ptr + 0xc));\n          free(__ptr);\n          __ptr = pvVar1;\n        } while (pvVar1 != (void *)0x0);\n        iVar2 = param_1[4];\n        piVar4 = (int *)(uVar5 * 4 + iVar2);\n        uVar3 = param_1[1];\n      }\n      *piVar4 = 0;\n      uVar5 = uVar5 + 1;\n    } while (uVar5 < uVar3);" do (compound_statement "{\n      piVar4 = (int *)(uVar5 * 4 + iVar2);\n      __ptr = (void *)*piVar4;\n      if ((void *)*piVar4 != (void *)0x0) {\n        do {\n          pvVar1 = *(void **)((int)__ptr + 0x18);\n          free(*(void **)((int)__ptr + 0xc));\n          free(__ptr);\n          __ptr = pvVar1;\n        } while (pvVar1 != (void *)0x0);\n        iVar2 = param_1[4];\n        piVar4 = (int *)(uVar5 * 4 + iVar2);\n        uVar3 = param_1[1];\n      }\n      *piVar4 = 0;\n      uVar5 = uVar5 + 1;\n    }" { (expression_statement "piVar4 = (int *)(uVar5 * 4 + iVar2);" (assignment_expression "piVar4 = (int *)(uVar5 * 4 + iVar2)" identifier = (cast_expression "(int *)(uVar5 * 4 + iVar2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar5 * 4 + iVar2)" ( (binary_expression "uVar5 * 4 + iVar2" (binary_expression "uVar5 * 4" identifier * number_literal) + identifier) )))) ;) (expression_statement "__ptr = (void *)*piVar4;" (assignment_expression "__ptr = (void *)*piVar4" identifier = (cast_expression "(void *)*piVar4" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar4" * identifier))) ;) (if_statement "if ((void *)*piVar4 != (void *)0x0) {\n        do {\n          pvVar1 = *(void **)((int)__ptr + 0x18);\n          free(*(void **)((int)__ptr + 0xc));\n          free(__ptr);\n          __ptr = pvVar1;\n        } while (pvVar1 != (void *)0x0);\n        iVar2 = param_1[4];\n        piVar4 = (int *)(uVar5 * 4 + iVar2);\n        uVar3 = param_1[1];\n      }" if (parenthesized_expression "((void *)*piVar4 != (void *)0x0)" ( (binary_expression "(void *)*piVar4 != (void *)0x0" (cast_expression "(void *)*piVar4" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar4" * identifier)) != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        do {\n          pvVar1 = *(void **)((int)__ptr + 0x18);\n          free(*(void **)((int)__ptr + 0xc));\n          free(__ptr);\n          __ptr = pvVar1;\n        } while (pvVar1 != (void *)0x0);\n        iVar2 = param_1[4];\n        piVar4 = (int *)(uVar5 * 4 + iVar2);\n        uVar3 = param_1[1];\n      }" { (do_statement "do {\n          pvVar1 = *(void **)((int)__ptr + 0x18);\n          free(*(void **)((int)__ptr + 0xc));\n          free(__ptr);\n          __ptr = pvVar1;\n        } while (pvVar1 != (void *)0x0);" do (compound_statement "{\n          pvVar1 = *(void **)((int)__ptr + 0x18);\n          free(*(void **)((int)__ptr + 0xc));\n          free(__ptr);\n          __ptr = pvVar1;\n        }" { (expression_statement "pvVar1 = *(void **)((int)__ptr + 0x18);" (assignment_expression "pvVar1 = *(void **)((int)__ptr + 0x18)" identifier = (pointer_expression "*(void **)((int)__ptr + 0x18)" * (cast_expression "(void **)((int)__ptr + 0x18)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)__ptr + 0x18)" ( (binary_expression "(int)__ptr + 0x18" (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "free(*(void **)((int)__ptr + 0xc));" (call_expression "free(*(void **)((int)__ptr + 0xc))" identifier (argument_list "(*(void **)((int)__ptr + 0xc))" ( (pointer_expression "*(void **)((int)__ptr + 0xc)" * (cast_expression "(void **)((int)__ptr + 0xc)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)__ptr + 0xc)" ( (binary_expression "(int)__ptr + 0xc" (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "__ptr = pvVar1;" (assignment_expression "__ptr = pvVar1" identifier = identifier) ;) }) while (parenthesized_expression "(pvVar1 != (void *)0x0)" ( (binary_expression "pvVar1 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "iVar2 = param_1[4];" (assignment_expression "iVar2 = param_1[4]" identifier = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) (expression_statement "piVar4 = (int *)(uVar5 * 4 + iVar2);" (assignment_expression "piVar4 = (int *)(uVar5 * 4 + iVar2)" identifier = (cast_expression "(int *)(uVar5 * 4 + iVar2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar5 * 4 + iVar2)" ( (binary_expression "uVar5 * 4 + iVar2" (binary_expression "uVar5 * 4" identifier * number_literal) + identifier) )))) ;) (expression_statement "uVar3 = param_1[1];" (assignment_expression "uVar3 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) })) (expression_statement "*piVar4 = 0;" (assignment_expression "*piVar4 = 0" (pointer_expression "*piVar4" * identifier) = number_literal) ;) (expression_statement "uVar5 = uVar5 + 1;" (assignment_expression "uVar5 = uVar5 + 1" identifier = (binary_expression "uVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar5 < uVar3)" ( (binary_expression "uVar5 < uVar3" identifier < identifier) )) ;) })) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" 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 clear_array(xhash *array)\n\n{\n}\n\n" comment (function_definition "void clear_array(xhash *array)\n\n{\n}" primitive_type (function_declarator "clear_array(xhash *array)" identifier (parameter_list "(xhash *array)" ( (parameter_declaration "xhash *array" type_identifier (pointer_declarator "*array" * identifier)) ))) (compound_statement "{\n}" { })))
(translation_unit "void __regparm3 FUN_0009af30(undefined4 *param_1)\n\n{\n  void *pvVar1;\n  int iVar2;\n  uint uVar3;\n  int *piVar4;\n  uint uVar5;\n  void *__ptr;\n  \n  uVar3 = param_1[1];\n  if (uVar3 != 0) {\n    iVar2 = param_1[4];\n    uVar5 = 0;\n    do {\n      piVar4 = (int *)(uVar5 * 4 + iVar2);\n      __ptr = (void *)*piVar4;\n      if ((void *)*piVar4 != (void *)0x0) {\n        do {\n          pvVar1 = *(void **)((int)__ptr + 0x18);\n          free(*(void **)((int)__ptr + 0xc));\n          free(__ptr);\n          __ptr = pvVar1;\n        } while (pvVar1 != (void *)0x0);\n        iVar2 = param_1[4];\n        piVar4 = (int *)(uVar5 * 4 + iVar2);\n        uVar3 = param_1[1];\n      }\n      *piVar4 = 0;\n      uVar5 = uVar5 + 1;\n    } while (uVar5 < uVar3);\n  }\n  *param_1 = 0;\n  param_1[3] = 0;\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0009af30(undefined4 *param_1)\n\n{\n  void *pvVar1;\n  int iVar2;\n  uint uVar3;\n  int *piVar4;\n  uint uVar5;\n  void *__ptr;\n  \n  uVar3 = param_1[1];\n  if (uVar3 != 0) {\n    iVar2 = param_1[4];\n    uVar5 = 0;\n    do {\n      piVar4 = (int *)(uVar5 * 4 + iVar2);\n      __ptr = (void *)*piVar4;\n      if ((void *)*piVar4 != (void *)0x0) {\n        do {\n          pvVar1 = *(void **)((int)__ptr + 0x18);\n          free(*(void **)((int)__ptr + 0xc));\n          free(__ptr);\n          __ptr = pvVar1;\n        } while (pvVar1 != (void *)0x0);\n        iVar2 = param_1[4];\n        piVar4 = (int *)(uVar5 * 4 + iVar2);\n        uVar3 = param_1[1];\n      }\n      *piVar4 = 0;\n      uVar5 = uVar5 + 1;\n    } while (uVar5 < uVar3);\n  }\n  *param_1 = 0;\n  param_1[3] = 0;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0009af30(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  void *pvVar1;\n  int iVar2;\n  uint uVar3;\n  int *piVar4;\n  uint uVar5;\n  void *__ptr;\n  \n  uVar3 = param_1[1];\n  if (uVar3 != 0) {\n    iVar2 = param_1[4];\n    uVar5 = 0;\n    do {\n      piVar4 = (int *)(uVar5 * 4 + iVar2);\n      __ptr = (void *)*piVar4;\n      if ((void *)*piVar4 != (void *)0x0) {\n        do {\n          pvVar1 = *(void **)((int)__ptr + 0x18);\n          free(*(void **)((int)__ptr + 0xc));\n          free(__ptr);\n          __ptr = pvVar1;\n        } while (pvVar1 != (void *)0x0);\n        iVar2 = param_1[4];\n        piVar4 = (int *)(uVar5 * 4 + iVar2);\n        uVar3 = param_1[1];\n      }\n      *piVar4 = 0;\n      uVar5 = uVar5 + 1;\n    } while (uVar5 < uVar3);\n  }\n  *param_1 = 0;\n  param_1[3] = 0;\n  return;\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (expression_statement "uVar3 = param_1[1];" (assignment_expression "uVar3 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (if_statement "if (uVar3 != 0) {\n    iVar2 = param_1[4];\n    uVar5 = 0;\n    do {\n      piVar4 = (int *)(uVar5 * 4 + iVar2);\n      __ptr = (void *)*piVar4;\n      if ((void *)*piVar4 != (void *)0x0) {\n        do {\n          pvVar1 = *(void **)((int)__ptr + 0x18);\n          free(*(void **)((int)__ptr + 0xc));\n          free(__ptr);\n          __ptr = pvVar1;\n        } while (pvVar1 != (void *)0x0);\n        iVar2 = param_1[4];\n        piVar4 = (int *)(uVar5 * 4 + iVar2);\n        uVar3 = param_1[1];\n      }\n      *piVar4 = 0;\n      uVar5 = uVar5 + 1;\n    } while (uVar5 < uVar3);\n  }" if (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar2 = param_1[4];\n    uVar5 = 0;\n    do {\n      piVar4 = (int *)(uVar5 * 4 + iVar2);\n      __ptr = (void *)*piVar4;\n      if ((void *)*piVar4 != (void *)0x0) {\n        do {\n          pvVar1 = *(void **)((int)__ptr + 0x18);\n          free(*(void **)((int)__ptr + 0xc));\n          free(__ptr);\n          __ptr = pvVar1;\n        } while (pvVar1 != (void *)0x0);\n        iVar2 = param_1[4];\n        piVar4 = (int *)(uVar5 * 4 + iVar2);\n        uVar3 = param_1[1];\n      }\n      *piVar4 = 0;\n      uVar5 = uVar5 + 1;\n    } while (uVar5 < uVar3);\n  }" { (expression_statement "iVar2 = param_1[4];" (assignment_expression "iVar2 = param_1[4]" identifier = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n      piVar4 = (int *)(uVar5 * 4 + iVar2);\n      __ptr = (void *)*piVar4;\n      if ((void *)*piVar4 != (void *)0x0) {\n        do {\n          pvVar1 = *(void **)((int)__ptr + 0x18);\n          free(*(void **)((int)__ptr + 0xc));\n          free(__ptr);\n          __ptr = pvVar1;\n        } while (pvVar1 != (void *)0x0);\n        iVar2 = param_1[4];\n        piVar4 = (int *)(uVar5 * 4 + iVar2);\n        uVar3 = param_1[1];\n      }\n      *piVar4 = 0;\n      uVar5 = uVar5 + 1;\n    } while (uVar5 < uVar3);" do (compound_statement "{\n      piVar4 = (int *)(uVar5 * 4 + iVar2);\n      __ptr = (void *)*piVar4;\n      if ((void *)*piVar4 != (void *)0x0) {\n        do {\n          pvVar1 = *(void **)((int)__ptr + 0x18);\n          free(*(void **)((int)__ptr + 0xc));\n          free(__ptr);\n          __ptr = pvVar1;\n        } while (pvVar1 != (void *)0x0);\n        iVar2 = param_1[4];\n        piVar4 = (int *)(uVar5 * 4 + iVar2);\n        uVar3 = param_1[1];\n      }\n      *piVar4 = 0;\n      uVar5 = uVar5 + 1;\n    }" { (expression_statement "piVar4 = (int *)(uVar5 * 4 + iVar2);" (assignment_expression "piVar4 = (int *)(uVar5 * 4 + iVar2)" identifier = (cast_expression "(int *)(uVar5 * 4 + iVar2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar5 * 4 + iVar2)" ( (binary_expression "uVar5 * 4 + iVar2" (binary_expression "uVar5 * 4" identifier * number_literal) + identifier) )))) ;) (expression_statement "__ptr = (void *)*piVar4;" (assignment_expression "__ptr = (void *)*piVar4" identifier = (cast_expression "(void *)*piVar4" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar4" * identifier))) ;) (if_statement "if ((void *)*piVar4 != (void *)0x0) {\n        do {\n          pvVar1 = *(void **)((int)__ptr + 0x18);\n          free(*(void **)((int)__ptr + 0xc));\n          free(__ptr);\n          __ptr = pvVar1;\n        } while (pvVar1 != (void *)0x0);\n        iVar2 = param_1[4];\n        piVar4 = (int *)(uVar5 * 4 + iVar2);\n        uVar3 = param_1[1];\n      }" if (parenthesized_expression "((void *)*piVar4 != (void *)0x0)" ( (binary_expression "(void *)*piVar4 != (void *)0x0" (cast_expression "(void *)*piVar4" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar4" * identifier)) != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        do {\n          pvVar1 = *(void **)((int)__ptr + 0x18);\n          free(*(void **)((int)__ptr + 0xc));\n          free(__ptr);\n          __ptr = pvVar1;\n        } while (pvVar1 != (void *)0x0);\n        iVar2 = param_1[4];\n        piVar4 = (int *)(uVar5 * 4 + iVar2);\n        uVar3 = param_1[1];\n      }" { (do_statement "do {\n          pvVar1 = *(void **)((int)__ptr + 0x18);\n          free(*(void **)((int)__ptr + 0xc));\n          free(__ptr);\n          __ptr = pvVar1;\n        } while (pvVar1 != (void *)0x0);" do (compound_statement "{\n          pvVar1 = *(void **)((int)__ptr + 0x18);\n          free(*(void **)((int)__ptr + 0xc));\n          free(__ptr);\n          __ptr = pvVar1;\n        }" { (expression_statement "pvVar1 = *(void **)((int)__ptr + 0x18);" (assignment_expression "pvVar1 = *(void **)((int)__ptr + 0x18)" identifier = (pointer_expression "*(void **)((int)__ptr + 0x18)" * (cast_expression "(void **)((int)__ptr + 0x18)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)__ptr + 0x18)" ( (binary_expression "(int)__ptr + 0x18" (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "free(*(void **)((int)__ptr + 0xc));" (call_expression "free(*(void **)((int)__ptr + 0xc))" identifier (argument_list "(*(void **)((int)__ptr + 0xc))" ( (pointer_expression "*(void **)((int)__ptr + 0xc)" * (cast_expression "(void **)((int)__ptr + 0xc)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)__ptr + 0xc)" ( (binary_expression "(int)__ptr + 0xc" (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "__ptr = pvVar1;" (assignment_expression "__ptr = pvVar1" identifier = identifier) ;) }) while (parenthesized_expression "(pvVar1 != (void *)0x0)" ( (binary_expression "pvVar1 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "iVar2 = param_1[4];" (assignment_expression "iVar2 = param_1[4]" identifier = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) (expression_statement "piVar4 = (int *)(uVar5 * 4 + iVar2);" (assignment_expression "piVar4 = (int *)(uVar5 * 4 + iVar2)" identifier = (cast_expression "(int *)(uVar5 * 4 + iVar2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar5 * 4 + iVar2)" ( (binary_expression "uVar5 * 4 + iVar2" (binary_expression "uVar5 * 4" identifier * number_literal) + identifier) )))) ;) (expression_statement "uVar3 = param_1[1];" (assignment_expression "uVar3 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) })) (expression_statement "*piVar4 = 0;" (assignment_expression "*piVar4 = 0" (pointer_expression "*piVar4" * identifier) = number_literal) ;) (expression_statement "uVar5 = uVar5 + 1;" (assignment_expression "uVar5 = uVar5 + 1" identifier = (binary_expression "uVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar5 < uVar3)" ( (binary_expression "uVar5 < uVar3" identifier < identifier) )) ;) })) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (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 IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (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 IDENT = (subscript_expression IDENT [ LIT ])) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_0009af30(undefined4 *param_1)\n\n{\n  void *pvVar1;\n  int iVar2;\n  uint uVar3;\n  int *piVar4;\n  uint uVar5;\n  void *__ptr;\n  \n  uVar3 = param_1[1];\n  if (uVar3 != 0) {\n    iVar2 = param_1[4];\n    uVar5 = 0;\n    do {\n      piVar4 = (int *)(uVar5 * 4 + iVar2);\n      __ptr = (void *)*piVar4;\n      if ((void *)*piVar4 != (void *)0x0) {\n        do {\n          pvVar1 = *(void **)((int)__ptr + 0x18);\n          free(*(void **)((int)__ptr + 0xc));\n          free(__ptr);\n          __ptr = pvVar1;\n        } while (pvVar1 != (void *)0x0);\n        iVar2 = param_1[4];\n        piVar4 = (int *)(uVar5 * 4 + iVar2);\n        uVar3 = param_1[1];\n      }\n      *piVar4 = 0;\n      uVar5 = uVar5 + 1;\n    } while (uVar5 < uVar3);\n  }\n  *param_1 = 0;\n  param_1[3] = 0;\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0009af30(undefined4 *param_1)" (identifier "FUN_0009af30") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  void *pvVar1;\n  int iVar2;\n  uint uVar3;\n  int *piVar4;\n  uint uVar5;\n  void *__ptr;\n  \n  uVar3 = param_1[1];\n  if (uVar3 != 0) {\n    iVar2 = param_1[4];\n    uVar5 = 0;\n    do {\n      piVar4 = (int *)(uVar5 * 4 + iVar2);\n      __ptr = (void *)*piVar4;\n      if ((void *)*piVar4 != (void *)0x0) {\n        do {\n          pvVar1 = *(void **)((int)__ptr + 0x18);\n          free(*(void **)((int)__ptr + 0xc));\n          free(__ptr);\n          __ptr = pvVar1;\n        } while (pvVar1 != (void *)0x0);\n        iVar2 = param_1[4];\n        piVar4 = (int *)(uVar5 * 4 + iVar2);\n        uVar3 = param_1[1];\n      }\n      *piVar4 = 0;\n      uVar5 = uVar5 + 1;\n    } while (uVar5 < uVar3);\n  }\n  *param_1 = 0;\n  param_1[3] = 0;\n  return;\n}" ({ "{") (declaration "void *pvVar1;" (primitive_type "void") (pointer_declarator "*pvVar1" (* "*") (identifier "pvVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "void *__ptr;" (primitive_type "void") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (expression_statement "uVar3 = param_1[1];" (assignment_expression "uVar3 = param_1[1]" (identifier "uVar3") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if (uVar3 != 0) {\n    iVar2 = param_1[4];\n    uVar5 = 0;\n    do {\n      piVar4 = (int *)(uVar5 * 4 + iVar2);\n      __ptr = (void *)*piVar4;\n      if ((void *)*piVar4 != (void *)0x0) {\n        do {\n          pvVar1 = *(void **)((int)__ptr + 0x18);\n          free(*(void **)((int)__ptr + 0xc));\n          free(__ptr);\n          __ptr = pvVar1;\n        } while (pvVar1 != (void *)0x0);\n        iVar2 = param_1[4];\n        piVar4 = (int *)(uVar5 * 4 + iVar2);\n        uVar3 = param_1[1];\n      }\n      *piVar4 = 0;\n      uVar5 = uVar5 + 1;\n    } while (uVar5 < uVar3);\n  }" (if "if") (parenthesized_expression "(uVar3 != 0)" (( "(") (binary_expression "uVar3 != 0" (identifier "uVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = param_1[4];\n    uVar5 = 0;\n    do {\n      piVar4 = (int *)(uVar5 * 4 + iVar2);\n      __ptr = (void *)*piVar4;\n      if ((void *)*piVar4 != (void *)0x0) {\n        do {\n          pvVar1 = *(void **)((int)__ptr + 0x18);\n          free(*(void **)((int)__ptr + 0xc));\n          free(__ptr);\n          __ptr = pvVar1;\n        } while (pvVar1 != (void *)0x0);\n        iVar2 = param_1[4];\n        piVar4 = (int *)(uVar5 * 4 + iVar2);\n        uVar3 = param_1[1];\n      }\n      *piVar4 = 0;\n      uVar5 = uVar5 + 1;\n    } while (uVar5 < uVar3);\n  }" ({ "{") (expression_statement "iVar2 = param_1[4];" (assignment_expression "iVar2 = param_1[4]" (identifier "iVar2") (= "=") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) (; ";")) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" (identifier "uVar5") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      piVar4 = (int *)(uVar5 * 4 + iVar2);\n      __ptr = (void *)*piVar4;\n      if ((void *)*piVar4 != (void *)0x0) {\n        do {\n          pvVar1 = *(void **)((int)__ptr + 0x18);\n          free(*(void **)((int)__ptr + 0xc));\n          free(__ptr);\n          __ptr = pvVar1;\n        } while (pvVar1 != (void *)0x0);\n        iVar2 = param_1[4];\n        piVar4 = (int *)(uVar5 * 4 + iVar2);\n        uVar3 = param_1[1];\n      }\n      *piVar4 = 0;\n      uVar5 = uVar5 + 1;\n    } while (uVar5 < uVar3);" (do "do") (compound_statement "{\n      piVar4 = (int *)(uVar5 * 4 + iVar2);\n      __ptr = (void *)*piVar4;\n      if ((void *)*piVar4 != (void *)0x0) {\n        do {\n          pvVar1 = *(void **)((int)__ptr + 0x18);\n          free(*(void **)((int)__ptr + 0xc));\n          free(__ptr);\n          __ptr = pvVar1;\n        } while (pvVar1 != (void *)0x0);\n        iVar2 = param_1[4];\n        piVar4 = (int *)(uVar5 * 4 + iVar2);\n        uVar3 = param_1[1];\n      }\n      *piVar4 = 0;\n      uVar5 = uVar5 + 1;\n    }" ({ "{") (expression_statement "piVar4 = (int *)(uVar5 * 4 + iVar2);" (assignment_expression "piVar4 = (int *)(uVar5 * 4 + iVar2)" (identifier "piVar4") (= "=") (cast_expression "(int *)(uVar5 * 4 + iVar2)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar5 * 4 + iVar2)" (( "(") (binary_expression "uVar5 * 4 + iVar2" (binary_expression "uVar5 * 4" (identifier "uVar5") (* "*") (number_literal "4")) (+ "+") (identifier "iVar2")) () ")")))) (; ";")) (expression_statement "__ptr = (void *)*piVar4;" (assignment_expression "__ptr = (void *)*piVar4" (identifier "__ptr") (= "=") (cast_expression "(void *)*piVar4" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar4" (* "*") (identifier "piVar4")))) (; ";")) (if_statement "if ((void *)*piVar4 != (void *)0x0) {\n        do {\n          pvVar1 = *(void **)((int)__ptr + 0x18);\n          free(*(void **)((int)__ptr + 0xc));\n          free(__ptr);\n          __ptr = pvVar1;\n        } while (pvVar1 != (void *)0x0);\n        iVar2 = param_1[4];\n        piVar4 = (int *)(uVar5 * 4 + iVar2);\n        uVar3 = param_1[1];\n      }" (if "if") (parenthesized_expression "((void *)*piVar4 != (void *)0x0)" (( "(") (binary_expression "(void *)*piVar4 != (void *)0x0" (cast_expression "(void *)*piVar4" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar4" (* "*") (identifier "piVar4"))) (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        do {\n          pvVar1 = *(void **)((int)__ptr + 0x18);\n          free(*(void **)((int)__ptr + 0xc));\n          free(__ptr);\n          __ptr = pvVar1;\n        } while (pvVar1 != (void *)0x0);\n        iVar2 = param_1[4];\n        piVar4 = (int *)(uVar5 * 4 + iVar2);\n        uVar3 = param_1[1];\n      }" ({ "{") (do_statement "do {\n          pvVar1 = *(void **)((int)__ptr + 0x18);\n          free(*(void **)((int)__ptr + 0xc));\n          free(__ptr);\n          __ptr = pvVar1;\n        } while (pvVar1 != (void *)0x0);" (do "do") (compound_statement "{\n          pvVar1 = *(void **)((int)__ptr + 0x18);\n          free(*(void **)((int)__ptr + 0xc));\n          free(__ptr);\n          __ptr = pvVar1;\n        }" ({ "{") (expression_statement "pvVar1 = *(void **)((int)__ptr + 0x18);" (assignment_expression "pvVar1 = *(void **)((int)__ptr + 0x18)" (identifier "pvVar1") (= "=") (pointer_expression "*(void **)((int)__ptr + 0x18)" (* "*") (cast_expression "(void **)((int)__ptr + 0x18)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)__ptr + 0x18)" (( "(") (binary_expression "(int)__ptr + 0x18" (cast_expression "(int)__ptr" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__ptr")) (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (expression_statement "free(*(void **)((int)__ptr + 0xc));" (call_expression "free(*(void **)((int)__ptr + 0xc))" (identifier "free") (argument_list "(*(void **)((int)__ptr + 0xc))" (( "(") (pointer_expression "*(void **)((int)__ptr + 0xc)" (* "*") (cast_expression "(void **)((int)__ptr + 0xc)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)__ptr + 0xc)" (( "(") (binary_expression "(int)__ptr + 0xc" (cast_expression "(int)__ptr" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__ptr")) (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";")) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (expression_statement "__ptr = pvVar1;" (assignment_expression "__ptr = pvVar1" (identifier "__ptr") (= "=") (identifier "pvVar1")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(pvVar1 != (void *)0x0)" (( "(") (binary_expression "pvVar1 != (void *)0x0" (identifier "pvVar1") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (expression_statement "iVar2 = param_1[4];" (assignment_expression "iVar2 = param_1[4]" (identifier "iVar2") (= "=") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) (; ";")) (expression_statement "piVar4 = (int *)(uVar5 * 4 + iVar2);" (assignment_expression "piVar4 = (int *)(uVar5 * 4 + iVar2)" (identifier "piVar4") (= "=") (cast_expression "(int *)(uVar5 * 4 + iVar2)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar5 * 4 + iVar2)" (( "(") (binary_expression "uVar5 * 4 + iVar2" (binary_expression "uVar5 * 4" (identifier "uVar5") (* "*") (number_literal "4")) (+ "+") (identifier "iVar2")) () ")")))) (; ";")) (expression_statement "uVar3 = param_1[1];" (assignment_expression "uVar3 = param_1[1]" (identifier "uVar3") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}"))) (expression_statement "*piVar4 = 0;" (assignment_expression "*piVar4 = 0" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar5 = uVar5 + 1;" (assignment_expression "uVar5 = uVar5 + 1" (identifier "uVar5") (= "=") (binary_expression "uVar5 + 1" (identifier "uVar5") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar5 < uVar3)" (( "(") (binary_expression "uVar5 < uVar3" (identifier "uVar5") (< "<") (identifier "uVar3")) () ")")) (; ";")) (} "}"))) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 *array)

{
}


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

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

void __regparm3 MASKED(undefined4 *param_1)

{
  void *pvVar1;
  int iVar2;
  uint uVar3;
  int *piVar4;
  uint uVar5;
  void *__ptr;
  
  uVar3 = param_1[1];
  if (uVar3 != 0) {
    iVar2 = param_1[4];
    uVar5 = 0;
    do {
      piVar4 = (int *)(uVar5 * 4 + iVar2);
      __ptr = (void *)*piVar4;
      if ((void *)*piVar4 != (void *)0x0) {
        do {
          pvVar1 = *(void **)((int)__ptr + 0x18);
          free(*(void **)((int)__ptr + 0xc));
          free(__ptr);
          __ptr = pvVar1;
        } while (pvVar1 != (void *)0x0);
        iVar2 = param_1[4];
        piVar4 = (int *)(uVar5 * 4 + iVar2);
        uVar3 = param_1[1];
      }
      *piVar4 = 0;
      uVar5 = uVar5 + 1;
    } while (uVar5 < uVar3);
  }
  *param_1 = 0;
  param_1[3] = 0;
  return;
}

