
/* std::wfilebuf::~wfilebuf() */

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

{
  *(undefined ***)this = &PTR__wfilebuf_004b5950;
  close(this);
  __basic_file<char>::~__basic_file((__basic_file<char> *)(this + 0x68));
  *(undefined ***)this = &PTR__wstreambuf_004b4718;
  locale::~locale((locale *)(this + 0x38));
  return;
}



void FUN_003673d0(undefined8 *param_1)

{
  *param_1 = &PTR_FUN_004b5950;
  FUN_003672c0();
  thunk_FUN_003390c0(param_1 + 0xd);
  *param_1 = &PTR_FUN_004b4718;
  FUN_0033af90(param_1 + 7);
  return;
}


LEA RAX,[0x4b5940]
PUSH RBX
MOV RBX,RDI
ADD RAX,0x10
MOV qword ptr [RDI],RAX
CALL 0x003672c0
LEA RDI,[RBX + 0x68]
CALL 0x00339110
LEA RAX,[0x4b4708]
LEA RDI,[RBX + 0x38]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
POP RBX
JMP 0x0033af90
(translation_unit "void FUN_003673d0(undefined8 *param_1)\n\n{\n  *param_1 = &PTR_FUN_004b5950;\n  FUN_003672c0();\n  thunk_FUN_003390c0(param_1 + 0xd);\n  *param_1 = &PTR_FUN_004b4718;\n  FUN_0033af90(param_1 + 7);\n  return;\n}\n\n" (function_definition "void FUN_003673d0(undefined8 *param_1)\n\n{\n  *param_1 = &PTR_FUN_004b5950;\n  FUN_003672c0();\n  thunk_FUN_003390c0(param_1 + 0xd);\n  *param_1 = &PTR_FUN_004b4718;\n  FUN_0033af90(param_1 + 7);\n  return;\n}" primitive_type (function_declarator "FUN_003673d0(undefined8 *param_1)" identifier (parameter_list "(undefined8 *param_1)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  *param_1 = &PTR_FUN_004b5950;\n  FUN_003672c0();\n  thunk_FUN_003390c0(param_1 + 0xd);\n  *param_1 = &PTR_FUN_004b4718;\n  FUN_0033af90(param_1 + 7);\n  return;\n}" { (expression_statement "*param_1 = &PTR_FUN_004b5950;" (assignment_expression "*param_1 = &PTR_FUN_004b5950" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_004b5950" & identifier)) ;) (expression_statement "FUN_003672c0();" (call_expression "FUN_003672c0()" identifier (argument_list "()" ( ))) ;) (expression_statement "thunk_FUN_003390c0(param_1 + 0xd);" (call_expression "thunk_FUN_003390c0(param_1 + 0xd)" identifier (argument_list "(param_1 + 0xd)" ( (binary_expression "param_1 + 0xd" identifier + number_literal) ))) ;) (expression_statement "*param_1 = &PTR_FUN_004b4718;" (assignment_expression "*param_1 = &PTR_FUN_004b4718" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_004b4718" & identifier)) ;) (expression_statement "FUN_0033af90(param_1 + 7);" (call_expression "FUN_0033af90(param_1 + 7)" identifier (argument_list "(param_1 + 7)" ( (binary_expression "param_1 + 7" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* std::wfilebuf::~wfilebuf() */\n\nvoid __thiscall std::wfilebuf::~wfilebuf(wfilebuf *this)\n\n{\n  *(undefined ***)this = &PTR__wfilebuf_004b5950;\n  close(this);\n  __basic_file<char>::~__basic_file((__basic_file<char> *)(this + 0x68));\n  *(undefined ***)this = &PTR__wstreambuf_004b4718;\n  locale::~locale((locale *)(this + 0x38));\n  return;\n}\n\n" comment (function_definition "void __thiscall std::wfilebuf::~wfilebuf(wfilebuf *this)\n\n{\n  *(undefined ***)this = &PTR__wfilebuf_004b5950;\n  close(this);\n  __basic_file<char>::~__basic_file((__basic_file<char> *)(this + 0x68));\n  *(undefined ***)this = &PTR__wstreambuf_004b4718;\n  locale::~locale((locale *)(this + 0x38));\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::wfilebuf::~" identifier : : identifier : : ~) (function_declarator "wfilebuf(wfilebuf *this)" identifier (parameter_list "(wfilebuf *this)" ( (parameter_declaration "wfilebuf *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  *(undefined ***)this = &PTR__wfilebuf_004b5950;\n  close(this);\n  __basic_file<char>::~__basic_file((__basic_file<char> *)(this + 0x68));\n  *(undefined ***)this = &PTR__wstreambuf_004b4718;\n  locale::~locale((locale *)(this + 0x38));\n  return;\n}" { (expression_statement "*(undefined ***)this = &PTR__wfilebuf_004b5950;" (assignment_expression "*(undefined ***)this = &PTR__wfilebuf_004b5950" (pointer_expression "*(undefined ***)this" * (cast_expression "(undefined ***)this" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) identifier)) = (pointer_expression "&PTR__wfilebuf_004b5950" & identifier)) ;) (expression_statement "close(this);" (call_expression "close(this)" identifier (argument_list "(this)" ( identifier ))) ;) (expression_statement "__basic_file<char>::~__basic_file((__basic_file<char> *)(this + 0x68));" (binary_expression "__basic_file<char>::~__basic_file((__basic_file<char> *)(this + 0x68))" (binary_expression "__basic_file<char" identifier < identifier) > (ERROR "::" : :) (unary_expression "~__basic_file((__basic_file<char> *)(this + 0x68))" ~ (call_expression "__basic_file((__basic_file<char> *)(this + 0x68))" identifier (argument_list "((__basic_file<char> *)(this + 0x68))" ( (call_expression "(__basic_file<char> *)(this + 0x68)" (parenthesized_expression "(__basic_file<char> *)" ( (binary_expression "__basic_file<char> *" (binary_expression "__basic_file<char" identifier < identifier) > (pointer_expression "*" * identifier)) )) (argument_list "(this + 0x68)" ( (binary_expression "this + 0x68" identifier + number_literal) ))) ))))) ;) (expression_statement "*(undefined ***)this = &PTR__wstreambuf_004b4718;" (assignment_expression "*(undefined ***)this = &PTR__wstreambuf_004b4718" (pointer_expression "*(undefined ***)this" * (cast_expression "(undefined ***)this" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) identifier)) = (pointer_expression "&PTR__wstreambuf_004b4718" & identifier)) ;) (labeled_statement "locale::~locale((locale *)(this + 0x38));" statement_identifier : (ERROR ":" :) (expression_statement "~locale((locale *)(this + 0x38));" (unary_expression "~locale((locale *)(this + 0x38))" ~ (call_expression "locale((locale *)(this + 0x38))" identifier (argument_list "((locale *)(this + 0x38))" ( (cast_expression "(locale *)(this + 0x38)" ( (type_descriptor "locale *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x38)" ( (binary_expression "this + 0x38" identifier + number_literal) ))) )))) ;)) (return_statement "return;" return ;) })))
(translation_unit "void FUN_003673d0(undefined8 *param_1)\n\n{\n  *param_1 = &PTR_FUN_004b5950;\n  FUN_003672c0();\n  thunk_FUN_003390c0(param_1 + 0xd);\n  *param_1 = &PTR_FUN_004b4718;\n  FUN_0033af90(param_1 + 7);\n  return;\n}\n\n" (function_definition "void FUN_003673d0(undefined8 *param_1)\n\n{\n  *param_1 = &PTR_FUN_004b5950;\n  FUN_003672c0();\n  thunk_FUN_003390c0(param_1 + 0xd);\n  *param_1 = &PTR_FUN_004b4718;\n  FUN_0033af90(param_1 + 7);\n  return;\n}" primitive_type (function_declarator "FUN_003673d0(undefined8 *param_1)" identifier (parameter_list "(undefined8 *param_1)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  *param_1 = &PTR_FUN_004b5950;\n  FUN_003672c0();\n  thunk_FUN_003390c0(param_1 + 0xd);\n  *param_1 = &PTR_FUN_004b4718;\n  FUN_0033af90(param_1 + 7);\n  return;\n}" { (expression_statement "*param_1 = &PTR_FUN_004b5950;" (assignment_expression "*param_1 = &PTR_FUN_004b5950" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_004b5950" & identifier)) ;) (expression_statement "FUN_003672c0();" (call_expression "FUN_003672c0()" identifier (argument_list "()" ( ))) ;) (expression_statement "thunk_FUN_003390c0(param_1 + 0xd);" (call_expression "thunk_FUN_003390c0(param_1 + 0xd)" identifier (argument_list "(param_1 + 0xd)" ( (binary_expression "param_1 + 0xd" identifier + number_literal) ))) ;) (expression_statement "*param_1 = &PTR_FUN_004b4718;" (assignment_expression "*param_1 = &PTR_FUN_004b4718" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_004b4718" & identifier)) ;) (expression_statement "FUN_0033af90(param_1 + 7);" (call_expression "FUN_0033af90(param_1 + 7)" identifier (argument_list "(param_1 + 7)" ( (binary_expression "param_1 + 7" 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 { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression & IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression & IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (return_statement return ;) })))
(function_definition "void FUN_003673d0(undefined8 *param_1)\n\n{\n  *param_1 = &PTR_FUN_004b5950;\n  FUN_003672c0();\n  thunk_FUN_003390c0(param_1 + 0xd);\n  *param_1 = &PTR_FUN_004b4718;\n  FUN_0033af90(param_1 + 7);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_003673d0(undefined8 *param_1)" (identifier "FUN_003673d0") (parameter_list "(undefined8 *param_1)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  *param_1 = &PTR_FUN_004b5950;\n  FUN_003672c0();\n  thunk_FUN_003390c0(param_1 + 0xd);\n  *param_1 = &PTR_FUN_004b4718;\n  FUN_0033af90(param_1 + 7);\n  return;\n}" ({ "{") (expression_statement "*param_1 = &PTR_FUN_004b5950;" (assignment_expression "*param_1 = &PTR_FUN_004b5950" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "&PTR_FUN_004b5950" (& "&") (identifier "PTR_FUN_004b5950"))) (; ";")) (expression_statement "FUN_003672c0();" (call_expression "FUN_003672c0()" (identifier "FUN_003672c0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "thunk_FUN_003390c0(param_1 + 0xd);" (call_expression "thunk_FUN_003390c0(param_1 + 0xd)" (identifier "thunk_FUN_003390c0") (argument_list "(param_1 + 0xd)" (( "(") (binary_expression "param_1 + 0xd" (identifier "param_1") (+ "+") (number_literal "0xd")) () ")"))) (; ";")) (expression_statement "*param_1 = &PTR_FUN_004b4718;" (assignment_expression "*param_1 = &PTR_FUN_004b4718" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "&PTR_FUN_004b4718" (& "&") (identifier "PTR_FUN_004b4718"))) (; ";")) (expression_statement "FUN_0033af90(param_1 + 7);" (call_expression "FUN_0033af90(param_1 + 7)" (identifier "FUN_0033af90") (argument_list "(param_1 + 7)" (( "(") (binary_expression "param_1 + 7" (identifier "param_1") (+ "+") (number_literal "7")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::wfilebuf::~wfilebuf() */

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

{
  *(type_1 ***)var_4 = &PTR__wfilebuf_004b5950;
  var_1(var_4);
  var_2<var_3>::~var_2((var_2<var_3> *)(var_4 + 0x68));
  *(type_1 ***)var_4 = &PTR__wstreambuf_004b4718;
  locale::~var_5((var_5 *)(var_4 + 0x38));
  return;
}


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

void MASKED(undefined8 *param_1)

{
  *param_1 = &PTR_FUN_004b5950;
  FUN_003672c0();
  thunk_FUN_003390c0(param_1 + 0xd);
  *param_1 = &PTR_FUN_004b4718;
  FUN_0033af90(param_1 + 7);
  return;
}

