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

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

{
  undefined *puVar1;
  undefined *puVar2;
  undefined *puVar3;
  fstream *pfVar4;
  
  puVar3 = PTR_vtable_004c547c + 0xc;
  puVar2 = PTR_vtable_004c547c + 0x34;
  pfVar4 = this + *(int *)(*(int *)this + -0xc);
  *(undefined **)(pfVar4 + 8) = PTR_vtable_004c547c + 0x20;
  puVar1 = PTR_vtable_004c22e4;
  *(undefined **)pfVar4 = puVar3;
  *(undefined **)(pfVar4 + 0x94) = puVar2;
  *(undefined **)(pfVar4 + 0xc) = puVar1 + 8;
  filebuf::close((filebuf *)(pfVar4 + 0xc));
  (*(code *)PTR____basic_file_004c22e8)(pfVar4 + 0x44);
  puVar1 = PTR__locale_004c22f0;
  *(undefined **)(pfVar4 + 0xc) = PTR_vtable_004c22ec + 8;
  (*(code *)puVar1)(pfVar4 + 0x28);
  *(undefined4 *)(pfVar4 + 4) = 0;
  *(undefined **)(pfVar4 + 8) = PTR_construction_vtable_004c5480 + 0xc;
  *(undefined **)pfVar4 = PTR_construction_vtable_004c5484 + 0xc;
  *(undefined **)(pfVar4 + 0x94) = PTR_vtable_004c22a4 + 8;
  ios_base::~ios_base((ios_base *)(pfVar4 + 0x94));
  (*(code *)PTR_operator_delete_004c12fc)(pfVar4);
  return;
}



void FUN_00369f48(int *param_1)

{
  undefined *puVar1;
  undefined *puVar2;
  undefined *puVar3;
  undefined4 *puVar4;
  
  puVar3 = PTR_vtable_004c547c + 0xc;
  puVar2 = PTR_vtable_004c547c + 0x34;
  puVar4 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));
  puVar4[2] = PTR_vtable_004c547c + 0x20;
  puVar1 = PTR_vtable_004c22e4;
  *puVar4 = puVar3;
  puVar4[0x25] = puVar2;
  puVar4[3] = puVar1 + 8;
  std::filebuf::close((filebuf *)(puVar4 + 3));
  (*(code *)PTR____basic_file_004c22e8)(puVar4 + 0x11);
  puVar1 = PTR__locale_004c22f0;
  puVar4[3] = PTR_vtable_004c22ec + 8;
  (*(code *)puVar1)(puVar4 + 10);
  puVar4[1] = 0;
  puVar4[2] = PTR_DAT_004c5480 + 0xc;
  *puVar4 = PTR_DAT_004c5484 + 0xc;
  puVar4[0x25] = PTR_vtable_004c22a4 + 8;
  std::ios_base::~ios_base((ios_base *)(puVar4 + 0x25));
  (*(code *)PTR_operator_delete_004c12fc)(puVar4);
  return;
}


lui gp,0x16
addiu gp,gp,-0xd08
addu gp,gp,t9
lw a2,0x0(a0)
addiu sp,sp,-0x20
lw v0,-0x3dc4(gp)
lw t9,-0x6f60(gp)
sw s0,0x18(sp)
lw s0,-0xc(a2)
addiu a1,v0,0xc
addiu v1,v0,0x34
sw gp,0x10(sp)
addiu v0,v0,0x20
sw ra,0x1c(sp)
addu s0,a0,s0
addiu a0,s0,0xc
sw v0,0x8(s0)
lw v0,-0x6f5c(gp)
sw a1,0x0(s0)
sw v1,0x94(s0)
addiu v0,v0,0x8
bal 0x00369888
_sw v0,0xc(s0)
lw gp,0x10(sp)
lw t9,-0x6f58(gp)
jalr t9
_addiu a0,s0,0x44
addiu a0,s0,0x28
lw gp,0x10(sp)
lw v0,-0x6f54(gp)
lw t9,-0x6f50(gp)
addiu v0,v0,0x8
jalr t9
_sw v0,0xc(s0)
addiu a0,s0,0x94
lw gp,0x10(sp)
sw zero,0x4(s0)
lw v0,-0x3dc0(gp)
lw t9,-0x6f4c(gp)
addiu v0,v0,0xc
sw v0,0x8(s0)
lw v0,-0x3dbc(gp)
addiu v0,v0,0xc
sw v0,0x0(s0)
lw v0,-0x6f9c(gp)
addiu v0,v0,0x8
bal 0x00388db0
_sw v0,0x94(s0)
or a0,s0,zero
lw gp,0x10(sp)
lw ra,0x1c(sp)
lw s0,0x18(sp)
lw t9,-0x7f44(gp)
jr t9
_addiu sp,sp,0x20
(translation_unit "void FUN_00369f48(int *param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined4 *puVar4;\n  \n  puVar3 = PTR_vtable_004c547c + 0xc;\n  puVar2 = PTR_vtable_004c547c + 0x34;\n  puVar4 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  puVar4[2] = PTR_vtable_004c547c + 0x20;\n  puVar1 = PTR_vtable_004c22e4;\n  *puVar4 = puVar3;\n  puVar4[0x25] = puVar2;\n  puVar4[3] = puVar1 + 8;\n  std::filebuf::close((filebuf *)(puVar4 + 3));\n  (*(code *)PTR____basic_file_004c22e8)(puVar4 + 0x11);\n  puVar1 = PTR__locale_004c22f0;\n  puVar4[3] = PTR_vtable_004c22ec + 8;\n  (*(code *)puVar1)(puVar4 + 10);\n  puVar4[1] = 0;\n  puVar4[2] = PTR_DAT_004c5480 + 0xc;\n  *puVar4 = PTR_DAT_004c5484 + 0xc;\n  puVar4[0x25] = PTR_vtable_004c22a4 + 8;\n  std::ios_base::~ios_base((ios_base *)(puVar4 + 0x25));\n  (*(code *)PTR_operator_delete_004c12fc)(puVar4);\n  return;\n}\n\n" (function_definition "void FUN_00369f48(int *param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined4 *puVar4;\n  \n  puVar3 = PTR_vtable_004c547c + 0xc;\n  puVar2 = PTR_vtable_004c547c + 0x34;\n  puVar4 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  puVar4[2] = PTR_vtable_004c547c + 0x20;\n  puVar1 = PTR_vtable_004c22e4;\n  *puVar4 = puVar3;\n  puVar4[0x25] = puVar2;\n  puVar4[3] = puVar1 + 8;\n  std::filebuf::close((filebuf *)(puVar4 + 3));\n  (*(code *)PTR____basic_file_004c22e8)(puVar4 + 0x11);\n  puVar1 = PTR__locale_004c22f0;\n  puVar4[3] = PTR_vtable_004c22ec + 8;\n  (*(code *)puVar1)(puVar4 + 10);\n  puVar4[1] = 0;\n  puVar4[2] = PTR_DAT_004c5480 + 0xc;\n  *puVar4 = PTR_DAT_004c5484 + 0xc;\n  puVar4[0x25] = PTR_vtable_004c22a4 + 8;\n  std::ios_base::~ios_base((ios_base *)(puVar4 + 0x25));\n  (*(code *)PTR_operator_delete_004c12fc)(puVar4);\n  return;\n}" primitive_type (function_declarator "FUN_00369f48(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined4 *puVar4;\n  \n  puVar3 = PTR_vtable_004c547c + 0xc;\n  puVar2 = PTR_vtable_004c547c + 0x34;\n  puVar4 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  puVar4[2] = PTR_vtable_004c547c + 0x20;\n  puVar1 = PTR_vtable_004c22e4;\n  *puVar4 = puVar3;\n  puVar4[0x25] = puVar2;\n  puVar4[3] = puVar1 + 8;\n  std::filebuf::close((filebuf *)(puVar4 + 3));\n  (*(code *)PTR____basic_file_004c22e8)(puVar4 + 0x11);\n  puVar1 = PTR__locale_004c22f0;\n  puVar4[3] = PTR_vtable_004c22ec + 8;\n  (*(code *)puVar1)(puVar4 + 10);\n  puVar4[1] = 0;\n  puVar4[2] = PTR_DAT_004c5480 + 0xc;\n  *puVar4 = PTR_DAT_004c5484 + 0xc;\n  puVar4[0x25] = PTR_vtable_004c22a4 + 8;\n  std::ios_base::~ios_base((ios_base *)(puVar4 + 0x25));\n  (*(code *)PTR_operator_delete_004c12fc)(puVar4);\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (expression_statement "puVar3 = PTR_vtable_004c547c + 0xc;" (assignment_expression "puVar3 = PTR_vtable_004c547c + 0xc" identifier = (binary_expression "PTR_vtable_004c547c + 0xc" identifier + number_literal)) ;) (expression_statement "puVar2 = PTR_vtable_004c547c + 0x34;" (assignment_expression "puVar2 = PTR_vtable_004c547c + 0x34" identifier = (binary_expression "PTR_vtable_004c547c + 0x34" identifier + number_literal)) ;) (expression_statement "puVar4 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));" (assignment_expression "puVar4 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc))" identifier = (cast_expression "(undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc))" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc))" ( (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )))) ;) (expression_statement "puVar4[2] = PTR_vtable_004c547c + 0x20;" (assignment_expression "puVar4[2] = PTR_vtable_004c547c + 0x20" (subscript_expression "puVar4[2]" identifier [ number_literal ]) = (binary_expression "PTR_vtable_004c547c + 0x20" identifier + number_literal)) ;) (expression_statement "puVar1 = PTR_vtable_004c22e4;" (assignment_expression "puVar1 = PTR_vtable_004c22e4" identifier = identifier) ;) (expression_statement "*puVar4 = puVar3;" (assignment_expression "*puVar4 = puVar3" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "puVar4[0x25] = puVar2;" (assignment_expression "puVar4[0x25] = puVar2" (subscript_expression "puVar4[0x25]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar4[3] = puVar1 + 8;" (assignment_expression "puVar4[3] = puVar1 + 8" (subscript_expression "puVar4[3]" identifier [ number_literal ]) = (binary_expression "puVar1 + 8" identifier + number_literal)) ;) (labeled_statement "std::filebuf::close((filebuf *)(puVar4 + 3));" statement_identifier : (ERROR ":" :) (labeled_statement "filebuf::close((filebuf *)(puVar4 + 3));" statement_identifier : (ERROR ":" :) (expression_statement "close((filebuf *)(puVar4 + 3));" (call_expression "close((filebuf *)(puVar4 + 3))" identifier (argument_list "((filebuf *)(puVar4 + 3))" ( (cast_expression "(filebuf *)(puVar4 + 3)" ( (type_descriptor "filebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 3)" ( (binary_expression "puVar4 + 3" identifier + number_literal) ))) ))) ;))) (expression_statement "(*(code *)PTR____basic_file_004c22e8)(puVar4 + 0x11);" (call_expression "(*(code *)PTR____basic_file_004c22e8)(puVar4 + 0x11)" (parenthesized_expression "(*(code *)PTR____basic_file_004c22e8)" ( (pointer_expression "*(code *)PTR____basic_file_004c22e8" * (cast_expression "(code *)PTR____basic_file_004c22e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar4 + 0x11)" ( (binary_expression "puVar4 + 0x11" identifier + number_literal) ))) ;) (expression_statement "puVar1 = PTR__locale_004c22f0;" (assignment_expression "puVar1 = PTR__locale_004c22f0" identifier = identifier) ;) (expression_statement "puVar4[3] = PTR_vtable_004c22ec + 8;" (assignment_expression "puVar4[3] = PTR_vtable_004c22ec + 8" (subscript_expression "puVar4[3]" identifier [ number_literal ]) = (binary_expression "PTR_vtable_004c22ec + 8" identifier + number_literal)) ;) (expression_statement "(*(code *)puVar1)(puVar4 + 10);" (call_expression "(*(code *)puVar1)(puVar4 + 10)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar4 + 10)" ( (binary_expression "puVar4 + 10" identifier + number_literal) ))) ;) (expression_statement "puVar4[1] = 0;" (assignment_expression "puVar4[1] = 0" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar4[2] = PTR_DAT_004c5480 + 0xc;" (assignment_expression "puVar4[2] = PTR_DAT_004c5480 + 0xc" (subscript_expression "puVar4[2]" identifier [ number_literal ]) = (binary_expression "PTR_DAT_004c5480 + 0xc" identifier + number_literal)) ;) (expression_statement "*puVar4 = PTR_DAT_004c5484 + 0xc;" (assignment_expression "*puVar4 = PTR_DAT_004c5484 + 0xc" (pointer_expression "*puVar4" * identifier) = (binary_expression "PTR_DAT_004c5484 + 0xc" identifier + number_literal)) ;) (expression_statement "puVar4[0x25] = PTR_vtable_004c22a4 + 8;" (assignment_expression "puVar4[0x25] = PTR_vtable_004c22a4 + 8" (subscript_expression "puVar4[0x25]" identifier [ number_literal ]) = (binary_expression "PTR_vtable_004c22a4 + 8" identifier + number_literal)) ;) (labeled_statement "std::ios_base::~ios_base((ios_base *)(puVar4 + 0x25));" statement_identifier : (ERROR ":" :) (labeled_statement "ios_base::~ios_base((ios_base *)(puVar4 + 0x25));" statement_identifier : (ERROR ":" :) (expression_statement "~ios_base((ios_base *)(puVar4 + 0x25));" (unary_expression "~ios_base((ios_base *)(puVar4 + 0x25))" ~ (call_expression "ios_base((ios_base *)(puVar4 + 0x25))" identifier (argument_list "((ios_base *)(puVar4 + 0x25))" ( (cast_expression "(ios_base *)(puVar4 + 0x25)" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0x25)" ( (binary_expression "puVar4 + 0x25" identifier + number_literal) ))) )))) ;))) (expression_statement "(*(code *)PTR_operator_delete_004c12fc)(puVar4);" (call_expression "(*(code *)PTR_operator_delete_004c12fc)(puVar4)" (parenthesized_expression "(*(code *)PTR_operator_delete_004c12fc)" ( (pointer_expression "*(code *)PTR_operator_delete_004c12fc" * (cast_expression "(code *)PTR_operator_delete_004c12fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar4)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* virtual thunk to std::fstream::~fstream() */\n\nvoid __thiscall std::fstream::~fstream(fstream *this)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  fstream *pfVar4;\n  \n  puVar3 = PTR_vtable_004c547c + 0xc;\n  puVar2 = PTR_vtable_004c547c + 0x34;\n  pfVar4 = this + *(int *)(*(int *)this + -0xc);\n  *(undefined **)(pfVar4 + 8) = PTR_vtable_004c547c + 0x20;\n  puVar1 = PTR_vtable_004c22e4;\n  *(undefined **)pfVar4 = puVar3;\n  *(undefined **)(pfVar4 + 0x94) = puVar2;\n  *(undefined **)(pfVar4 + 0xc) = puVar1 + 8;\n  filebuf::close((filebuf *)(pfVar4 + 0xc));\n  (*(code *)PTR____basic_file_004c22e8)(pfVar4 + 0x44);\n  puVar1 = PTR__locale_004c22f0;\n  *(undefined **)(pfVar4 + 0xc) = PTR_vtable_004c22ec + 8;\n  (*(code *)puVar1)(pfVar4 + 0x28);\n  *(undefined4 *)(pfVar4 + 4) = 0;\n  *(undefined **)(pfVar4 + 8) = PTR_construction_vtable_004c5480 + 0xc;\n  *(undefined **)pfVar4 = PTR_construction_vtable_004c5484 + 0xc;\n  *(undefined **)(pfVar4 + 0x94) = PTR_vtable_004c22a4 + 8;\n  ios_base::~ios_base((ios_base *)(pfVar4 + 0x94));\n  (*(code *)PTR_operator_delete_004c12fc)(pfVar4);\n  return;\n}\n\n" comment (function_definition "void __thiscall std::fstream::~fstream(fstream *this)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  fstream *pfVar4;\n  \n  puVar3 = PTR_vtable_004c547c + 0xc;\n  puVar2 = PTR_vtable_004c547c + 0x34;\n  pfVar4 = this + *(int *)(*(int *)this + -0xc);\n  *(undefined **)(pfVar4 + 8) = PTR_vtable_004c547c + 0x20;\n  puVar1 = PTR_vtable_004c22e4;\n  *(undefined **)pfVar4 = puVar3;\n  *(undefined **)(pfVar4 + 0x94) = puVar2;\n  *(undefined **)(pfVar4 + 0xc) = puVar1 + 8;\n  filebuf::close((filebuf *)(pfVar4 + 0xc));\n  (*(code *)PTR____basic_file_004c22e8)(pfVar4 + 0x44);\n  puVar1 = PTR__locale_004c22f0;\n  *(undefined **)(pfVar4 + 0xc) = PTR_vtable_004c22ec + 8;\n  (*(code *)puVar1)(pfVar4 + 0x28);\n  *(undefined4 *)(pfVar4 + 4) = 0;\n  *(undefined **)(pfVar4 + 8) = PTR_construction_vtable_004c5480 + 0xc;\n  *(undefined **)pfVar4 = PTR_construction_vtable_004c5484 + 0xc;\n  *(undefined **)(pfVar4 + 0x94) = PTR_vtable_004c22a4 + 8;\n  ios_base::~ios_base((ios_base *)(pfVar4 + 0x94));\n  (*(code *)PTR_operator_delete_004c12fc)(pfVar4);\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  undefined *puVar3;\n  fstream *pfVar4;\n  \n  puVar3 = PTR_vtable_004c547c + 0xc;\n  puVar2 = PTR_vtable_004c547c + 0x34;\n  pfVar4 = this + *(int *)(*(int *)this + -0xc);\n  *(undefined **)(pfVar4 + 8) = PTR_vtable_004c547c + 0x20;\n  puVar1 = PTR_vtable_004c22e4;\n  *(undefined **)pfVar4 = puVar3;\n  *(undefined **)(pfVar4 + 0x94) = puVar2;\n  *(undefined **)(pfVar4 + 0xc) = puVar1 + 8;\n  filebuf::close((filebuf *)(pfVar4 + 0xc));\n  (*(code *)PTR____basic_file_004c22e8)(pfVar4 + 0x44);\n  puVar1 = PTR__locale_004c22f0;\n  *(undefined **)(pfVar4 + 0xc) = PTR_vtable_004c22ec + 8;\n  (*(code *)puVar1)(pfVar4 + 0x28);\n  *(undefined4 *)(pfVar4 + 4) = 0;\n  *(undefined **)(pfVar4 + 8) = PTR_construction_vtable_004c5480 + 0xc;\n  *(undefined **)pfVar4 = PTR_construction_vtable_004c5484 + 0xc;\n  *(undefined **)(pfVar4 + 0x94) = PTR_vtable_004c22a4 + 8;\n  ios_base::~ios_base((ios_base *)(pfVar4 + 0x94));\n  (*(code *)PTR_operator_delete_004c12fc)(pfVar4);\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "fstream *pfVar4;" type_identifier (pointer_declarator "*pfVar4" * identifier) ;) (expression_statement "puVar3 = PTR_vtable_004c547c + 0xc;" (assignment_expression "puVar3 = PTR_vtable_004c547c + 0xc" identifier = (binary_expression "PTR_vtable_004c547c + 0xc" identifier + number_literal)) ;) (expression_statement "puVar2 = PTR_vtable_004c547c + 0x34;" (assignment_expression "puVar2 = PTR_vtable_004c547c + 0x34" identifier = (binary_expression "PTR_vtable_004c547c + 0x34" identifier + number_literal)) ;) (expression_statement "pfVar4 = this + *(int *)(*(int *)this + -0xc);" (assignment_expression "pfVar4 = this + *(int *)(*(int *)this + -0xc)" identifier = (binary_expression "this + *(int *)(*(int *)this + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)this + -0xc)" * (cast_expression "(int *)(*(int *)this + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))))) ;) (expression_statement "*(undefined **)(pfVar4 + 8) = PTR_vtable_004c547c + 0x20;" (assignment_expression "*(undefined **)(pfVar4 + 8) = PTR_vtable_004c547c + 0x20" (pointer_expression "*(undefined **)(pfVar4 + 8)" * (cast_expression "(undefined **)(pfVar4 + 8)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pfVar4 + 8)" ( (binary_expression "pfVar4 + 8" identifier + number_literal) )))) = (binary_expression "PTR_vtable_004c547c + 0x20" identifier + number_literal)) ;) (expression_statement "puVar1 = PTR_vtable_004c22e4;" (assignment_expression "puVar1 = PTR_vtable_004c22e4" identifier = identifier) ;) (expression_statement "*(undefined **)pfVar4 = puVar3;" (assignment_expression "*(undefined **)pfVar4 = puVar3" (pointer_expression "*(undefined **)pfVar4" * (cast_expression "(undefined **)pfVar4" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (expression_statement "*(undefined **)(pfVar4 + 0x94) = puVar2;" (assignment_expression "*(undefined **)(pfVar4 + 0x94) = puVar2" (pointer_expression "*(undefined **)(pfVar4 + 0x94)" * (cast_expression "(undefined **)(pfVar4 + 0x94)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pfVar4 + 0x94)" ( (binary_expression "pfVar4 + 0x94" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined **)(pfVar4 + 0xc) = puVar1 + 8;" (assignment_expression "*(undefined **)(pfVar4 + 0xc) = puVar1 + 8" (pointer_expression "*(undefined **)(pfVar4 + 0xc)" * (cast_expression "(undefined **)(pfVar4 + 0xc)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pfVar4 + 0xc)" ( (binary_expression "pfVar4 + 0xc" identifier + number_literal) )))) = (binary_expression "puVar1 + 8" identifier + number_literal)) ;) (labeled_statement "filebuf::close((filebuf *)(pfVar4 + 0xc));" statement_identifier : (ERROR ":" :) (expression_statement "close((filebuf *)(pfVar4 + 0xc));" (call_expression "close((filebuf *)(pfVar4 + 0xc))" identifier (argument_list "((filebuf *)(pfVar4 + 0xc))" ( (cast_expression "(filebuf *)(pfVar4 + 0xc)" ( (type_descriptor "filebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pfVar4 + 0xc)" ( (binary_expression "pfVar4 + 0xc" identifier + number_literal) ))) ))) ;)) (expression_statement "(*(code *)PTR____basic_file_004c22e8)(pfVar4 + 0x44);" (call_expression "(*(code *)PTR____basic_file_004c22e8)(pfVar4 + 0x44)" (parenthesized_expression "(*(code *)PTR____basic_file_004c22e8)" ( (pointer_expression "*(code *)PTR____basic_file_004c22e8" * (cast_expression "(code *)PTR____basic_file_004c22e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pfVar4 + 0x44)" ( (binary_expression "pfVar4 + 0x44" identifier + number_literal) ))) ;) (expression_statement "puVar1 = PTR__locale_004c22f0;" (assignment_expression "puVar1 = PTR__locale_004c22f0" identifier = identifier) ;) (expression_statement "*(undefined **)(pfVar4 + 0xc) = PTR_vtable_004c22ec + 8;" (assignment_expression "*(undefined **)(pfVar4 + 0xc) = PTR_vtable_004c22ec + 8" (pointer_expression "*(undefined **)(pfVar4 + 0xc)" * (cast_expression "(undefined **)(pfVar4 + 0xc)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pfVar4 + 0xc)" ( (binary_expression "pfVar4 + 0xc" identifier + number_literal) )))) = (binary_expression "PTR_vtable_004c22ec + 8" identifier + number_literal)) ;) (expression_statement "(*(code *)puVar1)(pfVar4 + 0x28);" (call_expression "(*(code *)puVar1)(pfVar4 + 0x28)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pfVar4 + 0x28)" ( (binary_expression "pfVar4 + 0x28" identifier + number_literal) ))) ;) (expression_statement "*(undefined4 *)(pfVar4 + 4) = 0;" (assignment_expression "*(undefined4 *)(pfVar4 + 4) = 0" (pointer_expression "*(undefined4 *)(pfVar4 + 4)" * (cast_expression "(undefined4 *)(pfVar4 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pfVar4 + 4)" ( (binary_expression "pfVar4 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined **)(pfVar4 + 8) = PTR_construction_vtable_004c5480 + 0xc;" (assignment_expression "*(undefined **)(pfVar4 + 8) = PTR_construction_vtable_004c5480 + 0xc" (pointer_expression "*(undefined **)(pfVar4 + 8)" * (cast_expression "(undefined **)(pfVar4 + 8)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pfVar4 + 8)" ( (binary_expression "pfVar4 + 8" identifier + number_literal) )))) = (binary_expression "PTR_construction_vtable_004c5480 + 0xc" identifier + number_literal)) ;) (expression_statement "*(undefined **)pfVar4 = PTR_construction_vtable_004c5484 + 0xc;" (assignment_expression "*(undefined **)pfVar4 = PTR_construction_vtable_004c5484 + 0xc" (pointer_expression "*(undefined **)pfVar4" * (cast_expression "(undefined **)pfVar4" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = (binary_expression "PTR_construction_vtable_004c5484 + 0xc" identifier + number_literal)) ;) (expression_statement "*(undefined **)(pfVar4 + 0x94) = PTR_vtable_004c22a4 + 8;" (assignment_expression "*(undefined **)(pfVar4 + 0x94) = PTR_vtable_004c22a4 + 8" (pointer_expression "*(undefined **)(pfVar4 + 0x94)" * (cast_expression "(undefined **)(pfVar4 + 0x94)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pfVar4 + 0x94)" ( (binary_expression "pfVar4 + 0x94" identifier + number_literal) )))) = (binary_expression "PTR_vtable_004c22a4 + 8" identifier + number_literal)) ;) (labeled_statement "ios_base::~ios_base((ios_base *)(pfVar4 + 0x94));" statement_identifier : (ERROR ":" :) (expression_statement "~ios_base((ios_base *)(pfVar4 + 0x94));" (unary_expression "~ios_base((ios_base *)(pfVar4 + 0x94))" ~ (call_expression "ios_base((ios_base *)(pfVar4 + 0x94))" identifier (argument_list "((ios_base *)(pfVar4 + 0x94))" ( (cast_expression "(ios_base *)(pfVar4 + 0x94)" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pfVar4 + 0x94)" ( (binary_expression "pfVar4 + 0x94" identifier + number_literal) ))) )))) ;)) (expression_statement "(*(code *)PTR_operator_delete_004c12fc)(pfVar4);" (call_expression "(*(code *)PTR_operator_delete_004c12fc)(pfVar4)" (parenthesized_expression "(*(code *)PTR_operator_delete_004c12fc)" ( (pointer_expression "*(code *)PTR_operator_delete_004c12fc" * (cast_expression "(code *)PTR_operator_delete_004c12fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pfVar4)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00369f48(int *param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined4 *puVar4;\n  \n  puVar3 = PTR_vtable_004c547c + 0xc;\n  puVar2 = PTR_vtable_004c547c + 0x34;\n  puVar4 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  puVar4[2] = PTR_vtable_004c547c + 0x20;\n  puVar1 = PTR_vtable_004c22e4;\n  *puVar4 = puVar3;\n  puVar4[0x25] = puVar2;\n  puVar4[3] = puVar1 + 8;\n  std::filebuf::close((filebuf *)(puVar4 + 3));\n  (*(code *)PTR____basic_file_004c22e8)(puVar4 + 0x11);\n  puVar1 = PTR__locale_004c22f0;\n  puVar4[3] = PTR_vtable_004c22ec + 8;\n  (*(code *)puVar1)(puVar4 + 10);\n  puVar4[1] = 0;\n  puVar4[2] = PTR_DAT_004c5480 + 0xc;\n  *puVar4 = PTR_DAT_004c5484 + 0xc;\n  puVar4[0x25] = PTR_vtable_004c22a4 + 8;\n  std::ios_base::~ios_base((ios_base *)(puVar4 + 0x25));\n  (*(code *)PTR_operator_delete_004c12fc)(puVar4);\n  return;\n}\n\n" (function_definition "void FUN_00369f48(int *param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined4 *puVar4;\n  \n  puVar3 = PTR_vtable_004c547c + 0xc;\n  puVar2 = PTR_vtable_004c547c + 0x34;\n  puVar4 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  puVar4[2] = PTR_vtable_004c547c + 0x20;\n  puVar1 = PTR_vtable_004c22e4;\n  *puVar4 = puVar3;\n  puVar4[0x25] = puVar2;\n  puVar4[3] = puVar1 + 8;\n  std::filebuf::close((filebuf *)(puVar4 + 3));\n  (*(code *)PTR____basic_file_004c22e8)(puVar4 + 0x11);\n  puVar1 = PTR__locale_004c22f0;\n  puVar4[3] = PTR_vtable_004c22ec + 8;\n  (*(code *)puVar1)(puVar4 + 10);\n  puVar4[1] = 0;\n  puVar4[2] = PTR_DAT_004c5480 + 0xc;\n  *puVar4 = PTR_DAT_004c5484 + 0xc;\n  puVar4[0x25] = PTR_vtable_004c22a4 + 8;\n  std::ios_base::~ios_base((ios_base *)(puVar4 + 0x25));\n  (*(code *)PTR_operator_delete_004c12fc)(puVar4);\n  return;\n}" primitive_type (function_declarator "FUN_00369f48(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined4 *puVar4;\n  \n  puVar3 = PTR_vtable_004c547c + 0xc;\n  puVar2 = PTR_vtable_004c547c + 0x34;\n  puVar4 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  puVar4[2] = PTR_vtable_004c547c + 0x20;\n  puVar1 = PTR_vtable_004c22e4;\n  *puVar4 = puVar3;\n  puVar4[0x25] = puVar2;\n  puVar4[3] = puVar1 + 8;\n  std::filebuf::close((filebuf *)(puVar4 + 3));\n  (*(code *)PTR____basic_file_004c22e8)(puVar4 + 0x11);\n  puVar1 = PTR__locale_004c22f0;\n  puVar4[3] = PTR_vtable_004c22ec + 8;\n  (*(code *)puVar1)(puVar4 + 10);\n  puVar4[1] = 0;\n  puVar4[2] = PTR_DAT_004c5480 + 0xc;\n  *puVar4 = PTR_DAT_004c5484 + 0xc;\n  puVar4[0x25] = PTR_vtable_004c22a4 + 8;\n  std::ios_base::~ios_base((ios_base *)(puVar4 + 0x25));\n  (*(code *)PTR_operator_delete_004c12fc)(puVar4);\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (expression_statement "puVar3 = PTR_vtable_004c547c + 0xc;" (assignment_expression "puVar3 = PTR_vtable_004c547c + 0xc" identifier = (binary_expression "PTR_vtable_004c547c + 0xc" identifier + number_literal)) ;) (expression_statement "puVar2 = PTR_vtable_004c547c + 0x34;" (assignment_expression "puVar2 = PTR_vtable_004c547c + 0x34" identifier = (binary_expression "PTR_vtable_004c547c + 0x34" identifier + number_literal)) ;) (expression_statement "puVar4 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));" (assignment_expression "puVar4 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc))" identifier = (cast_expression "(undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc))" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc))" ( (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )))) ;) (expression_statement "puVar4[2] = PTR_vtable_004c547c + 0x20;" (assignment_expression "puVar4[2] = PTR_vtable_004c547c + 0x20" (subscript_expression "puVar4[2]" identifier [ number_literal ]) = (binary_expression "PTR_vtable_004c547c + 0x20" identifier + number_literal)) ;) (expression_statement "puVar1 = PTR_vtable_004c22e4;" (assignment_expression "puVar1 = PTR_vtable_004c22e4" identifier = identifier) ;) (expression_statement "*puVar4 = puVar3;" (assignment_expression "*puVar4 = puVar3" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "puVar4[0x25] = puVar2;" (assignment_expression "puVar4[0x25] = puVar2" (subscript_expression "puVar4[0x25]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar4[3] = puVar1 + 8;" (assignment_expression "puVar4[3] = puVar1 + 8" (subscript_expression "puVar4[3]" identifier [ number_literal ]) = (binary_expression "puVar1 + 8" identifier + number_literal)) ;) (labeled_statement "std::filebuf::close((filebuf *)(puVar4 + 3));" statement_identifier : (ERROR ":" :) (labeled_statement "filebuf::close((filebuf *)(puVar4 + 3));" statement_identifier : (ERROR ":" :) (expression_statement "close((filebuf *)(puVar4 + 3));" (call_expression "close((filebuf *)(puVar4 + 3))" identifier (argument_list "((filebuf *)(puVar4 + 3))" ( (cast_expression "(filebuf *)(puVar4 + 3)" ( (type_descriptor "filebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 3)" ( (binary_expression "puVar4 + 3" identifier + number_literal) ))) ))) ;))) (expression_statement "(*(code *)PTR____basic_file_004c22e8)(puVar4 + 0x11);" (call_expression "(*(code *)PTR____basic_file_004c22e8)(puVar4 + 0x11)" (parenthesized_expression "(*(code *)PTR____basic_file_004c22e8)" ( (pointer_expression "*(code *)PTR____basic_file_004c22e8" * (cast_expression "(code *)PTR____basic_file_004c22e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar4 + 0x11)" ( (binary_expression "puVar4 + 0x11" identifier + number_literal) ))) ;) (expression_statement "puVar1 = PTR__locale_004c22f0;" (assignment_expression "puVar1 = PTR__locale_004c22f0" identifier = identifier) ;) (expression_statement "puVar4[3] = PTR_vtable_004c22ec + 8;" (assignment_expression "puVar4[3] = PTR_vtable_004c22ec + 8" (subscript_expression "puVar4[3]" identifier [ number_literal ]) = (binary_expression "PTR_vtable_004c22ec + 8" identifier + number_literal)) ;) (expression_statement "(*(code *)puVar1)(puVar4 + 10);" (call_expression "(*(code *)puVar1)(puVar4 + 10)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar4 + 10)" ( (binary_expression "puVar4 + 10" identifier + number_literal) ))) ;) (expression_statement "puVar4[1] = 0;" (assignment_expression "puVar4[1] = 0" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar4[2] = PTR_DAT_004c5480 + 0xc;" (assignment_expression "puVar4[2] = PTR_DAT_004c5480 + 0xc" (subscript_expression "puVar4[2]" identifier [ number_literal ]) = (binary_expression "PTR_DAT_004c5480 + 0xc" identifier + number_literal)) ;) (expression_statement "*puVar4 = PTR_DAT_004c5484 + 0xc;" (assignment_expression "*puVar4 = PTR_DAT_004c5484 + 0xc" (pointer_expression "*puVar4" * identifier) = (binary_expression "PTR_DAT_004c5484 + 0xc" identifier + number_literal)) ;) (expression_statement "puVar4[0x25] = PTR_vtable_004c22a4 + 8;" (assignment_expression "puVar4[0x25] = PTR_vtable_004c22a4 + 8" (subscript_expression "puVar4[0x25]" identifier [ number_literal ]) = (binary_expression "PTR_vtable_004c22a4 + 8" identifier + number_literal)) ;) (labeled_statement "std::ios_base::~ios_base((ios_base *)(puVar4 + 0x25));" statement_identifier : (ERROR ":" :) (labeled_statement "ios_base::~ios_base((ios_base *)(puVar4 + 0x25));" statement_identifier : (ERROR ":" :) (expression_statement "~ios_base((ios_base *)(puVar4 + 0x25));" (unary_expression "~ios_base((ios_base *)(puVar4 + 0x25))" ~ (call_expression "ios_base((ios_base *)(puVar4 + 0x25))" identifier (argument_list "((ios_base *)(puVar4 + 0x25))" ( (cast_expression "(ios_base *)(puVar4 + 0x25)" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0x25)" ( (binary_expression "puVar4 + 0x25" identifier + number_literal) ))) )))) ;))) (expression_statement "(*(code *)PTR_operator_delete_004c12fc)(puVar4);" (call_expression "(*(code *)PTR_operator_delete_004c12fc)(puVar4)" (parenthesized_expression "(*(code *)PTR_operator_delete_004c12fc)" ( (pointer_expression "*(code *)PTR_operator_delete_004c12fc" * (cast_expression "(code *)PTR_operator_delete_004c12fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar4)" ( identifier ))) ;) (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) ;) (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 IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = 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 (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (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) ))) )))) ;))) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00369f48(int *param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined4 *puVar4;\n  \n  puVar3 = PTR_vtable_004c547c + 0xc;\n  puVar2 = PTR_vtable_004c547c + 0x34;\n  puVar4 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  puVar4[2] = PTR_vtable_004c547c + 0x20;\n  puVar1 = PTR_vtable_004c22e4;\n  *puVar4 = puVar3;\n  puVar4[0x25] = puVar2;\n  puVar4[3] = puVar1 + 8;\n  std::filebuf::close((filebuf *)(puVar4 + 3));\n  (*(code *)PTR____basic_file_004c22e8)(puVar4 + 0x11);\n  puVar1 = PTR__locale_004c22f0;\n  puVar4[3] = PTR_vtable_004c22ec + 8;\n  (*(code *)puVar1)(puVar4 + 10);\n  puVar4[1] = 0;\n  puVar4[2] = PTR_DAT_004c5480 + 0xc;\n  *puVar4 = PTR_DAT_004c5484 + 0xc;\n  puVar4[0x25] = PTR_vtable_004c22a4 + 8;\n  std::ios_base::~ios_base((ios_base *)(puVar4 + 0x25));\n  (*(code *)PTR_operator_delete_004c12fc)(puVar4);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00369f48(int *param_1)" (identifier "FUN_00369f48") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined4 *puVar4;\n  \n  puVar3 = PTR_vtable_004c547c + 0xc;\n  puVar2 = PTR_vtable_004c547c + 0x34;\n  puVar4 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  puVar4[2] = PTR_vtable_004c547c + 0x20;\n  puVar1 = PTR_vtable_004c22e4;\n  *puVar4 = puVar3;\n  puVar4[0x25] = puVar2;\n  puVar4[3] = puVar1 + 8;\n  std::filebuf::close((filebuf *)(puVar4 + 3));\n  (*(code *)PTR____basic_file_004c22e8)(puVar4 + 0x11);\n  puVar1 = PTR__locale_004c22f0;\n  puVar4[3] = PTR_vtable_004c22ec + 8;\n  (*(code *)puVar1)(puVar4 + 10);\n  puVar4[1] = 0;\n  puVar4[2] = PTR_DAT_004c5480 + 0xc;\n  *puVar4 = PTR_DAT_004c5484 + 0xc;\n  puVar4[0x25] = PTR_vtable_004c22a4 + 8;\n  std::ios_base::~ios_base((ios_base *)(puVar4 + 0x25));\n  (*(code *)PTR_operator_delete_004c12fc)(puVar4);\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")) (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (expression_statement "puVar3 = PTR_vtable_004c547c + 0xc;" (assignment_expression "puVar3 = PTR_vtable_004c547c + 0xc" (identifier "puVar3") (= "=") (binary_expression "PTR_vtable_004c547c + 0xc" (identifier "PTR_vtable_004c547c") (+ "+") (number_literal "0xc"))) (; ";")) (expression_statement "puVar2 = PTR_vtable_004c547c + 0x34;" (assignment_expression "puVar2 = PTR_vtable_004c547c + 0x34" (identifier "puVar2") (= "=") (binary_expression "PTR_vtable_004c547c + 0x34" (identifier "PTR_vtable_004c547c") (+ "+") (number_literal "0x34"))) (; ";")) (expression_statement "puVar4 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));" (assignment_expression "puVar4 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc))" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc))" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc))" (( "(") (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(int *)(*param_1 + -0xc)" (* "*") (cast_expression "(int *)(*param_1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0xc)" (( "(") (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0xc")) () ")"))))) () ")")))) (; ";")) (expression_statement "puVar4[2] = PTR_vtable_004c547c + 0x20;" (assignment_expression "puVar4[2] = PTR_vtable_004c547c + 0x20" (subscript_expression "puVar4[2]" (identifier "puVar4") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "PTR_vtable_004c547c + 0x20" (identifier "PTR_vtable_004c547c") (+ "+") (number_literal "0x20"))) (; ";")) (expression_statement "puVar1 = PTR_vtable_004c22e4;" (assignment_expression "puVar1 = PTR_vtable_004c22e4" (identifier "puVar1") (= "=") (identifier "PTR_vtable_004c22e4")) (; ";")) (expression_statement "*puVar4 = puVar3;" (assignment_expression "*puVar4 = puVar3" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (identifier "puVar3")) (; ";")) (expression_statement "puVar4[0x25] = puVar2;" (assignment_expression "puVar4[0x25] = puVar2" (subscript_expression "puVar4[0x25]" (identifier "puVar4") ([ "[") (number_literal "0x25") (] "]")) (= "=") (identifier "puVar2")) (; ";")) (expression_statement "puVar4[3] = puVar1 + 8;" (assignment_expression "puVar4[3] = puVar1 + 8" (subscript_expression "puVar4[3]" (identifier "puVar4") ([ "[") (number_literal "3") (] "]")) (= "=") (binary_expression "puVar1 + 8" (identifier "puVar1") (+ "+") (number_literal "8"))) (; ";")) (labeled_statement "std::filebuf::close((filebuf *)(puVar4 + 3));" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "filebuf::close((filebuf *)(puVar4 + 3));" (statement_identifier "filebuf") (: ":") (ERROR ":" (: ":")) (expression_statement "close((filebuf *)(puVar4 + 3));" (call_expression "close((filebuf *)(puVar4 + 3))" (identifier "close") (argument_list "((filebuf *)(puVar4 + 3))" (( "(") (cast_expression "(filebuf *)(puVar4 + 3)" (( "(") (type_descriptor "filebuf *" (type_identifier "filebuf") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + 3)" (( "(") (binary_expression "puVar4 + 3" (identifier "puVar4") (+ "+") (number_literal "3")) () ")"))) () ")"))) (; ";")))) (expression_statement "(*(code *)PTR____basic_file_004c22e8)(puVar4 + 0x11);" (call_expression "(*(code *)PTR____basic_file_004c22e8)(puVar4 + 0x11)" (parenthesized_expression "(*(code *)PTR____basic_file_004c22e8)" (( "(") (pointer_expression "*(code *)PTR____basic_file_004c22e8" (* "*") (cast_expression "(code *)PTR____basic_file_004c22e8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR____basic_file_004c22e8"))) () ")")) (argument_list "(puVar4 + 0x11)" (( "(") (binary_expression "puVar4 + 0x11" (identifier "puVar4") (+ "+") (number_literal "0x11")) () ")"))) (; ";")) (expression_statement "puVar1 = PTR__locale_004c22f0;" (assignment_expression "puVar1 = PTR__locale_004c22f0" (identifier "puVar1") (= "=") (identifier "PTR__locale_004c22f0")) (; ";")) (expression_statement "puVar4[3] = PTR_vtable_004c22ec + 8;" (assignment_expression "puVar4[3] = PTR_vtable_004c22ec + 8" (subscript_expression "puVar4[3]" (identifier "puVar4") ([ "[") (number_literal "3") (] "]")) (= "=") (binary_expression "PTR_vtable_004c22ec + 8" (identifier "PTR_vtable_004c22ec") (+ "+") (number_literal "8"))) (; ";")) (expression_statement "(*(code *)puVar1)(puVar4 + 10);" (call_expression "(*(code *)puVar1)(puVar4 + 10)" (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 "(puVar4 + 10)" (( "(") (binary_expression "puVar4 + 10" (identifier "puVar4") (+ "+") (number_literal "10")) () ")"))) (; ";")) (expression_statement "puVar4[1] = 0;" (assignment_expression "puVar4[1] = 0" (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar4[2] = PTR_DAT_004c5480 + 0xc;" (assignment_expression "puVar4[2] = PTR_DAT_004c5480 + 0xc" (subscript_expression "puVar4[2]" (identifier "puVar4") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "PTR_DAT_004c5480 + 0xc" (identifier "PTR_DAT_004c5480") (+ "+") (number_literal "0xc"))) (; ";")) (expression_statement "*puVar4 = PTR_DAT_004c5484 + 0xc;" (assignment_expression "*puVar4 = PTR_DAT_004c5484 + 0xc" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (binary_expression "PTR_DAT_004c5484 + 0xc" (identifier "PTR_DAT_004c5484") (+ "+") (number_literal "0xc"))) (; ";")) (expression_statement "puVar4[0x25] = PTR_vtable_004c22a4 + 8;" (assignment_expression "puVar4[0x25] = PTR_vtable_004c22a4 + 8" (subscript_expression "puVar4[0x25]" (identifier "puVar4") ([ "[") (number_literal "0x25") (] "]")) (= "=") (binary_expression "PTR_vtable_004c22a4 + 8" (identifier "PTR_vtable_004c22a4") (+ "+") (number_literal "8"))) (; ";")) (labeled_statement "std::ios_base::~ios_base((ios_base *)(puVar4 + 0x25));" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "ios_base::~ios_base((ios_base *)(puVar4 + 0x25));" (statement_identifier "ios_base") (: ":") (ERROR ":" (: ":")) (expression_statement "~ios_base((ios_base *)(puVar4 + 0x25));" (unary_expression "~ios_base((ios_base *)(puVar4 + 0x25))" (~ "~") (call_expression "ios_base((ios_base *)(puVar4 + 0x25))" (identifier "ios_base") (argument_list "((ios_base *)(puVar4 + 0x25))" (( "(") (cast_expression "(ios_base *)(puVar4 + 0x25)" (( "(") (type_descriptor "ios_base *" (type_identifier "ios_base") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + 0x25)" (( "(") (binary_expression "puVar4 + 0x25" (identifier "puVar4") (+ "+") (number_literal "0x25")) () ")"))) () ")")))) (; ";")))) (expression_statement "(*(code *)PTR_operator_delete_004c12fc)(puVar4);" (call_expression "(*(code *)PTR_operator_delete_004c12fc)(puVar4)" (parenthesized_expression "(*(code *)PTR_operator_delete_004c12fc)" (( "(") (pointer_expression "*(code *)PTR_operator_delete_004c12fc" (* "*") (cast_expression "(code *)PTR_operator_delete_004c12fc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_operator_delete_004c12fc"))) () ")")) (argument_list "(puVar4)" (( "(") (identifier "puVar4") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

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

{
  type_1 *var_4;
  type_1 *puVar2;
  type_1 *puVar3;
  function_1 *var_3;
  
  puVar3 = var_1 + 0xc;
  puVar2 = var_1 + 0x34;
  var_3 = var_2 + *(int *)(*(int *)var_2 + -0xc);
  *(type_1 **)(var_3 + 8) = var_1 + 0x20;
  var_4 = PTR_vtable_004c22e4;
  *(type_1 **)var_3 = puVar3;
  *(type_1 **)(var_3 + 0x94) = puVar2;
  *(type_1 **)(var_3 + 0xc) = var_4 + 8;
  filebuf::var_5((type_2 *)(var_3 + 0xc));
  (*(type_3 *)PTR____basic_file_004c22e8)(var_3 + 0x44);
  var_4 = PTR__locale_004c22f0;
  *(type_1 **)(var_3 + 0xc) = var_6 + 8;
  (*(type_3 *)var_4)(var_3 + 0x28);
  *(type_4 *)(var_3 + 4) = 0;
  *(type_1 **)(var_3 + 8) = var_7 + 0xc;
  *(type_1 **)var_3 = var_8 + 0xc;
  *(type_1 **)(var_3 + 0x94) = var_9 + 8;
  ios_base::~var_10((var_10 *)(var_3 + 0x94));
  (*(type_3 *)PTR_operator_delete_004c12fc)(var_3);
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) 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))) (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: (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: (primitive_type)) value: (identifier)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (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: (identifier) 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: (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: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) 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)))) (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)))))))))) (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 (identifier)))) (return_statement))))

void MASKED(int *param_1)

{
  undefined *puVar1;
  undefined *puVar2;
  undefined *puVar3;
  undefined4 *puVar4;
  
  puVar3 = PTR_vtable_004c547c + 0xc;
  puVar2 = PTR_vtable_004c547c + 0x34;
  puVar4 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));
  puVar4[2] = PTR_vtable_004c547c + 0x20;
  puVar1 = PTR_vtable_004c22e4;
  *puVar4 = puVar3;
  puVar4[0x25] = puVar2;
  puVar4[3] = puVar1 + 8;
  std::filebuf::close((filebuf *)(puVar4 + 3));
  (*(code *)PTR____basic_file_004c22e8)(puVar4 + 0x11);
  puVar1 = PTR__locale_004c22f0;
  puVar4[3] = PTR_vtable_004c22ec + 8;
  (*(code *)puVar1)(puVar4 + 10);
  puVar4[1] = 0;
  puVar4[2] = PTR_DAT_004c5480 + 0xc;
  *puVar4 = PTR_DAT_004c5484 + 0xc;
  puVar4[0x25] = PTR_vtable_004c22a4 + 8;
  std::ios_base::~ios_base((ios_base *)(puVar4 + 0x25));
  (*(code *)PTR_operator_delete_004c12fc)(puVar4);
  return;
}

