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

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

{
  undefined *puVar1;
  undefined *puVar2;
  
  puVar2 = PTR_vtable_0043607c + 0x34;
  puVar1 = PTR_vtable_0043607c + 0x20;
  *(undefined **)(this + -8) = PTR_vtable_0043607c + 0xc;
  *(undefined **)(this + 0x8c) = puVar2;
  *(undefined **)this = puVar1;
  *(undefined **)(this + 4) = PTR_vtable_00433078 + 8;
  filebuf::close((filebuf *)(this + 4));
  (*(code *)PTR____basic_file_0043307c)(this + 0x3c);
  puVar1 = PTR__locale_00433084;
  *(undefined **)(this + 4) = PTR_vtable_00433080 + 8;
  (*(code *)puVar1)(this + 0x20);
  *(undefined4 *)(this + -4) = 0;
  *(undefined **)this = PTR_construction_vtable_00436080 + 0xc;
  *(undefined **)(this + -8) = PTR_construction_vtable_00436084 + 0xc;
  *(undefined **)(this + 0x8c) = PTR_vtable_00433038 + 8;
  ios_base::~ios_base((ios_base *)(this + 0x8c));
  return;
}



void FUN_002ef138(undefined4 *param_1)

{
  undefined *puVar1;
  undefined *puVar2;
  
  puVar2 = PTR_vtable_0043607c + 0x34;
  puVar1 = PTR_vtable_0043607c + 0x20;
  param_1[-2] = PTR_vtable_0043607c + 0xc;
  param_1[0x23] = puVar2;
  *param_1 = puVar1;
  param_1[1] = PTR_vtable_00433078 + 8;
  std::filebuf::close((filebuf *)(param_1 + 1));
  (*(code *)PTR____basic_file_0043307c)(param_1 + 0xf);
  puVar1 = PTR__locale_00433084;
  param_1[1] = PTR_vtable_00433080 + 8;
  (*(code *)puVar1)(param_1 + 8);
  param_1[-1] = 0;
  *param_1 = PTR_DAT_00436080 + 0xc;
  param_1[-2] = PTR_DAT_00436084 + 0xc;
  param_1[0x23] = PTR_vtable_00433038 + 8;
  std::ios_base::~ios_base((ios_base *)(param_1 + 0x23));
  return;
}


lui gp,0x15
addiu gp,gp,-0x4f68
addu gp,gp,t9
addiu sp,sp,-0x20
lw v0,-0x4154(gp)
lw t9,-0x715c(gp)
sw s0,0x18(sp)
addiu a1,v0,0xc
or s0,a0,zero
sw gp,0x10(sp)
addiu v1,v0,0x34
sw ra,0x1c(sp)
addiu v0,v0,0x20
sw a1,-0x8(s0)
addiu a0,a0,0x4
sw v1,0x8c(s0)
sw v0,0x0(s0)
lw v0,-0x7158(gp)
addiu v0,v0,0x8
bal 0x002ee7e8
_sw v0,0x4(s0)
lw gp,0x10(sp)
lw t9,-0x7154(gp)
jalr t9
_addiu a0,s0,0x3c
addiu a0,s0,0x20
lw gp,0x10(sp)
lw v0,-0x7150(gp)
lw t9,-0x714c(gp)
addiu v0,v0,0x8
jalr t9
_sw v0,0x4(s0)
addiu a0,s0,0x8c
lw gp,0x10(sp)
lw ra,0x1c(sp)
sw zero,-0x4(s0)
lw v0,-0x4150(gp)
lw t9,-0x7148(gp)
addiu v0,v0,0xc
sw v0,0x0(s0)
lw v0,-0x414c(gp)
addiu v0,v0,0xc
sw v0,-0x8(s0)
lw v0,-0x7198(gp)
addiu v0,v0,0x8
sw v0,0x8c(s0)
lw s0,0x18(sp)
b 0x0030dd10
_addiu sp,sp,0x20
(translation_unit "void FUN_002ef138(undefined4 *param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  \n  puVar2 = PTR_vtable_0043607c + 0x34;\n  puVar1 = PTR_vtable_0043607c + 0x20;\n  param_1[-2] = PTR_vtable_0043607c + 0xc;\n  param_1[0x23] = puVar2;\n  *param_1 = puVar1;\n  param_1[1] = PTR_vtable_00433078 + 8;\n  std::filebuf::close((filebuf *)(param_1 + 1));\n  (*(code *)PTR____basic_file_0043307c)(param_1 + 0xf);\n  puVar1 = PTR__locale_00433084;\n  param_1[1] = PTR_vtable_00433080 + 8;\n  (*(code *)puVar1)(param_1 + 8);\n  param_1[-1] = 0;\n  *param_1 = PTR_DAT_00436080 + 0xc;\n  param_1[-2] = PTR_DAT_00436084 + 0xc;\n  param_1[0x23] = PTR_vtable_00433038 + 8;\n  std::ios_base::~ios_base((ios_base *)(param_1 + 0x23));\n  return;\n}\n\n" (function_definition "void FUN_002ef138(undefined4 *param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  \n  puVar2 = PTR_vtable_0043607c + 0x34;\n  puVar1 = PTR_vtable_0043607c + 0x20;\n  param_1[-2] = PTR_vtable_0043607c + 0xc;\n  param_1[0x23] = puVar2;\n  *param_1 = puVar1;\n  param_1[1] = PTR_vtable_00433078 + 8;\n  std::filebuf::close((filebuf *)(param_1 + 1));\n  (*(code *)PTR____basic_file_0043307c)(param_1 + 0xf);\n  puVar1 = PTR__locale_00433084;\n  param_1[1] = PTR_vtable_00433080 + 8;\n  (*(code *)puVar1)(param_1 + 8);\n  param_1[-1] = 0;\n  *param_1 = PTR_DAT_00436080 + 0xc;\n  param_1[-2] = PTR_DAT_00436084 + 0xc;\n  param_1[0x23] = PTR_vtable_00433038 + 8;\n  std::ios_base::~ios_base((ios_base *)(param_1 + 0x23));\n  return;\n}" primitive_type (function_declarator "FUN_002ef138(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  \n  puVar2 = PTR_vtable_0043607c + 0x34;\n  puVar1 = PTR_vtable_0043607c + 0x20;\n  param_1[-2] = PTR_vtable_0043607c + 0xc;\n  param_1[0x23] = puVar2;\n  *param_1 = puVar1;\n  param_1[1] = PTR_vtable_00433078 + 8;\n  std::filebuf::close((filebuf *)(param_1 + 1));\n  (*(code *)PTR____basic_file_0043307c)(param_1 + 0xf);\n  puVar1 = PTR__locale_00433084;\n  param_1[1] = PTR_vtable_00433080 + 8;\n  (*(code *)puVar1)(param_1 + 8);\n  param_1[-1] = 0;\n  *param_1 = PTR_DAT_00436080 + 0xc;\n  param_1[-2] = PTR_DAT_00436084 + 0xc;\n  param_1[0x23] = PTR_vtable_00433038 + 8;\n  std::ios_base::~ios_base((ios_base *)(param_1 + 0x23));\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (expression_statement "puVar2 = PTR_vtable_0043607c + 0x34;" (assignment_expression "puVar2 = PTR_vtable_0043607c + 0x34" identifier = (binary_expression "PTR_vtable_0043607c + 0x34" identifier + number_literal)) ;) (expression_statement "puVar1 = PTR_vtable_0043607c + 0x20;" (assignment_expression "puVar1 = PTR_vtable_0043607c + 0x20" identifier = (binary_expression "PTR_vtable_0043607c + 0x20" identifier + number_literal)) ;) (expression_statement "param_1[-2] = PTR_vtable_0043607c + 0xc;" (assignment_expression "param_1[-2] = PTR_vtable_0043607c + 0xc" (subscript_expression "param_1[-2]" identifier [ number_literal ]) = (binary_expression "PTR_vtable_0043607c + 0xc" identifier + number_literal)) ;) (expression_statement "param_1[0x23] = puVar2;" (assignment_expression "param_1[0x23] = puVar2" (subscript_expression "param_1[0x23]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*param_1 = puVar1;" (assignment_expression "*param_1 = puVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[1] = PTR_vtable_00433078 + 8;" (assignment_expression "param_1[1] = PTR_vtable_00433078 + 8" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "PTR_vtable_00433078 + 8" identifier + number_literal)) ;) (labeled_statement "std::filebuf::close((filebuf *)(param_1 + 1));" statement_identifier : (ERROR ":" :) (labeled_statement "filebuf::close((filebuf *)(param_1 + 1));" statement_identifier : (ERROR ":" :) (expression_statement "close((filebuf *)(param_1 + 1));" (call_expression "close((filebuf *)(param_1 + 1))" identifier (argument_list "((filebuf *)(param_1 + 1))" ( (cast_expression "(filebuf *)(param_1 + 1)" ( (type_descriptor "filebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))) ))) ;))) (expression_statement "(*(code *)PTR____basic_file_0043307c)(param_1 + 0xf);" (call_expression "(*(code *)PTR____basic_file_0043307c)(param_1 + 0xf)" (parenthesized_expression "(*(code *)PTR____basic_file_0043307c)" ( (pointer_expression "*(code *)PTR____basic_file_0043307c" * (cast_expression "(code *)PTR____basic_file_0043307c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + 0xf)" ( (binary_expression "param_1 + 0xf" identifier + number_literal) ))) ;) (expression_statement "puVar1 = PTR__locale_00433084;" (assignment_expression "puVar1 = PTR__locale_00433084" identifier = identifier) ;) (expression_statement "param_1[1] = PTR_vtable_00433080 + 8;" (assignment_expression "param_1[1] = PTR_vtable_00433080 + 8" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "PTR_vtable_00433080 + 8" identifier + number_literal)) ;) (expression_statement "(*(code *)puVar1)(param_1 + 8);" (call_expression "(*(code *)puVar1)(param_1 + 8)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))) ;) (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 = PTR_DAT_00436080 + 0xc;" (assignment_expression "*param_1 = PTR_DAT_00436080 + 0xc" (pointer_expression "*param_1" * identifier) = (binary_expression "PTR_DAT_00436080 + 0xc" identifier + number_literal)) ;) (expression_statement "param_1[-2] = PTR_DAT_00436084 + 0xc;" (assignment_expression "param_1[-2] = PTR_DAT_00436084 + 0xc" (subscript_expression "param_1[-2]" identifier [ number_literal ]) = (binary_expression "PTR_DAT_00436084 + 0xc" identifier + number_literal)) ;) (expression_statement "param_1[0x23] = PTR_vtable_00433038 + 8;" (assignment_expression "param_1[0x23] = PTR_vtable_00433038 + 8" (subscript_expression "param_1[0x23]" identifier [ number_literal ]) = (binary_expression "PTR_vtable_00433038 + 8" identifier + number_literal)) ;) (labeled_statement "std::ios_base::~ios_base((ios_base *)(param_1 + 0x23));" statement_identifier : (ERROR ":" :) (labeled_statement "ios_base::~ios_base((ios_base *)(param_1 + 0x23));" statement_identifier : (ERROR ":" :) (expression_statement "~ios_base((ios_base *)(param_1 + 0x23));" (unary_expression "~ios_base((ios_base *)(param_1 + 0x23))" ~ (call_expression "ios_base((ios_base *)(param_1 + 0x23))" identifier (argument_list "((ios_base *)(param_1 + 0x23))" ( (cast_expression "(ios_base *)(param_1 + 0x23)" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x23)" ( (binary_expression "param_1 + 0x23" identifier + number_literal) ))) )))) ;))) (return_statement "return;" return ;) })))
(translation_unit "/* non-virtual thunk to std::fstream::~fstream() */\n\nvoid __thiscall std::fstream::~fstream(fstream *this)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  \n  puVar2 = PTR_vtable_0043607c + 0x34;\n  puVar1 = PTR_vtable_0043607c + 0x20;\n  *(undefined **)(this + -8) = PTR_vtable_0043607c + 0xc;\n  *(undefined **)(this + 0x8c) = puVar2;\n  *(undefined **)this = puVar1;\n  *(undefined **)(this + 4) = PTR_vtable_00433078 + 8;\n  filebuf::close((filebuf *)(this + 4));\n  (*(code *)PTR____basic_file_0043307c)(this + 0x3c);\n  puVar1 = PTR__locale_00433084;\n  *(undefined **)(this + 4) = PTR_vtable_00433080 + 8;\n  (*(code *)puVar1)(this + 0x20);\n  *(undefined4 *)(this + -4) = 0;\n  *(undefined **)this = PTR_construction_vtable_00436080 + 0xc;\n  *(undefined **)(this + -8) = PTR_construction_vtable_00436084 + 0xc;\n  *(undefined **)(this + 0x8c) = PTR_vtable_00433038 + 8;\n  ios_base::~ios_base((ios_base *)(this + 0x8c));\n  return;\n}\n\n" comment (function_definition "void __thiscall std::fstream::~fstream(fstream *this)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  \n  puVar2 = PTR_vtable_0043607c + 0x34;\n  puVar1 = PTR_vtable_0043607c + 0x20;\n  *(undefined **)(this + -8) = PTR_vtable_0043607c + 0xc;\n  *(undefined **)(this + 0x8c) = puVar2;\n  *(undefined **)this = puVar1;\n  *(undefined **)(this + 4) = PTR_vtable_00433078 + 8;\n  filebuf::close((filebuf *)(this + 4));\n  (*(code *)PTR____basic_file_0043307c)(this + 0x3c);\n  puVar1 = PTR__locale_00433084;\n  *(undefined **)(this + 4) = PTR_vtable_00433080 + 8;\n  (*(code *)puVar1)(this + 0x20);\n  *(undefined4 *)(this + -4) = 0;\n  *(undefined **)this = PTR_construction_vtable_00436080 + 0xc;\n  *(undefined **)(this + -8) = PTR_construction_vtable_00436084 + 0xc;\n  *(undefined **)(this + 0x8c) = PTR_vtable_00433038 + 8;\n  ios_base::~ios_base((ios_base *)(this + 0x8c));\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  undefined *puVar1;\n  undefined *puVar2;\n  \n  puVar2 = PTR_vtable_0043607c + 0x34;\n  puVar1 = PTR_vtable_0043607c + 0x20;\n  *(undefined **)(this + -8) = PTR_vtable_0043607c + 0xc;\n  *(undefined **)(this + 0x8c) = puVar2;\n  *(undefined **)this = puVar1;\n  *(undefined **)(this + 4) = PTR_vtable_00433078 + 8;\n  filebuf::close((filebuf *)(this + 4));\n  (*(code *)PTR____basic_file_0043307c)(this + 0x3c);\n  puVar1 = PTR__locale_00433084;\n  *(undefined **)(this + 4) = PTR_vtable_00433080 + 8;\n  (*(code *)puVar1)(this + 0x20);\n  *(undefined4 *)(this + -4) = 0;\n  *(undefined **)this = PTR_construction_vtable_00436080 + 0xc;\n  *(undefined **)(this + -8) = PTR_construction_vtable_00436084 + 0xc;\n  *(undefined **)(this + 0x8c) = PTR_vtable_00433038 + 8;\n  ios_base::~ios_base((ios_base *)(this + 0x8c));\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (expression_statement "puVar2 = PTR_vtable_0043607c + 0x34;" (assignment_expression "puVar2 = PTR_vtable_0043607c + 0x34" identifier = (binary_expression "PTR_vtable_0043607c + 0x34" identifier + number_literal)) ;) (expression_statement "puVar1 = PTR_vtable_0043607c + 0x20;" (assignment_expression "puVar1 = PTR_vtable_0043607c + 0x20" identifier = (binary_expression "PTR_vtable_0043607c + 0x20" identifier + number_literal)) ;) (expression_statement "*(undefined **)(this + -8) = PTR_vtable_0043607c + 0xc;" (assignment_expression "*(undefined **)(this + -8) = PTR_vtable_0043607c + 0xc" (pointer_expression "*(undefined **)(this + -8)" * (cast_expression "(undefined **)(this + -8)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + -8)" ( (binary_expression "this + -8" identifier + number_literal) )))) = (binary_expression "PTR_vtable_0043607c + 0xc" identifier + number_literal)) ;) (expression_statement "*(undefined **)(this + 0x8c) = puVar2;" (assignment_expression "*(undefined **)(this + 0x8c) = puVar2" (pointer_expression "*(undefined **)(this + 0x8c)" * (cast_expression "(undefined **)(this + 0x8c)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x8c)" ( (binary_expression "this + 0x8c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined **)this = puVar1;" (assignment_expression "*(undefined **)this = puVar1" (pointer_expression "*(undefined **)this" * (cast_expression "(undefined **)this" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (expression_statement "*(undefined **)(this + 4) = PTR_vtable_00433078 + 8;" (assignment_expression "*(undefined **)(this + 4) = PTR_vtable_00433078 + 8" (pointer_expression "*(undefined **)(this + 4)" * (cast_expression "(undefined **)(this + 4)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = (binary_expression "PTR_vtable_00433078 + 8" identifier + number_literal)) ;) (labeled_statement "filebuf::close((filebuf *)(this + 4));" statement_identifier : (ERROR ":" :) (expression_statement "close((filebuf *)(this + 4));" (call_expression "close((filebuf *)(this + 4))" identifier (argument_list "((filebuf *)(this + 4))" ( (cast_expression "(filebuf *)(this + 4)" ( (type_descriptor "filebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) ))) ))) ;)) (expression_statement "(*(code *)PTR____basic_file_0043307c)(this + 0x3c);" (call_expression "(*(code *)PTR____basic_file_0043307c)(this + 0x3c)" (parenthesized_expression "(*(code *)PTR____basic_file_0043307c)" ( (pointer_expression "*(code *)PTR____basic_file_0043307c" * (cast_expression "(code *)PTR____basic_file_0043307c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(this + 0x3c)" ( (binary_expression "this + 0x3c" identifier + number_literal) ))) ;) (expression_statement "puVar1 = PTR__locale_00433084;" (assignment_expression "puVar1 = PTR__locale_00433084" identifier = identifier) ;) (expression_statement "*(undefined **)(this + 4) = PTR_vtable_00433080 + 8;" (assignment_expression "*(undefined **)(this + 4) = PTR_vtable_00433080 + 8" (pointer_expression "*(undefined **)(this + 4)" * (cast_expression "(undefined **)(this + 4)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = (binary_expression "PTR_vtable_00433080 + 8" identifier + number_literal)) ;) (expression_statement "(*(code *)puVar1)(this + 0x20);" (call_expression "(*(code *)puVar1)(this + 0x20)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(this + 0x20)" ( (binary_expression "this + 0x20" identifier + number_literal) ))) ;) (expression_statement "*(undefined4 *)(this + -4) = 0;" (assignment_expression "*(undefined4 *)(this + -4) = 0" (pointer_expression "*(undefined4 *)(this + -4)" * (cast_expression "(undefined4 *)(this + -4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + -4)" ( (binary_expression "this + -4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined **)this = PTR_construction_vtable_00436080 + 0xc;" (assignment_expression "*(undefined **)this = PTR_construction_vtable_00436080 + 0xc" (pointer_expression "*(undefined **)this" * (cast_expression "(undefined **)this" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = (binary_expression "PTR_construction_vtable_00436080 + 0xc" identifier + number_literal)) ;) (expression_statement "*(undefined **)(this + -8) = PTR_construction_vtable_00436084 + 0xc;" (assignment_expression "*(undefined **)(this + -8) = PTR_construction_vtable_00436084 + 0xc" (pointer_expression "*(undefined **)(this + -8)" * (cast_expression "(undefined **)(this + -8)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + -8)" ( (binary_expression "this + -8" identifier + number_literal) )))) = (binary_expression "PTR_construction_vtable_00436084 + 0xc" identifier + number_literal)) ;) (expression_statement "*(undefined **)(this + 0x8c) = PTR_vtable_00433038 + 8;" (assignment_expression "*(undefined **)(this + 0x8c) = PTR_vtable_00433038 + 8" (pointer_expression "*(undefined **)(this + 0x8c)" * (cast_expression "(undefined **)(this + 0x8c)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x8c)" ( (binary_expression "this + 0x8c" identifier + number_literal) )))) = (binary_expression "PTR_vtable_00433038 + 8" identifier + number_literal)) ;) (labeled_statement "ios_base::~ios_base((ios_base *)(this + 0x8c));" statement_identifier : (ERROR ":" :) (expression_statement "~ios_base((ios_base *)(this + 0x8c));" (unary_expression "~ios_base((ios_base *)(this + 0x8c))" ~ (call_expression "ios_base((ios_base *)(this + 0x8c))" identifier (argument_list "((ios_base *)(this + 0x8c))" ( (cast_expression "(ios_base *)(this + 0x8c)" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x8c)" ( (binary_expression "this + 0x8c" identifier + number_literal) ))) )))) ;)) (return_statement "return;" return ;) })))
(translation_unit "void FUN_002ef138(undefined4 *param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  \n  puVar2 = PTR_vtable_0043607c + 0x34;\n  puVar1 = PTR_vtable_0043607c + 0x20;\n  param_1[-2] = PTR_vtable_0043607c + 0xc;\n  param_1[0x23] = puVar2;\n  *param_1 = puVar1;\n  param_1[1] = PTR_vtable_00433078 + 8;\n  std::filebuf::close((filebuf *)(param_1 + 1));\n  (*(code *)PTR____basic_file_0043307c)(param_1 + 0xf);\n  puVar1 = PTR__locale_00433084;\n  param_1[1] = PTR_vtable_00433080 + 8;\n  (*(code *)puVar1)(param_1 + 8);\n  param_1[-1] = 0;\n  *param_1 = PTR_DAT_00436080 + 0xc;\n  param_1[-2] = PTR_DAT_00436084 + 0xc;\n  param_1[0x23] = PTR_vtable_00433038 + 8;\n  std::ios_base::~ios_base((ios_base *)(param_1 + 0x23));\n  return;\n}\n\n" (function_definition "void FUN_002ef138(undefined4 *param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  \n  puVar2 = PTR_vtable_0043607c + 0x34;\n  puVar1 = PTR_vtable_0043607c + 0x20;\n  param_1[-2] = PTR_vtable_0043607c + 0xc;\n  param_1[0x23] = puVar2;\n  *param_1 = puVar1;\n  param_1[1] = PTR_vtable_00433078 + 8;\n  std::filebuf::close((filebuf *)(param_1 + 1));\n  (*(code *)PTR____basic_file_0043307c)(param_1 + 0xf);\n  puVar1 = PTR__locale_00433084;\n  param_1[1] = PTR_vtable_00433080 + 8;\n  (*(code *)puVar1)(param_1 + 8);\n  param_1[-1] = 0;\n  *param_1 = PTR_DAT_00436080 + 0xc;\n  param_1[-2] = PTR_DAT_00436084 + 0xc;\n  param_1[0x23] = PTR_vtable_00433038 + 8;\n  std::ios_base::~ios_base((ios_base *)(param_1 + 0x23));\n  return;\n}" primitive_type (function_declarator "FUN_002ef138(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  \n  puVar2 = PTR_vtable_0043607c + 0x34;\n  puVar1 = PTR_vtable_0043607c + 0x20;\n  param_1[-2] = PTR_vtable_0043607c + 0xc;\n  param_1[0x23] = puVar2;\n  *param_1 = puVar1;\n  param_1[1] = PTR_vtable_00433078 + 8;\n  std::filebuf::close((filebuf *)(param_1 + 1));\n  (*(code *)PTR____basic_file_0043307c)(param_1 + 0xf);\n  puVar1 = PTR__locale_00433084;\n  param_1[1] = PTR_vtable_00433080 + 8;\n  (*(code *)puVar1)(param_1 + 8);\n  param_1[-1] = 0;\n  *param_1 = PTR_DAT_00436080 + 0xc;\n  param_1[-2] = PTR_DAT_00436084 + 0xc;\n  param_1[0x23] = PTR_vtable_00433038 + 8;\n  std::ios_base::~ios_base((ios_base *)(param_1 + 0x23));\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (expression_statement "puVar2 = PTR_vtable_0043607c + 0x34;" (assignment_expression "puVar2 = PTR_vtable_0043607c + 0x34" identifier = (binary_expression "PTR_vtable_0043607c + 0x34" identifier + number_literal)) ;) (expression_statement "puVar1 = PTR_vtable_0043607c + 0x20;" (assignment_expression "puVar1 = PTR_vtable_0043607c + 0x20" identifier = (binary_expression "PTR_vtable_0043607c + 0x20" identifier + number_literal)) ;) (expression_statement "param_1[-2] = PTR_vtable_0043607c + 0xc;" (assignment_expression "param_1[-2] = PTR_vtable_0043607c + 0xc" (subscript_expression "param_1[-2]" identifier [ number_literal ]) = (binary_expression "PTR_vtable_0043607c + 0xc" identifier + number_literal)) ;) (expression_statement "param_1[0x23] = puVar2;" (assignment_expression "param_1[0x23] = puVar2" (subscript_expression "param_1[0x23]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*param_1 = puVar1;" (assignment_expression "*param_1 = puVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[1] = PTR_vtable_00433078 + 8;" (assignment_expression "param_1[1] = PTR_vtable_00433078 + 8" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "PTR_vtable_00433078 + 8" identifier + number_literal)) ;) (labeled_statement "std::filebuf::close((filebuf *)(param_1 + 1));" statement_identifier : (ERROR ":" :) (labeled_statement "filebuf::close((filebuf *)(param_1 + 1));" statement_identifier : (ERROR ":" :) (expression_statement "close((filebuf *)(param_1 + 1));" (call_expression "close((filebuf *)(param_1 + 1))" identifier (argument_list "((filebuf *)(param_1 + 1))" ( (cast_expression "(filebuf *)(param_1 + 1)" ( (type_descriptor "filebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))) ))) ;))) (expression_statement "(*(code *)PTR____basic_file_0043307c)(param_1 + 0xf);" (call_expression "(*(code *)PTR____basic_file_0043307c)(param_1 + 0xf)" (parenthesized_expression "(*(code *)PTR____basic_file_0043307c)" ( (pointer_expression "*(code *)PTR____basic_file_0043307c" * (cast_expression "(code *)PTR____basic_file_0043307c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + 0xf)" ( (binary_expression "param_1 + 0xf" identifier + number_literal) ))) ;) (expression_statement "puVar1 = PTR__locale_00433084;" (assignment_expression "puVar1 = PTR__locale_00433084" identifier = identifier) ;) (expression_statement "param_1[1] = PTR_vtable_00433080 + 8;" (assignment_expression "param_1[1] = PTR_vtable_00433080 + 8" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "PTR_vtable_00433080 + 8" identifier + number_literal)) ;) (expression_statement "(*(code *)puVar1)(param_1 + 8);" (call_expression "(*(code *)puVar1)(param_1 + 8)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))) ;) (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 = PTR_DAT_00436080 + 0xc;" (assignment_expression "*param_1 = PTR_DAT_00436080 + 0xc" (pointer_expression "*param_1" * identifier) = (binary_expression "PTR_DAT_00436080 + 0xc" identifier + number_literal)) ;) (expression_statement "param_1[-2] = PTR_DAT_00436084 + 0xc;" (assignment_expression "param_1[-2] = PTR_DAT_00436084 + 0xc" (subscript_expression "param_1[-2]" identifier [ number_literal ]) = (binary_expression "PTR_DAT_00436084 + 0xc" identifier + number_literal)) ;) (expression_statement "param_1[0x23] = PTR_vtable_00433038 + 8;" (assignment_expression "param_1[0x23] = PTR_vtable_00433038 + 8" (subscript_expression "param_1[0x23]" identifier [ number_literal ]) = (binary_expression "PTR_vtable_00433038 + 8" identifier + number_literal)) ;) (labeled_statement "std::ios_base::~ios_base((ios_base *)(param_1 + 0x23));" statement_identifier : (ERROR ":" :) (labeled_statement "ios_base::~ios_base((ios_base *)(param_1 + 0x23));" statement_identifier : (ERROR ":" :) (expression_statement "~ios_base((ios_base *)(param_1 + 0x23));" (unary_expression "~ios_base((ios_base *)(param_1 + 0x23))" ~ (call_expression "ios_base((ios_base *)(param_1 + 0x23))" identifier (argument_list "((ios_base *)(param_1 + 0x23))" ( (cast_expression "(ios_base *)(param_1 + 0x23)" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x23)" ( (binary_expression "param_1 + 0x23" 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 { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (labeled_statement statement_identifier : (ERROR :) (labeled_statement statement_identifier : (ERROR :) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) ))) ;))) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (labeled_statement statement_identifier : (ERROR :) (labeled_statement statement_identifier : (ERROR :) (expression_statement (unary_expression ~ (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) )))) ;))) (return_statement return ;) })))
(function_definition "void FUN_002ef138(undefined4 *param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  \n  puVar2 = PTR_vtable_0043607c + 0x34;\n  puVar1 = PTR_vtable_0043607c + 0x20;\n  param_1[-2] = PTR_vtable_0043607c + 0xc;\n  param_1[0x23] = puVar2;\n  *param_1 = puVar1;\n  param_1[1] = PTR_vtable_00433078 + 8;\n  std::filebuf::close((filebuf *)(param_1 + 1));\n  (*(code *)PTR____basic_file_0043307c)(param_1 + 0xf);\n  puVar1 = PTR__locale_00433084;\n  param_1[1] = PTR_vtable_00433080 + 8;\n  (*(code *)puVar1)(param_1 + 8);\n  param_1[-1] = 0;\n  *param_1 = PTR_DAT_00436080 + 0xc;\n  param_1[-2] = PTR_DAT_00436084 + 0xc;\n  param_1[0x23] = PTR_vtable_00433038 + 8;\n  std::ios_base::~ios_base((ios_base *)(param_1 + 0x23));\n  return;\n}" (primitive_type "void") (function_declarator "FUN_002ef138(undefined4 *param_1)" (identifier "FUN_002ef138") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  \n  puVar2 = PTR_vtable_0043607c + 0x34;\n  puVar1 = PTR_vtable_0043607c + 0x20;\n  param_1[-2] = PTR_vtable_0043607c + 0xc;\n  param_1[0x23] = puVar2;\n  *param_1 = puVar1;\n  param_1[1] = PTR_vtable_00433078 + 8;\n  std::filebuf::close((filebuf *)(param_1 + 1));\n  (*(code *)PTR____basic_file_0043307c)(param_1 + 0xf);\n  puVar1 = PTR__locale_00433084;\n  param_1[1] = PTR_vtable_00433080 + 8;\n  (*(code *)puVar1)(param_1 + 8);\n  param_1[-1] = 0;\n  *param_1 = PTR_DAT_00436080 + 0xc;\n  param_1[-2] = PTR_DAT_00436084 + 0xc;\n  param_1[0x23] = PTR_vtable_00433038 + 8;\n  std::ios_base::~ios_base((ios_base *)(param_1 + 0x23));\n  return;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (expression_statement "puVar2 = PTR_vtable_0043607c + 0x34;" (assignment_expression "puVar2 = PTR_vtable_0043607c + 0x34" (identifier "puVar2") (= "=") (binary_expression "PTR_vtable_0043607c + 0x34" (identifier "PTR_vtable_0043607c") (+ "+") (number_literal "0x34"))) (; ";")) (expression_statement "puVar1 = PTR_vtable_0043607c + 0x20;" (assignment_expression "puVar1 = PTR_vtable_0043607c + 0x20" (identifier "puVar1") (= "=") (binary_expression "PTR_vtable_0043607c + 0x20" (identifier "PTR_vtable_0043607c") (+ "+") (number_literal "0x20"))) (; ";")) (expression_statement "param_1[-2] = PTR_vtable_0043607c + 0xc;" (assignment_expression "param_1[-2] = PTR_vtable_0043607c + 0xc" (subscript_expression "param_1[-2]" (identifier "param_1") ([ "[") (number_literal "-2") (] "]")) (= "=") (binary_expression "PTR_vtable_0043607c + 0xc" (identifier "PTR_vtable_0043607c") (+ "+") (number_literal "0xc"))) (; ";")) (expression_statement "param_1[0x23] = puVar2;" (assignment_expression "param_1[0x23] = puVar2" (subscript_expression "param_1[0x23]" (identifier "param_1") ([ "[") (number_literal "0x23") (] "]")) (= "=") (identifier "puVar2")) (; ";")) (expression_statement "*param_1 = puVar1;" (assignment_expression "*param_1 = puVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "puVar1")) (; ";")) (expression_statement "param_1[1] = PTR_vtable_00433078 + 8;" (assignment_expression "param_1[1] = PTR_vtable_00433078 + 8" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "PTR_vtable_00433078 + 8" (identifier "PTR_vtable_00433078") (+ "+") (number_literal "8"))) (; ";")) (labeled_statement "std::filebuf::close((filebuf *)(param_1 + 1));" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "filebuf::close((filebuf *)(param_1 + 1));" (statement_identifier "filebuf") (: ":") (ERROR ":" (: ":")) (expression_statement "close((filebuf *)(param_1 + 1));" (call_expression "close((filebuf *)(param_1 + 1))" (identifier "close") (argument_list "((filebuf *)(param_1 + 1))" (( "(") (cast_expression "(filebuf *)(param_1 + 1)" (( "(") (type_descriptor "filebuf *" (type_identifier "filebuf") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")"))) () ")"))) (; ";")))) (expression_statement "(*(code *)PTR____basic_file_0043307c)(param_1 + 0xf);" (call_expression "(*(code *)PTR____basic_file_0043307c)(param_1 + 0xf)" (parenthesized_expression "(*(code *)PTR____basic_file_0043307c)" (( "(") (pointer_expression "*(code *)PTR____basic_file_0043307c" (* "*") (cast_expression "(code *)PTR____basic_file_0043307c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR____basic_file_0043307c"))) () ")")) (argument_list "(param_1 + 0xf)" (( "(") (binary_expression "param_1 + 0xf" (identifier "param_1") (+ "+") (number_literal "0xf")) () ")"))) (; ";")) (expression_statement "puVar1 = PTR__locale_00433084;" (assignment_expression "puVar1 = PTR__locale_00433084" (identifier "puVar1") (= "=") (identifier "PTR__locale_00433084")) (; ";")) (expression_statement "param_1[1] = PTR_vtable_00433080 + 8;" (assignment_expression "param_1[1] = PTR_vtable_00433080 + 8" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "PTR_vtable_00433080 + 8" (identifier "PTR_vtable_00433080") (+ "+") (number_literal "8"))) (; ";")) (expression_statement "(*(code *)puVar1)(param_1 + 8);" (call_expression "(*(code *)puVar1)(param_1 + 8)" (parenthesized_expression "(*(code *)puVar1)" (( "(") (pointer_expression "*(code *)puVar1" (* "*") (cast_expression "(code *)puVar1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) () ")")) (argument_list "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))) (; ";")) (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 = PTR_DAT_00436080 + 0xc;" (assignment_expression "*param_1 = PTR_DAT_00436080 + 0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "PTR_DAT_00436080 + 0xc" (identifier "PTR_DAT_00436080") (+ "+") (number_literal "0xc"))) (; ";")) (expression_statement "param_1[-2] = PTR_DAT_00436084 + 0xc;" (assignment_expression "param_1[-2] = PTR_DAT_00436084 + 0xc" (subscript_expression "param_1[-2]" (identifier "param_1") ([ "[") (number_literal "-2") (] "]")) (= "=") (binary_expression "PTR_DAT_00436084 + 0xc" (identifier "PTR_DAT_00436084") (+ "+") (number_literal "0xc"))) (; ";")) (expression_statement "param_1[0x23] = PTR_vtable_00433038 + 8;" (assignment_expression "param_1[0x23] = PTR_vtable_00433038 + 8" (subscript_expression "param_1[0x23]" (identifier "param_1") ([ "[") (number_literal "0x23") (] "]")) (= "=") (binary_expression "PTR_vtable_00433038 + 8" (identifier "PTR_vtable_00433038") (+ "+") (number_literal "8"))) (; ";")) (labeled_statement "std::ios_base::~ios_base((ios_base *)(param_1 + 0x23));" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "ios_base::~ios_base((ios_base *)(param_1 + 0x23));" (statement_identifier "ios_base") (: ":") (ERROR ":" (: ":")) (expression_statement "~ios_base((ios_base *)(param_1 + 0x23));" (unary_expression "~ios_base((ios_base *)(param_1 + 0x23))" (~ "~") (call_expression "ios_base((ios_base *)(param_1 + 0x23))" (identifier "ios_base") (argument_list "((ios_base *)(param_1 + 0x23))" (( "(") (cast_expression "(ios_base *)(param_1 + 0x23)" (( "(") (type_descriptor "ios_base *" (type_identifier "ios_base") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x23)" (( "(") (binary_expression "param_1 + 0x23" (identifier "param_1") (+ "+") (number_literal "0x23")) () ")"))) () ")")))) (; ";")))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

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

{
  type_1 *puVar1;
  type_1 *puVar2;
  
  puVar2 = var_1 + 0x34;
  puVar1 = var_1 + 0x20;
  *(type_1 **)(var_2 + -8) = var_1 + 0xc;
  *(type_1 **)(var_2 + 0x8c) = puVar2;
  *(type_1 **)var_2 = puVar1;
  *(type_1 **)(var_2 + 4) = var_3 + 8;
  filebuf::var_4((type_2 *)(var_2 + 4));
  (*(type_3 *)PTR____basic_file_0043307c)(var_2 + 0x3c);
  puVar1 = PTR__locale_00433084;
  *(type_1 **)(var_2 + 4) = var_5 + 8;
  (*(type_3 *)puVar1)(var_2 + 0x20);
  *(type_4 *)(var_2 + -4) = 0;
  *(type_1 **)var_2 = var_6 + 0xc;
  *(type_1 **)(var_2 + -8) = var_7 + 0xc;
  *(type_1 **)(var_2 + 0x8c) = var_8 + 8;
  ios_base::~var_9((var_9 *)(var_2 + 0x8c));
  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 (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) (labeled_statement label: (statement_identifier) (ERROR) (labeled_statement label: (statement_identifier) (ERROR) (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) (labeled_statement label: (statement_identifier) (ERROR) (labeled_statement label: (statement_identifier) (ERROR) (expression_statement (unary_expression argument: (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))) (return_statement))))

void MASKED(undefined4 *param_1)

{
  undefined *puVar1;
  undefined *puVar2;
  
  puVar2 = PTR_vtable_0043607c + 0x34;
  puVar1 = PTR_vtable_0043607c + 0x20;
  param_1[-2] = PTR_vtable_0043607c + 0xc;
  param_1[0x23] = puVar2;
  *param_1 = puVar1;
  param_1[1] = PTR_vtable_00433078 + 8;
  std::filebuf::close((filebuf *)(param_1 + 1));
  (*(code *)PTR____basic_file_0043307c)(param_1 + 0xf);
  puVar1 = PTR__locale_00433084;
  param_1[1] = PTR_vtable_00433080 + 8;
  (*(code *)puVar1)(param_1 + 8);
  param_1[-1] = 0;
  *param_1 = PTR_DAT_00436080 + 0xc;
  param_1[-2] = PTR_DAT_00436084 + 0xc;
  param_1[0x23] = PTR_vtable_00433038 + 8;
  std::ios_base::~ios_base((ios_base *)(param_1 + 0x23));
  return;
}

