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

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

{
  ostream *poVar1;
  
  poVar1 = this + *(long *)(*(long *)this + -0x18);
  *(undefined8 *)poVar1 = 0x438808;
  *(undefined ***)(poVar1 + 8) = &PTR__ios_00439478;
  ios_base::~ios_base((ios_base *)(poVar1 + 8));
  return;
}



void FUN_002e5350(long *param_1)

{
  undefined8 *puVar1;
  
  puVar1 = (undefined8 *)((long)param_1 + *(long *)(*param_1 + -0x18));
  *puVar1 = &PTR_FUN_00438808;
  puVar1[1] = &PTR_FUN_00439478;
  FUN_00318d20();
  return;
}


MOV RAX,qword ptr [RDI]
ADD RDI,qword ptr [RAX + -0x18]
LEA RAX,[0x4387f0]
ADD RDI,0x8
ADD RAX,0x18
MOV qword ptr [RDI + -0x8],RAX
LEA RAX,[0x439468]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
JMP 0x00318d20
(translation_unit "void FUN_002e5350(long *param_1)\n\n{\n  undefined8 *puVar1;\n  \n  puVar1 = (undefined8 *)((long)param_1 + *(long *)(*param_1 + -0x18));\n  *puVar1 = &PTR_FUN_00438808;\n  puVar1[1] = &PTR_FUN_00439478;\n  FUN_00318d20();\n  return;\n}\n\n" (function_definition "void FUN_002e5350(long *param_1)\n\n{\n  undefined8 *puVar1;\n  \n  puVar1 = (undefined8 *)((long)param_1 + *(long *)(*param_1 + -0x18));\n  *puVar1 = &PTR_FUN_00438808;\n  puVar1[1] = &PTR_FUN_00439478;\n  FUN_00318d20();\n  return;\n}" primitive_type (function_declarator "FUN_002e5350(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 + *(long *)(*param_1 + -0x18));\n  *puVar1 = &PTR_FUN_00438808;\n  puVar1[1] = &PTR_FUN_00439478;\n  FUN_00318d20();\n  return;\n}" { (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (expression_statement "puVar1 = (undefined8 *)((long)param_1 + *(long *)(*param_1 + -0x18));" (assignment_expression "puVar1 = (undefined8 *)((long)param_1 + *(long *)(*param_1 + -0x18))" identifier = (cast_expression "(undefined8 *)((long)param_1 + *(long *)(*param_1 + -0x18))" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + *(long *)(*param_1 + -0x18))" ( (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18)" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (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) ))))) )))) ;) (expression_statement "*puVar1 = &PTR_FUN_00438808;" (assignment_expression "*puVar1 = &PTR_FUN_00438808" (pointer_expression "*puVar1" * identifier) = (pointer_expression "&PTR_FUN_00438808" & identifier)) ;) (expression_statement "puVar1[1] = &PTR_FUN_00439478;" (assignment_expression "puVar1[1] = &PTR_FUN_00439478" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_00439478" & identifier)) ;) (expression_statement "FUN_00318d20();" (call_expression "FUN_00318d20()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* virtual thunk to std::ostream::~ostream() */\n\nvoid __thiscall std::ostream::~ostream(ostream *this)\n\n{\n  ostream *poVar1;\n  \n  poVar1 = this + *(long *)(*(long *)this + -0x18);\n  *(undefined8 *)poVar1 = 0x438808;\n  *(undefined ***)(poVar1 + 8) = &PTR__ios_00439478;\n  ios_base::~ios_base((ios_base *)(poVar1 + 8));\n  return;\n}\n\n" comment (function_definition "void __thiscall std::ostream::~ostream(ostream *this)\n\n{\n  ostream *poVar1;\n  \n  poVar1 = this + *(long *)(*(long *)this + -0x18);\n  *(undefined8 *)poVar1 = 0x438808;\n  *(undefined ***)(poVar1 + 8) = &PTR__ios_00439478;\n  ios_base::~ios_base((ios_base *)(poVar1 + 8));\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::ostream::~" identifier : : identifier : : ~) (function_declarator "ostream(ostream *this)" identifier (parameter_list "(ostream *this)" ( (parameter_declaration "ostream *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  ostream *poVar1;\n  \n  poVar1 = this + *(long *)(*(long *)this + -0x18);\n  *(undefined8 *)poVar1 = 0x438808;\n  *(undefined ***)(poVar1 + 8) = &PTR__ios_00439478;\n  ios_base::~ios_base((ios_base *)(poVar1 + 8));\n  return;\n}" { (declaration "ostream *poVar1;" type_identifier (pointer_declarator "*poVar1" * identifier) ;) (expression_statement "poVar1 = this + *(long *)(*(long *)this + -0x18);" (assignment_expression "poVar1 = 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 "*(undefined8 *)poVar1 = 0x438808;" (assignment_expression "*(undefined8 *)poVar1 = 0x438808" (pointer_expression "*(undefined8 *)poVar1" * (cast_expression "(undefined8 *)poVar1" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "*(undefined ***)(poVar1 + 8) = &PTR__ios_00439478;" (assignment_expression "*(undefined ***)(poVar1 + 8) = &PTR__ios_00439478" (pointer_expression "*(undefined ***)(poVar1 + 8)" * (cast_expression "(undefined ***)(poVar1 + 8)" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "(poVar1 + 8)" ( (binary_expression "poVar1 + 8" identifier + number_literal) )))) = (pointer_expression "&PTR__ios_00439478" & identifier)) ;) (labeled_statement "ios_base::~ios_base((ios_base *)(poVar1 + 8));" statement_identifier : (ERROR ":" :) (expression_statement "~ios_base((ios_base *)(poVar1 + 8));" (unary_expression "~ios_base((ios_base *)(poVar1 + 8))" ~ (call_expression "ios_base((ios_base *)(poVar1 + 8))" identifier (argument_list "((ios_base *)(poVar1 + 8))" ( (cast_expression "(ios_base *)(poVar1 + 8)" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(poVar1 + 8)" ( (binary_expression "poVar1 + 8" identifier + number_literal) ))) )))) ;)) (return_statement "return;" return ;) })))
(translation_unit "void FUN_002e5350(long *param_1)\n\n{\n  undefined8 *puVar1;\n  \n  puVar1 = (undefined8 *)((long)param_1 + *(long *)(*param_1 + -0x18));\n  *puVar1 = &PTR_FUN_00438808;\n  puVar1[1] = &PTR_FUN_00439478;\n  FUN_00318d20();\n  return;\n}\n\n" (function_definition "void FUN_002e5350(long *param_1)\n\n{\n  undefined8 *puVar1;\n  \n  puVar1 = (undefined8 *)((long)param_1 + *(long *)(*param_1 + -0x18));\n  *puVar1 = &PTR_FUN_00438808;\n  puVar1[1] = &PTR_FUN_00439478;\n  FUN_00318d20();\n  return;\n}" primitive_type (function_declarator "FUN_002e5350(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 + *(long *)(*param_1 + -0x18));\n  *puVar1 = &PTR_FUN_00438808;\n  puVar1[1] = &PTR_FUN_00439478;\n  FUN_00318d20();\n  return;\n}" { (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (expression_statement "puVar1 = (undefined8 *)((long)param_1 + *(long *)(*param_1 + -0x18));" (assignment_expression "puVar1 = (undefined8 *)((long)param_1 + *(long *)(*param_1 + -0x18))" identifier = (cast_expression "(undefined8 *)((long)param_1 + *(long *)(*param_1 + -0x18))" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + *(long *)(*param_1 + -0x18))" ( (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18)" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (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) ))))) )))) ;) (expression_statement "*puVar1 = &PTR_FUN_00438808;" (assignment_expression "*puVar1 = &PTR_FUN_00438808" (pointer_expression "*puVar1" * identifier) = (pointer_expression "&PTR_FUN_00438808" & identifier)) ;) (expression_statement "puVar1[1] = &PTR_FUN_00439478;" (assignment_expression "puVar1[1] = &PTR_FUN_00439478" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_00439478" & identifier)) ;) (expression_statement "FUN_00318d20();" (call_expression "FUN_00318d20()" identifier (argument_list "()" ( ))) ;) (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 (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_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 ( ))) ;) (return_statement return ;) })))
(function_definition "void FUN_002e5350(long *param_1)\n\n{\n  undefined8 *puVar1;\n  \n  puVar1 = (undefined8 *)((long)param_1 + *(long *)(*param_1 + -0x18));\n  *puVar1 = &PTR_FUN_00438808;\n  puVar1[1] = &PTR_FUN_00439478;\n  FUN_00318d20();\n  return;\n}" (primitive_type "void") (function_declarator "FUN_002e5350(long *param_1)" (identifier "FUN_002e5350") (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 + *(long *)(*param_1 + -0x18));\n  *puVar1 = &PTR_FUN_00438808;\n  puVar1[1] = &PTR_FUN_00439478;\n  FUN_00318d20();\n  return;\n}" ({ "{") (declaration "undefined8 *puVar1;" (type_identifier "undefined8") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (expression_statement "puVar1 = (undefined8 *)((long)param_1 + *(long *)(*param_1 + -0x18));" (assignment_expression "puVar1 = (undefined8 *)((long)param_1 + *(long *)(*param_1 + -0x18))" (identifier "puVar1") (= "=") (cast_expression "(undefined8 *)((long)param_1 + *(long *)(*param_1 + -0x18))" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + *(long *)(*param_1 + -0x18))" (( "(") (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18)" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "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")) () ")"))))) () ")")))) (; ";")) (expression_statement "*puVar1 = &PTR_FUN_00438808;" (assignment_expression "*puVar1 = &PTR_FUN_00438808" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (pointer_expression "&PTR_FUN_00438808" (& "&") (identifier "PTR_FUN_00438808"))) (; ";")) (expression_statement "puVar1[1] = &PTR_FUN_00439478;" (assignment_expression "puVar1[1] = &PTR_FUN_00439478" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (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 "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

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 = 0x438808;
  *(type_2 ***)(var_2 + 8) = &PTR__ios_00439478;
  ios_base::~var_3((var_3 *)(var_2 + 8));
  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: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (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)))))))))) (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))) (return_statement))))

void MASKED(long *param_1)

{
  undefined8 *puVar1;
  
  puVar1 = (undefined8 *)((long)param_1 + *(long *)(*param_1 + -0x18));
  *puVar1 = &PTR_FUN_00438808;
  puVar1[1] = &PTR_FUN_00439478;
  FUN_00318d20();
  return;
}

