
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void dlg_cleanup(dlgparam * dp, dlgparam * dp) */

void __regparm3 dlg_cleanup(dlgparam *dp,dlgparam *dp_1)

{
  void *e;
  
  freetree234(dp->byctrl);
  dp->byctrl = (tree234 *)0x0;
  while( true ) {
    e = index234(dp_1->byctrl,0);
    if (e == (void *)0x0) break;
    del234(dp_1->byctrl,e);
    safefree(*(void **)((int)e + 8));
    safefree(e);
  }
  freetree234(dp_1->byctrl);
  dp_1->byctrl = (tree234 *)0x0;
  return;
}



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

void __regparm3 FUN_00085030(undefined4 *param_1,undefined4 *param_2)

{
  int iVar1;
  
  FUN_000814e0(*param_1);
  *param_1 = 0;
  while( true ) {
    iVar1 = FUN_00081590(*param_2,0);
    if (iVar1 == 0) break;
    FUN_00081850(*param_2,iVar1);
    FUN_0002f010(*(undefined4 *)(iVar1 + 8));
    FUN_0002f010(iVar1);
  }
  FUN_000814e0(*param_2);
  *param_2 = 0;
  return;
}


PUSH EDI
MOV EDI,EDX
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x0001c4f0
ADD EBX,0x8b714
SUB ESP,0xc
PUSH dword ptr [EAX]
CALL 0x000814e0
MOV dword ptr [ESI],0x0
ADD ESP,0x10
JMP 0x0008507f
SUB ESP,0x8
PUSH ESI
PUSH dword ptr [EDI]
CALL 0x00081850
POP EAX
PUSH dword ptr [ESI + 0x8]
CALL 0x0002f010
MOV dword ptr [ESP],ESI
CALL 0x0002f010
ADD ESP,0x10
SUB ESP,0x8
PUSH 0x0
PUSH dword ptr [EDI]
CALL 0x00081590
ADD ESP,0x10
MOV ESI,EAX
TEST EAX,EAX
JNZ 0x00085060
SUB ESP,0xc
PUSH dword ptr [EDI]
CALL 0x000814e0
ADD ESP,0x10
MOV dword ptr [EDI],0x0
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_00085030(undefined4 *param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  \n  FUN_000814e0(*param_1);\n  *param_1 = 0;\n  while( true ) {\n    iVar1 = FUN_00081590(*param_2,0);\n    if (iVar1 == 0) break;\n    FUN_00081850(*param_2,iVar1);\n    FUN_0002f010(*(undefined4 *)(iVar1 + 8));\n    FUN_0002f010(iVar1);\n  }\n  FUN_000814e0(*param_2);\n  *param_2 = 0;\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_00085030(undefined4 *param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  \n  FUN_000814e0(*param_1);\n  *param_1 = 0;\n  while( true ) {\n    iVar1 = FUN_00081590(*param_2,0);\n    if (iVar1 == 0) break;\n    FUN_00081850(*param_2,iVar1);\n    FUN_0002f010(*(undefined4 *)(iVar1 + 8));\n    FUN_0002f010(iVar1);\n  }\n  FUN_000814e0(*param_2);\n  *param_2 = 0;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00085030(undefined4 *param_1,undefined4 *param_2)" identifier (parameter_list "(undefined4 *param_1,undefined4 *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  FUN_000814e0(*param_1);\n  *param_1 = 0;\n  while( true ) {\n    iVar1 = FUN_00081590(*param_2,0);\n    if (iVar1 == 0) break;\n    FUN_00081850(*param_2,iVar1);\n    FUN_0002f010(*(undefined4 *)(iVar1 + 8));\n    FUN_0002f010(iVar1);\n  }\n  FUN_000814e0(*param_2);\n  *param_2 = 0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "FUN_000814e0(*param_1);" (call_expression "FUN_000814e0(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) ))) ;) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (while_statement "while( true ) {\n    iVar1 = FUN_00081590(*param_2,0);\n    if (iVar1 == 0) break;\n    FUN_00081850(*param_2,iVar1);\n    FUN_0002f010(*(undefined4 *)(iVar1 + 8));\n    FUN_0002f010(iVar1);\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    iVar1 = FUN_00081590(*param_2,0);\n    if (iVar1 == 0) break;\n    FUN_00081850(*param_2,iVar1);\n    FUN_0002f010(*(undefined4 *)(iVar1 + 8));\n    FUN_0002f010(iVar1);\n  }" { (expression_statement "iVar1 = FUN_00081590(*param_2,0);" (assignment_expression "iVar1 = FUN_00081590(*param_2,0)" identifier = (call_expression "FUN_00081590(*param_2,0)" identifier (argument_list "(*param_2,0)" ( (pointer_expression "*param_2" * identifier) , number_literal )))) ;) (if_statement "if (iVar1 == 0) break;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "FUN_00081850(*param_2,iVar1);" (call_expression "FUN_00081850(*param_2,iVar1)" identifier (argument_list "(*param_2,iVar1)" ( (pointer_expression "*param_2" * identifier) , identifier ))) ;) (expression_statement "FUN_0002f010(*(undefined4 *)(iVar1 + 8));" (call_expression "FUN_0002f010(*(undefined4 *)(iVar1 + 8))" identifier (argument_list "(*(undefined4 *)(iVar1 + 8))" ( (pointer_expression "*(undefined4 *)(iVar1 + 8)" * (cast_expression "(undefined4 *)(iVar1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_0002f010(iVar1);" (call_expression "FUN_0002f010(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) })) (expression_statement "FUN_000814e0(*param_2);" (call_expression "FUN_000814e0(*param_2)" identifier (argument_list "(*param_2)" ( (pointer_expression "*param_2" * identifier) ))) ;) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: void dlg_cleanup(dlgparam * dp, dlgparam * dp) */\n\nvoid __regparm3 dlg_cleanup(dlgparam *dp,dlgparam *dp_1)\n\n{\n  void *e;\n  \n  freetree234(dp->byctrl);\n  dp->byctrl = (tree234 *)0x0;\n  while( true ) {\n    e = index234(dp_1->byctrl,0);\n    if (e == (void *)0x0) break;\n    del234(dp_1->byctrl,e);\n    safefree(*(void **)((int)e + 8));\n    safefree(e);\n  }\n  freetree234(dp_1->byctrl);\n  dp_1->byctrl = (tree234 *)0x0;\n  return;\n}\n\n" comment comment (function_definition "void __regparm3 dlg_cleanup(dlgparam *dp,dlgparam *dp_1)\n\n{\n  void *e;\n  \n  freetree234(dp->byctrl);\n  dp->byctrl = (tree234 *)0x0;\n  while( true ) {\n    e = index234(dp_1->byctrl,0);\n    if (e == (void *)0x0) break;\n    del234(dp_1->byctrl,e);\n    safefree(*(void **)((int)e + 8));\n    safefree(e);\n  }\n  freetree234(dp_1->byctrl);\n  dp_1->byctrl = (tree234 *)0x0;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "dlg_cleanup(dlgparam *dp,dlgparam *dp_1)" identifier (parameter_list "(dlgparam *dp,dlgparam *dp_1)" ( (parameter_declaration "dlgparam *dp" type_identifier (pointer_declarator "*dp" * identifier)) , (parameter_declaration "dlgparam *dp_1" type_identifier (pointer_declarator "*dp_1" * identifier)) ))) (compound_statement "{\n  void *e;\n  \n  freetree234(dp->byctrl);\n  dp->byctrl = (tree234 *)0x0;\n  while( true ) {\n    e = index234(dp_1->byctrl,0);\n    if (e == (void *)0x0) break;\n    del234(dp_1->byctrl,e);\n    safefree(*(void **)((int)e + 8));\n    safefree(e);\n  }\n  freetree234(dp_1->byctrl);\n  dp_1->byctrl = (tree234 *)0x0;\n  return;\n}" { (declaration "void *e;" primitive_type (pointer_declarator "*e" * identifier) ;) (expression_statement "freetree234(dp->byctrl);" (call_expression "freetree234(dp->byctrl)" identifier (argument_list "(dp->byctrl)" ( (field_expression "dp->byctrl" identifier -> field_identifier) ))) ;) (expression_statement "dp->byctrl = (tree234 *)0x0;" (assignment_expression "dp->byctrl = (tree234 *)0x0" (field_expression "dp->byctrl" identifier -> field_identifier) = (cast_expression "(tree234 *)0x0" ( (type_descriptor "tree234 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (while_statement "while( true ) {\n    e = index234(dp_1->byctrl,0);\n    if (e == (void *)0x0) break;\n    del234(dp_1->byctrl,e);\n    safefree(*(void **)((int)e + 8));\n    safefree(e);\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    e = index234(dp_1->byctrl,0);\n    if (e == (void *)0x0) break;\n    del234(dp_1->byctrl,e);\n    safefree(*(void **)((int)e + 8));\n    safefree(e);\n  }" { (expression_statement "e = index234(dp_1->byctrl,0);" (assignment_expression "e = index234(dp_1->byctrl,0)" identifier = (call_expression "index234(dp_1->byctrl,0)" identifier (argument_list "(dp_1->byctrl,0)" ( (field_expression "dp_1->byctrl" identifier -> field_identifier) , number_literal )))) ;) (if_statement "if (e == (void *)0x0) break;" if (parenthesized_expression "(e == (void *)0x0)" ( (binary_expression "e == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "del234(dp_1->byctrl,e);" (call_expression "del234(dp_1->byctrl,e)" identifier (argument_list "(dp_1->byctrl,e)" ( (field_expression "dp_1->byctrl" identifier -> field_identifier) , identifier ))) ;) (expression_statement "safefree(*(void **)((int)e + 8));" (call_expression "safefree(*(void **)((int)e + 8))" identifier (argument_list "(*(void **)((int)e + 8))" ( (pointer_expression "*(void **)((int)e + 8)" * (cast_expression "(void **)((int)e + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)e + 8)" ( (binary_expression "(int)e + 8" (cast_expression "(int)e" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) ;) (expression_statement "safefree(e);" (call_expression "safefree(e)" identifier (argument_list "(e)" ( identifier ))) ;) })) (expression_statement "freetree234(dp_1->byctrl);" (call_expression "freetree234(dp_1->byctrl)" identifier (argument_list "(dp_1->byctrl)" ( (field_expression "dp_1->byctrl" identifier -> field_identifier) ))) ;) (expression_statement "dp_1->byctrl = (tree234 *)0x0;" (assignment_expression "dp_1->byctrl = (tree234 *)0x0" (field_expression "dp_1->byctrl" identifier -> field_identifier) = (cast_expression "(tree234 *)0x0" ( (type_descriptor "tree234 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_00085030(undefined4 *param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  \n  FUN_000814e0(*param_1);\n  *param_1 = 0;\n  while( true ) {\n    iVar1 = FUN_00081590(*param_2,0);\n    if (iVar1 == 0) break;\n    FUN_00081850(*param_2,iVar1);\n    FUN_0002f010(*(undefined4 *)(iVar1 + 8));\n    FUN_0002f010(iVar1);\n  }\n  FUN_000814e0(*param_2);\n  *param_2 = 0;\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00085030(undefined4 *param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  \n  FUN_000814e0(*param_1);\n  *param_1 = 0;\n  while( true ) {\n    iVar1 = FUN_00081590(*param_2,0);\n    if (iVar1 == 0) break;\n    FUN_00081850(*param_2,iVar1);\n    FUN_0002f010(*(undefined4 *)(iVar1 + 8));\n    FUN_0002f010(iVar1);\n  }\n  FUN_000814e0(*param_2);\n  *param_2 = 0;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00085030(undefined4 *param_1,undefined4 *param_2)" identifier (parameter_list "(undefined4 *param_1,undefined4 *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  FUN_000814e0(*param_1);\n  *param_1 = 0;\n  while( true ) {\n    iVar1 = FUN_00081590(*param_2,0);\n    if (iVar1 == 0) break;\n    FUN_00081850(*param_2,iVar1);\n    FUN_0002f010(*(undefined4 *)(iVar1 + 8));\n    FUN_0002f010(iVar1);\n  }\n  FUN_000814e0(*param_2);\n  *param_2 = 0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "FUN_000814e0(*param_1);" (call_expression "FUN_000814e0(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) ))) ;) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (while_statement "while( true ) {\n    iVar1 = FUN_00081590(*param_2,0);\n    if (iVar1 == 0) break;\n    FUN_00081850(*param_2,iVar1);\n    FUN_0002f010(*(undefined4 *)(iVar1 + 8));\n    FUN_0002f010(iVar1);\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    iVar1 = FUN_00081590(*param_2,0);\n    if (iVar1 == 0) break;\n    FUN_00081850(*param_2,iVar1);\n    FUN_0002f010(*(undefined4 *)(iVar1 + 8));\n    FUN_0002f010(iVar1);\n  }" { (expression_statement "iVar1 = FUN_00081590(*param_2,0);" (assignment_expression "iVar1 = FUN_00081590(*param_2,0)" identifier = (call_expression "FUN_00081590(*param_2,0)" identifier (argument_list "(*param_2,0)" ( (pointer_expression "*param_2" * identifier) , number_literal )))) ;) (if_statement "if (iVar1 == 0) break;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "FUN_00081850(*param_2,iVar1);" (call_expression "FUN_00081850(*param_2,iVar1)" identifier (argument_list "(*param_2,iVar1)" ( (pointer_expression "*param_2" * identifier) , identifier ))) ;) (expression_statement "FUN_0002f010(*(undefined4 *)(iVar1 + 8));" (call_expression "FUN_0002f010(*(undefined4 *)(iVar1 + 8))" identifier (argument_list "(*(undefined4 *)(iVar1 + 8))" ( (pointer_expression "*(undefined4 *)(iVar1 + 8)" * (cast_expression "(undefined4 *)(iVar1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_0002f010(iVar1);" (call_expression "FUN_0002f010(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) })) (expression_statement "FUN_000814e0(*param_2);" (call_expression "FUN_000814e0(*param_2)" identifier (argument_list "(*param_2)" ( (pointer_expression "*param_2" * identifier) ))) ;) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (return_statement "return;" return ;) })))
(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 ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00085030(undefined4 *param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  \n  FUN_000814e0(*param_1);\n  *param_1 = 0;\n  while( true ) {\n    iVar1 = FUN_00081590(*param_2,0);\n    if (iVar1 == 0) break;\n    FUN_00081850(*param_2,iVar1);\n    FUN_0002f010(*(undefined4 *)(iVar1 + 8));\n    FUN_0002f010(iVar1);\n  }\n  FUN_000814e0(*param_2);\n  *param_2 = 0;\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00085030(undefined4 *param_1,undefined4 *param_2)" (identifier "FUN_00085030") (parameter_list "(undefined4 *param_1,undefined4 *param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  FUN_000814e0(*param_1);\n  *param_1 = 0;\n  while( true ) {\n    iVar1 = FUN_00081590(*param_2,0);\n    if (iVar1 == 0) break;\n    FUN_00081850(*param_2,iVar1);\n    FUN_0002f010(*(undefined4 *)(iVar1 + 8));\n    FUN_0002f010(iVar1);\n  }\n  FUN_000814e0(*param_2);\n  *param_2 = 0;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "FUN_000814e0(*param_1);" (call_expression "FUN_000814e0(*param_1)" (identifier "FUN_000814e0") (argument_list "(*param_1)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")"))) (; ";")) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (while_statement "while( true ) {\n    iVar1 = FUN_00081590(*param_2,0);\n    if (iVar1 == 0) break;\n    FUN_00081850(*param_2,iVar1);\n    FUN_0002f010(*(undefined4 *)(iVar1 + 8));\n    FUN_0002f010(iVar1);\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    iVar1 = FUN_00081590(*param_2,0);\n    if (iVar1 == 0) break;\n    FUN_00081850(*param_2,iVar1);\n    FUN_0002f010(*(undefined4 *)(iVar1 + 8));\n    FUN_0002f010(iVar1);\n  }" ({ "{") (expression_statement "iVar1 = FUN_00081590(*param_2,0);" (assignment_expression "iVar1 = FUN_00081590(*param_2,0)" (identifier "iVar1") (= "=") (call_expression "FUN_00081590(*param_2,0)" (identifier "FUN_00081590") (argument_list "(*param_2,0)" (( "(") (pointer_expression "*param_2" (* "*") (identifier "param_2")) (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) break;" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "FUN_00081850(*param_2,iVar1);" (call_expression "FUN_00081850(*param_2,iVar1)" (identifier "FUN_00081850") (argument_list "(*param_2,iVar1)" (( "(") (pointer_expression "*param_2" (* "*") (identifier "param_2")) (, ",") (identifier "iVar1") () ")"))) (; ";")) (expression_statement "FUN_0002f010(*(undefined4 *)(iVar1 + 8));" (call_expression "FUN_0002f010(*(undefined4 *)(iVar1 + 8))" (identifier "FUN_0002f010") (argument_list "(*(undefined4 *)(iVar1 + 8))" (( "(") (pointer_expression "*(undefined4 *)(iVar1 + 8)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")")))) () ")"))) (; ";")) (expression_statement "FUN_0002f010(iVar1);" (call_expression "FUN_0002f010(iVar1)" (identifier "FUN_0002f010") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_000814e0(*param_2);" (call_expression "FUN_000814e0(*param_2)" (identifier "FUN_000814e0") (argument_list "(*param_2)" (( "(") (pointer_expression "*param_2" (* "*") (identifier "param_2")) () ")"))) (; ";")) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void dlg_cleanup(dlgparam * dp, dlgparam * dp) */

void __regparm3 function_1(type_1 *dp,type_1 *dp_1)

{
  void *var_3;
  
  var_1(dp->byctrl);
  dp->byctrl = (type_2 *)0x0;
  while( true ) {
    var_3 = var_2(dp_1->byctrl,0);
    if (var_3 == (void *)0x0) break;
    var_4(dp_1->byctrl,var_3);
    var_5(*(void **)((int)var_3 + 8));
    var_5(var_3);
  }
  var_1(dp_1->byctrl);
  dp_1->byctrl = (type_2 *)0x0;
  return;
}


(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))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) 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,undefined4 *param_2)

{
  int iVar1;
  
  FUN_000814e0(*param_1);
  *param_1 = 0;
  while( true ) {
    iVar1 = FUN_00081590(*param_2,0);
    if (iVar1 == 0) break;
    FUN_00081850(*param_2,iVar1);
    FUN_0002f010(*(undefined4 *)(iVar1 + 8));
    FUN_0002f010(iVar1);
  }
  FUN_000814e0(*param_2);
  *param_2 = 0;
  return;
}

