
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void forget_types(work_stuff * work, work_stuff * work) */

void __regparm3 forget_types(work_stuff *work,work_stuff *work_1)

{
  int iVar1;
  void *__ptr;
  int iVar2;
  
  do {
    iVar2 = work_1->options;
    do {
      if (iVar2 < 1) {
        return;
      }
      iVar1 = work->options;
      iVar2 = iVar2 + -1;
      work_1->options = iVar2;
      __ptr = *(void **)(iVar1 + iVar2 * 4);
    } while (__ptr == (void *)0x0);
    free(__ptr);
    *(undefined4 *)(work->options + iVar2 * 4) = 0;
  } while( true );
}



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

void __regparm3 FUN_001678f0(int *param_1,int *param_2)

{
  int iVar1;
  void *__ptr;
  int iVar2;
  
  do {
    iVar2 = *param_2;
    do {
      if (iVar2 < 1) {
        return;
      }
      iVar1 = *param_1;
      iVar2 = iVar2 + -1;
      *param_2 = iVar2;
      __ptr = *(void **)(iVar1 + iVar2 * 4);
    } while (__ptr == (void *)0x0);
    free(__ptr);
    *(undefined4 *)(*param_1 + iVar2 * 4) = 0;
  } while( true );
}


PUSH EBP
MOV EBP,EAX
PUSH EDI
MOV EDI,EDX
PUSH ESI
PUSH EBX
CALL 0x00032730
ADD EBX,0x19a703
SUB ESP,0x1c
MOV ECX,dword ptr [EDI]
JMP 0x00167926
MOV EDX,dword ptr [EBP]
SUB ECX,0x1
MOV dword ptr [EDI],ECX
LEA EAX,[ECX*0x4 + 0x0]
MOV ESI,dword ptr [EDX + ECX*0x4]
TEST ESI,ESI
JNZ 0x00167938
TEST ECX,ECX
JG 0x00167910
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0xc],EAX
SUB ESP,0xc
PUSH ESI
CALL 0x00026410
MOV EAX,dword ptr [ESP + 0x1c]
MOV EDX,dword ptr [EBP]
ADD ESP,0x10
MOV dword ptr [EDX + EAX*0x1],0x0
JMP 0x00167906
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_001678f0(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  void *__ptr;\n  int iVar2;\n  \n  do {\n    iVar2 = *param_2;\n    do {\n      if (iVar2 < 1) {\n        return;\n      }\n      iVar1 = *param_1;\n      iVar2 = iVar2 + -1;\n      *param_2 = iVar2;\n      __ptr = *(void **)(iVar1 + iVar2 * 4);\n    } while (__ptr == (void *)0x0);\n    free(__ptr);\n    *(undefined4 *)(*param_1 + iVar2 * 4) = 0;\n  } while( true );\n}\n\n" comment (function_definition "void __regparm3 FUN_001678f0(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  void *__ptr;\n  int iVar2;\n  \n  do {\n    iVar2 = *param_2;\n    do {\n      if (iVar2 < 1) {\n        return;\n      }\n      iVar1 = *param_1;\n      iVar2 = iVar2 + -1;\n      *param_2 = iVar2;\n      __ptr = *(void **)(iVar1 + iVar2 * 4);\n    } while (__ptr == (void *)0x0);\n    free(__ptr);\n    *(undefined4 *)(*param_1 + iVar2 * 4) = 0;\n  } while( true );\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_001678f0(int *param_1,int *param_2)" identifier (parameter_list "(int *param_1,int *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  void *__ptr;\n  int iVar2;\n  \n  do {\n    iVar2 = *param_2;\n    do {\n      if (iVar2 < 1) {\n        return;\n      }\n      iVar1 = *param_1;\n      iVar2 = iVar2 + -1;\n      *param_2 = iVar2;\n      __ptr = *(void **)(iVar1 + iVar2 * 4);\n    } while (__ptr == (void *)0x0);\n    free(__ptr);\n    *(undefined4 *)(*param_1 + iVar2 * 4) = 0;\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (do_statement "do {\n    iVar2 = *param_2;\n    do {\n      if (iVar2 < 1) {\n        return;\n      }\n      iVar1 = *param_1;\n      iVar2 = iVar2 + -1;\n      *param_2 = iVar2;\n      __ptr = *(void **)(iVar1 + iVar2 * 4);\n    } while (__ptr == (void *)0x0);\n    free(__ptr);\n    *(undefined4 *)(*param_1 + iVar2 * 4) = 0;\n  } while( true );" do (compound_statement "{\n    iVar2 = *param_2;\n    do {\n      if (iVar2 < 1) {\n        return;\n      }\n      iVar1 = *param_1;\n      iVar2 = iVar2 + -1;\n      *param_2 = iVar2;\n      __ptr = *(void **)(iVar1 + iVar2 * 4);\n    } while (__ptr == (void *)0x0);\n    free(__ptr);\n    *(undefined4 *)(*param_1 + iVar2 * 4) = 0;\n  }" { (expression_statement "iVar2 = *param_2;" (assignment_expression "iVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (do_statement "do {\n      if (iVar2 < 1) {\n        return;\n      }\n      iVar1 = *param_1;\n      iVar2 = iVar2 + -1;\n      *param_2 = iVar2;\n      __ptr = *(void **)(iVar1 + iVar2 * 4);\n    } while (__ptr == (void *)0x0);" do (compound_statement "{\n      if (iVar2 < 1) {\n        return;\n      }\n      iVar1 = *param_1;\n      iVar2 = iVar2 + -1;\n      *param_2 = iVar2;\n      __ptr = *(void **)(iVar1 + iVar2 * 4);\n    }" { (if_statement "if (iVar2 < 1) {\n        return;\n      }" if (parenthesized_expression "(iVar2 < 1)" ( (binary_expression "iVar2 < 1" identifier < number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "*param_2 = iVar2;" (assignment_expression "*param_2 = iVar2" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "__ptr = *(void **)(iVar1 + iVar2 * 4);" (assignment_expression "__ptr = *(void **)(iVar1 + iVar2 * 4)" identifier = (pointer_expression "*(void **)(iVar1 + iVar2 * 4)" * (cast_expression "(void **)(iVar1 + iVar2 * 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + iVar2 * 4)" ( (binary_expression "iVar1 + iVar2 * 4" identifier + (binary_expression "iVar2 * 4" identifier * number_literal)) ))))) ;) }) while (parenthesized_expression "(__ptr == (void *)0x0)" ( (binary_expression "__ptr == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "*(undefined4 *)(*param_1 + iVar2 * 4) = 0;" (assignment_expression "*(undefined4 *)(*param_1 + iVar2 * 4) = 0" (pointer_expression "*(undefined4 *)(*param_1 + iVar2 * 4)" * (cast_expression "(undefined4 *)(*param_1 + iVar2 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + iVar2 * 4)" ( (binary_expression "*param_1 + iVar2 * 4" (pointer_expression "*param_1" * identifier) + (binary_expression "iVar2 * 4" identifier * number_literal)) )))) = number_literal) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: void forget_types(work_stuff * work, work_stuff * work) */\n\nvoid __regparm3 forget_types(work_stuff *work,work_stuff *work_1)\n\n{\n  int iVar1;\n  void *__ptr;\n  int iVar2;\n  \n  do {\n    iVar2 = work_1->options;\n    do {\n      if (iVar2 < 1) {\n        return;\n      }\n      iVar1 = work->options;\n      iVar2 = iVar2 + -1;\n      work_1->options = iVar2;\n      __ptr = *(void **)(iVar1 + iVar2 * 4);\n    } while (__ptr == (void *)0x0);\n    free(__ptr);\n    *(undefined4 *)(work->options + iVar2 * 4) = 0;\n  } while( true );\n}\n\n" comment comment (function_definition "void __regparm3 forget_types(work_stuff *work,work_stuff *work_1)\n\n{\n  int iVar1;\n  void *__ptr;\n  int iVar2;\n  \n  do {\n    iVar2 = work_1->options;\n    do {\n      if (iVar2 < 1) {\n        return;\n      }\n      iVar1 = work->options;\n      iVar2 = iVar2 + -1;\n      work_1->options = iVar2;\n      __ptr = *(void **)(iVar1 + iVar2 * 4);\n    } while (__ptr == (void *)0x0);\n    free(__ptr);\n    *(undefined4 *)(work->options + iVar2 * 4) = 0;\n  } while( true );\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "forget_types(work_stuff *work,work_stuff *work_1)" identifier (parameter_list "(work_stuff *work,work_stuff *work_1)" ( (parameter_declaration "work_stuff *work" type_identifier (pointer_declarator "*work" * identifier)) , (parameter_declaration "work_stuff *work_1" type_identifier (pointer_declarator "*work_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  void *__ptr;\n  int iVar2;\n  \n  do {\n    iVar2 = work_1->options;\n    do {\n      if (iVar2 < 1) {\n        return;\n      }\n      iVar1 = work->options;\n      iVar2 = iVar2 + -1;\n      work_1->options = iVar2;\n      __ptr = *(void **)(iVar1 + iVar2 * 4);\n    } while (__ptr == (void *)0x0);\n    free(__ptr);\n    *(undefined4 *)(work->options + iVar2 * 4) = 0;\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (do_statement "do {\n    iVar2 = work_1->options;\n    do {\n      if (iVar2 < 1) {\n        return;\n      }\n      iVar1 = work->options;\n      iVar2 = iVar2 + -1;\n      work_1->options = iVar2;\n      __ptr = *(void **)(iVar1 + iVar2 * 4);\n    } while (__ptr == (void *)0x0);\n    free(__ptr);\n    *(undefined4 *)(work->options + iVar2 * 4) = 0;\n  } while( true );" do (compound_statement "{\n    iVar2 = work_1->options;\n    do {\n      if (iVar2 < 1) {\n        return;\n      }\n      iVar1 = work->options;\n      iVar2 = iVar2 + -1;\n      work_1->options = iVar2;\n      __ptr = *(void **)(iVar1 + iVar2 * 4);\n    } while (__ptr == (void *)0x0);\n    free(__ptr);\n    *(undefined4 *)(work->options + iVar2 * 4) = 0;\n  }" { (expression_statement "iVar2 = work_1->options;" (assignment_expression "iVar2 = work_1->options" identifier = (field_expression "work_1->options" identifier -> field_identifier)) ;) (do_statement "do {\n      if (iVar2 < 1) {\n        return;\n      }\n      iVar1 = work->options;\n      iVar2 = iVar2 + -1;\n      work_1->options = iVar2;\n      __ptr = *(void **)(iVar1 + iVar2 * 4);\n    } while (__ptr == (void *)0x0);" do (compound_statement "{\n      if (iVar2 < 1) {\n        return;\n      }\n      iVar1 = work->options;\n      iVar2 = iVar2 + -1;\n      work_1->options = iVar2;\n      __ptr = *(void **)(iVar1 + iVar2 * 4);\n    }" { (if_statement "if (iVar2 < 1) {\n        return;\n      }" if (parenthesized_expression "(iVar2 < 1)" ( (binary_expression "iVar2 < 1" identifier < number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "iVar1 = work->options;" (assignment_expression "iVar1 = work->options" identifier = (field_expression "work->options" identifier -> field_identifier)) ;) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "work_1->options = iVar2;" (assignment_expression "work_1->options = iVar2" (field_expression "work_1->options" identifier -> field_identifier) = identifier) ;) (expression_statement "__ptr = *(void **)(iVar1 + iVar2 * 4);" (assignment_expression "__ptr = *(void **)(iVar1 + iVar2 * 4)" identifier = (pointer_expression "*(void **)(iVar1 + iVar2 * 4)" * (cast_expression "(void **)(iVar1 + iVar2 * 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + iVar2 * 4)" ( (binary_expression "iVar1 + iVar2 * 4" identifier + (binary_expression "iVar2 * 4" identifier * number_literal)) ))))) ;) }) while (parenthesized_expression "(__ptr == (void *)0x0)" ( (binary_expression "__ptr == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "*(undefined4 *)(work->options + iVar2 * 4) = 0;" (assignment_expression "*(undefined4 *)(work->options + iVar2 * 4) = 0" (pointer_expression "*(undefined4 *)(work->options + iVar2 * 4)" * (cast_expression "(undefined4 *)(work->options + iVar2 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(work->options + iVar2 * 4)" ( (binary_expression "work->options + iVar2 * 4" (field_expression "work->options" identifier -> field_identifier) + (binary_expression "iVar2 * 4" identifier * number_literal)) )))) = number_literal) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "void __regparm3 FUN_001678f0(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  void *__ptr;\n  int iVar2;\n  \n  do {\n    iVar2 = *param_2;\n    do {\n      if (iVar2 < 1) {\n        return;\n      }\n      iVar1 = *param_1;\n      iVar2 = iVar2 + -1;\n      *param_2 = iVar2;\n      __ptr = *(void **)(iVar1 + iVar2 * 4);\n    } while (__ptr == (void *)0x0);\n    free(__ptr);\n    *(undefined4 *)(*param_1 + iVar2 * 4) = 0;\n  } while( true );\n}\n\n" (function_definition "void __regparm3 FUN_001678f0(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  void *__ptr;\n  int iVar2;\n  \n  do {\n    iVar2 = *param_2;\n    do {\n      if (iVar2 < 1) {\n        return;\n      }\n      iVar1 = *param_1;\n      iVar2 = iVar2 + -1;\n      *param_2 = iVar2;\n      __ptr = *(void **)(iVar1 + iVar2 * 4);\n    } while (__ptr == (void *)0x0);\n    free(__ptr);\n    *(undefined4 *)(*param_1 + iVar2 * 4) = 0;\n  } while( true );\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_001678f0(int *param_1,int *param_2)" identifier (parameter_list "(int *param_1,int *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  void *__ptr;\n  int iVar2;\n  \n  do {\n    iVar2 = *param_2;\n    do {\n      if (iVar2 < 1) {\n        return;\n      }\n      iVar1 = *param_1;\n      iVar2 = iVar2 + -1;\n      *param_2 = iVar2;\n      __ptr = *(void **)(iVar1 + iVar2 * 4);\n    } while (__ptr == (void *)0x0);\n    free(__ptr);\n    *(undefined4 *)(*param_1 + iVar2 * 4) = 0;\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (do_statement "do {\n    iVar2 = *param_2;\n    do {\n      if (iVar2 < 1) {\n        return;\n      }\n      iVar1 = *param_1;\n      iVar2 = iVar2 + -1;\n      *param_2 = iVar2;\n      __ptr = *(void **)(iVar1 + iVar2 * 4);\n    } while (__ptr == (void *)0x0);\n    free(__ptr);\n    *(undefined4 *)(*param_1 + iVar2 * 4) = 0;\n  } while( true );" do (compound_statement "{\n    iVar2 = *param_2;\n    do {\n      if (iVar2 < 1) {\n        return;\n      }\n      iVar1 = *param_1;\n      iVar2 = iVar2 + -1;\n      *param_2 = iVar2;\n      __ptr = *(void **)(iVar1 + iVar2 * 4);\n    } while (__ptr == (void *)0x0);\n    free(__ptr);\n    *(undefined4 *)(*param_1 + iVar2 * 4) = 0;\n  }" { (expression_statement "iVar2 = *param_2;" (assignment_expression "iVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (do_statement "do {\n      if (iVar2 < 1) {\n        return;\n      }\n      iVar1 = *param_1;\n      iVar2 = iVar2 + -1;\n      *param_2 = iVar2;\n      __ptr = *(void **)(iVar1 + iVar2 * 4);\n    } while (__ptr == (void *)0x0);" do (compound_statement "{\n      if (iVar2 < 1) {\n        return;\n      }\n      iVar1 = *param_1;\n      iVar2 = iVar2 + -1;\n      *param_2 = iVar2;\n      __ptr = *(void **)(iVar1 + iVar2 * 4);\n    }" { (if_statement "if (iVar2 < 1) {\n        return;\n      }" if (parenthesized_expression "(iVar2 < 1)" ( (binary_expression "iVar2 < 1" identifier < number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "*param_2 = iVar2;" (assignment_expression "*param_2 = iVar2" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "__ptr = *(void **)(iVar1 + iVar2 * 4);" (assignment_expression "__ptr = *(void **)(iVar1 + iVar2 * 4)" identifier = (pointer_expression "*(void **)(iVar1 + iVar2 * 4)" * (cast_expression "(void **)(iVar1 + iVar2 * 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + iVar2 * 4)" ( (binary_expression "iVar1 + iVar2 * 4" identifier + (binary_expression "iVar2 * 4" identifier * number_literal)) ))))) ;) }) while (parenthesized_expression "(__ptr == (void *)0x0)" ( (binary_expression "__ptr == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "*(undefined4 *)(*param_1 + iVar2 * 4) = 0;" (assignment_expression "*(undefined4 *)(*param_1 + iVar2 * 4) = 0" (pointer_expression "*(undefined4 *)(*param_1 + iVar2 * 4)" * (cast_expression "(undefined4 *)(*param_1 + iVar2 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + iVar2 * 4)" ( (binary_expression "*param_1 + iVar2 * 4" (pointer_expression "*param_1" * identifier) + (binary_expression "iVar2 * 4" identifier * number_literal)) )))) = number_literal) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) ))))) ;) }) while (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + (binary_expression IDENT * LIT)) )))) = LIT) ;) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "void __regparm3 FUN_001678f0(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  void *__ptr;\n  int iVar2;\n  \n  do {\n    iVar2 = *param_2;\n    do {\n      if (iVar2 < 1) {\n        return;\n      }\n      iVar1 = *param_1;\n      iVar2 = iVar2 + -1;\n      *param_2 = iVar2;\n      __ptr = *(void **)(iVar1 + iVar2 * 4);\n    } while (__ptr == (void *)0x0);\n    free(__ptr);\n    *(undefined4 *)(*param_1 + iVar2 * 4) = 0;\n  } while( true );\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_001678f0(int *param_1,int *param_2)" (identifier "FUN_001678f0") (parameter_list "(int *param_1,int *param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  void *__ptr;\n  int iVar2;\n  \n  do {\n    iVar2 = *param_2;\n    do {\n      if (iVar2 < 1) {\n        return;\n      }\n      iVar1 = *param_1;\n      iVar2 = iVar2 + -1;\n      *param_2 = iVar2;\n      __ptr = *(void **)(iVar1 + iVar2 * 4);\n    } while (__ptr == (void *)0x0);\n    free(__ptr);\n    *(undefined4 *)(*param_1 + iVar2 * 4) = 0;\n  } while( true );\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "void *__ptr;" (primitive_type "void") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (do_statement "do {\n    iVar2 = *param_2;\n    do {\n      if (iVar2 < 1) {\n        return;\n      }\n      iVar1 = *param_1;\n      iVar2 = iVar2 + -1;\n      *param_2 = iVar2;\n      __ptr = *(void **)(iVar1 + iVar2 * 4);\n    } while (__ptr == (void *)0x0);\n    free(__ptr);\n    *(undefined4 *)(*param_1 + iVar2 * 4) = 0;\n  } while( true );" (do "do") (compound_statement "{\n    iVar2 = *param_2;\n    do {\n      if (iVar2 < 1) {\n        return;\n      }\n      iVar1 = *param_1;\n      iVar2 = iVar2 + -1;\n      *param_2 = iVar2;\n      __ptr = *(void **)(iVar1 + iVar2 * 4);\n    } while (__ptr == (void *)0x0);\n    free(__ptr);\n    *(undefined4 *)(*param_1 + iVar2 * 4) = 0;\n  }" ({ "{") (expression_statement "iVar2 = *param_2;" (assignment_expression "iVar2 = *param_2" (identifier "iVar2") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (do_statement "do {\n      if (iVar2 < 1) {\n        return;\n      }\n      iVar1 = *param_1;\n      iVar2 = iVar2 + -1;\n      *param_2 = iVar2;\n      __ptr = *(void **)(iVar1 + iVar2 * 4);\n    } while (__ptr == (void *)0x0);" (do "do") (compound_statement "{\n      if (iVar2 < 1) {\n        return;\n      }\n      iVar1 = *param_1;\n      iVar2 = iVar2 + -1;\n      *param_2 = iVar2;\n      __ptr = *(void **)(iVar1 + iVar2 * 4);\n    }" ({ "{") (if_statement "if (iVar2 < 1) {\n        return;\n      }" (if "if") (parenthesized_expression "(iVar2 < 1)" (( "(") (binary_expression "iVar2 < 1" (identifier "iVar2") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" (identifier "iVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "*param_2 = iVar2;" (assignment_expression "*param_2 = iVar2" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "__ptr = *(void **)(iVar1 + iVar2 * 4);" (assignment_expression "__ptr = *(void **)(iVar1 + iVar2 * 4)" (identifier "__ptr") (= "=") (pointer_expression "*(void **)(iVar1 + iVar2 * 4)" (* "*") (cast_expression "(void **)(iVar1 + iVar2 * 4)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar1 + iVar2 * 4)" (( "(") (binary_expression "iVar1 + iVar2 * 4" (identifier "iVar1") (+ "+") (binary_expression "iVar2 * 4" (identifier "iVar2") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(__ptr == (void *)0x0)" (( "(") (binary_expression "__ptr == (void *)0x0" (identifier "__ptr") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (expression_statement "*(undefined4 *)(*param_1 + iVar2 * 4) = 0;" (assignment_expression "*(undefined4 *)(*param_1 + iVar2 * 4) = 0" (pointer_expression "*(undefined4 *)(*param_1 + iVar2 * 4)" (* "*") (cast_expression "(undefined4 *)(*param_1 + iVar2 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + iVar2 * 4)" (( "(") (binary_expression "*param_1 + iVar2 * 4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (binary_expression "iVar2 * 4" (identifier "iVar2") (* "*") (number_literal "4"))) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void forget_types(work_stuff * work, work_stuff * work) */

void __regparm3 function_1(type_1 *work,type_1 *work_1)

{
  int var_2;
  void *var_3;
  int var_1;
  
  do {
    var_1 = work_1->options;
    do {
      if (var_1 < 1) {
        return;
      }
      var_2 = work->options;
      var_1 = var_1 + -1;
      work_1->options = var_1;
      var_3 = *(void **)(var_2 + var_1 * 4);
    } while (var_3 == (void *)0x0);
    var_4(var_3);
    *(type_2 *)(work->options + var_1 * 4) = 0;
  } while( true );
}


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

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

void __regparm3 MASKED(int *param_1,int *param_2)

{
  int iVar1;
  void *__ptr;
  int iVar2;
  
  do {
    iVar2 = *param_2;
    do {
      if (iVar2 < 1) {
        return;
      }
      iVar1 = *param_1;
      iVar2 = iVar2 + -1;
      *param_2 = iVar2;
      __ptr = *(void **)(iVar1 + iVar2 * 4);
    } while (__ptr == (void *)0x0);
    free(__ptr);
    *(undefined4 *)(*param_1 + iVar2 * 4) = 0;
  } while( true );
}

