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

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

{
  fstream *pfVar1;
  
  pfVar1 = this + *(long *)(*(long *)this + -0x18);
  *(undefined ***)pfVar1 = &PTR__fstream_004b58e0;
  *(undefined ***)(pfVar1 + 0x10) = &PTR__fstream_004b5908;
  *(undefined ***)(pfVar1 + 0x108) = &PTR__fstream_004b5930;
  *(undefined ***)(pfVar1 + 0x18) = &PTR__filebuf_004b5570;
  filebuf::close((filebuf *)(pfVar1 + 0x18));
  __basic_file<char>::~__basic_file((__basic_file<char> *)(pfVar1 + 0x80));
  *(undefined ***)(pfVar1 + 0x18) = &PTR__streambuf_004b4698;
  locale::~locale((locale *)(pfVar1 + 0x50));
  *(undefined8 *)(pfVar1 + 8) = 0;
  *(undefined8 *)(pfVar1 + 0x10) = 0x4b5778;
  *(undefined8 *)pfVar1 = 0x4b57c8;
  *(undefined ***)(pfVar1 + 0x108) = &PTR__ios_004b5470;
  ios_base::~ios_base((ios_base *)(pfVar1 + 0x108));
  operator_delete(pfVar1);
  return;
}



void FUN_00366870(long *param_1)

{
  undefined8 *puVar1;
  
  puVar1 = (undefined8 *)(*(long *)(*param_1 + -0x18) + (long)param_1);
  *puVar1 = &PTR_FUN_004b58e0;
  puVar1[2] = &PTR_FUN_004b5908;
  puVar1[0x21] = &PTR_FUN_004b5930;
  puVar1[3] = &PTR_FUN_004b5570;
  FUN_00364a40(puVar1 + 3);
  thunk_FUN_003390c0(puVar1 + 0x10);
  puVar1[3] = &PTR_FUN_004b4698;
  FUN_0033af90(puVar1 + 10);
  puVar1[1] = 0;
  puVar1[2] = &DAT_004b5778;
  *puVar1 = &DAT_004b57c8;
  puVar1[0x21] = &PTR_FUN_004b5470;
  FUN_00376b00(puVar1 + 0x21);
  FUN_00338a50(puVar1);
  return;
}


PUSH RBX
MOV RAX,qword ptr [RDI]
MOV RBX,qword ptr [RAX + -0x18]
LEA RAX,[0x4b58c8]
ADD RBX,RDI
LEA RDX,[RAX + 0x18]
MOV qword ptr [RBX],RDX
LEA RDX,[RAX + 0x68]
ADD RAX,0x40
LEA RDI,[RBX + 0x18]
MOV qword ptr [RBX + 0x10],RAX
LEA RAX,[0x4b5560]
MOV qword ptr [RBX + 0x108],RDX
ADD RAX,0x10
MOV qword ptr [RBX + 0x18],RAX
CALL 0x00364a40
LEA RDI,[RBX + 0x80]
CALL 0x00339110
LEA RAX,[0x4b4688]
LEA RDI,[RBX + 0x50]
ADD RAX,0x10
MOV qword ptr [RBX + 0x18],RAX
CALL 0x0033af90
LEA RAX,[0x4b5778]
MOV qword ptr [RBX + 0x8],0x0
LEA RDI,[RBX + 0x108]
MOV qword ptr [RBX + 0x10],RAX
LEA RAX,[0x4b57c8]
MOV qword ptr [RBX],RAX
LEA RAX,[0x4b5460]
ADD RAX,0x10
MOV qword ptr [RBX + 0x108],RAX
CALL 0x00376b00
MOV RDI,RBX
POP RBX
JMP 0x00338a50
(translation_unit "void FUN_00366870(long *param_1)\n\n{\n  undefined8 *puVar1;\n  \n  puVar1 = (undefined8 *)(*(long *)(*param_1 + -0x18) + (long)param_1);\n  *puVar1 = &PTR_FUN_004b58e0;\n  puVar1[2] = &PTR_FUN_004b5908;\n  puVar1[0x21] = &PTR_FUN_004b5930;\n  puVar1[3] = &PTR_FUN_004b5570;\n  FUN_00364a40(puVar1 + 3);\n  thunk_FUN_003390c0(puVar1 + 0x10);\n  puVar1[3] = &PTR_FUN_004b4698;\n  FUN_0033af90(puVar1 + 10);\n  puVar1[1] = 0;\n  puVar1[2] = &DAT_004b5778;\n  *puVar1 = &DAT_004b57c8;\n  puVar1[0x21] = &PTR_FUN_004b5470;\n  FUN_00376b00(puVar1 + 0x21);\n  FUN_00338a50(puVar1);\n  return;\n}\n\n" (function_definition "void FUN_00366870(long *param_1)\n\n{\n  undefined8 *puVar1;\n  \n  puVar1 = (undefined8 *)(*(long *)(*param_1 + -0x18) + (long)param_1);\n  *puVar1 = &PTR_FUN_004b58e0;\n  puVar1[2] = &PTR_FUN_004b5908;\n  puVar1[0x21] = &PTR_FUN_004b5930;\n  puVar1[3] = &PTR_FUN_004b5570;\n  FUN_00364a40(puVar1 + 3);\n  thunk_FUN_003390c0(puVar1 + 0x10);\n  puVar1[3] = &PTR_FUN_004b4698;\n  FUN_0033af90(puVar1 + 10);\n  puVar1[1] = 0;\n  puVar1[2] = &DAT_004b5778;\n  *puVar1 = &DAT_004b57c8;\n  puVar1[0x21] = &PTR_FUN_004b5470;\n  FUN_00376b00(puVar1 + 0x21);\n  FUN_00338a50(puVar1);\n  return;\n}" primitive_type (function_declarator "FUN_00366870(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 = &PTR_FUN_004b58e0;\n  puVar1[2] = &PTR_FUN_004b5908;\n  puVar1[0x21] = &PTR_FUN_004b5930;\n  puVar1[3] = &PTR_FUN_004b5570;\n  FUN_00364a40(puVar1 + 3);\n  thunk_FUN_003390c0(puVar1 + 0x10);\n  puVar1[3] = &PTR_FUN_004b4698;\n  FUN_0033af90(puVar1 + 10);\n  puVar1[1] = 0;\n  puVar1[2] = &DAT_004b5778;\n  *puVar1 = &DAT_004b57c8;\n  puVar1[0x21] = &PTR_FUN_004b5470;\n  FUN_00376b00(puVar1 + 0x21);\n  FUN_00338a50(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 = &PTR_FUN_004b58e0;" (assignment_expression "*puVar1 = &PTR_FUN_004b58e0" (pointer_expression "*puVar1" * identifier) = (pointer_expression "&PTR_FUN_004b58e0" & identifier)) ;) (expression_statement "puVar1[2] = &PTR_FUN_004b5908;" (assignment_expression "puVar1[2] = &PTR_FUN_004b5908" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_004b5908" & identifier)) ;) (expression_statement "puVar1[0x21] = &PTR_FUN_004b5930;" (assignment_expression "puVar1[0x21] = &PTR_FUN_004b5930" (subscript_expression "puVar1[0x21]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_004b5930" & identifier)) ;) (expression_statement "puVar1[3] = &PTR_FUN_004b5570;" (assignment_expression "puVar1[3] = &PTR_FUN_004b5570" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_004b5570" & identifier)) ;) (expression_statement "FUN_00364a40(puVar1 + 3);" (call_expression "FUN_00364a40(puVar1 + 3)" identifier (argument_list "(puVar1 + 3)" ( (binary_expression "puVar1 + 3" identifier + number_literal) ))) ;) (expression_statement "thunk_FUN_003390c0(puVar1 + 0x10);" (call_expression "thunk_FUN_003390c0(puVar1 + 0x10)" identifier (argument_list "(puVar1 + 0x10)" ( (binary_expression "puVar1 + 0x10" identifier + number_literal) ))) ;) (expression_statement "puVar1[3] = &PTR_FUN_004b4698;" (assignment_expression "puVar1[3] = &PTR_FUN_004b4698" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_004b4698" & identifier)) ;) (expression_statement "FUN_0033af90(puVar1 + 10);" (call_expression "FUN_0033af90(puVar1 + 10)" identifier (argument_list "(puVar1 + 10)" ( (binary_expression "puVar1 + 10" identifier + number_literal) ))) ;) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[2] = &DAT_004b5778;" (assignment_expression "puVar1[2] = &DAT_004b5778" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = (pointer_expression "&DAT_004b5778" & identifier)) ;) (expression_statement "*puVar1 = &DAT_004b57c8;" (assignment_expression "*puVar1 = &DAT_004b57c8" (pointer_expression "*puVar1" * identifier) = (pointer_expression "&DAT_004b57c8" & identifier)) ;) (expression_statement "puVar1[0x21] = &PTR_FUN_004b5470;" (assignment_expression "puVar1[0x21] = &PTR_FUN_004b5470" (subscript_expression "puVar1[0x21]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_004b5470" & identifier)) ;) (expression_statement "FUN_00376b00(puVar1 + 0x21);" (call_expression "FUN_00376b00(puVar1 + 0x21)" identifier (argument_list "(puVar1 + 0x21)" ( (binary_expression "puVar1 + 0x21" identifier + number_literal) ))) ;) (expression_statement "FUN_00338a50(puVar1);" (call_expression "FUN_00338a50(puVar1)" identifier (argument_list "(puVar1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* virtual thunk to std::fstream::~fstream() */\n\nvoid __thiscall std::fstream::~fstream(fstream *this)\n\n{\n  fstream *pfVar1;\n  \n  pfVar1 = this + *(long *)(*(long *)this + -0x18);\n  *(undefined ***)pfVar1 = &PTR__fstream_004b58e0;\n  *(undefined ***)(pfVar1 + 0x10) = &PTR__fstream_004b5908;\n  *(undefined ***)(pfVar1 + 0x108) = &PTR__fstream_004b5930;\n  *(undefined ***)(pfVar1 + 0x18) = &PTR__filebuf_004b5570;\n  filebuf::close((filebuf *)(pfVar1 + 0x18));\n  __basic_file<char>::~__basic_file((__basic_file<char> *)(pfVar1 + 0x80));\n  *(undefined ***)(pfVar1 + 0x18) = &PTR__streambuf_004b4698;\n  locale::~locale((locale *)(pfVar1 + 0x50));\n  *(undefined8 *)(pfVar1 + 8) = 0;\n  *(undefined8 *)(pfVar1 + 0x10) = 0x4b5778;\n  *(undefined8 *)pfVar1 = 0x4b57c8;\n  *(undefined ***)(pfVar1 + 0x108) = &PTR__ios_004b5470;\n  ios_base::~ios_base((ios_base *)(pfVar1 + 0x108));\n  operator_delete(pfVar1);\n  return;\n}\n\n" comment (function_definition "void __thiscall std::fstream::~fstream(fstream *this)\n\n{\n  fstream *pfVar1;\n  \n  pfVar1 = this + *(long *)(*(long *)this + -0x18);\n  *(undefined ***)pfVar1 = &PTR__fstream_004b58e0;\n  *(undefined ***)(pfVar1 + 0x10) = &PTR__fstream_004b5908;\n  *(undefined ***)(pfVar1 + 0x108) = &PTR__fstream_004b5930;\n  *(undefined ***)(pfVar1 + 0x18) = &PTR__filebuf_004b5570;\n  filebuf::close((filebuf *)(pfVar1 + 0x18));\n  __basic_file<char>::~__basic_file((__basic_file<char> *)(pfVar1 + 0x80));\n  *(undefined ***)(pfVar1 + 0x18) = &PTR__streambuf_004b4698;\n  locale::~locale((locale *)(pfVar1 + 0x50));\n  *(undefined8 *)(pfVar1 + 8) = 0;\n  *(undefined8 *)(pfVar1 + 0x10) = 0x4b5778;\n  *(undefined8 *)pfVar1 = 0x4b57c8;\n  *(undefined ***)(pfVar1 + 0x108) = &PTR__ios_004b5470;\n  ios_base::~ios_base((ios_base *)(pfVar1 + 0x108));\n  operator_delete(pfVar1);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::fstream::~" identifier : : identifier : : ~) (function_declarator "fstream(fstream *this)" identifier (parameter_list "(fstream *this)" ( (parameter_declaration "fstream *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  fstream *pfVar1;\n  \n  pfVar1 = this + *(long *)(*(long *)this + -0x18);\n  *(undefined ***)pfVar1 = &PTR__fstream_004b58e0;\n  *(undefined ***)(pfVar1 + 0x10) = &PTR__fstream_004b5908;\n  *(undefined ***)(pfVar1 + 0x108) = &PTR__fstream_004b5930;\n  *(undefined ***)(pfVar1 + 0x18) = &PTR__filebuf_004b5570;\n  filebuf::close((filebuf *)(pfVar1 + 0x18));\n  __basic_file<char>::~__basic_file((__basic_file<char> *)(pfVar1 + 0x80));\n  *(undefined ***)(pfVar1 + 0x18) = &PTR__streambuf_004b4698;\n  locale::~locale((locale *)(pfVar1 + 0x50));\n  *(undefined8 *)(pfVar1 + 8) = 0;\n  *(undefined8 *)(pfVar1 + 0x10) = 0x4b5778;\n  *(undefined8 *)pfVar1 = 0x4b57c8;\n  *(undefined ***)(pfVar1 + 0x108) = &PTR__ios_004b5470;\n  ios_base::~ios_base((ios_base *)(pfVar1 + 0x108));\n  operator_delete(pfVar1);\n  return;\n}" { (declaration "fstream *pfVar1;" type_identifier (pointer_declarator "*pfVar1" * identifier) ;) (expression_statement "pfVar1 = this + *(long *)(*(long *)this + -0x18);" (assignment_expression "pfVar1 = 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 ***)pfVar1 = &PTR__fstream_004b58e0;" (assignment_expression "*(undefined ***)pfVar1 = &PTR__fstream_004b58e0" (pointer_expression "*(undefined ***)pfVar1" * (cast_expression "(undefined ***)pfVar1" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) identifier)) = (pointer_expression "&PTR__fstream_004b58e0" & identifier)) ;) (expression_statement "*(undefined ***)(pfVar1 + 0x10) = &PTR__fstream_004b5908;" (assignment_expression "*(undefined ***)(pfVar1 + 0x10) = &PTR__fstream_004b5908" (pointer_expression "*(undefined ***)(pfVar1 + 0x10)" * (cast_expression "(undefined ***)(pfVar1 + 0x10)" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "(pfVar1 + 0x10)" ( (binary_expression "pfVar1 + 0x10" identifier + number_literal) )))) = (pointer_expression "&PTR__fstream_004b5908" & identifier)) ;) (expression_statement "*(undefined ***)(pfVar1 + 0x108) = &PTR__fstream_004b5930;" (assignment_expression "*(undefined ***)(pfVar1 + 0x108) = &PTR__fstream_004b5930" (pointer_expression "*(undefined ***)(pfVar1 + 0x108)" * (cast_expression "(undefined ***)(pfVar1 + 0x108)" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "(pfVar1 + 0x108)" ( (binary_expression "pfVar1 + 0x108" identifier + number_literal) )))) = (pointer_expression "&PTR__fstream_004b5930" & identifier)) ;) (expression_statement "*(undefined ***)(pfVar1 + 0x18) = &PTR__filebuf_004b5570;" (assignment_expression "*(undefined ***)(pfVar1 + 0x18) = &PTR__filebuf_004b5570" (pointer_expression "*(undefined ***)(pfVar1 + 0x18)" * (cast_expression "(undefined ***)(pfVar1 + 0x18)" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "(pfVar1 + 0x18)" ( (binary_expression "pfVar1 + 0x18" identifier + number_literal) )))) = (pointer_expression "&PTR__filebuf_004b5570" & identifier)) ;) (labeled_statement "filebuf::close((filebuf *)(pfVar1 + 0x18));" statement_identifier : (ERROR ":" :) (expression_statement "close((filebuf *)(pfVar1 + 0x18));" (call_expression "close((filebuf *)(pfVar1 + 0x18))" identifier (argument_list "((filebuf *)(pfVar1 + 0x18))" ( (cast_expression "(filebuf *)(pfVar1 + 0x18)" ( (type_descriptor "filebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pfVar1 + 0x18)" ( (binary_expression "pfVar1 + 0x18" identifier + number_literal) ))) ))) ;)) (expression_statement "__basic_file<char>::~__basic_file((__basic_file<char> *)(pfVar1 + 0x80));" (binary_expression "__basic_file<char>::~__basic_file((__basic_file<char> *)(pfVar1 + 0x80))" (binary_expression "__basic_file<char" identifier < identifier) > (ERROR "::" : :) (unary_expression "~__basic_file((__basic_file<char> *)(pfVar1 + 0x80))" ~ (call_expression "__basic_file((__basic_file<char> *)(pfVar1 + 0x80))" identifier (argument_list "((__basic_file<char> *)(pfVar1 + 0x80))" ( (call_expression "(__basic_file<char> *)(pfVar1 + 0x80)" (parenthesized_expression "(__basic_file<char> *)" ( (binary_expression "__basic_file<char> *" (binary_expression "__basic_file<char" identifier < identifier) > (pointer_expression "*" * identifier)) )) (argument_list "(pfVar1 + 0x80)" ( (binary_expression "pfVar1 + 0x80" identifier + number_literal) ))) ))))) ;) (expression_statement "*(undefined ***)(pfVar1 + 0x18) = &PTR__streambuf_004b4698;" (assignment_expression "*(undefined ***)(pfVar1 + 0x18) = &PTR__streambuf_004b4698" (pointer_expression "*(undefined ***)(pfVar1 + 0x18)" * (cast_expression "(undefined ***)(pfVar1 + 0x18)" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "(pfVar1 + 0x18)" ( (binary_expression "pfVar1 + 0x18" identifier + number_literal) )))) = (pointer_expression "&PTR__streambuf_004b4698" & identifier)) ;) (labeled_statement "locale::~locale((locale *)(pfVar1 + 0x50));" statement_identifier : (ERROR ":" :) (expression_statement "~locale((locale *)(pfVar1 + 0x50));" (unary_expression "~locale((locale *)(pfVar1 + 0x50))" ~ (call_expression "locale((locale *)(pfVar1 + 0x50))" identifier (argument_list "((locale *)(pfVar1 + 0x50))" ( (cast_expression "(locale *)(pfVar1 + 0x50)" ( (type_descriptor "locale *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pfVar1 + 0x50)" ( (binary_expression "pfVar1 + 0x50" identifier + number_literal) ))) )))) ;)) (expression_statement "*(undefined8 *)(pfVar1 + 8) = 0;" (assignment_expression "*(undefined8 *)(pfVar1 + 8) = 0" (pointer_expression "*(undefined8 *)(pfVar1 + 8)" * (cast_expression "(undefined8 *)(pfVar1 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pfVar1 + 8)" ( (binary_expression "pfVar1 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)(pfVar1 + 0x10) = 0x4b5778;" (assignment_expression "*(undefined8 *)(pfVar1 + 0x10) = 0x4b5778" (pointer_expression "*(undefined8 *)(pfVar1 + 0x10)" * (cast_expression "(undefined8 *)(pfVar1 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pfVar1 + 0x10)" ( (binary_expression "pfVar1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)pfVar1 = 0x4b57c8;" (assignment_expression "*(undefined8 *)pfVar1 = 0x4b57c8" (pointer_expression "*(undefined8 *)pfVar1" * (cast_expression "(undefined8 *)pfVar1" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "*(undefined ***)(pfVar1 + 0x108) = &PTR__ios_004b5470;" (assignment_expression "*(undefined ***)(pfVar1 + 0x108) = &PTR__ios_004b5470" (pointer_expression "*(undefined ***)(pfVar1 + 0x108)" * (cast_expression "(undefined ***)(pfVar1 + 0x108)" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "(pfVar1 + 0x108)" ( (binary_expression "pfVar1 + 0x108" identifier + number_literal) )))) = (pointer_expression "&PTR__ios_004b5470" & identifier)) ;) (labeled_statement "ios_base::~ios_base((ios_base *)(pfVar1 + 0x108));" statement_identifier : (ERROR ":" :) (expression_statement "~ios_base((ios_base *)(pfVar1 + 0x108));" (unary_expression "~ios_base((ios_base *)(pfVar1 + 0x108))" ~ (call_expression "ios_base((ios_base *)(pfVar1 + 0x108))" identifier (argument_list "((ios_base *)(pfVar1 + 0x108))" ( (cast_expression "(ios_base *)(pfVar1 + 0x108)" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pfVar1 + 0x108)" ( (binary_expression "pfVar1 + 0x108" identifier + number_literal) ))) )))) ;)) (expression_statement "operator_delete(pfVar1);" (call_expression "operator_delete(pfVar1)" identifier (argument_list "(pfVar1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00366870(long *param_1)\n\n{\n  undefined8 *puVar1;\n  \n  puVar1 = (undefined8 *)(*(long *)(*param_1 + -0x18) + (long)param_1);\n  *puVar1 = &PTR_FUN_004b58e0;\n  puVar1[2] = &PTR_FUN_004b5908;\n  puVar1[0x21] = &PTR_FUN_004b5930;\n  puVar1[3] = &PTR_FUN_004b5570;\n  FUN_00364a40(puVar1 + 3);\n  thunk_FUN_003390c0(puVar1 + 0x10);\n  puVar1[3] = &PTR_FUN_004b4698;\n  FUN_0033af90(puVar1 + 10);\n  puVar1[1] = 0;\n  puVar1[2] = &DAT_004b5778;\n  *puVar1 = &DAT_004b57c8;\n  puVar1[0x21] = &PTR_FUN_004b5470;\n  FUN_00376b00(puVar1 + 0x21);\n  FUN_00338a50(puVar1);\n  return;\n}\n\n" (function_definition "void FUN_00366870(long *param_1)\n\n{\n  undefined8 *puVar1;\n  \n  puVar1 = (undefined8 *)(*(long *)(*param_1 + -0x18) + (long)param_1);\n  *puVar1 = &PTR_FUN_004b58e0;\n  puVar1[2] = &PTR_FUN_004b5908;\n  puVar1[0x21] = &PTR_FUN_004b5930;\n  puVar1[3] = &PTR_FUN_004b5570;\n  FUN_00364a40(puVar1 + 3);\n  thunk_FUN_003390c0(puVar1 + 0x10);\n  puVar1[3] = &PTR_FUN_004b4698;\n  FUN_0033af90(puVar1 + 10);\n  puVar1[1] = 0;\n  puVar1[2] = &DAT_004b5778;\n  *puVar1 = &DAT_004b57c8;\n  puVar1[0x21] = &PTR_FUN_004b5470;\n  FUN_00376b00(puVar1 + 0x21);\n  FUN_00338a50(puVar1);\n  return;\n}" primitive_type (function_declarator "FUN_00366870(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 = &PTR_FUN_004b58e0;\n  puVar1[2] = &PTR_FUN_004b5908;\n  puVar1[0x21] = &PTR_FUN_004b5930;\n  puVar1[3] = &PTR_FUN_004b5570;\n  FUN_00364a40(puVar1 + 3);\n  thunk_FUN_003390c0(puVar1 + 0x10);\n  puVar1[3] = &PTR_FUN_004b4698;\n  FUN_0033af90(puVar1 + 10);\n  puVar1[1] = 0;\n  puVar1[2] = &DAT_004b5778;\n  *puVar1 = &DAT_004b57c8;\n  puVar1[0x21] = &PTR_FUN_004b5470;\n  FUN_00376b00(puVar1 + 0x21);\n  FUN_00338a50(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 = &PTR_FUN_004b58e0;" (assignment_expression "*puVar1 = &PTR_FUN_004b58e0" (pointer_expression "*puVar1" * identifier) = (pointer_expression "&PTR_FUN_004b58e0" & identifier)) ;) (expression_statement "puVar1[2] = &PTR_FUN_004b5908;" (assignment_expression "puVar1[2] = &PTR_FUN_004b5908" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_004b5908" & identifier)) ;) (expression_statement "puVar1[0x21] = &PTR_FUN_004b5930;" (assignment_expression "puVar1[0x21] = &PTR_FUN_004b5930" (subscript_expression "puVar1[0x21]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_004b5930" & identifier)) ;) (expression_statement "puVar1[3] = &PTR_FUN_004b5570;" (assignment_expression "puVar1[3] = &PTR_FUN_004b5570" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_004b5570" & identifier)) ;) (expression_statement "FUN_00364a40(puVar1 + 3);" (call_expression "FUN_00364a40(puVar1 + 3)" identifier (argument_list "(puVar1 + 3)" ( (binary_expression "puVar1 + 3" identifier + number_literal) ))) ;) (expression_statement "thunk_FUN_003390c0(puVar1 + 0x10);" (call_expression "thunk_FUN_003390c0(puVar1 + 0x10)" identifier (argument_list "(puVar1 + 0x10)" ( (binary_expression "puVar1 + 0x10" identifier + number_literal) ))) ;) (expression_statement "puVar1[3] = &PTR_FUN_004b4698;" (assignment_expression "puVar1[3] = &PTR_FUN_004b4698" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_004b4698" & identifier)) ;) (expression_statement "FUN_0033af90(puVar1 + 10);" (call_expression "FUN_0033af90(puVar1 + 10)" identifier (argument_list "(puVar1 + 10)" ( (binary_expression "puVar1 + 10" identifier + number_literal) ))) ;) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[2] = &DAT_004b5778;" (assignment_expression "puVar1[2] = &DAT_004b5778" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = (pointer_expression "&DAT_004b5778" & identifier)) ;) (expression_statement "*puVar1 = &DAT_004b57c8;" (assignment_expression "*puVar1 = &DAT_004b57c8" (pointer_expression "*puVar1" * identifier) = (pointer_expression "&DAT_004b57c8" & identifier)) ;) (expression_statement "puVar1[0x21] = &PTR_FUN_004b5470;" (assignment_expression "puVar1[0x21] = &PTR_FUN_004b5470" (subscript_expression "puVar1[0x21]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_004b5470" & identifier)) ;) (expression_statement "FUN_00376b00(puVar1 + 0x21);" (call_expression "FUN_00376b00(puVar1 + 0x21)" identifier (argument_list "(puVar1 + 0x21)" ( (binary_expression "puVar1 + 0x21" identifier + number_literal) ))) ;) (expression_statement "FUN_00338a50(puVar1);" (call_expression "FUN_00338a50(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 (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 ]) = (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 (subscript_expression IDENT [ LIT ]) = 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 ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00366870(long *param_1)\n\n{\n  undefined8 *puVar1;\n  \n  puVar1 = (undefined8 *)(*(long *)(*param_1 + -0x18) + (long)param_1);\n  *puVar1 = &PTR_FUN_004b58e0;\n  puVar1[2] = &PTR_FUN_004b5908;\n  puVar1[0x21] = &PTR_FUN_004b5930;\n  puVar1[3] = &PTR_FUN_004b5570;\n  FUN_00364a40(puVar1 + 3);\n  thunk_FUN_003390c0(puVar1 + 0x10);\n  puVar1[3] = &PTR_FUN_004b4698;\n  FUN_0033af90(puVar1 + 10);\n  puVar1[1] = 0;\n  puVar1[2] = &DAT_004b5778;\n  *puVar1 = &DAT_004b57c8;\n  puVar1[0x21] = &PTR_FUN_004b5470;\n  FUN_00376b00(puVar1 + 0x21);\n  FUN_00338a50(puVar1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00366870(long *param_1)" (identifier "FUN_00366870") (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 = &PTR_FUN_004b58e0;\n  puVar1[2] = &PTR_FUN_004b5908;\n  puVar1[0x21] = &PTR_FUN_004b5930;\n  puVar1[3] = &PTR_FUN_004b5570;\n  FUN_00364a40(puVar1 + 3);\n  thunk_FUN_003390c0(puVar1 + 0x10);\n  puVar1[3] = &PTR_FUN_004b4698;\n  FUN_0033af90(puVar1 + 10);\n  puVar1[1] = 0;\n  puVar1[2] = &DAT_004b5778;\n  *puVar1 = &DAT_004b57c8;\n  puVar1[0x21] = &PTR_FUN_004b5470;\n  FUN_00376b00(puVar1 + 0x21);\n  FUN_00338a50(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 = &PTR_FUN_004b58e0;" (assignment_expression "*puVar1 = &PTR_FUN_004b58e0" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (pointer_expression "&PTR_FUN_004b58e0" (& "&") (identifier "PTR_FUN_004b58e0"))) (; ";")) (expression_statement "puVar1[2] = &PTR_FUN_004b5908;" (assignment_expression "puVar1[2] = &PTR_FUN_004b5908" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (pointer_expression "&PTR_FUN_004b5908" (& "&") (identifier "PTR_FUN_004b5908"))) (; ";")) (expression_statement "puVar1[0x21] = &PTR_FUN_004b5930;" (assignment_expression "puVar1[0x21] = &PTR_FUN_004b5930" (subscript_expression "puVar1[0x21]" (identifier "puVar1") ([ "[") (number_literal "0x21") (] "]")) (= "=") (pointer_expression "&PTR_FUN_004b5930" (& "&") (identifier "PTR_FUN_004b5930"))) (; ";")) (expression_statement "puVar1[3] = &PTR_FUN_004b5570;" (assignment_expression "puVar1[3] = &PTR_FUN_004b5570" (subscript_expression "puVar1[3]" (identifier "puVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (pointer_expression "&PTR_FUN_004b5570" (& "&") (identifier "PTR_FUN_004b5570"))) (; ";")) (expression_statement "FUN_00364a40(puVar1 + 3);" (call_expression "FUN_00364a40(puVar1 + 3)" (identifier "FUN_00364a40") (argument_list "(puVar1 + 3)" (( "(") (binary_expression "puVar1 + 3" (identifier "puVar1") (+ "+") (number_literal "3")) () ")"))) (; ";")) (expression_statement "thunk_FUN_003390c0(puVar1 + 0x10);" (call_expression "thunk_FUN_003390c0(puVar1 + 0x10)" (identifier "thunk_FUN_003390c0") (argument_list "(puVar1 + 0x10)" (( "(") (binary_expression "puVar1 + 0x10" (identifier "puVar1") (+ "+") (number_literal "0x10")) () ")"))) (; ";")) (expression_statement "puVar1[3] = &PTR_FUN_004b4698;" (assignment_expression "puVar1[3] = &PTR_FUN_004b4698" (subscript_expression "puVar1[3]" (identifier "puVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (pointer_expression "&PTR_FUN_004b4698" (& "&") (identifier "PTR_FUN_004b4698"))) (; ";")) (expression_statement "FUN_0033af90(puVar1 + 10);" (call_expression "FUN_0033af90(puVar1 + 10)" (identifier "FUN_0033af90") (argument_list "(puVar1 + 10)" (( "(") (binary_expression "puVar1 + 10" (identifier "puVar1") (+ "+") (number_literal "10")) () ")"))) (; ";")) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[2] = &DAT_004b5778;" (assignment_expression "puVar1[2] = &DAT_004b5778" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (pointer_expression "&DAT_004b5778" (& "&") (identifier "DAT_004b5778"))) (; ";")) (expression_statement "*puVar1 = &DAT_004b57c8;" (assignment_expression "*puVar1 = &DAT_004b57c8" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (pointer_expression "&DAT_004b57c8" (& "&") (identifier "DAT_004b57c8"))) (; ";")) (expression_statement "puVar1[0x21] = &PTR_FUN_004b5470;" (assignment_expression "puVar1[0x21] = &PTR_FUN_004b5470" (subscript_expression "puVar1[0x21]" (identifier "puVar1") ([ "[") (number_literal "0x21") (] "]")) (= "=") (pointer_expression "&PTR_FUN_004b5470" (& "&") (identifier "PTR_FUN_004b5470"))) (; ";")) (expression_statement "FUN_00376b00(puVar1 + 0x21);" (call_expression "FUN_00376b00(puVar1 + 0x21)" (identifier "FUN_00376b00") (argument_list "(puVar1 + 0x21)" (( "(") (binary_expression "puVar1 + 0x21" (identifier "puVar1") (+ "+") (number_literal "0x21")) () ")"))) (; ";")) (expression_statement "FUN_00338a50(puVar1);" (call_expression "FUN_00338a50(puVar1)" (identifier "FUN_00338a50") (argument_list "(puVar1)" (( "(") (identifier "puVar1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

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 = &PTR__fstream_004b58e0;
  *(type_1 ***)(var_2 + 0x10) = &PTR__fstream_004b5908;
  *(type_1 ***)(var_2 + 0x108) = &PTR__fstream_004b5930;
  *(type_1 ***)(var_2 + 0x18) = &PTR__filebuf_004b5570;
  filebuf::var_3((type_2 *)(var_2 + 0x18));
  var_4<var_5>::~var_4((var_4<var_5> *)(var_2 + 0x80));
  *(type_1 ***)(var_2 + 0x18) = &PTR__streambuf_004b4698;
  locale::~var_6((var_6 *)(var_2 + 0x50));
  *(type_3 *)(var_2 + 8) = 0;
  *(type_3 *)(var_2 + 0x10) = 0x4b5778;
  *(type_3 *)var_2 = 0x4b57c8;
  *(type_1 ***)(var_2 + 0x108) = &PTR__ios_004b5470;
  ios_base::~var_7((var_7 *)(var_2 + 0x108));
  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: (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: (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: (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 (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 = &PTR_FUN_004b58e0;
  puVar1[2] = &PTR_FUN_004b5908;
  puVar1[0x21] = &PTR_FUN_004b5930;
  puVar1[3] = &PTR_FUN_004b5570;
  FUN_00364a40(puVar1 + 3);
  thunk_FUN_003390c0(puVar1 + 0x10);
  puVar1[3] = &PTR_FUN_004b4698;
  FUN_0033af90(puVar1 + 10);
  puVar1[1] = 0;
  puVar1[2] = &DAT_004b5778;
  *puVar1 = &DAT_004b57c8;
  puVar1[0x21] = &PTR_FUN_004b5470;
  FUN_00376b00(puVar1 + 0x21);
  FUN_00338a50(puVar1);
  return;
}

