
/* virtual thunk to std::wofstream::~wofstream() */

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

{
  wofstream *pwVar1;
  
  pwVar1 = this + *(long *)(*(long *)this + -0x18);
  *(undefined ***)(pwVar1 + 0xf8) = &PTR__wofstream_00457b28;
  *(undefined ***)pwVar1 = &PTR__wofstream_00457b00;
  *(undefined ***)(pwVar1 + 8) = &PTR__wfilebuf_00457948;
  wfilebuf::close((wfilebuf *)(pwVar1 + 8));
  __basic_file<char>::~__basic_file((__basic_file<char> *)(pwVar1 + 0x70));
  *(undefined ***)(pwVar1 + 8) = &PTR__wstreambuf_00456710;
  locale::~locale((locale *)(pwVar1 + 0x40));
  *(undefined8 *)pwVar1 = 0x457a90;
  *(undefined ***)(pwVar1 + 0xf8) = &PTR__wios_00457488;
  ios_base::~ios_base((ios_base *)(pwVar1 + 0xf8));
  operator_delete(pwVar1);
  return;
}



void FUN_003229d0(long *param_1)

{
  undefined8 *puVar1;
  
  puVar1 = (undefined8 *)(*(long *)(*param_1 + -0x18) + (long)param_1);
  puVar1[0x1f] = &PTR_FUN_00457b28;
  *puVar1 = &PTR_FUN_00457b00;
  puVar1[1] = &PTR_FUN_00457948;
  FUN_003206d0(puVar1 + 1);
  thunk_FUN_002f24d0(puVar1 + 0xe);
  puVar1[1] = &PTR_FUN_00456710;
  FUN_002f43a0(puVar1 + 8);
  *puVar1 = &DAT_00457a90;
  puVar1[0x1f] = &PTR_FUN_00457488;
  FUN_0032ff10(puVar1 + 0x1f);
  FUN_002f1e60(puVar1);
  return;
}


PUSH RBX
MOV RAX,qword ptr [RDI]
MOV RBX,qword ptr [RAX + -0x18]
LEA RAX,[0x457ae8]
ADD RBX,RDI
LEA RDX,[RAX + 0x18]
ADD RAX,0x40
MOV qword ptr [RBX + 0xf8],RAX
LEA RAX,[0x457938]
LEA RDI,[RBX + 0x8]
MOV qword ptr [RBX],RDX
ADD RAX,0x10
MOV qword ptr [RBX + 0x8],RAX
CALL 0x003206d0
LEA RDI,[RBX + 0x70]
CALL 0x002f2520
LEA RAX,[0x456700]
LEA RDI,[RBX + 0x40]
ADD RAX,0x10
MOV qword ptr [RBX + 0x8],RAX
CALL 0x002f43a0
LEA RAX,[0x457a90]
LEA RDI,[RBX + 0xf8]
MOV qword ptr [RBX],RAX
LEA RAX,[0x457478]
ADD RAX,0x10
MOV qword ptr [RBX + 0xf8],RAX
CALL 0x0032ff10
MOV RDI,RBX
POP RBX
JMP 0x002f1e60
(translation_unit "void FUN_003229d0(long *param_1)\n\n{\n  undefined8 *puVar1;\n  \n  puVar1 = (undefined8 *)(*(long *)(*param_1 + -0x18) + (long)param_1);\n  puVar1[0x1f] = &PTR_FUN_00457b28;\n  *puVar1 = &PTR_FUN_00457b00;\n  puVar1[1] = &PTR_FUN_00457948;\n  FUN_003206d0(puVar1 + 1);\n  thunk_FUN_002f24d0(puVar1 + 0xe);\n  puVar1[1] = &PTR_FUN_00456710;\n  FUN_002f43a0(puVar1 + 8);\n  *puVar1 = &DAT_00457a90;\n  puVar1[0x1f] = &PTR_FUN_00457488;\n  FUN_0032ff10(puVar1 + 0x1f);\n  FUN_002f1e60(puVar1);\n  return;\n}\n\n" (function_definition "void FUN_003229d0(long *param_1)\n\n{\n  undefined8 *puVar1;\n  \n  puVar1 = (undefined8 *)(*(long *)(*param_1 + -0x18) + (long)param_1);\n  puVar1[0x1f] = &PTR_FUN_00457b28;\n  *puVar1 = &PTR_FUN_00457b00;\n  puVar1[1] = &PTR_FUN_00457948;\n  FUN_003206d0(puVar1 + 1);\n  thunk_FUN_002f24d0(puVar1 + 0xe);\n  puVar1[1] = &PTR_FUN_00456710;\n  FUN_002f43a0(puVar1 + 8);\n  *puVar1 = &DAT_00457a90;\n  puVar1[0x1f] = &PTR_FUN_00457488;\n  FUN_0032ff10(puVar1 + 0x1f);\n  FUN_002f1e60(puVar1);\n  return;\n}" primitive_type (function_declarator "FUN_003229d0(long *param_1)" identifier (parameter_list "(long *param_1)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined8 *puVar1;\n  \n  puVar1 = (undefined8 *)(*(long *)(*param_1 + -0x18) + (long)param_1);\n  puVar1[0x1f] = &PTR_FUN_00457b28;\n  *puVar1 = &PTR_FUN_00457b00;\n  puVar1[1] = &PTR_FUN_00457948;\n  FUN_003206d0(puVar1 + 1);\n  thunk_FUN_002f24d0(puVar1 + 0xe);\n  puVar1[1] = &PTR_FUN_00456710;\n  FUN_002f43a0(puVar1 + 8);\n  *puVar1 = &DAT_00457a90;\n  puVar1[0x1f] = &PTR_FUN_00457488;\n  FUN_0032ff10(puVar1 + 0x1f);\n  FUN_002f1e60(puVar1);\n  return;\n}" { (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (expression_statement "puVar1 = (undefined8 *)(*(long *)(*param_1 + -0x18) + (long)param_1);" (assignment_expression "puVar1 = (undefined8 *)(*(long *)(*param_1 + -0x18) + (long)param_1)" identifier = (cast_expression "(undefined8 *)(*(long *)(*param_1 + -0x18) + (long)param_1)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(*param_1 + -0x18) + (long)param_1)" ( (binary_expression "*(long *)(*param_1 + -0x18) + (long)param_1" (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) )))) ;) (expression_statement "puVar1[0x1f] = &PTR_FUN_00457b28;" (assignment_expression "puVar1[0x1f] = &PTR_FUN_00457b28" (subscript_expression "puVar1[0x1f]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_00457b28" & identifier)) ;) (expression_statement "*puVar1 = &PTR_FUN_00457b00;" (assignment_expression "*puVar1 = &PTR_FUN_00457b00" (pointer_expression "*puVar1" * identifier) = (pointer_expression "&PTR_FUN_00457b00" & identifier)) ;) (expression_statement "puVar1[1] = &PTR_FUN_00457948;" (assignment_expression "puVar1[1] = &PTR_FUN_00457948" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_00457948" & identifier)) ;) (expression_statement "FUN_003206d0(puVar1 + 1);" (call_expression "FUN_003206d0(puVar1 + 1)" identifier (argument_list "(puVar1 + 1)" ( (binary_expression "puVar1 + 1" identifier + number_literal) ))) ;) (expression_statement "thunk_FUN_002f24d0(puVar1 + 0xe);" (call_expression "thunk_FUN_002f24d0(puVar1 + 0xe)" identifier (argument_list "(puVar1 + 0xe)" ( (binary_expression "puVar1 + 0xe" identifier + number_literal) ))) ;) (expression_statement "puVar1[1] = &PTR_FUN_00456710;" (assignment_expression "puVar1[1] = &PTR_FUN_00456710" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_00456710" & identifier)) ;) (expression_statement "FUN_002f43a0(puVar1 + 8);" (call_expression "FUN_002f43a0(puVar1 + 8)" identifier (argument_list "(puVar1 + 8)" ( (binary_expression "puVar1 + 8" identifier + number_literal) ))) ;) (expression_statement "*puVar1 = &DAT_00457a90;" (assignment_expression "*puVar1 = &DAT_00457a90" (pointer_expression "*puVar1" * identifier) = (pointer_expression "&DAT_00457a90" & identifier)) ;) (expression_statement "puVar1[0x1f] = &PTR_FUN_00457488;" (assignment_expression "puVar1[0x1f] = &PTR_FUN_00457488" (subscript_expression "puVar1[0x1f]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_00457488" & identifier)) ;) (expression_statement "FUN_0032ff10(puVar1 + 0x1f);" (call_expression "FUN_0032ff10(puVar1 + 0x1f)" identifier (argument_list "(puVar1 + 0x1f)" ( (binary_expression "puVar1 + 0x1f" identifier + number_literal) ))) ;) (expression_statement "FUN_002f1e60(puVar1);" (call_expression "FUN_002f1e60(puVar1)" identifier (argument_list "(puVar1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* virtual thunk to std::wofstream::~wofstream() */\n\nvoid __thiscall std::wofstream::~wofstream(wofstream *this)\n\n{\n  wofstream *pwVar1;\n  \n  pwVar1 = this + *(long *)(*(long *)this + -0x18);\n  *(undefined ***)(pwVar1 + 0xf8) = &PTR__wofstream_00457b28;\n  *(undefined ***)pwVar1 = &PTR__wofstream_00457b00;\n  *(undefined ***)(pwVar1 + 8) = &PTR__wfilebuf_00457948;\n  wfilebuf::close((wfilebuf *)(pwVar1 + 8));\n  __basic_file<char>::~__basic_file((__basic_file<char> *)(pwVar1 + 0x70));\n  *(undefined ***)(pwVar1 + 8) = &PTR__wstreambuf_00456710;\n  locale::~locale((locale *)(pwVar1 + 0x40));\n  *(undefined8 *)pwVar1 = 0x457a90;\n  *(undefined ***)(pwVar1 + 0xf8) = &PTR__wios_00457488;\n  ios_base::~ios_base((ios_base *)(pwVar1 + 0xf8));\n  operator_delete(pwVar1);\n  return;\n}\n\n" comment (function_definition "void __thiscall std::wofstream::~wofstream(wofstream *this)\n\n{\n  wofstream *pwVar1;\n  \n  pwVar1 = this + *(long *)(*(long *)this + -0x18);\n  *(undefined ***)(pwVar1 + 0xf8) = &PTR__wofstream_00457b28;\n  *(undefined ***)pwVar1 = &PTR__wofstream_00457b00;\n  *(undefined ***)(pwVar1 + 8) = &PTR__wfilebuf_00457948;\n  wfilebuf::close((wfilebuf *)(pwVar1 + 8));\n  __basic_file<char>::~__basic_file((__basic_file<char> *)(pwVar1 + 0x70));\n  *(undefined ***)(pwVar1 + 8) = &PTR__wstreambuf_00456710;\n  locale::~locale((locale *)(pwVar1 + 0x40));\n  *(undefined8 *)pwVar1 = 0x457a90;\n  *(undefined ***)(pwVar1 + 0xf8) = &PTR__wios_00457488;\n  ios_base::~ios_base((ios_base *)(pwVar1 + 0xf8));\n  operator_delete(pwVar1);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::wofstream::~" identifier : : identifier : : ~) (function_declarator "wofstream(wofstream *this)" identifier (parameter_list "(wofstream *this)" ( (parameter_declaration "wofstream *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  wofstream *pwVar1;\n  \n  pwVar1 = this + *(long *)(*(long *)this + -0x18);\n  *(undefined ***)(pwVar1 + 0xf8) = &PTR__wofstream_00457b28;\n  *(undefined ***)pwVar1 = &PTR__wofstream_00457b00;\n  *(undefined ***)(pwVar1 + 8) = &PTR__wfilebuf_00457948;\n  wfilebuf::close((wfilebuf *)(pwVar1 + 8));\n  __basic_file<char>::~__basic_file((__basic_file<char> *)(pwVar1 + 0x70));\n  *(undefined ***)(pwVar1 + 8) = &PTR__wstreambuf_00456710;\n  locale::~locale((locale *)(pwVar1 + 0x40));\n  *(undefined8 *)pwVar1 = 0x457a90;\n  *(undefined ***)(pwVar1 + 0xf8) = &PTR__wios_00457488;\n  ios_base::~ios_base((ios_base *)(pwVar1 + 0xf8));\n  operator_delete(pwVar1);\n  return;\n}" { (declaration "wofstream *pwVar1;" type_identifier (pointer_declarator "*pwVar1" * identifier) ;) (expression_statement "pwVar1 = this + *(long *)(*(long *)this + -0x18);" (assignment_expression "pwVar1 = this + *(long *)(*(long *)this + -0x18)" identifier = (binary_expression "this + *(long *)(*(long *)this + -0x18)" identifier + (pointer_expression "*(long *)(*(long *)this + -0x18)" * (cast_expression "(long *)(*(long *)this + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)this + -0x18)" ( (binary_expression "*(long *)this + -0x18" (pointer_expression "*(long *)this" * (cast_expression "(long *)this" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))))) ;) (expression_statement "*(undefined ***)(pwVar1 + 0xf8) = &PTR__wofstream_00457b28;" (assignment_expression "*(undefined ***)(pwVar1 + 0xf8) = &PTR__wofstream_00457b28" (pointer_expression "*(undefined ***)(pwVar1 + 0xf8)" * (cast_expression "(undefined ***)(pwVar1 + 0xf8)" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "(pwVar1 + 0xf8)" ( (binary_expression "pwVar1 + 0xf8" identifier + number_literal) )))) = (pointer_expression "&PTR__wofstream_00457b28" & identifier)) ;) (expression_statement "*(undefined ***)pwVar1 = &PTR__wofstream_00457b00;" (assignment_expression "*(undefined ***)pwVar1 = &PTR__wofstream_00457b00" (pointer_expression "*(undefined ***)pwVar1" * (cast_expression "(undefined ***)pwVar1" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) identifier)) = (pointer_expression "&PTR__wofstream_00457b00" & identifier)) ;) (expression_statement "*(undefined ***)(pwVar1 + 8) = &PTR__wfilebuf_00457948;" (assignment_expression "*(undefined ***)(pwVar1 + 8) = &PTR__wfilebuf_00457948" (pointer_expression "*(undefined ***)(pwVar1 + 8)" * (cast_expression "(undefined ***)(pwVar1 + 8)" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "(pwVar1 + 8)" ( (binary_expression "pwVar1 + 8" identifier + number_literal) )))) = (pointer_expression "&PTR__wfilebuf_00457948" & identifier)) ;) (labeled_statement "wfilebuf::close((wfilebuf *)(pwVar1 + 8));" statement_identifier : (ERROR ":" :) (expression_statement "close((wfilebuf *)(pwVar1 + 8));" (call_expression "close((wfilebuf *)(pwVar1 + 8))" identifier (argument_list "((wfilebuf *)(pwVar1 + 8))" ( (cast_expression "(wfilebuf *)(pwVar1 + 8)" ( (type_descriptor "wfilebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pwVar1 + 8)" ( (binary_expression "pwVar1 + 8" identifier + number_literal) ))) ))) ;)) (expression_statement "__basic_file<char>::~__basic_file((__basic_file<char> *)(pwVar1 + 0x70));" (binary_expression "__basic_file<char>::~__basic_file((__basic_file<char> *)(pwVar1 + 0x70))" (binary_expression "__basic_file<char" identifier < identifier) > (ERROR "::" : :) (unary_expression "~__basic_file((__basic_file<char> *)(pwVar1 + 0x70))" ~ (call_expression "__basic_file((__basic_file<char> *)(pwVar1 + 0x70))" identifier (argument_list "((__basic_file<char> *)(pwVar1 + 0x70))" ( (call_expression "(__basic_file<char> *)(pwVar1 + 0x70)" (parenthesized_expression "(__basic_file<char> *)" ( (binary_expression "__basic_file<char> *" (binary_expression "__basic_file<char" identifier < identifier) > (pointer_expression "*" * identifier)) )) (argument_list "(pwVar1 + 0x70)" ( (binary_expression "pwVar1 + 0x70" identifier + number_literal) ))) ))))) ;) (expression_statement "*(undefined ***)(pwVar1 + 8) = &PTR__wstreambuf_00456710;" (assignment_expression "*(undefined ***)(pwVar1 + 8) = &PTR__wstreambuf_00456710" (pointer_expression "*(undefined ***)(pwVar1 + 8)" * (cast_expression "(undefined ***)(pwVar1 + 8)" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "(pwVar1 + 8)" ( (binary_expression "pwVar1 + 8" identifier + number_literal) )))) = (pointer_expression "&PTR__wstreambuf_00456710" & identifier)) ;) (labeled_statement "locale::~locale((locale *)(pwVar1 + 0x40));" statement_identifier : (ERROR ":" :) (expression_statement "~locale((locale *)(pwVar1 + 0x40));" (unary_expression "~locale((locale *)(pwVar1 + 0x40))" ~ (call_expression "locale((locale *)(pwVar1 + 0x40))" identifier (argument_list "((locale *)(pwVar1 + 0x40))" ( (cast_expression "(locale *)(pwVar1 + 0x40)" ( (type_descriptor "locale *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pwVar1 + 0x40)" ( (binary_expression "pwVar1 + 0x40" identifier + number_literal) ))) )))) ;)) (expression_statement "*(undefined8 *)pwVar1 = 0x457a90;" (assignment_expression "*(undefined8 *)pwVar1 = 0x457a90" (pointer_expression "*(undefined8 *)pwVar1" * (cast_expression "(undefined8 *)pwVar1" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "*(undefined ***)(pwVar1 + 0xf8) = &PTR__wios_00457488;" (assignment_expression "*(undefined ***)(pwVar1 + 0xf8) = &PTR__wios_00457488" (pointer_expression "*(undefined ***)(pwVar1 + 0xf8)" * (cast_expression "(undefined ***)(pwVar1 + 0xf8)" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "(pwVar1 + 0xf8)" ( (binary_expression "pwVar1 + 0xf8" identifier + number_literal) )))) = (pointer_expression "&PTR__wios_00457488" & identifier)) ;) (labeled_statement "ios_base::~ios_base((ios_base *)(pwVar1 + 0xf8));" statement_identifier : (ERROR ":" :) (expression_statement "~ios_base((ios_base *)(pwVar1 + 0xf8));" (unary_expression "~ios_base((ios_base *)(pwVar1 + 0xf8))" ~ (call_expression "ios_base((ios_base *)(pwVar1 + 0xf8))" identifier (argument_list "((ios_base *)(pwVar1 + 0xf8))" ( (cast_expression "(ios_base *)(pwVar1 + 0xf8)" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pwVar1 + 0xf8)" ( (binary_expression "pwVar1 + 0xf8" identifier + number_literal) ))) )))) ;)) (expression_statement "operator_delete(pwVar1);" (call_expression "operator_delete(pwVar1)" identifier (argument_list "(pwVar1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_003229d0(long *param_1)\n\n{\n  undefined8 *puVar1;\n  \n  puVar1 = (undefined8 *)(*(long *)(*param_1 + -0x18) + (long)param_1);\n  puVar1[0x1f] = &PTR_FUN_00457b28;\n  *puVar1 = &PTR_FUN_00457b00;\n  puVar1[1] = &PTR_FUN_00457948;\n  FUN_003206d0(puVar1 + 1);\n  thunk_FUN_002f24d0(puVar1 + 0xe);\n  puVar1[1] = &PTR_FUN_00456710;\n  FUN_002f43a0(puVar1 + 8);\n  *puVar1 = &DAT_00457a90;\n  puVar1[0x1f] = &PTR_FUN_00457488;\n  FUN_0032ff10(puVar1 + 0x1f);\n  FUN_002f1e60(puVar1);\n  return;\n}\n\n" (function_definition "void FUN_003229d0(long *param_1)\n\n{\n  undefined8 *puVar1;\n  \n  puVar1 = (undefined8 *)(*(long *)(*param_1 + -0x18) + (long)param_1);\n  puVar1[0x1f] = &PTR_FUN_00457b28;\n  *puVar1 = &PTR_FUN_00457b00;\n  puVar1[1] = &PTR_FUN_00457948;\n  FUN_003206d0(puVar1 + 1);\n  thunk_FUN_002f24d0(puVar1 + 0xe);\n  puVar1[1] = &PTR_FUN_00456710;\n  FUN_002f43a0(puVar1 + 8);\n  *puVar1 = &DAT_00457a90;\n  puVar1[0x1f] = &PTR_FUN_00457488;\n  FUN_0032ff10(puVar1 + 0x1f);\n  FUN_002f1e60(puVar1);\n  return;\n}" primitive_type (function_declarator "FUN_003229d0(long *param_1)" identifier (parameter_list "(long *param_1)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined8 *puVar1;\n  \n  puVar1 = (undefined8 *)(*(long *)(*param_1 + -0x18) + (long)param_1);\n  puVar1[0x1f] = &PTR_FUN_00457b28;\n  *puVar1 = &PTR_FUN_00457b00;\n  puVar1[1] = &PTR_FUN_00457948;\n  FUN_003206d0(puVar1 + 1);\n  thunk_FUN_002f24d0(puVar1 + 0xe);\n  puVar1[1] = &PTR_FUN_00456710;\n  FUN_002f43a0(puVar1 + 8);\n  *puVar1 = &DAT_00457a90;\n  puVar1[0x1f] = &PTR_FUN_00457488;\n  FUN_0032ff10(puVar1 + 0x1f);\n  FUN_002f1e60(puVar1);\n  return;\n}" { (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (expression_statement "puVar1 = (undefined8 *)(*(long *)(*param_1 + -0x18) + (long)param_1);" (assignment_expression "puVar1 = (undefined8 *)(*(long *)(*param_1 + -0x18) + (long)param_1)" identifier = (cast_expression "(undefined8 *)(*(long *)(*param_1 + -0x18) + (long)param_1)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(*param_1 + -0x18) + (long)param_1)" ( (binary_expression "*(long *)(*param_1 + -0x18) + (long)param_1" (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) )))) ;) (expression_statement "puVar1[0x1f] = &PTR_FUN_00457b28;" (assignment_expression "puVar1[0x1f] = &PTR_FUN_00457b28" (subscript_expression "puVar1[0x1f]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_00457b28" & identifier)) ;) (expression_statement "*puVar1 = &PTR_FUN_00457b00;" (assignment_expression "*puVar1 = &PTR_FUN_00457b00" (pointer_expression "*puVar1" * identifier) = (pointer_expression "&PTR_FUN_00457b00" & identifier)) ;) (expression_statement "puVar1[1] = &PTR_FUN_00457948;" (assignment_expression "puVar1[1] = &PTR_FUN_00457948" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_00457948" & identifier)) ;) (expression_statement "FUN_003206d0(puVar1 + 1);" (call_expression "FUN_003206d0(puVar1 + 1)" identifier (argument_list "(puVar1 + 1)" ( (binary_expression "puVar1 + 1" identifier + number_literal) ))) ;) (expression_statement "thunk_FUN_002f24d0(puVar1 + 0xe);" (call_expression "thunk_FUN_002f24d0(puVar1 + 0xe)" identifier (argument_list "(puVar1 + 0xe)" ( (binary_expression "puVar1 + 0xe" identifier + number_literal) ))) ;) (expression_statement "puVar1[1] = &PTR_FUN_00456710;" (assignment_expression "puVar1[1] = &PTR_FUN_00456710" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_00456710" & identifier)) ;) (expression_statement "FUN_002f43a0(puVar1 + 8);" (call_expression "FUN_002f43a0(puVar1 + 8)" identifier (argument_list "(puVar1 + 8)" ( (binary_expression "puVar1 + 8" identifier + number_literal) ))) ;) (expression_statement "*puVar1 = &DAT_00457a90;" (assignment_expression "*puVar1 = &DAT_00457a90" (pointer_expression "*puVar1" * identifier) = (pointer_expression "&DAT_00457a90" & identifier)) ;) (expression_statement "puVar1[0x1f] = &PTR_FUN_00457488;" (assignment_expression "puVar1[0x1f] = &PTR_FUN_00457488" (subscript_expression "puVar1[0x1f]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_00457488" & identifier)) ;) (expression_statement "FUN_0032ff10(puVar1 + 0x1f);" (call_expression "FUN_0032ff10(puVar1 + 0x1f)" identifier (argument_list "(puVar1 + 0x1f)" ( (binary_expression "puVar1 + 0x1f" identifier + number_literal) ))) ;) (expression_statement "FUN_002f1e60(puVar1);" (call_expression "FUN_002f1e60(puVar1)" identifier (argument_list "(puVar1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (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 (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) + (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) )))) ;) (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) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_003229d0(long *param_1)\n\n{\n  undefined8 *puVar1;\n  \n  puVar1 = (undefined8 *)(*(long *)(*param_1 + -0x18) + (long)param_1);\n  puVar1[0x1f] = &PTR_FUN_00457b28;\n  *puVar1 = &PTR_FUN_00457b00;\n  puVar1[1] = &PTR_FUN_00457948;\n  FUN_003206d0(puVar1 + 1);\n  thunk_FUN_002f24d0(puVar1 + 0xe);\n  puVar1[1] = &PTR_FUN_00456710;\n  FUN_002f43a0(puVar1 + 8);\n  *puVar1 = &DAT_00457a90;\n  puVar1[0x1f] = &PTR_FUN_00457488;\n  FUN_0032ff10(puVar1 + 0x1f);\n  FUN_002f1e60(puVar1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_003229d0(long *param_1)" (identifier "FUN_003229d0") (parameter_list "(long *param_1)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined8 *puVar1;\n  \n  puVar1 = (undefined8 *)(*(long *)(*param_1 + -0x18) + (long)param_1);\n  puVar1[0x1f] = &PTR_FUN_00457b28;\n  *puVar1 = &PTR_FUN_00457b00;\n  puVar1[1] = &PTR_FUN_00457948;\n  FUN_003206d0(puVar1 + 1);\n  thunk_FUN_002f24d0(puVar1 + 0xe);\n  puVar1[1] = &PTR_FUN_00456710;\n  FUN_002f43a0(puVar1 + 8);\n  *puVar1 = &DAT_00457a90;\n  puVar1[0x1f] = &PTR_FUN_00457488;\n  FUN_0032ff10(puVar1 + 0x1f);\n  FUN_002f1e60(puVar1);\n  return;\n}" ({ "{") (declaration "undefined8 *puVar1;" (type_identifier "undefined8") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (expression_statement "puVar1 = (undefined8 *)(*(long *)(*param_1 + -0x18) + (long)param_1);" (assignment_expression "puVar1 = (undefined8 *)(*(long *)(*param_1 + -0x18) + (long)param_1)" (identifier "puVar1") (= "=") (cast_expression "(undefined8 *)(*(long *)(*param_1 + -0x18) + (long)param_1)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(*param_1 + -0x18) + (long)param_1)" (( "(") (binary_expression "*(long *)(*param_1 + -0x18) + (long)param_1" (pointer_expression "*(long *)(*param_1 + -0x18)" (* "*") (cast_expression "(long *)(*param_1 + -0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0x18)" (( "(") (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0x18")) () ")")))) (+ "+") (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1"))) () ")")))) (; ";")) (expression_statement "puVar1[0x1f] = &PTR_FUN_00457b28;" (assignment_expression "puVar1[0x1f] = &PTR_FUN_00457b28" (subscript_expression "puVar1[0x1f]" (identifier "puVar1") ([ "[") (number_literal "0x1f") (] "]")) (= "=") (pointer_expression "&PTR_FUN_00457b28" (& "&") (identifier "PTR_FUN_00457b28"))) (; ";")) (expression_statement "*puVar1 = &PTR_FUN_00457b00;" (assignment_expression "*puVar1 = &PTR_FUN_00457b00" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (pointer_expression "&PTR_FUN_00457b00" (& "&") (identifier "PTR_FUN_00457b00"))) (; ";")) (expression_statement "puVar1[1] = &PTR_FUN_00457948;" (assignment_expression "puVar1[1] = &PTR_FUN_00457948" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (pointer_expression "&PTR_FUN_00457948" (& "&") (identifier "PTR_FUN_00457948"))) (; ";")) (expression_statement "FUN_003206d0(puVar1 + 1);" (call_expression "FUN_003206d0(puVar1 + 1)" (identifier "FUN_003206d0") (argument_list "(puVar1 + 1)" (( "(") (binary_expression "puVar1 + 1" (identifier "puVar1") (+ "+") (number_literal "1")) () ")"))) (; ";")) (expression_statement "thunk_FUN_002f24d0(puVar1 + 0xe);" (call_expression "thunk_FUN_002f24d0(puVar1 + 0xe)" (identifier "thunk_FUN_002f24d0") (argument_list "(puVar1 + 0xe)" (( "(") (binary_expression "puVar1 + 0xe" (identifier "puVar1") (+ "+") (number_literal "0xe")) () ")"))) (; ";")) (expression_statement "puVar1[1] = &PTR_FUN_00456710;" (assignment_expression "puVar1[1] = &PTR_FUN_00456710" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (pointer_expression "&PTR_FUN_00456710" (& "&") (identifier "PTR_FUN_00456710"))) (; ";")) (expression_statement "FUN_002f43a0(puVar1 + 8);" (call_expression "FUN_002f43a0(puVar1 + 8)" (identifier "FUN_002f43a0") (argument_list "(puVar1 + 8)" (( "(") (binary_expression "puVar1 + 8" (identifier "puVar1") (+ "+") (number_literal "8")) () ")"))) (; ";")) (expression_statement "*puVar1 = &DAT_00457a90;" (assignment_expression "*puVar1 = &DAT_00457a90" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (pointer_expression "&DAT_00457a90" (& "&") (identifier "DAT_00457a90"))) (; ";")) (expression_statement "puVar1[0x1f] = &PTR_FUN_00457488;" (assignment_expression "puVar1[0x1f] = &PTR_FUN_00457488" (subscript_expression "puVar1[0x1f]" (identifier "puVar1") ([ "[") (number_literal "0x1f") (] "]")) (= "=") (pointer_expression "&PTR_FUN_00457488" (& "&") (identifier "PTR_FUN_00457488"))) (; ";")) (expression_statement "FUN_0032ff10(puVar1 + 0x1f);" (call_expression "FUN_0032ff10(puVar1 + 0x1f)" (identifier "FUN_0032ff10") (argument_list "(puVar1 + 0x1f)" (( "(") (binary_expression "puVar1 + 0x1f" (identifier "puVar1") (+ "+") (number_literal "0x1f")) () ")"))) (; ";")) (expression_statement "FUN_002f1e60(puVar1);" (call_expression "FUN_002f1e60(puVar1)" (identifier "FUN_002f1e60") (argument_list "(puVar1)" (( "(") (identifier "puVar1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* virtual thunk to std::wofstream::~wofstream() */

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

{
  function_1 *var_2;
  
  var_2 = var_1 + *(long *)(*(long *)var_1 + -0x18);
  *(type_1 ***)(var_2 + 0xf8) = &PTR__wofstream_00457b28;
  *(type_1 ***)var_2 = &PTR__wofstream_00457b00;
  *(type_1 ***)(var_2 + 8) = &PTR__wfilebuf_00457948;
  wfilebuf::var_3((type_2 *)(var_2 + 8));
  var_4<var_5>::~var_4((var_4<var_5> *)(var_2 + 0x70));
  *(type_1 ***)(var_2 + 8) = &PTR__wstreambuf_00456710;
  locale::~var_6((var_6 *)(var_2 + 0x40));
  *(type_3 *)var_2 = 0x457a90;
  *(type_1 ***)(var_2 + 0xf8) = &PTR__wios_00457488;
  ios_base::~var_7((var_7 *)(var_2 + 0xf8));
  var_8(var_2);
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) 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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier))))))) (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))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement))))

void MASKED(long *param_1)

{
  undefined8 *puVar1;
  
  puVar1 = (undefined8 *)(*(long *)(*param_1 + -0x18) + (long)param_1);
  puVar1[0x1f] = &PTR_FUN_00457b28;
  *puVar1 = &PTR_FUN_00457b00;
  puVar1[1] = &PTR_FUN_00457948;
  FUN_003206d0(puVar1 + 1);
  thunk_FUN_002f24d0(puVar1 + 0xe);
  puVar1[1] = &PTR_FUN_00456710;
  FUN_002f43a0(puVar1 + 8);
  *puVar1 = &DAT_00457a90;
  puVar1[0x1f] = &PTR_FUN_00457488;
  FUN_0032ff10(puVar1 + 0x1f);
  FUN_002f1e60(puVar1);
  return;
}

