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

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

{
  undefined *puVar1;
  undefined *puVar2;
  wofstream *pwVar3;
  
  puVar2 = PTR_vtable_004360dc + 0xc;
  pwVar3 = this + *(int *)(*(int *)this + -0xc);
  *(undefined **)(pwVar3 + 0x90) = PTR_vtable_004360dc + 0x20;
  puVar1 = PTR_vtable_004360ac;
  *(undefined **)pwVar3 = puVar2;
  *(undefined **)(pwVar3 + 4) = puVar1 + 8;
  wfilebuf::close((wfilebuf *)(pwVar3 + 4));
  (*(code *)PTR____basic_file_0043307c)(pwVar3 + 0x3c);
  puVar1 = PTR__locale_00433084;
  *(undefined **)(pwVar3 + 4) = PTR_vtable_00435df4 + 8;
  (*(code *)puVar1)(pwVar3 + 0x20);
  *(undefined **)pwVar3 = PTR_construction_vtable_004360e0 + 0xc;
  *(undefined **)(pwVar3 + 0x90) = PTR_vtable_00435e24 + 8;
  ios_base::~ios_base((ios_base *)(pwVar3 + 0x90));
  (*(code *)PTR_operator_delete_0043228c)(pwVar3);
  return;
}



void FUN_002f4af4(int *param_1)

{
  undefined *puVar1;
  undefined *puVar2;
  undefined4 *puVar3;
  
  puVar2 = PTR_vtable_004360dc + 0xc;
  puVar3 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));
  puVar3[0x24] = PTR_vtable_004360dc + 0x20;
  puVar1 = PTR_vtable_004360ac;
  *puVar3 = puVar2;
  puVar3[1] = puVar1 + 8;
  std::wfilebuf::close((wfilebuf *)(puVar3 + 1));
  (*(code *)PTR____basic_file_0043307c)(puVar3 + 0xf);
  puVar1 = PTR__locale_00433084;
  puVar3[1] = PTR_vtable_00435df4 + 8;
  (*(code *)puVar1)(puVar3 + 8);
  *puVar3 = PTR_DAT_004360e0 + 0xc;
  puVar3[0x24] = PTR_vtable_00435e24 + 8;
  std::ios_base::~ios_base((ios_base *)(puVar3 + 0x24));
  (*(code *)PTR_operator_delete_0043228c)(puVar3);
  return;
}


lui gp,0x14
addiu gp,gp,0x56dc
addu gp,gp,t9
lw a1,0x0(a0)
addiu sp,sp,-0x20
lw v0,-0x40f4(gp)
lw t9,-0x410c(gp)
sw s0,0x18(sp)
lw s0,-0xc(a1)
addiu v1,v0,0xc
addiu v0,v0,0x20
sw gp,0x10(sp)
sw ra,0x1c(sp)
addu s0,a0,s0
addiu a0,s0,0x4
sw v0,0x90(s0)
lw v0,-0x4124(gp)
sw v1,0x0(s0)
addiu v0,v0,0x8
bal 0x002f416c
_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,-0x43dc(gp)
lw t9,-0x714c(gp)
addiu v0,v0,0x8
jalr t9
_sw v0,0x4(s0)
addiu a0,s0,0x90
lw gp,0x10(sp)
lw v0,-0x40f0(gp)
lw t9,-0x7148(gp)
addiu v0,v0,0xc
sw v0,0x0(s0)
lw v0,-0x43ac(gp)
addiu v0,v0,0x8
bal 0x0030dd10
_sw v0,0x90(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_002f4af4(int *param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  \n  puVar2 = PTR_vtable_004360dc + 0xc;\n  puVar3 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  puVar3[0x24] = PTR_vtable_004360dc + 0x20;\n  puVar1 = PTR_vtable_004360ac;\n  *puVar3 = puVar2;\n  puVar3[1] = puVar1 + 8;\n  std::wfilebuf::close((wfilebuf *)(puVar3 + 1));\n  (*(code *)PTR____basic_file_0043307c)(puVar3 + 0xf);\n  puVar1 = PTR__locale_00433084;\n  puVar3[1] = PTR_vtable_00435df4 + 8;\n  (*(code *)puVar1)(puVar3 + 8);\n  *puVar3 = PTR_DAT_004360e0 + 0xc;\n  puVar3[0x24] = PTR_vtable_00435e24 + 8;\n  std::ios_base::~ios_base((ios_base *)(puVar3 + 0x24));\n  (*(code *)PTR_operator_delete_0043228c)(puVar3);\n  return;\n}\n\n" (function_definition "void FUN_002f4af4(int *param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  \n  puVar2 = PTR_vtable_004360dc + 0xc;\n  puVar3 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  puVar3[0x24] = PTR_vtable_004360dc + 0x20;\n  puVar1 = PTR_vtable_004360ac;\n  *puVar3 = puVar2;\n  puVar3[1] = puVar1 + 8;\n  std::wfilebuf::close((wfilebuf *)(puVar3 + 1));\n  (*(code *)PTR____basic_file_0043307c)(puVar3 + 0xf);\n  puVar1 = PTR__locale_00433084;\n  puVar3[1] = PTR_vtable_00435df4 + 8;\n  (*(code *)puVar1)(puVar3 + 8);\n  *puVar3 = PTR_DAT_004360e0 + 0xc;\n  puVar3[0x24] = PTR_vtable_00435e24 + 8;\n  std::ios_base::~ios_base((ios_base *)(puVar3 + 0x24));\n  (*(code *)PTR_operator_delete_0043228c)(puVar3);\n  return;\n}" primitive_type (function_declarator "FUN_002f4af4(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  undefined4 *puVar3;\n  \n  puVar2 = PTR_vtable_004360dc + 0xc;\n  puVar3 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  puVar3[0x24] = PTR_vtable_004360dc + 0x20;\n  puVar1 = PTR_vtable_004360ac;\n  *puVar3 = puVar2;\n  puVar3[1] = puVar1 + 8;\n  std::wfilebuf::close((wfilebuf *)(puVar3 + 1));\n  (*(code *)PTR____basic_file_0043307c)(puVar3 + 0xf);\n  puVar1 = PTR__locale_00433084;\n  puVar3[1] = PTR_vtable_00435df4 + 8;\n  (*(code *)puVar1)(puVar3 + 8);\n  *puVar3 = PTR_DAT_004360e0 + 0xc;\n  puVar3[0x24] = PTR_vtable_00435e24 + 8;\n  std::ios_base::~ios_base((ios_base *)(puVar3 + 0x24));\n  (*(code *)PTR_operator_delete_0043228c)(puVar3);\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "puVar2 = PTR_vtable_004360dc + 0xc;" (assignment_expression "puVar2 = PTR_vtable_004360dc + 0xc" identifier = (binary_expression "PTR_vtable_004360dc + 0xc" identifier + number_literal)) ;) (expression_statement "puVar3 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));" (assignment_expression "puVar3 = (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 "puVar3[0x24] = PTR_vtable_004360dc + 0x20;" (assignment_expression "puVar3[0x24] = PTR_vtable_004360dc + 0x20" (subscript_expression "puVar3[0x24]" identifier [ number_literal ]) = (binary_expression "PTR_vtable_004360dc + 0x20" identifier + number_literal)) ;) (expression_statement "puVar1 = PTR_vtable_004360ac;" (assignment_expression "puVar1 = PTR_vtable_004360ac" identifier = identifier) ;) (expression_statement "*puVar3 = puVar2;" (assignment_expression "*puVar3 = puVar2" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "puVar3[1] = puVar1 + 8;" (assignment_expression "puVar3[1] = puVar1 + 8" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = (binary_expression "puVar1 + 8" identifier + number_literal)) ;) (labeled_statement "std::wfilebuf::close((wfilebuf *)(puVar3 + 1));" statement_identifier : (ERROR ":" :) (labeled_statement "wfilebuf::close((wfilebuf *)(puVar3 + 1));" statement_identifier : (ERROR ":" :) (expression_statement "close((wfilebuf *)(puVar3 + 1));" (call_expression "close((wfilebuf *)(puVar3 + 1))" identifier (argument_list "((wfilebuf *)(puVar3 + 1))" ( (cast_expression "(wfilebuf *)(puVar3 + 1)" ( (type_descriptor "wfilebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 1)" ( (binary_expression "puVar3 + 1" identifier + number_literal) ))) ))) ;))) (expression_statement "(*(code *)PTR____basic_file_0043307c)(puVar3 + 0xf);" (call_expression "(*(code *)PTR____basic_file_0043307c)(puVar3 + 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 "(puVar3 + 0xf)" ( (binary_expression "puVar3 + 0xf" identifier + number_literal) ))) ;) (expression_statement "puVar1 = PTR__locale_00433084;" (assignment_expression "puVar1 = PTR__locale_00433084" identifier = identifier) ;) (expression_statement "puVar3[1] = PTR_vtable_00435df4 + 8;" (assignment_expression "puVar3[1] = PTR_vtable_00435df4 + 8" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = (binary_expression "PTR_vtable_00435df4 + 8" identifier + number_literal)) ;) (expression_statement "(*(code *)puVar1)(puVar3 + 8);" (call_expression "(*(code *)puVar1)(puVar3 + 8)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar3 + 8)" ( (binary_expression "puVar3 + 8" identifier + number_literal) ))) ;) (expression_statement "*puVar3 = PTR_DAT_004360e0 + 0xc;" (assignment_expression "*puVar3 = PTR_DAT_004360e0 + 0xc" (pointer_expression "*puVar3" * identifier) = (binary_expression "PTR_DAT_004360e0 + 0xc" identifier + number_literal)) ;) (expression_statement "puVar3[0x24] = PTR_vtable_00435e24 + 8;" (assignment_expression "puVar3[0x24] = PTR_vtable_00435e24 + 8" (subscript_expression "puVar3[0x24]" identifier [ number_literal ]) = (binary_expression "PTR_vtable_00435e24 + 8" identifier + number_literal)) ;) (labeled_statement "std::ios_base::~ios_base((ios_base *)(puVar3 + 0x24));" statement_identifier : (ERROR ":" :) (labeled_statement "ios_base::~ios_base((ios_base *)(puVar3 + 0x24));" statement_identifier : (ERROR ":" :) (expression_statement "~ios_base((ios_base *)(puVar3 + 0x24));" (unary_expression "~ios_base((ios_base *)(puVar3 + 0x24))" ~ (call_expression "ios_base((ios_base *)(puVar3 + 0x24))" identifier (argument_list "((ios_base *)(puVar3 + 0x24))" ( (cast_expression "(ios_base *)(puVar3 + 0x24)" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x24)" ( (binary_expression "puVar3 + 0x24" identifier + number_literal) ))) )))) ;))) (expression_statement "(*(code *)PTR_operator_delete_0043228c)(puVar3);" (call_expression "(*(code *)PTR_operator_delete_0043228c)(puVar3)" (parenthesized_expression "(*(code *)PTR_operator_delete_0043228c)" ( (pointer_expression "*(code *)PTR_operator_delete_0043228c" * (cast_expression "(code *)PTR_operator_delete_0043228c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar3)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* virtual thunk to std::wofstream::~wofstream() */\n\nvoid __thiscall std::wofstream::~wofstream(wofstream *this)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  wofstream *pwVar3;\n  \n  puVar2 = PTR_vtable_004360dc + 0xc;\n  pwVar3 = this + *(int *)(*(int *)this + -0xc);\n  *(undefined **)(pwVar3 + 0x90) = PTR_vtable_004360dc + 0x20;\n  puVar1 = PTR_vtable_004360ac;\n  *(undefined **)pwVar3 = puVar2;\n  *(undefined **)(pwVar3 + 4) = puVar1 + 8;\n  wfilebuf::close((wfilebuf *)(pwVar3 + 4));\n  (*(code *)PTR____basic_file_0043307c)(pwVar3 + 0x3c);\n  puVar1 = PTR__locale_00433084;\n  *(undefined **)(pwVar3 + 4) = PTR_vtable_00435df4 + 8;\n  (*(code *)puVar1)(pwVar3 + 0x20);\n  *(undefined **)pwVar3 = PTR_construction_vtable_004360e0 + 0xc;\n  *(undefined **)(pwVar3 + 0x90) = PTR_vtable_00435e24 + 8;\n  ios_base::~ios_base((ios_base *)(pwVar3 + 0x90));\n  (*(code *)PTR_operator_delete_0043228c)(pwVar3);\n  return;\n}\n\n" comment (function_definition "void __thiscall std::wofstream::~wofstream(wofstream *this)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  wofstream *pwVar3;\n  \n  puVar2 = PTR_vtable_004360dc + 0xc;\n  pwVar3 = this + *(int *)(*(int *)this + -0xc);\n  *(undefined **)(pwVar3 + 0x90) = PTR_vtable_004360dc + 0x20;\n  puVar1 = PTR_vtable_004360ac;\n  *(undefined **)pwVar3 = puVar2;\n  *(undefined **)(pwVar3 + 4) = puVar1 + 8;\n  wfilebuf::close((wfilebuf *)(pwVar3 + 4));\n  (*(code *)PTR____basic_file_0043307c)(pwVar3 + 0x3c);\n  puVar1 = PTR__locale_00433084;\n  *(undefined **)(pwVar3 + 4) = PTR_vtable_00435df4 + 8;\n  (*(code *)puVar1)(pwVar3 + 0x20);\n  *(undefined **)pwVar3 = PTR_construction_vtable_004360e0 + 0xc;\n  *(undefined **)(pwVar3 + 0x90) = PTR_vtable_00435e24 + 8;\n  ios_base::~ios_base((ios_base *)(pwVar3 + 0x90));\n  (*(code *)PTR_operator_delete_0043228c)(pwVar3);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::wofstream::~" identifier : : identifier : : ~) (function_declarator "wofstream(wofstream *this)" identifier (parameter_list "(wofstream *this)" ( (parameter_declaration "wofstream *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  wofstream *pwVar3;\n  \n  puVar2 = PTR_vtable_004360dc + 0xc;\n  pwVar3 = this + *(int *)(*(int *)this + -0xc);\n  *(undefined **)(pwVar3 + 0x90) = PTR_vtable_004360dc + 0x20;\n  puVar1 = PTR_vtable_004360ac;\n  *(undefined **)pwVar3 = puVar2;\n  *(undefined **)(pwVar3 + 4) = puVar1 + 8;\n  wfilebuf::close((wfilebuf *)(pwVar3 + 4));\n  (*(code *)PTR____basic_file_0043307c)(pwVar3 + 0x3c);\n  puVar1 = PTR__locale_00433084;\n  *(undefined **)(pwVar3 + 4) = PTR_vtable_00435df4 + 8;\n  (*(code *)puVar1)(pwVar3 + 0x20);\n  *(undefined **)pwVar3 = PTR_construction_vtable_004360e0 + 0xc;\n  *(undefined **)(pwVar3 + 0x90) = PTR_vtable_00435e24 + 8;\n  ios_base::~ios_base((ios_base *)(pwVar3 + 0x90));\n  (*(code *)PTR_operator_delete_0043228c)(pwVar3);\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "wofstream *pwVar3;" type_identifier (pointer_declarator "*pwVar3" * identifier) ;) (expression_statement "puVar2 = PTR_vtable_004360dc + 0xc;" (assignment_expression "puVar2 = PTR_vtable_004360dc + 0xc" identifier = (binary_expression "PTR_vtable_004360dc + 0xc" identifier + number_literal)) ;) (expression_statement "pwVar3 = this + *(int *)(*(int *)this + -0xc);" (assignment_expression "pwVar3 = 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 **)(pwVar3 + 0x90) = PTR_vtable_004360dc + 0x20;" (assignment_expression "*(undefined **)(pwVar3 + 0x90) = PTR_vtable_004360dc + 0x20" (pointer_expression "*(undefined **)(pwVar3 + 0x90)" * (cast_expression "(undefined **)(pwVar3 + 0x90)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pwVar3 + 0x90)" ( (binary_expression "pwVar3 + 0x90" identifier + number_literal) )))) = (binary_expression "PTR_vtable_004360dc + 0x20" identifier + number_literal)) ;) (expression_statement "puVar1 = PTR_vtable_004360ac;" (assignment_expression "puVar1 = PTR_vtable_004360ac" identifier = identifier) ;) (expression_statement "*(undefined **)pwVar3 = puVar2;" (assignment_expression "*(undefined **)pwVar3 = puVar2" (pointer_expression "*(undefined **)pwVar3" * (cast_expression "(undefined **)pwVar3" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (expression_statement "*(undefined **)(pwVar3 + 4) = puVar1 + 8;" (assignment_expression "*(undefined **)(pwVar3 + 4) = puVar1 + 8" (pointer_expression "*(undefined **)(pwVar3 + 4)" * (cast_expression "(undefined **)(pwVar3 + 4)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pwVar3 + 4)" ( (binary_expression "pwVar3 + 4" identifier + number_literal) )))) = (binary_expression "puVar1 + 8" identifier + number_literal)) ;) (labeled_statement "wfilebuf::close((wfilebuf *)(pwVar3 + 4));" statement_identifier : (ERROR ":" :) (expression_statement "close((wfilebuf *)(pwVar3 + 4));" (call_expression "close((wfilebuf *)(pwVar3 + 4))" identifier (argument_list "((wfilebuf *)(pwVar3 + 4))" ( (cast_expression "(wfilebuf *)(pwVar3 + 4)" ( (type_descriptor "wfilebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pwVar3 + 4)" ( (binary_expression "pwVar3 + 4" identifier + number_literal) ))) ))) ;)) (expression_statement "(*(code *)PTR____basic_file_0043307c)(pwVar3 + 0x3c);" (call_expression "(*(code *)PTR____basic_file_0043307c)(pwVar3 + 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 "(pwVar3 + 0x3c)" ( (binary_expression "pwVar3 + 0x3c" identifier + number_literal) ))) ;) (expression_statement "puVar1 = PTR__locale_00433084;" (assignment_expression "puVar1 = PTR__locale_00433084" identifier = identifier) ;) (expression_statement "*(undefined **)(pwVar3 + 4) = PTR_vtable_00435df4 + 8;" (assignment_expression "*(undefined **)(pwVar3 + 4) = PTR_vtable_00435df4 + 8" (pointer_expression "*(undefined **)(pwVar3 + 4)" * (cast_expression "(undefined **)(pwVar3 + 4)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pwVar3 + 4)" ( (binary_expression "pwVar3 + 4" identifier + number_literal) )))) = (binary_expression "PTR_vtable_00435df4 + 8" identifier + number_literal)) ;) (expression_statement "(*(code *)puVar1)(pwVar3 + 0x20);" (call_expression "(*(code *)puVar1)(pwVar3 + 0x20)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pwVar3 + 0x20)" ( (binary_expression "pwVar3 + 0x20" identifier + number_literal) ))) ;) (expression_statement "*(undefined **)pwVar3 = PTR_construction_vtable_004360e0 + 0xc;" (assignment_expression "*(undefined **)pwVar3 = PTR_construction_vtable_004360e0 + 0xc" (pointer_expression "*(undefined **)pwVar3" * (cast_expression "(undefined **)pwVar3" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = (binary_expression "PTR_construction_vtable_004360e0 + 0xc" identifier + number_literal)) ;) (expression_statement "*(undefined **)(pwVar3 + 0x90) = PTR_vtable_00435e24 + 8;" (assignment_expression "*(undefined **)(pwVar3 + 0x90) = PTR_vtable_00435e24 + 8" (pointer_expression "*(undefined **)(pwVar3 + 0x90)" * (cast_expression "(undefined **)(pwVar3 + 0x90)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pwVar3 + 0x90)" ( (binary_expression "pwVar3 + 0x90" identifier + number_literal) )))) = (binary_expression "PTR_vtable_00435e24 + 8" identifier + number_literal)) ;) (labeled_statement "ios_base::~ios_base((ios_base *)(pwVar3 + 0x90));" statement_identifier : (ERROR ":" :) (expression_statement "~ios_base((ios_base *)(pwVar3 + 0x90));" (unary_expression "~ios_base((ios_base *)(pwVar3 + 0x90))" ~ (call_expression "ios_base((ios_base *)(pwVar3 + 0x90))" identifier (argument_list "((ios_base *)(pwVar3 + 0x90))" ( (cast_expression "(ios_base *)(pwVar3 + 0x90)" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pwVar3 + 0x90)" ( (binary_expression "pwVar3 + 0x90" identifier + number_literal) ))) )))) ;)) (expression_statement "(*(code *)PTR_operator_delete_0043228c)(pwVar3);" (call_expression "(*(code *)PTR_operator_delete_0043228c)(pwVar3)" (parenthesized_expression "(*(code *)PTR_operator_delete_0043228c)" ( (pointer_expression "*(code *)PTR_operator_delete_0043228c" * (cast_expression "(code *)PTR_operator_delete_0043228c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pwVar3)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_002f4af4(int *param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  \n  puVar2 = PTR_vtable_004360dc + 0xc;\n  puVar3 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  puVar3[0x24] = PTR_vtable_004360dc + 0x20;\n  puVar1 = PTR_vtable_004360ac;\n  *puVar3 = puVar2;\n  puVar3[1] = puVar1 + 8;\n  std::wfilebuf::close((wfilebuf *)(puVar3 + 1));\n  (*(code *)PTR____basic_file_0043307c)(puVar3 + 0xf);\n  puVar1 = PTR__locale_00433084;\n  puVar3[1] = PTR_vtable_00435df4 + 8;\n  (*(code *)puVar1)(puVar3 + 8);\n  *puVar3 = PTR_DAT_004360e0 + 0xc;\n  puVar3[0x24] = PTR_vtable_00435e24 + 8;\n  std::ios_base::~ios_base((ios_base *)(puVar3 + 0x24));\n  (*(code *)PTR_operator_delete_0043228c)(puVar3);\n  return;\n}\n\n" (function_definition "void FUN_002f4af4(int *param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  \n  puVar2 = PTR_vtable_004360dc + 0xc;\n  puVar3 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  puVar3[0x24] = PTR_vtable_004360dc + 0x20;\n  puVar1 = PTR_vtable_004360ac;\n  *puVar3 = puVar2;\n  puVar3[1] = puVar1 + 8;\n  std::wfilebuf::close((wfilebuf *)(puVar3 + 1));\n  (*(code *)PTR____basic_file_0043307c)(puVar3 + 0xf);\n  puVar1 = PTR__locale_00433084;\n  puVar3[1] = PTR_vtable_00435df4 + 8;\n  (*(code *)puVar1)(puVar3 + 8);\n  *puVar3 = PTR_DAT_004360e0 + 0xc;\n  puVar3[0x24] = PTR_vtable_00435e24 + 8;\n  std::ios_base::~ios_base((ios_base *)(puVar3 + 0x24));\n  (*(code *)PTR_operator_delete_0043228c)(puVar3);\n  return;\n}" primitive_type (function_declarator "FUN_002f4af4(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  undefined4 *puVar3;\n  \n  puVar2 = PTR_vtable_004360dc + 0xc;\n  puVar3 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  puVar3[0x24] = PTR_vtable_004360dc + 0x20;\n  puVar1 = PTR_vtable_004360ac;\n  *puVar3 = puVar2;\n  puVar3[1] = puVar1 + 8;\n  std::wfilebuf::close((wfilebuf *)(puVar3 + 1));\n  (*(code *)PTR____basic_file_0043307c)(puVar3 + 0xf);\n  puVar1 = PTR__locale_00433084;\n  puVar3[1] = PTR_vtable_00435df4 + 8;\n  (*(code *)puVar1)(puVar3 + 8);\n  *puVar3 = PTR_DAT_004360e0 + 0xc;\n  puVar3[0x24] = PTR_vtable_00435e24 + 8;\n  std::ios_base::~ios_base((ios_base *)(puVar3 + 0x24));\n  (*(code *)PTR_operator_delete_0043228c)(puVar3);\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "puVar2 = PTR_vtable_004360dc + 0xc;" (assignment_expression "puVar2 = PTR_vtable_004360dc + 0xc" identifier = (binary_expression "PTR_vtable_004360dc + 0xc" identifier + number_literal)) ;) (expression_statement "puVar3 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));" (assignment_expression "puVar3 = (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 "puVar3[0x24] = PTR_vtable_004360dc + 0x20;" (assignment_expression "puVar3[0x24] = PTR_vtable_004360dc + 0x20" (subscript_expression "puVar3[0x24]" identifier [ number_literal ]) = (binary_expression "PTR_vtable_004360dc + 0x20" identifier + number_literal)) ;) (expression_statement "puVar1 = PTR_vtable_004360ac;" (assignment_expression "puVar1 = PTR_vtable_004360ac" identifier = identifier) ;) (expression_statement "*puVar3 = puVar2;" (assignment_expression "*puVar3 = puVar2" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "puVar3[1] = puVar1 + 8;" (assignment_expression "puVar3[1] = puVar1 + 8" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = (binary_expression "puVar1 + 8" identifier + number_literal)) ;) (labeled_statement "std::wfilebuf::close((wfilebuf *)(puVar3 + 1));" statement_identifier : (ERROR ":" :) (labeled_statement "wfilebuf::close((wfilebuf *)(puVar3 + 1));" statement_identifier : (ERROR ":" :) (expression_statement "close((wfilebuf *)(puVar3 + 1));" (call_expression "close((wfilebuf *)(puVar3 + 1))" identifier (argument_list "((wfilebuf *)(puVar3 + 1))" ( (cast_expression "(wfilebuf *)(puVar3 + 1)" ( (type_descriptor "wfilebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 1)" ( (binary_expression "puVar3 + 1" identifier + number_literal) ))) ))) ;))) (expression_statement "(*(code *)PTR____basic_file_0043307c)(puVar3 + 0xf);" (call_expression "(*(code *)PTR____basic_file_0043307c)(puVar3 + 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 "(puVar3 + 0xf)" ( (binary_expression "puVar3 + 0xf" identifier + number_literal) ))) ;) (expression_statement "puVar1 = PTR__locale_00433084;" (assignment_expression "puVar1 = PTR__locale_00433084" identifier = identifier) ;) (expression_statement "puVar3[1] = PTR_vtable_00435df4 + 8;" (assignment_expression "puVar3[1] = PTR_vtable_00435df4 + 8" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = (binary_expression "PTR_vtable_00435df4 + 8" identifier + number_literal)) ;) (expression_statement "(*(code *)puVar1)(puVar3 + 8);" (call_expression "(*(code *)puVar1)(puVar3 + 8)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar3 + 8)" ( (binary_expression "puVar3 + 8" identifier + number_literal) ))) ;) (expression_statement "*puVar3 = PTR_DAT_004360e0 + 0xc;" (assignment_expression "*puVar3 = PTR_DAT_004360e0 + 0xc" (pointer_expression "*puVar3" * identifier) = (binary_expression "PTR_DAT_004360e0 + 0xc" identifier + number_literal)) ;) (expression_statement "puVar3[0x24] = PTR_vtable_00435e24 + 8;" (assignment_expression "puVar3[0x24] = PTR_vtable_00435e24 + 8" (subscript_expression "puVar3[0x24]" identifier [ number_literal ]) = (binary_expression "PTR_vtable_00435e24 + 8" identifier + number_literal)) ;) (labeled_statement "std::ios_base::~ios_base((ios_base *)(puVar3 + 0x24));" statement_identifier : (ERROR ":" :) (labeled_statement "ios_base::~ios_base((ios_base *)(puVar3 + 0x24));" statement_identifier : (ERROR ":" :) (expression_statement "~ios_base((ios_base *)(puVar3 + 0x24));" (unary_expression "~ios_base((ios_base *)(puVar3 + 0x24))" ~ (call_expression "ios_base((ios_base *)(puVar3 + 0x24))" identifier (argument_list "((ios_base *)(puVar3 + 0x24))" ( (cast_expression "(ios_base *)(puVar3 + 0x24)" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x24)" ( (binary_expression "puVar3 + 0x24" identifier + number_literal) ))) )))) ;))) (expression_statement "(*(code *)PTR_operator_delete_0043228c)(puVar3);" (call_expression "(*(code *)PTR_operator_delete_0043228c)(puVar3)" (parenthesized_expression "(*(code *)PTR_operator_delete_0043228c)" ( (pointer_expression "*(code *)PTR_operator_delete_0043228c" * (cast_expression "(code *)PTR_operator_delete_0043228c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar3)" ( 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) ;) (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 ]) = (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 (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_002f4af4(int *param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  \n  puVar2 = PTR_vtable_004360dc + 0xc;\n  puVar3 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  puVar3[0x24] = PTR_vtable_004360dc + 0x20;\n  puVar1 = PTR_vtable_004360ac;\n  *puVar3 = puVar2;\n  puVar3[1] = puVar1 + 8;\n  std::wfilebuf::close((wfilebuf *)(puVar3 + 1));\n  (*(code *)PTR____basic_file_0043307c)(puVar3 + 0xf);\n  puVar1 = PTR__locale_00433084;\n  puVar3[1] = PTR_vtable_00435df4 + 8;\n  (*(code *)puVar1)(puVar3 + 8);\n  *puVar3 = PTR_DAT_004360e0 + 0xc;\n  puVar3[0x24] = PTR_vtable_00435e24 + 8;\n  std::ios_base::~ios_base((ios_base *)(puVar3 + 0x24));\n  (*(code *)PTR_operator_delete_0043228c)(puVar3);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_002f4af4(int *param_1)" (identifier "FUN_002f4af4") (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  undefined4 *puVar3;\n  \n  puVar2 = PTR_vtable_004360dc + 0xc;\n  puVar3 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  puVar3[0x24] = PTR_vtable_004360dc + 0x20;\n  puVar1 = PTR_vtable_004360ac;\n  *puVar3 = puVar2;\n  puVar3[1] = puVar1 + 8;\n  std::wfilebuf::close((wfilebuf *)(puVar3 + 1));\n  (*(code *)PTR____basic_file_0043307c)(puVar3 + 0xf);\n  puVar1 = PTR__locale_00433084;\n  puVar3[1] = PTR_vtable_00435df4 + 8;\n  (*(code *)puVar1)(puVar3 + 8);\n  *puVar3 = PTR_DAT_004360e0 + 0xc;\n  puVar3[0x24] = PTR_vtable_00435e24 + 8;\n  std::ios_base::~ios_base((ios_base *)(puVar3 + 0x24));\n  (*(code *)PTR_operator_delete_0043228c)(puVar3);\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 "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (expression_statement "puVar2 = PTR_vtable_004360dc + 0xc;" (assignment_expression "puVar2 = PTR_vtable_004360dc + 0xc" (identifier "puVar2") (= "=") (binary_expression "PTR_vtable_004360dc + 0xc" (identifier "PTR_vtable_004360dc") (+ "+") (number_literal "0xc"))) (; ";")) (expression_statement "puVar3 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));" (assignment_expression "puVar3 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc))" (identifier "puVar3") (= "=") (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 "puVar3[0x24] = PTR_vtable_004360dc + 0x20;" (assignment_expression "puVar3[0x24] = PTR_vtable_004360dc + 0x20" (subscript_expression "puVar3[0x24]" (identifier "puVar3") ([ "[") (number_literal "0x24") (] "]")) (= "=") (binary_expression "PTR_vtable_004360dc + 0x20" (identifier "PTR_vtable_004360dc") (+ "+") (number_literal "0x20"))) (; ";")) (expression_statement "puVar1 = PTR_vtable_004360ac;" (assignment_expression "puVar1 = PTR_vtable_004360ac" (identifier "puVar1") (= "=") (identifier "PTR_vtable_004360ac")) (; ";")) (expression_statement "*puVar3 = puVar2;" (assignment_expression "*puVar3 = puVar2" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (identifier "puVar2")) (; ";")) (expression_statement "puVar3[1] = puVar1 + 8;" (assignment_expression "puVar3[1] = puVar1 + 8" (subscript_expression "puVar3[1]" (identifier "puVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "puVar1 + 8" (identifier "puVar1") (+ "+") (number_literal "8"))) (; ";")) (labeled_statement "std::wfilebuf::close((wfilebuf *)(puVar3 + 1));" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "wfilebuf::close((wfilebuf *)(puVar3 + 1));" (statement_identifier "wfilebuf") (: ":") (ERROR ":" (: ":")) (expression_statement "close((wfilebuf *)(puVar3 + 1));" (call_expression "close((wfilebuf *)(puVar3 + 1))" (identifier "close") (argument_list "((wfilebuf *)(puVar3 + 1))" (( "(") (cast_expression "(wfilebuf *)(puVar3 + 1)" (( "(") (type_descriptor "wfilebuf *" (type_identifier "wfilebuf") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 1)" (( "(") (binary_expression "puVar3 + 1" (identifier "puVar3") (+ "+") (number_literal "1")) () ")"))) () ")"))) (; ";")))) (expression_statement "(*(code *)PTR____basic_file_0043307c)(puVar3 + 0xf);" (call_expression "(*(code *)PTR____basic_file_0043307c)(puVar3 + 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 "(puVar3 + 0xf)" (( "(") (binary_expression "puVar3 + 0xf" (identifier "puVar3") (+ "+") (number_literal "0xf")) () ")"))) (; ";")) (expression_statement "puVar1 = PTR__locale_00433084;" (assignment_expression "puVar1 = PTR__locale_00433084" (identifier "puVar1") (= "=") (identifier "PTR__locale_00433084")) (; ";")) (expression_statement "puVar3[1] = PTR_vtable_00435df4 + 8;" (assignment_expression "puVar3[1] = PTR_vtable_00435df4 + 8" (subscript_expression "puVar3[1]" (identifier "puVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "PTR_vtable_00435df4 + 8" (identifier "PTR_vtable_00435df4") (+ "+") (number_literal "8"))) (; ";")) (expression_statement "(*(code *)puVar1)(puVar3 + 8);" (call_expression "(*(code *)puVar1)(puVar3 + 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 "(puVar3 + 8)" (( "(") (binary_expression "puVar3 + 8" (identifier "puVar3") (+ "+") (number_literal "8")) () ")"))) (; ";")) (expression_statement "*puVar3 = PTR_DAT_004360e0 + 0xc;" (assignment_expression "*puVar3 = PTR_DAT_004360e0 + 0xc" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (binary_expression "PTR_DAT_004360e0 + 0xc" (identifier "PTR_DAT_004360e0") (+ "+") (number_literal "0xc"))) (; ";")) (expression_statement "puVar3[0x24] = PTR_vtable_00435e24 + 8;" (assignment_expression "puVar3[0x24] = PTR_vtable_00435e24 + 8" (subscript_expression "puVar3[0x24]" (identifier "puVar3") ([ "[") (number_literal "0x24") (] "]")) (= "=") (binary_expression "PTR_vtable_00435e24 + 8" (identifier "PTR_vtable_00435e24") (+ "+") (number_literal "8"))) (; ";")) (labeled_statement "std::ios_base::~ios_base((ios_base *)(puVar3 + 0x24));" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "ios_base::~ios_base((ios_base *)(puVar3 + 0x24));" (statement_identifier "ios_base") (: ":") (ERROR ":" (: ":")) (expression_statement "~ios_base((ios_base *)(puVar3 + 0x24));" (unary_expression "~ios_base((ios_base *)(puVar3 + 0x24))" (~ "~") (call_expression "ios_base((ios_base *)(puVar3 + 0x24))" (identifier "ios_base") (argument_list "((ios_base *)(puVar3 + 0x24))" (( "(") (cast_expression "(ios_base *)(puVar3 + 0x24)" (( "(") (type_descriptor "ios_base *" (type_identifier "ios_base") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 0x24)" (( "(") (binary_expression "puVar3 + 0x24" (identifier "puVar3") (+ "+") (number_literal "0x24")) () ")"))) () ")")))) (; ";")))) (expression_statement "(*(code *)PTR_operator_delete_0043228c)(puVar3);" (call_expression "(*(code *)PTR_operator_delete_0043228c)(puVar3)" (parenthesized_expression "(*(code *)PTR_operator_delete_0043228c)" (( "(") (pointer_expression "*(code *)PTR_operator_delete_0043228c" (* "*") (cast_expression "(code *)PTR_operator_delete_0043228c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_operator_delete_0043228c"))) () ")")) (argument_list "(puVar3)" (( "(") (identifier "puVar3") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

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

{
  type_1 *var_4;
  type_1 *puVar2;
  function_1 *var_3;
  
  puVar2 = var_1 + 0xc;
  var_3 = var_2 + *(int *)(*(int *)var_2 + -0xc);
  *(type_1 **)(var_3 + 0x90) = var_1 + 0x20;
  var_4 = PTR_vtable_004360ac;
  *(type_1 **)var_3 = puVar2;
  *(type_1 **)(var_3 + 4) = var_4 + 8;
  wfilebuf::var_5((type_2 *)(var_3 + 4));
  (*(type_3 *)PTR____basic_file_0043307c)(var_3 + 0x3c);
  var_4 = PTR__locale_00433084;
  *(type_1 **)(var_3 + 4) = var_6 + 8;
  (*(type_3 *)var_4)(var_3 + 0x20);
  *(type_1 **)var_3 = var_7 + 0xc;
  *(type_1 **)(var_3 + 0x90) = var_8 + 8;
  ios_base::~var_9((var_9 *)(var_3 + 0x90));
  (*(type_3 *)PTR_operator_delete_0043228c)(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))) (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: (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: (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;
  undefined4 *puVar3;
  
  puVar2 = PTR_vtable_004360dc + 0xc;
  puVar3 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));
  puVar3[0x24] = PTR_vtable_004360dc + 0x20;
  puVar1 = PTR_vtable_004360ac;
  *puVar3 = puVar2;
  puVar3[1] = puVar1 + 8;
  std::wfilebuf::close((wfilebuf *)(puVar3 + 1));
  (*(code *)PTR____basic_file_0043307c)(puVar3 + 0xf);
  puVar1 = PTR__locale_00433084;
  puVar3[1] = PTR_vtable_00435df4 + 8;
  (*(code *)puVar1)(puVar3 + 8);
  *puVar3 = PTR_DAT_004360e0 + 0xc;
  puVar3[0x24] = PTR_vtable_00435e24 + 8;
  std::ios_base::~ios_base((ios_base *)(puVar3 + 0x24));
  (*(code *)PTR_operator_delete_0043228c)(puVar3);
  return;
}

