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

int __regparm3 zlib_freetable(zlib_table **ztab)

{
  zlib_table *ptr;
  zlib_tableentry *ptr_00;
  int iVar1;
  
  ptr = *ztab;
  if (ptr != (zlib_table *)0x0) {
    ptr_00 = ptr->table;
    if (-1 < ptr->mask) {
      iVar1 = 0;
      do {
        if (ptr_00[iVar1].nexttable != (zlib_table *)0x0) {
          zlib_freetable(&ptr_00[iVar1].nexttable);
          ptr_00 = ptr->table;
        }
        iVar1 = iVar1 + 1;
      } while (iVar1 <= ptr->mask);
    }
    safefree(ptr_00);
    ptr->table = (zlib_tableentry *)0x0;
    safefree(ptr);
    *ztab = (zlib_table *)0x0;
  }
  return 0;
}



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

undefined4 __regparm3 FUN_00061880(int *param_1)

{
  int *piVar1;
  int iVar2;
  int iVar3;
  
  piVar1 = (int *)*param_1;
  if (piVar1 != (int *)0x0) {
    iVar2 = piVar1[1];
    if (-1 < *piVar1) {
      iVar3 = 0;
      do {
        if (*(int *)(iVar2 + iVar3 * 8 + 4) != 0) {
          FUN_00061880();
          iVar2 = piVar1[1];
        }
        iVar3 = iVar3 + 1;
      } while (iVar3 <= *piVar1);
    }
    FUN_0001b240(iVar2);
    piVar1[1] = 0;
    FUN_0001b240(piVar1);
    *param_1 = 0;
  }
  return 0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014970
ADD EBX,0x48507
SUB ESP,0xc
MOV EBP,dword ptr [EAX]
TEST EBP,EBP
JZ 0x000618e4
MOV ESI,dword ptr [EBP]
MOV EDI,EAX
MOV EAX,dword ptr [EBP + 0x4]
TEST ESI,ESI
JS 0x000618c3
XOR ESI,ESI
LEA EDX,[EAX + ESI*0x8]
MOV ECX,dword ptr [EDX + 0x4]
TEST ECX,ECX
JZ 0x000618bb
LEA EAX,[EDX + 0x4]
CALL 0x00061880
MOV EAX,dword ptr [EBP + 0x4]
ADD ESI,0x1
CMP dword ptr [EBP],ESI
JGE 0x000618a6
SUB ESP,0xc
PUSH EAX
CALL 0x0001b240
MOV dword ptr [EBP + 0x4],0x0
MOV dword ptr [ESP],EBP
CALL 0x0001b240
MOV dword ptr [EDI],0x0
ADD ESP,0x10
ADD ESP,0xc
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 __regparm3 FUN_00061880(int *param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  \n  piVar1 = (int *)*param_1;\n  if (piVar1 != (int *)0x0) {\n    iVar2 = piVar1[1];\n    if (-1 < *piVar1) {\n      iVar3 = 0;\n      do {\n        if (*(int *)(iVar2 + iVar3 * 8 + 4) != 0) {\n          FUN_00061880();\n          iVar2 = piVar1[1];\n        }\n        iVar3 = iVar3 + 1;\n      } while (iVar3 <= *piVar1);\n    }\n    FUN_0001b240(iVar2);\n    piVar1[1] = 0;\n    FUN_0001b240(piVar1);\n    *param_1 = 0;\n  }\n  return 0;\n}\n\n" comment (function_definition "undefined4 __regparm3 FUN_00061880(int *param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  \n  piVar1 = (int *)*param_1;\n  if (piVar1 != (int *)0x0) {\n    iVar2 = piVar1[1];\n    if (-1 < *piVar1) {\n      iVar3 = 0;\n      do {\n        if (*(int *)(iVar2 + iVar3 * 8 + 4) != 0) {\n          FUN_00061880();\n          iVar2 = piVar1[1];\n        }\n        iVar3 = iVar3 + 1;\n      } while (iVar3 <= *piVar1);\n    }\n    FUN_0001b240(iVar2);\n    piVar1[1] = 0;\n    FUN_0001b240(piVar1);\n    *param_1 = 0;\n  }\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00061880(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  \n  piVar1 = (int *)*param_1;\n  if (piVar1 != (int *)0x0) {\n    iVar2 = piVar1[1];\n    if (-1 < *piVar1) {\n      iVar3 = 0;\n      do {\n        if (*(int *)(iVar2 + iVar3 * 8 + 4) != 0) {\n          FUN_00061880();\n          iVar2 = piVar1[1];\n        }\n        iVar3 = iVar3 + 1;\n      } while (iVar3 <= *piVar1);\n    }\n    FUN_0001b240(iVar2);\n    piVar1[1] = 0;\n    FUN_0001b240(piVar1);\n    *param_1 = 0;\n  }\n  return 0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "piVar1 = (int *)*param_1;" (assignment_expression "piVar1 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (piVar1 != (int *)0x0) {\n    iVar2 = piVar1[1];\n    if (-1 < *piVar1) {\n      iVar3 = 0;\n      do {\n        if (*(int *)(iVar2 + iVar3 * 8 + 4) != 0) {\n          FUN_00061880();\n          iVar2 = piVar1[1];\n        }\n        iVar3 = iVar3 + 1;\n      } while (iVar3 <= *piVar1);\n    }\n    FUN_0001b240(iVar2);\n    piVar1[1] = 0;\n    FUN_0001b240(piVar1);\n    *param_1 = 0;\n  }" if (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar2 = piVar1[1];\n    if (-1 < *piVar1) {\n      iVar3 = 0;\n      do {\n        if (*(int *)(iVar2 + iVar3 * 8 + 4) != 0) {\n          FUN_00061880();\n          iVar2 = piVar1[1];\n        }\n        iVar3 = iVar3 + 1;\n      } while (iVar3 <= *piVar1);\n    }\n    FUN_0001b240(iVar2);\n    piVar1[1] = 0;\n    FUN_0001b240(piVar1);\n    *param_1 = 0;\n  }" { (expression_statement "iVar2 = piVar1[1];" (assignment_expression "iVar2 = piVar1[1]" identifier = (subscript_expression "piVar1[1]" identifier [ number_literal ])) ;) (if_statement "if (-1 < *piVar1) {\n      iVar3 = 0;\n      do {\n        if (*(int *)(iVar2 + iVar3 * 8 + 4) != 0) {\n          FUN_00061880();\n          iVar2 = piVar1[1];\n        }\n        iVar3 = iVar3 + 1;\n      } while (iVar3 <= *piVar1);\n    }" if (parenthesized_expression "(-1 < *piVar1)" ( (binary_expression "-1 < *piVar1" number_literal < (pointer_expression "*piVar1" * identifier)) )) (compound_statement "{\n      iVar3 = 0;\n      do {\n        if (*(int *)(iVar2 + iVar3 * 8 + 4) != 0) {\n          FUN_00061880();\n          iVar2 = piVar1[1];\n        }\n        iVar3 = iVar3 + 1;\n      } while (iVar3 <= *piVar1);\n    }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n        if (*(int *)(iVar2 + iVar3 * 8 + 4) != 0) {\n          FUN_00061880();\n          iVar2 = piVar1[1];\n        }\n        iVar3 = iVar3 + 1;\n      } while (iVar3 <= *piVar1);" do (compound_statement "{\n        if (*(int *)(iVar2 + iVar3 * 8 + 4) != 0) {\n          FUN_00061880();\n          iVar2 = piVar1[1];\n        }\n        iVar3 = iVar3 + 1;\n      }" { (if_statement "if (*(int *)(iVar2 + iVar3 * 8 + 4) != 0) {\n          FUN_00061880();\n          iVar2 = piVar1[1];\n        }" if (parenthesized_expression "(*(int *)(iVar2 + iVar3 * 8 + 4) != 0)" ( (binary_expression "*(int *)(iVar2 + iVar3 * 8 + 4) != 0" (pointer_expression "*(int *)(iVar2 + iVar3 * 8 + 4)" * (cast_expression "(int *)(iVar2 + iVar3 * 8 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar3 * 8 + 4)" ( (binary_expression "iVar2 + iVar3 * 8 + 4" (binary_expression "iVar2 + iVar3 * 8" identifier + (binary_expression "iVar3 * 8" identifier * number_literal)) + number_literal) )))) != number_literal) )) (compound_statement "{\n          FUN_00061880();\n          iVar2 = piVar1[1];\n        }" { (expression_statement "FUN_00061880();" (call_expression "FUN_00061880()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar2 = piVar1[1];" (assignment_expression "iVar2 = piVar1[1]" identifier = (subscript_expression "piVar1[1]" identifier [ number_literal ])) ;) })) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar3 <= *piVar1)" ( (binary_expression "iVar3 <= *piVar1" identifier <= (pointer_expression "*piVar1" * identifier)) )) ;) })) (expression_statement "FUN_0001b240(iVar2);" (call_expression "FUN_0001b240(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) (expression_statement "piVar1[1] = 0;" (assignment_expression "piVar1[1] = 0" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_0001b240(piVar1);" (call_expression "FUN_0001b240(piVar1)" identifier (argument_list "(piVar1)" ( identifier ))) ;) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 zlib_freetable(zlib_table **ztab)\n\n{\n  zlib_table *ptr;\n  zlib_tableentry *ptr_00;\n  int iVar1;\n  \n  ptr = *ztab;\n  if (ptr != (zlib_table *)0x0) {\n    ptr_00 = ptr->table;\n    if (-1 < ptr->mask) {\n      iVar1 = 0;\n      do {\n        if (ptr_00[iVar1].nexttable != (zlib_table *)0x0) {\n          zlib_freetable(&ptr_00[iVar1].nexttable);\n          ptr_00 = ptr->table;\n        }\n        iVar1 = iVar1 + 1;\n      } while (iVar1 <= ptr->mask);\n    }\n    safefree(ptr_00);\n    ptr->table = (zlib_tableentry *)0x0;\n    safefree(ptr);\n    *ztab = (zlib_table *)0x0;\n  }\n  return 0;\n}\n\n" comment (function_definition "int __regparm3 zlib_freetable(zlib_table **ztab)\n\n{\n  zlib_table *ptr;\n  zlib_tableentry *ptr_00;\n  int iVar1;\n  \n  ptr = *ztab;\n  if (ptr != (zlib_table *)0x0) {\n    ptr_00 = ptr->table;\n    if (-1 < ptr->mask) {\n      iVar1 = 0;\n      do {\n        if (ptr_00[iVar1].nexttable != (zlib_table *)0x0) {\n          zlib_freetable(&ptr_00[iVar1].nexttable);\n          ptr_00 = ptr->table;\n        }\n        iVar1 = iVar1 + 1;\n      } while (iVar1 <= ptr->mask);\n    }\n    safefree(ptr_00);\n    ptr->table = (zlib_tableentry *)0x0;\n    safefree(ptr);\n    *ztab = (zlib_table *)0x0;\n  }\n  return 0;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "zlib_freetable(zlib_table **ztab)" identifier (parameter_list "(zlib_table **ztab)" ( (parameter_declaration "zlib_table **ztab" type_identifier (pointer_declarator "**ztab" * (pointer_declarator "*ztab" * identifier))) ))) (compound_statement "{\n  zlib_table *ptr;\n  zlib_tableentry *ptr_00;\n  int iVar1;\n  \n  ptr = *ztab;\n  if (ptr != (zlib_table *)0x0) {\n    ptr_00 = ptr->table;\n    if (-1 < ptr->mask) {\n      iVar1 = 0;\n      do {\n        if (ptr_00[iVar1].nexttable != (zlib_table *)0x0) {\n          zlib_freetable(&ptr_00[iVar1].nexttable);\n          ptr_00 = ptr->table;\n        }\n        iVar1 = iVar1 + 1;\n      } while (iVar1 <= ptr->mask);\n    }\n    safefree(ptr_00);\n    ptr->table = (zlib_tableentry *)0x0;\n    safefree(ptr);\n    *ztab = (zlib_table *)0x0;\n  }\n  return 0;\n}" { (declaration "zlib_table *ptr;" type_identifier (pointer_declarator "*ptr" * identifier) ;) (declaration "zlib_tableentry *ptr_00;" type_identifier (pointer_declarator "*ptr_00" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "ptr = *ztab;" (assignment_expression "ptr = *ztab" identifier = (pointer_expression "*ztab" * identifier)) ;) (if_statement "if (ptr != (zlib_table *)0x0) {\n    ptr_00 = ptr->table;\n    if (-1 < ptr->mask) {\n      iVar1 = 0;\n      do {\n        if (ptr_00[iVar1].nexttable != (zlib_table *)0x0) {\n          zlib_freetable(&ptr_00[iVar1].nexttable);\n          ptr_00 = ptr->table;\n        }\n        iVar1 = iVar1 + 1;\n      } while (iVar1 <= ptr->mask);\n    }\n    safefree(ptr_00);\n    ptr->table = (zlib_tableentry *)0x0;\n    safefree(ptr);\n    *ztab = (zlib_table *)0x0;\n  }" if (parenthesized_expression "(ptr != (zlib_table *)0x0)" ( (binary_expression "ptr != (zlib_table *)0x0" identifier != (cast_expression "(zlib_table *)0x0" ( (type_descriptor "zlib_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    ptr_00 = ptr->table;\n    if (-1 < ptr->mask) {\n      iVar1 = 0;\n      do {\n        if (ptr_00[iVar1].nexttable != (zlib_table *)0x0) {\n          zlib_freetable(&ptr_00[iVar1].nexttable);\n          ptr_00 = ptr->table;\n        }\n        iVar1 = iVar1 + 1;\n      } while (iVar1 <= ptr->mask);\n    }\n    safefree(ptr_00);\n    ptr->table = (zlib_tableentry *)0x0;\n    safefree(ptr);\n    *ztab = (zlib_table *)0x0;\n  }" { (expression_statement "ptr_00 = ptr->table;" (assignment_expression "ptr_00 = ptr->table" identifier = (field_expression "ptr->table" identifier -> field_identifier)) ;) (if_statement "if (-1 < ptr->mask) {\n      iVar1 = 0;\n      do {\n        if (ptr_00[iVar1].nexttable != (zlib_table *)0x0) {\n          zlib_freetable(&ptr_00[iVar1].nexttable);\n          ptr_00 = ptr->table;\n        }\n        iVar1 = iVar1 + 1;\n      } while (iVar1 <= ptr->mask);\n    }" if (parenthesized_expression "(-1 < ptr->mask)" ( (binary_expression "-1 < ptr->mask" number_literal < (field_expression "ptr->mask" identifier -> field_identifier)) )) (compound_statement "{\n      iVar1 = 0;\n      do {\n        if (ptr_00[iVar1].nexttable != (zlib_table *)0x0) {\n          zlib_freetable(&ptr_00[iVar1].nexttable);\n          ptr_00 = ptr->table;\n        }\n        iVar1 = iVar1 + 1;\n      } while (iVar1 <= ptr->mask);\n    }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n        if (ptr_00[iVar1].nexttable != (zlib_table *)0x0) {\n          zlib_freetable(&ptr_00[iVar1].nexttable);\n          ptr_00 = ptr->table;\n        }\n        iVar1 = iVar1 + 1;\n      } while (iVar1 <= ptr->mask);" do (compound_statement "{\n        if (ptr_00[iVar1].nexttable != (zlib_table *)0x0) {\n          zlib_freetable(&ptr_00[iVar1].nexttable);\n          ptr_00 = ptr->table;\n        }\n        iVar1 = iVar1 + 1;\n      }" { (if_statement "if (ptr_00[iVar1].nexttable != (zlib_table *)0x0) {\n          zlib_freetable(&ptr_00[iVar1].nexttable);\n          ptr_00 = ptr->table;\n        }" if (parenthesized_expression "(ptr_00[iVar1].nexttable != (zlib_table *)0x0)" ( (binary_expression "ptr_00[iVar1].nexttable != (zlib_table *)0x0" (field_expression "ptr_00[iVar1].nexttable" (subscript_expression "ptr_00[iVar1]" identifier [ identifier ]) . field_identifier) != (cast_expression "(zlib_table *)0x0" ( (type_descriptor "zlib_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          zlib_freetable(&ptr_00[iVar1].nexttable);\n          ptr_00 = ptr->table;\n        }" { (expression_statement "zlib_freetable(&ptr_00[iVar1].nexttable);" (call_expression "zlib_freetable(&ptr_00[iVar1].nexttable)" identifier (argument_list "(&ptr_00[iVar1].nexttable)" ( (pointer_expression "&ptr_00[iVar1].nexttable" & (field_expression "ptr_00[iVar1].nexttable" (subscript_expression "ptr_00[iVar1]" identifier [ identifier ]) . field_identifier)) ))) ;) (expression_statement "ptr_00 = ptr->table;" (assignment_expression "ptr_00 = ptr->table" identifier = (field_expression "ptr->table" identifier -> field_identifier)) ;) })) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar1 <= ptr->mask)" ( (binary_expression "iVar1 <= ptr->mask" identifier <= (field_expression "ptr->mask" identifier -> field_identifier)) )) ;) })) (expression_statement "safefree(ptr_00);" (call_expression "safefree(ptr_00)" identifier (argument_list "(ptr_00)" ( identifier ))) ;) (expression_statement "ptr->table = (zlib_tableentry *)0x0;" (assignment_expression "ptr->table = (zlib_tableentry *)0x0" (field_expression "ptr->table" identifier -> field_identifier) = (cast_expression "(zlib_tableentry *)0x0" ( (type_descriptor "zlib_tableentry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "safefree(ptr);" (call_expression "safefree(ptr)" identifier (argument_list "(ptr)" ( identifier ))) ;) (expression_statement "*ztab = (zlib_table *)0x0;" (assignment_expression "*ztab = (zlib_table *)0x0" (pointer_expression "*ztab" * identifier) = (cast_expression "(zlib_table *)0x0" ( (type_descriptor "zlib_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 __regparm3 FUN_00061880(int *param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  \n  piVar1 = (int *)*param_1;\n  if (piVar1 != (int *)0x0) {\n    iVar2 = piVar1[1];\n    if (-1 < *piVar1) {\n      iVar3 = 0;\n      do {\n        if (*(int *)(iVar2 + iVar3 * 8 + 4) != 0) {\n          FUN_00061880();\n          iVar2 = piVar1[1];\n        }\n        iVar3 = iVar3 + 1;\n      } while (iVar3 <= *piVar1);\n    }\n    FUN_0001b240(iVar2);\n    piVar1[1] = 0;\n    FUN_0001b240(piVar1);\n    *param_1 = 0;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_00061880(int *param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  \n  piVar1 = (int *)*param_1;\n  if (piVar1 != (int *)0x0) {\n    iVar2 = piVar1[1];\n    if (-1 < *piVar1) {\n      iVar3 = 0;\n      do {\n        if (*(int *)(iVar2 + iVar3 * 8 + 4) != 0) {\n          FUN_00061880();\n          iVar2 = piVar1[1];\n        }\n        iVar3 = iVar3 + 1;\n      } while (iVar3 <= *piVar1);\n    }\n    FUN_0001b240(iVar2);\n    piVar1[1] = 0;\n    FUN_0001b240(piVar1);\n    *param_1 = 0;\n  }\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00061880(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  \n  piVar1 = (int *)*param_1;\n  if (piVar1 != (int *)0x0) {\n    iVar2 = piVar1[1];\n    if (-1 < *piVar1) {\n      iVar3 = 0;\n      do {\n        if (*(int *)(iVar2 + iVar3 * 8 + 4) != 0) {\n          FUN_00061880();\n          iVar2 = piVar1[1];\n        }\n        iVar3 = iVar3 + 1;\n      } while (iVar3 <= *piVar1);\n    }\n    FUN_0001b240(iVar2);\n    piVar1[1] = 0;\n    FUN_0001b240(piVar1);\n    *param_1 = 0;\n  }\n  return 0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "piVar1 = (int *)*param_1;" (assignment_expression "piVar1 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (piVar1 != (int *)0x0) {\n    iVar2 = piVar1[1];\n    if (-1 < *piVar1) {\n      iVar3 = 0;\n      do {\n        if (*(int *)(iVar2 + iVar3 * 8 + 4) != 0) {\n          FUN_00061880();\n          iVar2 = piVar1[1];\n        }\n        iVar3 = iVar3 + 1;\n      } while (iVar3 <= *piVar1);\n    }\n    FUN_0001b240(iVar2);\n    piVar1[1] = 0;\n    FUN_0001b240(piVar1);\n    *param_1 = 0;\n  }" if (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar2 = piVar1[1];\n    if (-1 < *piVar1) {\n      iVar3 = 0;\n      do {\n        if (*(int *)(iVar2 + iVar3 * 8 + 4) != 0) {\n          FUN_00061880();\n          iVar2 = piVar1[1];\n        }\n        iVar3 = iVar3 + 1;\n      } while (iVar3 <= *piVar1);\n    }\n    FUN_0001b240(iVar2);\n    piVar1[1] = 0;\n    FUN_0001b240(piVar1);\n    *param_1 = 0;\n  }" { (expression_statement "iVar2 = piVar1[1];" (assignment_expression "iVar2 = piVar1[1]" identifier = (subscript_expression "piVar1[1]" identifier [ number_literal ])) ;) (if_statement "if (-1 < *piVar1) {\n      iVar3 = 0;\n      do {\n        if (*(int *)(iVar2 + iVar3 * 8 + 4) != 0) {\n          FUN_00061880();\n          iVar2 = piVar1[1];\n        }\n        iVar3 = iVar3 + 1;\n      } while (iVar3 <= *piVar1);\n    }" if (parenthesized_expression "(-1 < *piVar1)" ( (binary_expression "-1 < *piVar1" number_literal < (pointer_expression "*piVar1" * identifier)) )) (compound_statement "{\n      iVar3 = 0;\n      do {\n        if (*(int *)(iVar2 + iVar3 * 8 + 4) != 0) {\n          FUN_00061880();\n          iVar2 = piVar1[1];\n        }\n        iVar3 = iVar3 + 1;\n      } while (iVar3 <= *piVar1);\n    }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n        if (*(int *)(iVar2 + iVar3 * 8 + 4) != 0) {\n          FUN_00061880();\n          iVar2 = piVar1[1];\n        }\n        iVar3 = iVar3 + 1;\n      } while (iVar3 <= *piVar1);" do (compound_statement "{\n        if (*(int *)(iVar2 + iVar3 * 8 + 4) != 0) {\n          FUN_00061880();\n          iVar2 = piVar1[1];\n        }\n        iVar3 = iVar3 + 1;\n      }" { (if_statement "if (*(int *)(iVar2 + iVar3 * 8 + 4) != 0) {\n          FUN_00061880();\n          iVar2 = piVar1[1];\n        }" if (parenthesized_expression "(*(int *)(iVar2 + iVar3 * 8 + 4) != 0)" ( (binary_expression "*(int *)(iVar2 + iVar3 * 8 + 4) != 0" (pointer_expression "*(int *)(iVar2 + iVar3 * 8 + 4)" * (cast_expression "(int *)(iVar2 + iVar3 * 8 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar3 * 8 + 4)" ( (binary_expression "iVar2 + iVar3 * 8 + 4" (binary_expression "iVar2 + iVar3 * 8" identifier + (binary_expression "iVar3 * 8" identifier * number_literal)) + number_literal) )))) != number_literal) )) (compound_statement "{\n          FUN_00061880();\n          iVar2 = piVar1[1];\n        }" { (expression_statement "FUN_00061880();" (call_expression "FUN_00061880()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar2 = piVar1[1];" (assignment_expression "iVar2 = piVar1[1]" identifier = (subscript_expression "piVar1[1]" identifier [ number_literal ])) ;) })) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar3 <= *piVar1)" ( (binary_expression "iVar3 <= *piVar1" identifier <= (pointer_expression "*piVar1" * identifier)) )) ;) })) (expression_statement "FUN_0001b240(iVar2);" (call_expression "FUN_0001b240(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) (expression_statement "piVar1[1] = 0;" (assignment_expression "piVar1[1] = 0" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_0001b240(piVar1);" (call_expression "FUN_0001b240(piVar1)" identifier (argument_list "(piVar1)" ( identifier ))) ;) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) })) (return_statement "return 0;" return number_literal ;) })))
(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 ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression IDENT * LIT)) + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT <= (pointer_expression * IDENT)) )) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 __regparm3 FUN_00061880(int *param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  \n  piVar1 = (int *)*param_1;\n  if (piVar1 != (int *)0x0) {\n    iVar2 = piVar1[1];\n    if (-1 < *piVar1) {\n      iVar3 = 0;\n      do {\n        if (*(int *)(iVar2 + iVar3 * 8 + 4) != 0) {\n          FUN_00061880();\n          iVar2 = piVar1[1];\n        }\n        iVar3 = iVar3 + 1;\n      } while (iVar3 <= *piVar1);\n    }\n    FUN_0001b240(iVar2);\n    piVar1[1] = 0;\n    FUN_0001b240(piVar1);\n    *param_1 = 0;\n  }\n  return 0;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00061880(int *param_1)" (identifier "FUN_00061880") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  \n  piVar1 = (int *)*param_1;\n  if (piVar1 != (int *)0x0) {\n    iVar2 = piVar1[1];\n    if (-1 < *piVar1) {\n      iVar3 = 0;\n      do {\n        if (*(int *)(iVar2 + iVar3 * 8 + 4) != 0) {\n          FUN_00061880();\n          iVar2 = piVar1[1];\n        }\n        iVar3 = iVar3 + 1;\n      } while (iVar3 <= *piVar1);\n    }\n    FUN_0001b240(iVar2);\n    piVar1[1] = 0;\n    FUN_0001b240(piVar1);\n    *param_1 = 0;\n  }\n  return 0;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "piVar1 = (int *)*param_1;" (assignment_expression "piVar1 = (int *)*param_1" (identifier "piVar1") (= "=") (cast_expression "(int *)*param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (if_statement "if (piVar1 != (int *)0x0) {\n    iVar2 = piVar1[1];\n    if (-1 < *piVar1) {\n      iVar3 = 0;\n      do {\n        if (*(int *)(iVar2 + iVar3 * 8 + 4) != 0) {\n          FUN_00061880();\n          iVar2 = piVar1[1];\n        }\n        iVar3 = iVar3 + 1;\n      } while (iVar3 <= *piVar1);\n    }\n    FUN_0001b240(iVar2);\n    piVar1[1] = 0;\n    FUN_0001b240(piVar1);\n    *param_1 = 0;\n  }" (if "if") (parenthesized_expression "(piVar1 != (int *)0x0)" (( "(") (binary_expression "piVar1 != (int *)0x0" (identifier "piVar1") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    iVar2 = piVar1[1];\n    if (-1 < *piVar1) {\n      iVar3 = 0;\n      do {\n        if (*(int *)(iVar2 + iVar3 * 8 + 4) != 0) {\n          FUN_00061880();\n          iVar2 = piVar1[1];\n        }\n        iVar3 = iVar3 + 1;\n      } while (iVar3 <= *piVar1);\n    }\n    FUN_0001b240(iVar2);\n    piVar1[1] = 0;\n    FUN_0001b240(piVar1);\n    *param_1 = 0;\n  }" ({ "{") (expression_statement "iVar2 = piVar1[1];" (assignment_expression "iVar2 = piVar1[1]" (identifier "iVar2") (= "=") (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if (-1 < *piVar1) {\n      iVar3 = 0;\n      do {\n        if (*(int *)(iVar2 + iVar3 * 8 + 4) != 0) {\n          FUN_00061880();\n          iVar2 = piVar1[1];\n        }\n        iVar3 = iVar3 + 1;\n      } while (iVar3 <= *piVar1);\n    }" (if "if") (parenthesized_expression "(-1 < *piVar1)" (( "(") (binary_expression "-1 < *piVar1" (number_literal "-1") (< "<") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) () ")")) (compound_statement "{\n      iVar3 = 0;\n      do {\n        if (*(int *)(iVar2 + iVar3 * 8 + 4) != 0) {\n          FUN_00061880();\n          iVar2 = piVar1[1];\n        }\n        iVar3 = iVar3 + 1;\n      } while (iVar3 <= *piVar1);\n    }" ({ "{") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n        if (*(int *)(iVar2 + iVar3 * 8 + 4) != 0) {\n          FUN_00061880();\n          iVar2 = piVar1[1];\n        }\n        iVar3 = iVar3 + 1;\n      } while (iVar3 <= *piVar1);" (do "do") (compound_statement "{\n        if (*(int *)(iVar2 + iVar3 * 8 + 4) != 0) {\n          FUN_00061880();\n          iVar2 = piVar1[1];\n        }\n        iVar3 = iVar3 + 1;\n      }" ({ "{") (if_statement "if (*(int *)(iVar2 + iVar3 * 8 + 4) != 0) {\n          FUN_00061880();\n          iVar2 = piVar1[1];\n        }" (if "if") (parenthesized_expression "(*(int *)(iVar2 + iVar3 * 8 + 4) != 0)" (( "(") (binary_expression "*(int *)(iVar2 + iVar3 * 8 + 4) != 0" (pointer_expression "*(int *)(iVar2 + iVar3 * 8 + 4)" (* "*") (cast_expression "(int *)(iVar2 + iVar3 * 8 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + iVar3 * 8 + 4)" (( "(") (binary_expression "iVar2 + iVar3 * 8 + 4" (binary_expression "iVar2 + iVar3 * 8" (identifier "iVar2") (+ "+") (binary_expression "iVar3 * 8" (identifier "iVar3") (* "*") (number_literal "8"))) (+ "+") (number_literal "4")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          FUN_00061880();\n          iVar2 = piVar1[1];\n        }" ({ "{") (expression_statement "FUN_00061880();" (call_expression "FUN_00061880()" (identifier "FUN_00061880") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar2 = piVar1[1];" (assignment_expression "iVar2 = piVar1[1]" (identifier "iVar2") (= "=") (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}"))) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar3 <= *piVar1)" (( "(") (binary_expression "iVar3 <= *piVar1" (identifier "iVar3") (<= "<=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) () ")")) (; ";")) (} "}"))) (expression_statement "FUN_0001b240(iVar2);" (call_expression "FUN_0001b240(iVar2)" (identifier "FUN_0001b240") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";")) (expression_statement "piVar1[1] = 0;" (assignment_expression "piVar1[1] = 0" (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_0001b240(piVar1);" (call_expression "FUN_0001b240(piVar1)" (identifier "FUN_0001b240") (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")"))) (; ";")) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

int __regparm3 function_1(type_1 **ztab)

{
  type_1 *var_1;
  type_2 *ptr_00;
  int var_2;
  
  var_1 = *ztab;
  if (var_1 != (type_1 *)0x0) {
    ptr_00 = var_1->table;
    if (-1 < var_1->mask) {
      var_2 = 0;
      do {
        if (ptr_00[var_2].nexttable != (type_1 *)0x0) {
          function_1(&ptr_00[var_2].nexttable);
          ptr_00 = var_1->table;
        }
        var_2 = var_2 + 1;
      } while (var_2 <= var_1->mask);
    }
    var_3(ptr_00);
    var_1->table = (type_2 *)0x0;
    var_3(var_1);
    *ztab = (type_1 *)0x0;
  }
  return 0;
}


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

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

undefined4 __regparm3 MASKED(int *param_1)

{
  int *piVar1;
  int iVar2;
  int iVar3;
  
  piVar1 = (int *)*param_1;
  if (piVar1 != (int *)0x0) {
    iVar2 = piVar1[1];
    if (-1 < *piVar1) {
      iVar3 = 0;
      do {
        if (*(int *)(iVar2 + iVar3 * 8 + 4) != 0) {
          MASKED();
          iVar2 = piVar1[1];
        }
        iVar3 = iVar3 + 1;
      } while (iVar3 <= *piVar1);
    }
    FUN_0001b240(iVar2);
    piVar1[1] = 0;
    FUN_0001b240(piVar1);
    *param_1 = 0;
  }
  return 0;
}

