
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* virtual thunk to std::ofstream::~ofstream() */

void __thiscall std::ofstream::~ofstream(ofstream *this)

{
  ofstream *poVar1;
  
  poVar1 = this + *(int *)(*(int *)this + -0xc);
  *(undefined4 *)(poVar1 + 0x8c) = 0x33c938;
  *(undefined4 *)poVar1 = 0x33c924;
  *(undefined ***)(poVar1 + 4) = &PTR__filebuf_0033c848;
  filebuf::close((filebuf *)(poVar1 + 4));
  __basic_file<char>::~__basic_file((__basic_file<char> *)(poVar1 + 0x3c));
  *(undefined ***)(poVar1 + 4) = &PTR__streambuf_0033c0b4;
  locale::~locale((locale *)(poVar1 + 0x20));
  *(undefined4 *)poVar1 = 0x33c8ec;
  *(undefined ***)(poVar1 + 0x8c) = &PTR__ios_0033c7c8;
  ios_base::~ios_base((ios_base *)(poVar1 + 0x8c));
  return;
}



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

void FUN_001debc0(int *param_1)

{
  undefined4 *puVar1;
  
  puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));
  puVar1[0x23] = &PTR_FUN_0033c938;
  *puVar1 = &PTR_FUN_0033c924;
  puVar1[1] = &PTR_FUN_0033c848;
  FUN_001dc550(puVar1 + 1);
  FUN_001accb0(puVar1 + 0xf);
  puVar1[1] = &PTR_FUN_0033c0b4;
  FUN_001aebd0(puVar1 + 8);
  *puVar1 = &DAT_0033c8ec;
  puVar1[0x23] = &PTR_FUN_0033c7c8;
  FUN_001f1700(puVar1 + 0x23);
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00035680
ADD EBX,0x160439
SUB ESP,0x10
MOV ESI,dword ptr [ESP + 0x1c]
MOV EAX,dword ptr [ESI]
ADD ESI,dword ptr [EAX + -0xc]
LEA EAX,[EBX + 0xffffd918]
LEA EDX,[EAX + 0xc]
ADD EAX,0x20
MOV dword ptr [ESI + 0x8c],EAX
LEA EAX,[EBX + 0xffffd840]
MOV dword ptr [ESI],EDX
ADD EAX,0x8
MOV dword ptr [ESI + 0x4],EAX
LEA EAX,[ESI + 0x4]
PUSH EAX
CALL 0x001dc550
LEA EAX,[ESI + 0x3c]
MOV dword ptr [ESP],EAX
CALL 0x001accb0
LEA EAX,[EBX + 0xffffd0ac]
ADD EAX,0x8
MOV dword ptr [ESI + 0x4],EAX
LEA EAX,[ESI + 0x20]
ADD ESI,0x8c
MOV dword ptr [ESP],EAX
CALL 0x001aebd0
LEA EAX,[EBX + 0xffffd8ec]
MOV dword ptr [ESI + 0xffffff74],EAX
LEA EAX,[EBX + 0xffffd7c0]
ADD EAX,0x8
MOV dword ptr [ESI],EAX
MOV dword ptr [ESP],ESI
CALL 0x001f1700
ADD ESP,0x14
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_001debc0(int *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  puVar1[0x23] = &PTR_FUN_0033c938;\n  *puVar1 = &PTR_FUN_0033c924;\n  puVar1[1] = &PTR_FUN_0033c848;\n  FUN_001dc550(puVar1 + 1);\n  FUN_001accb0(puVar1 + 0xf);\n  puVar1[1] = &PTR_FUN_0033c0b4;\n  FUN_001aebd0(puVar1 + 8);\n  *puVar1 = &DAT_0033c8ec;\n  puVar1[0x23] = &PTR_FUN_0033c7c8;\n  FUN_001f1700(puVar1 + 0x23);\n  return;\n}\n\n" comment (function_definition "void FUN_001debc0(int *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  puVar1[0x23] = &PTR_FUN_0033c938;\n  *puVar1 = &PTR_FUN_0033c924;\n  puVar1[1] = &PTR_FUN_0033c848;\n  FUN_001dc550(puVar1 + 1);\n  FUN_001accb0(puVar1 + 0xf);\n  puVar1[1] = &PTR_FUN_0033c0b4;\n  FUN_001aebd0(puVar1 + 8);\n  *puVar1 = &DAT_0033c8ec;\n  puVar1[0x23] = &PTR_FUN_0033c7c8;\n  FUN_001f1700(puVar1 + 0x23);\n  return;\n}" primitive_type (function_declarator "FUN_001debc0(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  puVar1[0x23] = &PTR_FUN_0033c938;\n  *puVar1 = &PTR_FUN_0033c924;\n  puVar1[1] = &PTR_FUN_0033c848;\n  FUN_001dc550(puVar1 + 1);\n  FUN_001accb0(puVar1 + 0xf);\n  puVar1[1] = &PTR_FUN_0033c0b4;\n  FUN_001aebd0(puVar1 + 8);\n  *puVar1 = &DAT_0033c8ec;\n  puVar1[0x23] = &PTR_FUN_0033c7c8;\n  FUN_001f1700(puVar1 + 0x23);\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (expression_statement "puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));" (assignment_expression "puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc))" identifier = (cast_expression "(undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc))" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc))" ( (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )))) ;) (expression_statement "puVar1[0x23] = &PTR_FUN_0033c938;" (assignment_expression "puVar1[0x23] = &PTR_FUN_0033c938" (subscript_expression "puVar1[0x23]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_0033c938" & identifier)) ;) (expression_statement "*puVar1 = &PTR_FUN_0033c924;" (assignment_expression "*puVar1 = &PTR_FUN_0033c924" (pointer_expression "*puVar1" * identifier) = (pointer_expression "&PTR_FUN_0033c924" & identifier)) ;) (expression_statement "puVar1[1] = &PTR_FUN_0033c848;" (assignment_expression "puVar1[1] = &PTR_FUN_0033c848" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_0033c848" & identifier)) ;) (expression_statement "FUN_001dc550(puVar1 + 1);" (call_expression "FUN_001dc550(puVar1 + 1)" identifier (argument_list "(puVar1 + 1)" ( (binary_expression "puVar1 + 1" identifier + number_literal) ))) ;) (expression_statement "FUN_001accb0(puVar1 + 0xf);" (call_expression "FUN_001accb0(puVar1 + 0xf)" identifier (argument_list "(puVar1 + 0xf)" ( (binary_expression "puVar1 + 0xf" identifier + number_literal) ))) ;) (expression_statement "puVar1[1] = &PTR_FUN_0033c0b4;" (assignment_expression "puVar1[1] = &PTR_FUN_0033c0b4" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_0033c0b4" & identifier)) ;) (expression_statement "FUN_001aebd0(puVar1 + 8);" (call_expression "FUN_001aebd0(puVar1 + 8)" identifier (argument_list "(puVar1 + 8)" ( (binary_expression "puVar1 + 8" identifier + number_literal) ))) ;) (expression_statement "*puVar1 = &DAT_0033c8ec;" (assignment_expression "*puVar1 = &DAT_0033c8ec" (pointer_expression "*puVar1" * identifier) = (pointer_expression "&DAT_0033c8ec" & identifier)) ;) (expression_statement "puVar1[0x23] = &PTR_FUN_0033c7c8;" (assignment_expression "puVar1[0x23] = &PTR_FUN_0033c7c8" (subscript_expression "puVar1[0x23]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_0033c7c8" & identifier)) ;) (expression_statement "FUN_001f1700(puVar1 + 0x23);" (call_expression "FUN_001f1700(puVar1 + 0x23)" identifier (argument_list "(puVar1 + 0x23)" ( (binary_expression "puVar1 + 0x23" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* virtual thunk to std::ofstream::~ofstream() */\n\nvoid __thiscall std::ofstream::~ofstream(ofstream *this)\n\n{\n  ofstream *poVar1;\n  \n  poVar1 = this + *(int *)(*(int *)this + -0xc);\n  *(undefined4 *)(poVar1 + 0x8c) = 0x33c938;\n  *(undefined4 *)poVar1 = 0x33c924;\n  *(undefined ***)(poVar1 + 4) = &PTR__filebuf_0033c848;\n  filebuf::close((filebuf *)(poVar1 + 4));\n  __basic_file<char>::~__basic_file((__basic_file<char> *)(poVar1 + 0x3c));\n  *(undefined ***)(poVar1 + 4) = &PTR__streambuf_0033c0b4;\n  locale::~locale((locale *)(poVar1 + 0x20));\n  *(undefined4 *)poVar1 = 0x33c8ec;\n  *(undefined ***)(poVar1 + 0x8c) = &PTR__ios_0033c7c8;\n  ios_base::~ios_base((ios_base *)(poVar1 + 0x8c));\n  return;\n}\n\n" comment comment (function_definition "void __thiscall std::ofstream::~ofstream(ofstream *this)\n\n{\n  ofstream *poVar1;\n  \n  poVar1 = this + *(int *)(*(int *)this + -0xc);\n  *(undefined4 *)(poVar1 + 0x8c) = 0x33c938;\n  *(undefined4 *)poVar1 = 0x33c924;\n  *(undefined ***)(poVar1 + 4) = &PTR__filebuf_0033c848;\n  filebuf::close((filebuf *)(poVar1 + 4));\n  __basic_file<char>::~__basic_file((__basic_file<char> *)(poVar1 + 0x3c));\n  *(undefined ***)(poVar1 + 4) = &PTR__streambuf_0033c0b4;\n  locale::~locale((locale *)(poVar1 + 0x20));\n  *(undefined4 *)poVar1 = 0x33c8ec;\n  *(undefined ***)(poVar1 + 0x8c) = &PTR__ios_0033c7c8;\n  ios_base::~ios_base((ios_base *)(poVar1 + 0x8c));\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::ofstream::~" identifier : : identifier : : ~) (function_declarator "ofstream(ofstream *this)" identifier (parameter_list "(ofstream *this)" ( (parameter_declaration "ofstream *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  ofstream *poVar1;\n  \n  poVar1 = this + *(int *)(*(int *)this + -0xc);\n  *(undefined4 *)(poVar1 + 0x8c) = 0x33c938;\n  *(undefined4 *)poVar1 = 0x33c924;\n  *(undefined ***)(poVar1 + 4) = &PTR__filebuf_0033c848;\n  filebuf::close((filebuf *)(poVar1 + 4));\n  __basic_file<char>::~__basic_file((__basic_file<char> *)(poVar1 + 0x3c));\n  *(undefined ***)(poVar1 + 4) = &PTR__streambuf_0033c0b4;\n  locale::~locale((locale *)(poVar1 + 0x20));\n  *(undefined4 *)poVar1 = 0x33c8ec;\n  *(undefined ***)(poVar1 + 0x8c) = &PTR__ios_0033c7c8;\n  ios_base::~ios_base((ios_base *)(poVar1 + 0x8c));\n  return;\n}" { (declaration "ofstream *poVar1;" type_identifier (pointer_declarator "*poVar1" * identifier) ;) (expression_statement "poVar1 = this + *(int *)(*(int *)this + -0xc);" (assignment_expression "poVar1 = this + *(int *)(*(int *)this + -0xc)" identifier = (binary_expression "this + *(int *)(*(int *)this + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)this + -0xc)" * (cast_expression "(int *)(*(int *)this + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))))) ;) (expression_statement "*(undefined4 *)(poVar1 + 0x8c) = 0x33c938;" (assignment_expression "*(undefined4 *)(poVar1 + 0x8c) = 0x33c938" (pointer_expression "*(undefined4 *)(poVar1 + 0x8c)" * (cast_expression "(undefined4 *)(poVar1 + 0x8c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(poVar1 + 0x8c)" ( (binary_expression "poVar1 + 0x8c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)poVar1 = 0x33c924;" (assignment_expression "*(undefined4 *)poVar1 = 0x33c924" (pointer_expression "*(undefined4 *)poVar1" * (cast_expression "(undefined4 *)poVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "*(undefined ***)(poVar1 + 4) = &PTR__filebuf_0033c848;" (assignment_expression "*(undefined ***)(poVar1 + 4) = &PTR__filebuf_0033c848" (pointer_expression "*(undefined ***)(poVar1 + 4)" * (cast_expression "(undefined ***)(poVar1 + 4)" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "(poVar1 + 4)" ( (binary_expression "poVar1 + 4" identifier + number_literal) )))) = (pointer_expression "&PTR__filebuf_0033c848" & identifier)) ;) (labeled_statement "filebuf::close((filebuf *)(poVar1 + 4));" statement_identifier : (ERROR ":" :) (expression_statement "close((filebuf *)(poVar1 + 4));" (call_expression "close((filebuf *)(poVar1 + 4))" identifier (argument_list "((filebuf *)(poVar1 + 4))" ( (cast_expression "(filebuf *)(poVar1 + 4)" ( (type_descriptor "filebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(poVar1 + 4)" ( (binary_expression "poVar1 + 4" identifier + number_literal) ))) ))) ;)) (expression_statement "__basic_file<char>::~__basic_file((__basic_file<char> *)(poVar1 + 0x3c));" (binary_expression "__basic_file<char>::~__basic_file((__basic_file<char> *)(poVar1 + 0x3c))" (binary_expression "__basic_file<char" identifier < identifier) > (ERROR "::" : :) (unary_expression "~__basic_file((__basic_file<char> *)(poVar1 + 0x3c))" ~ (call_expression "__basic_file((__basic_file<char> *)(poVar1 + 0x3c))" identifier (argument_list "((__basic_file<char> *)(poVar1 + 0x3c))" ( (call_expression "(__basic_file<char> *)(poVar1 + 0x3c)" (parenthesized_expression "(__basic_file<char> *)" ( (binary_expression "__basic_file<char> *" (binary_expression "__basic_file<char" identifier < identifier) > (pointer_expression "*" * identifier)) )) (argument_list "(poVar1 + 0x3c)" ( (binary_expression "poVar1 + 0x3c" identifier + number_literal) ))) ))))) ;) (expression_statement "*(undefined ***)(poVar1 + 4) = &PTR__streambuf_0033c0b4;" (assignment_expression "*(undefined ***)(poVar1 + 4) = &PTR__streambuf_0033c0b4" (pointer_expression "*(undefined ***)(poVar1 + 4)" * (cast_expression "(undefined ***)(poVar1 + 4)" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "(poVar1 + 4)" ( (binary_expression "poVar1 + 4" identifier + number_literal) )))) = (pointer_expression "&PTR__streambuf_0033c0b4" & identifier)) ;) (labeled_statement "locale::~locale((locale *)(poVar1 + 0x20));" statement_identifier : (ERROR ":" :) (expression_statement "~locale((locale *)(poVar1 + 0x20));" (unary_expression "~locale((locale *)(poVar1 + 0x20))" ~ (call_expression "locale((locale *)(poVar1 + 0x20))" identifier (argument_list "((locale *)(poVar1 + 0x20))" ( (cast_expression "(locale *)(poVar1 + 0x20)" ( (type_descriptor "locale *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(poVar1 + 0x20)" ( (binary_expression "poVar1 + 0x20" identifier + number_literal) ))) )))) ;)) (expression_statement "*(undefined4 *)poVar1 = 0x33c8ec;" (assignment_expression "*(undefined4 *)poVar1 = 0x33c8ec" (pointer_expression "*(undefined4 *)poVar1" * (cast_expression "(undefined4 *)poVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "*(undefined ***)(poVar1 + 0x8c) = &PTR__ios_0033c7c8;" (assignment_expression "*(undefined ***)(poVar1 + 0x8c) = &PTR__ios_0033c7c8" (pointer_expression "*(undefined ***)(poVar1 + 0x8c)" * (cast_expression "(undefined ***)(poVar1 + 0x8c)" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "(poVar1 + 0x8c)" ( (binary_expression "poVar1 + 0x8c" identifier + number_literal) )))) = (pointer_expression "&PTR__ios_0033c7c8" & identifier)) ;) (labeled_statement "ios_base::~ios_base((ios_base *)(poVar1 + 0x8c));" statement_identifier : (ERROR ":" :) (expression_statement "~ios_base((ios_base *)(poVar1 + 0x8c));" (unary_expression "~ios_base((ios_base *)(poVar1 + 0x8c))" ~ (call_expression "ios_base((ios_base *)(poVar1 + 0x8c))" identifier (argument_list "((ios_base *)(poVar1 + 0x8c))" ( (cast_expression "(ios_base *)(poVar1 + 0x8c)" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(poVar1 + 0x8c)" ( (binary_expression "poVar1 + 0x8c" identifier + number_literal) ))) )))) ;)) (return_statement "return;" return ;) })))
(translation_unit "void FUN_001debc0(int *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  puVar1[0x23] = &PTR_FUN_0033c938;\n  *puVar1 = &PTR_FUN_0033c924;\n  puVar1[1] = &PTR_FUN_0033c848;\n  FUN_001dc550(puVar1 + 1);\n  FUN_001accb0(puVar1 + 0xf);\n  puVar1[1] = &PTR_FUN_0033c0b4;\n  FUN_001aebd0(puVar1 + 8);\n  *puVar1 = &DAT_0033c8ec;\n  puVar1[0x23] = &PTR_FUN_0033c7c8;\n  FUN_001f1700(puVar1 + 0x23);\n  return;\n}\n\n" (function_definition "void FUN_001debc0(int *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  puVar1[0x23] = &PTR_FUN_0033c938;\n  *puVar1 = &PTR_FUN_0033c924;\n  puVar1[1] = &PTR_FUN_0033c848;\n  FUN_001dc550(puVar1 + 1);\n  FUN_001accb0(puVar1 + 0xf);\n  puVar1[1] = &PTR_FUN_0033c0b4;\n  FUN_001aebd0(puVar1 + 8);\n  *puVar1 = &DAT_0033c8ec;\n  puVar1[0x23] = &PTR_FUN_0033c7c8;\n  FUN_001f1700(puVar1 + 0x23);\n  return;\n}" primitive_type (function_declarator "FUN_001debc0(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  puVar1[0x23] = &PTR_FUN_0033c938;\n  *puVar1 = &PTR_FUN_0033c924;\n  puVar1[1] = &PTR_FUN_0033c848;\n  FUN_001dc550(puVar1 + 1);\n  FUN_001accb0(puVar1 + 0xf);\n  puVar1[1] = &PTR_FUN_0033c0b4;\n  FUN_001aebd0(puVar1 + 8);\n  *puVar1 = &DAT_0033c8ec;\n  puVar1[0x23] = &PTR_FUN_0033c7c8;\n  FUN_001f1700(puVar1 + 0x23);\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (expression_statement "puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));" (assignment_expression "puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc))" identifier = (cast_expression "(undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc))" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc))" ( (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )))) ;) (expression_statement "puVar1[0x23] = &PTR_FUN_0033c938;" (assignment_expression "puVar1[0x23] = &PTR_FUN_0033c938" (subscript_expression "puVar1[0x23]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_0033c938" & identifier)) ;) (expression_statement "*puVar1 = &PTR_FUN_0033c924;" (assignment_expression "*puVar1 = &PTR_FUN_0033c924" (pointer_expression "*puVar1" * identifier) = (pointer_expression "&PTR_FUN_0033c924" & identifier)) ;) (expression_statement "puVar1[1] = &PTR_FUN_0033c848;" (assignment_expression "puVar1[1] = &PTR_FUN_0033c848" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_0033c848" & identifier)) ;) (expression_statement "FUN_001dc550(puVar1 + 1);" (call_expression "FUN_001dc550(puVar1 + 1)" identifier (argument_list "(puVar1 + 1)" ( (binary_expression "puVar1 + 1" identifier + number_literal) ))) ;) (expression_statement "FUN_001accb0(puVar1 + 0xf);" (call_expression "FUN_001accb0(puVar1 + 0xf)" identifier (argument_list "(puVar1 + 0xf)" ( (binary_expression "puVar1 + 0xf" identifier + number_literal) ))) ;) (expression_statement "puVar1[1] = &PTR_FUN_0033c0b4;" (assignment_expression "puVar1[1] = &PTR_FUN_0033c0b4" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_0033c0b4" & identifier)) ;) (expression_statement "FUN_001aebd0(puVar1 + 8);" (call_expression "FUN_001aebd0(puVar1 + 8)" identifier (argument_list "(puVar1 + 8)" ( (binary_expression "puVar1 + 8" identifier + number_literal) ))) ;) (expression_statement "*puVar1 = &DAT_0033c8ec;" (assignment_expression "*puVar1 = &DAT_0033c8ec" (pointer_expression "*puVar1" * identifier) = (pointer_expression "&DAT_0033c8ec" & identifier)) ;) (expression_statement "puVar1[0x23] = &PTR_FUN_0033c7c8;" (assignment_expression "puVar1[0x23] = &PTR_FUN_0033c7c8" (subscript_expression "puVar1[0x23]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_0033c7c8" & identifier)) ;) (expression_statement "FUN_001f1700(puVar1 + 0x23);" (call_expression "FUN_001f1700(puVar1 + 0x23)" identifier (argument_list "(puVar1 + 0x23)" ( (binary_expression "puVar1 + 0x23" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression & IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression & IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression & IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (return_statement return ;) })))
(function_definition "void FUN_001debc0(int *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  puVar1[0x23] = &PTR_FUN_0033c938;\n  *puVar1 = &PTR_FUN_0033c924;\n  puVar1[1] = &PTR_FUN_0033c848;\n  FUN_001dc550(puVar1 + 1);\n  FUN_001accb0(puVar1 + 0xf);\n  puVar1[1] = &PTR_FUN_0033c0b4;\n  FUN_001aebd0(puVar1 + 8);\n  *puVar1 = &DAT_0033c8ec;\n  puVar1[0x23] = &PTR_FUN_0033c7c8;\n  FUN_001f1700(puVar1 + 0x23);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001debc0(int *param_1)" (identifier "FUN_001debc0") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  puVar1[0x23] = &PTR_FUN_0033c938;\n  *puVar1 = &PTR_FUN_0033c924;\n  puVar1[1] = &PTR_FUN_0033c848;\n  FUN_001dc550(puVar1 + 1);\n  FUN_001accb0(puVar1 + 0xf);\n  puVar1[1] = &PTR_FUN_0033c0b4;\n  FUN_001aebd0(puVar1 + 8);\n  *puVar1 = &DAT_0033c8ec;\n  puVar1[0x23] = &PTR_FUN_0033c7c8;\n  FUN_001f1700(puVar1 + 0x23);\n  return;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (expression_statement "puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));" (assignment_expression "puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc))" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc))" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc))" (( "(") (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(int *)(*param_1 + -0xc)" (* "*") (cast_expression "(int *)(*param_1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0xc)" (( "(") (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0xc")) () ")"))))) () ")")))) (; ";")) (expression_statement "puVar1[0x23] = &PTR_FUN_0033c938;" (assignment_expression "puVar1[0x23] = &PTR_FUN_0033c938" (subscript_expression "puVar1[0x23]" (identifier "puVar1") ([ "[") (number_literal "0x23") (] "]")) (= "=") (pointer_expression "&PTR_FUN_0033c938" (& "&") (identifier "PTR_FUN_0033c938"))) (; ";")) (expression_statement "*puVar1 = &PTR_FUN_0033c924;" (assignment_expression "*puVar1 = &PTR_FUN_0033c924" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (pointer_expression "&PTR_FUN_0033c924" (& "&") (identifier "PTR_FUN_0033c924"))) (; ";")) (expression_statement "puVar1[1] = &PTR_FUN_0033c848;" (assignment_expression "puVar1[1] = &PTR_FUN_0033c848" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (pointer_expression "&PTR_FUN_0033c848" (& "&") (identifier "PTR_FUN_0033c848"))) (; ";")) (expression_statement "FUN_001dc550(puVar1 + 1);" (call_expression "FUN_001dc550(puVar1 + 1)" (identifier "FUN_001dc550") (argument_list "(puVar1 + 1)" (( "(") (binary_expression "puVar1 + 1" (identifier "puVar1") (+ "+") (number_literal "1")) () ")"))) (; ";")) (expression_statement "FUN_001accb0(puVar1 + 0xf);" (call_expression "FUN_001accb0(puVar1 + 0xf)" (identifier "FUN_001accb0") (argument_list "(puVar1 + 0xf)" (( "(") (binary_expression "puVar1 + 0xf" (identifier "puVar1") (+ "+") (number_literal "0xf")) () ")"))) (; ";")) (expression_statement "puVar1[1] = &PTR_FUN_0033c0b4;" (assignment_expression "puVar1[1] = &PTR_FUN_0033c0b4" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (pointer_expression "&PTR_FUN_0033c0b4" (& "&") (identifier "PTR_FUN_0033c0b4"))) (; ";")) (expression_statement "FUN_001aebd0(puVar1 + 8);" (call_expression "FUN_001aebd0(puVar1 + 8)" (identifier "FUN_001aebd0") (argument_list "(puVar1 + 8)" (( "(") (binary_expression "puVar1 + 8" (identifier "puVar1") (+ "+") (number_literal "8")) () ")"))) (; ";")) (expression_statement "*puVar1 = &DAT_0033c8ec;" (assignment_expression "*puVar1 = &DAT_0033c8ec" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (pointer_expression "&DAT_0033c8ec" (& "&") (identifier "DAT_0033c8ec"))) (; ";")) (expression_statement "puVar1[0x23] = &PTR_FUN_0033c7c8;" (assignment_expression "puVar1[0x23] = &PTR_FUN_0033c7c8" (subscript_expression "puVar1[0x23]" (identifier "puVar1") ([ "[") (number_literal "0x23") (] "]")) (= "=") (pointer_expression "&PTR_FUN_0033c7c8" (& "&") (identifier "PTR_FUN_0033c7c8"))) (; ";")) (expression_statement "FUN_001f1700(puVar1 + 0x23);" (call_expression "FUN_001f1700(puVar1 + 0x23)" (identifier "FUN_001f1700") (argument_list "(puVar1 + 0x23)" (( "(") (binary_expression "puVar1 + 0x23" (identifier "puVar1") (+ "+") (number_literal "0x23")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* virtual thunk to std::ofstream::~ofstream() */

void __thiscall std::function_1::~function_1(function_1 *var_1)

{
  function_1 *var_2;
  
  var_2 = var_1 + *(int *)(*(int *)var_1 + -0xc);
  *(type_1 *)(var_2 + 0x8c) = 0x33c938;
  *(type_1 *)var_2 = 0x33c924;
  *(type_2 ***)(var_2 + 4) = &PTR__filebuf_0033c848;
  filebuf::var_3((type_3 *)(var_2 + 4));
  var_4<var_5>::~var_4((var_4<var_5> *)(var_2 + 0x3c));
  *(type_2 ***)(var_2 + 4) = &PTR__streambuf_0033c0b4;
  locale::~var_6((var_6 *)(var_2 + 0x20));
  *(type_1 *)var_2 = 0x33c8ec;
  *(type_2 ***)(var_2 + 0x8c) = &PTR__ios_0033c7c8;
  ios_base::~var_7((var_7 *)(var_2 + 0x8c));
  return;
}


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

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

void MASKED(int *param_1)

{
  undefined4 *puVar1;
  
  puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));
  puVar1[0x23] = &PTR_FUN_0033c938;
  *puVar1 = &PTR_FUN_0033c924;
  puVar1[1] = &PTR_FUN_0033c848;
  FUN_001dc550(puVar1 + 1);
  FUN_001accb0(puVar1 + 0xf);
  puVar1[1] = &PTR_FUN_0033c0b4;
  FUN_001aebd0(puVar1 + 8);
  *puVar1 = &DAT_0033c8ec;
  puVar1[0x23] = &PTR_FUN_0033c7c8;
  FUN_001f1700(puVar1 + 0x23);
  return;
}

