
/* non-virtual thunk to std::iostream::~iostream() */

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

{
  *(undefined8 *)this = 0x43c3b0;
  *(undefined8 *)(this + -0x10) = 0x43c400;
  *(undefined8 *)(this + -8) = 0;
  *(undefined ***)(this + 8) = &PTR__ios_00439478;
  ios_base::~ios_base((ios_base *)(this + 8));
  operator_delete(this + -0x10);
  return;
}



void FUN_00335570(undefined8 *param_1)

{
  *param_1 = &DAT_0043c3b0;
  param_1[-2] = &DAT_0043c400;
  param_1[-1] = 0;
  param_1[1] = &PTR_FUN_00439478;
  FUN_00318d20();
  FUN_002dac70(param_1 + -2);
  return;
}


LEA RAX,[0x43c3b0]
PUSH RBX
MOV RBX,RDI
LEA RDI,[RDI + 0x8]
MOV qword ptr [RDI + -0x8],RAX
LEA RAX,[0x43c400]
MOV qword ptr [RDI + -0x18],RAX
LEA RAX,[0x439468]
MOV qword ptr [RDI + -0x10],0x0
ADD RAX,0x10
MOV qword ptr [RDI],RAX
CALL 0x00318d20
LEA RDI,[RBX + -0x10]
POP RBX
JMP 0x002dac70
(translation_unit "void FUN_00335570(undefined8 *param_1)\n\n{\n  *param_1 = &DAT_0043c3b0;\n  param_1[-2] = &DAT_0043c400;\n  param_1[-1] = 0;\n  param_1[1] = &PTR_FUN_00439478;\n  FUN_00318d20();\n  FUN_002dac70(param_1 + -2);\n  return;\n}\n\n" (function_definition "void FUN_00335570(undefined8 *param_1)\n\n{\n  *param_1 = &DAT_0043c3b0;\n  param_1[-2] = &DAT_0043c400;\n  param_1[-1] = 0;\n  param_1[1] = &PTR_FUN_00439478;\n  FUN_00318d20();\n  FUN_002dac70(param_1 + -2);\n  return;\n}" primitive_type (function_declarator "FUN_00335570(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 = &DAT_0043c3b0;\n  param_1[-2] = &DAT_0043c400;\n  param_1[-1] = 0;\n  param_1[1] = &PTR_FUN_00439478;\n  FUN_00318d20();\n  FUN_002dac70(param_1 + -2);\n  return;\n}" { (expression_statement "*param_1 = &DAT_0043c3b0;" (assignment_expression "*param_1 = &DAT_0043c3b0" (pointer_expression "*param_1" * identifier) = (pointer_expression "&DAT_0043c3b0" & identifier)) ;) (expression_statement "param_1[-2] = &DAT_0043c400;" (assignment_expression "param_1[-2] = &DAT_0043c400" (subscript_expression "param_1[-2]" identifier [ number_literal ]) = (pointer_expression "&DAT_0043c400" & identifier)) ;) (expression_statement "param_1[-1] = 0;" (assignment_expression "param_1[-1] = 0" (subscript_expression "param_1[-1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[1] = &PTR_FUN_00439478;" (assignment_expression "param_1[1] = &PTR_FUN_00439478" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_00439478" & identifier)) ;) (expression_statement "FUN_00318d20();" (call_expression "FUN_00318d20()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_002dac70(param_1 + -2);" (call_expression "FUN_002dac70(param_1 + -2)" identifier (argument_list "(param_1 + -2)" ( (binary_expression "param_1 + -2" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* non-virtual thunk to std::iostream::~iostream() */\n\nvoid __thiscall std::iostream::~iostream(iostream *this)\n\n{\n  *(undefined8 *)this = 0x43c3b0;\n  *(undefined8 *)(this + -0x10) = 0x43c400;\n  *(undefined8 *)(this + -8) = 0;\n  *(undefined ***)(this + 8) = &PTR__ios_00439478;\n  ios_base::~ios_base((ios_base *)(this + 8));\n  operator_delete(this + -0x10);\n  return;\n}\n\n" comment (function_definition "void __thiscall std::iostream::~iostream(iostream *this)\n\n{\n  *(undefined8 *)this = 0x43c3b0;\n  *(undefined8 *)(this + -0x10) = 0x43c400;\n  *(undefined8 *)(this + -8) = 0;\n  *(undefined ***)(this + 8) = &PTR__ios_00439478;\n  ios_base::~ios_base((ios_base *)(this + 8));\n  operator_delete(this + -0x10);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::iostream::~" identifier : : identifier : : ~) (function_declarator "iostream(iostream *this)" identifier (parameter_list "(iostream *this)" ( (parameter_declaration "iostream *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  *(undefined8 *)this = 0x43c3b0;\n  *(undefined8 *)(this + -0x10) = 0x43c400;\n  *(undefined8 *)(this + -8) = 0;\n  *(undefined ***)(this + 8) = &PTR__ios_00439478;\n  ios_base::~ios_base((ios_base *)(this + 8));\n  operator_delete(this + -0x10);\n  return;\n}" { (expression_statement "*(undefined8 *)this = 0x43c3b0;" (assignment_expression "*(undefined8 *)this = 0x43c3b0" (pointer_expression "*(undefined8 *)this" * (cast_expression "(undefined8 *)this" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "*(undefined8 *)(this + -0x10) = 0x43c400;" (assignment_expression "*(undefined8 *)(this + -0x10) = 0x43c400" (pointer_expression "*(undefined8 *)(this + -0x10)" * (cast_expression "(undefined8 *)(this + -0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + -0x10)" ( (binary_expression "this + -0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)(this + -8) = 0;" (assignment_expression "*(undefined8 *)(this + -8) = 0" (pointer_expression "*(undefined8 *)(this + -8)" * (cast_expression "(undefined8 *)(this + -8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + -8)" ( (binary_expression "this + -8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined ***)(this + 8) = &PTR__ios_00439478;" (assignment_expression "*(undefined ***)(this + 8) = &PTR__ios_00439478" (pointer_expression "*(undefined ***)(this + 8)" * (cast_expression "(undefined ***)(this + 8)" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = (pointer_expression "&PTR__ios_00439478" & identifier)) ;) (labeled_statement "ios_base::~ios_base((ios_base *)(this + 8));" statement_identifier : (ERROR ":" :) (expression_statement "~ios_base((ios_base *)(this + 8));" (unary_expression "~ios_base((ios_base *)(this + 8))" ~ (call_expression "ios_base((ios_base *)(this + 8))" identifier (argument_list "((ios_base *)(this + 8))" ( (cast_expression "(ios_base *)(this + 8)" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))) )))) ;)) (expression_statement "operator_delete(this + -0x10);" (call_expression "operator_delete(this + -0x10)" identifier (argument_list "(this + -0x10)" ( (binary_expression "this + -0x10" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00335570(undefined8 *param_1)\n\n{\n  *param_1 = &DAT_0043c3b0;\n  param_1[-2] = &DAT_0043c400;\n  param_1[-1] = 0;\n  param_1[1] = &PTR_FUN_00439478;\n  FUN_00318d20();\n  FUN_002dac70(param_1 + -2);\n  return;\n}\n\n" (function_definition "void FUN_00335570(undefined8 *param_1)\n\n{\n  *param_1 = &DAT_0043c3b0;\n  param_1[-2] = &DAT_0043c400;\n  param_1[-1] = 0;\n  param_1[1] = &PTR_FUN_00439478;\n  FUN_00318d20();\n  FUN_002dac70(param_1 + -2);\n  return;\n}" primitive_type (function_declarator "FUN_00335570(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 = &DAT_0043c3b0;\n  param_1[-2] = &DAT_0043c400;\n  param_1[-1] = 0;\n  param_1[1] = &PTR_FUN_00439478;\n  FUN_00318d20();\n  FUN_002dac70(param_1 + -2);\n  return;\n}" { (expression_statement "*param_1 = &DAT_0043c3b0;" (assignment_expression "*param_1 = &DAT_0043c3b0" (pointer_expression "*param_1" * identifier) = (pointer_expression "&DAT_0043c3b0" & identifier)) ;) (expression_statement "param_1[-2] = &DAT_0043c400;" (assignment_expression "param_1[-2] = &DAT_0043c400" (subscript_expression "param_1[-2]" identifier [ number_literal ]) = (pointer_expression "&DAT_0043c400" & identifier)) ;) (expression_statement "param_1[-1] = 0;" (assignment_expression "param_1[-1] = 0" (subscript_expression "param_1[-1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[1] = &PTR_FUN_00439478;" (assignment_expression "param_1[1] = &PTR_FUN_00439478" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_00439478" & identifier)) ;) (expression_statement "FUN_00318d20();" (call_expression "FUN_00318d20()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_002dac70(param_1 + -2);" (call_expression "FUN_002dac70(param_1 + -2)" identifier (argument_list "(param_1 + -2)" ( (binary_expression "param_1 + -2" 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 (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression & IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00335570(undefined8 *param_1)\n\n{\n  *param_1 = &DAT_0043c3b0;\n  param_1[-2] = &DAT_0043c400;\n  param_1[-1] = 0;\n  param_1[1] = &PTR_FUN_00439478;\n  FUN_00318d20();\n  FUN_002dac70(param_1 + -2);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00335570(undefined8 *param_1)" (identifier "FUN_00335570") (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 = &DAT_0043c3b0;\n  param_1[-2] = &DAT_0043c400;\n  param_1[-1] = 0;\n  param_1[1] = &PTR_FUN_00439478;\n  FUN_00318d20();\n  FUN_002dac70(param_1 + -2);\n  return;\n}" ({ "{") (expression_statement "*param_1 = &DAT_0043c3b0;" (assignment_expression "*param_1 = &DAT_0043c3b0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "&DAT_0043c3b0" (& "&") (identifier "DAT_0043c3b0"))) (; ";")) (expression_statement "param_1[-2] = &DAT_0043c400;" (assignment_expression "param_1[-2] = &DAT_0043c400" (subscript_expression "param_1[-2]" (identifier "param_1") ([ "[") (number_literal "-2") (] "]")) (= "=") (pointer_expression "&DAT_0043c400" (& "&") (identifier "DAT_0043c400"))) (; ";")) (expression_statement "param_1[-1] = 0;" (assignment_expression "param_1[-1] = 0" (subscript_expression "param_1[-1]" (identifier "param_1") ([ "[") (number_literal "-1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[1] = &PTR_FUN_00439478;" (assignment_expression "param_1[1] = &PTR_FUN_00439478" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (pointer_expression "&PTR_FUN_00439478" (& "&") (identifier "PTR_FUN_00439478"))) (; ";")) (expression_statement "FUN_00318d20();" (call_expression "FUN_00318d20()" (identifier "FUN_00318d20") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_002dac70(param_1 + -2);" (call_expression "FUN_002dac70(param_1 + -2)" (identifier "FUN_002dac70") (argument_list "(param_1 + -2)" (( "(") (binary_expression "param_1 + -2" (identifier "param_1") (+ "+") (number_literal "-2")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* non-virtual thunk to std::iostream::~iostream() */

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

{
  *(type_1 *)var_1 = 0x43c3b0;
  *(type_1 *)(var_1 + -0x10) = 0x43c400;
  *(type_1 *)(var_1 + -8) = 0;
  *(type_2 ***)(var_1 + 8) = &PTR__ios_00439478;
  ios_base::~var_2((var_2 *)(var_1 + 8));
  var_3(var_1 + -0x10);
  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 (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) 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))) (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 = &DAT_0043c3b0;
  param_1[-2] = &DAT_0043c400;
  param_1[-1] = 0;
  param_1[1] = &PTR_FUN_00439478;
  FUN_00318d20();
  FUN_002dac70(param_1 + -2);
  return;
}

