
/* std::wofstream::~wofstream() */

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

{
  undefined *puVar1;
  int iVar2;
  int *in_a1;
  
  iVar2 = *in_a1;
  *(int *)this = iVar2;
  *(int *)(this + *(int *)(iVar2 + -0xc)) = in_a1[3];
  *(undefined **)(this + 4) = PTR_vtable_004360ac + 8;
  wfilebuf::close((wfilebuf *)(this + 4));
  (*(code *)PTR____basic_file_0043307c)(this + 0x3c);
  puVar1 = PTR__locale_00433084;
  *(undefined **)(this + 4) = PTR_vtable_00435df4 + 8;
  (*(code *)puVar1)(this + 0x20);
  iVar2 = in_a1[1];
  *(int *)this = iVar2;
  *(int *)(this + *(int *)(iVar2 + -0xc)) = in_a1[2];
  return;
}



void FUN_002f780c(int *param_1,int *param_2)

{
  undefined *puVar1;
  int iVar2;
  
  iVar2 = *param_2;
  *param_1 = iVar2;
  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[3];
  param_1[1] = (int)(PTR_vtable_004360ac + 8);
  std::wfilebuf::close((wfilebuf *)(param_1 + 1));
  (*(code *)PTR____basic_file_0043307c)(param_1 + 0xf);
  puVar1 = PTR__locale_00433084;
  param_1[1] = (int)(PTR_vtable_00435df4 + 8);
  (*(code *)puVar1)(param_1 + 8);
  iVar2 = param_2[1];
  *param_1 = iVar2;
  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[2];
  return;
}


lui gp,0x14
addiu gp,gp,0x29c4
addu gp,gp,t9
addiu sp,sp,-0x28
lw v0,0x0(a1)
lw t9,-0x410c(gp)
sw s0,0x1c(sp)
or s0,a0,zero
sw gp,0x10(sp)
addiu a0,a0,0x4
sw ra,0x24(sp)
sw s1,0x20(sp)
or s1,a1,zero
sw v0,0x0(s0)
lw v0,-0xc(v0)
lw v1,0xc(a1)
addu v0,s0,v0
sw v1,0x0(v0)
lw v0,-0x4124(gp)
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)
lw v0,0x4(s1)
lw ra,0x24(sp)
sw v0,0x0(s0)
lw v1,-0xc(v0)
lw v0,0x8(s1)
lw s1,0x20(sp)
addu s0,s0,v1
sw v0,0x0(s0)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "void FUN_002f780c(int *param_1,int *param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  \n  iVar2 = *param_2;\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[3];\n  param_1[1] = (int)(PTR_vtable_004360ac + 8);\n  std::wfilebuf::close((wfilebuf *)(param_1 + 1));\n  (*(code *)PTR____basic_file_0043307c)(param_1 + 0xf);\n  puVar1 = PTR__locale_00433084;\n  param_1[1] = (int)(PTR_vtable_00435df4 + 8);\n  (*(code *)puVar1)(param_1 + 8);\n  iVar2 = param_2[1];\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[2];\n  return;\n}\n\n" (function_definition "void FUN_002f780c(int *param_1,int *param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  \n  iVar2 = *param_2;\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[3];\n  param_1[1] = (int)(PTR_vtable_004360ac + 8);\n  std::wfilebuf::close((wfilebuf *)(param_1 + 1));\n  (*(code *)PTR____basic_file_0043307c)(param_1 + 0xf);\n  puVar1 = PTR__locale_00433084;\n  param_1[1] = (int)(PTR_vtable_00435df4 + 8);\n  (*(code *)puVar1)(param_1 + 8);\n  iVar2 = param_2[1];\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[2];\n  return;\n}" primitive_type (function_declarator "FUN_002f780c(int *param_1,int *param_2)" identifier (parameter_list "(int *param_1,int *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  \n  iVar2 = *param_2;\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[3];\n  param_1[1] = (int)(PTR_vtable_004360ac + 8);\n  std::wfilebuf::close((wfilebuf *)(param_1 + 1));\n  (*(code *)PTR____basic_file_0043307c)(param_1 + 0xf);\n  puVar1 = PTR__locale_00433084;\n  param_1[1] = (int)(PTR_vtable_00435df4 + 8);\n  (*(code *)puVar1)(param_1 + 8);\n  iVar2 = param_2[1];\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[2];\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = *param_2;" (assignment_expression "iVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[3];" (assignment_expression "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[3]" (pointer_expression "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc))" * (cast_expression "(int *)((int)param_1 + *(int *)(iVar2 + -0xc))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(iVar2 + -0xc))" ( (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))))) )))) = (subscript_expression "param_2[3]" identifier [ number_literal ])) ;) (expression_statement "param_1[1] = (int)(PTR_vtable_004360ac + 8);" (assignment_expression "param_1[1] = (int)(PTR_vtable_004360ac + 8)" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (cast_expression "(int)(PTR_vtable_004360ac + 8)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(PTR_vtable_004360ac + 8)" ( (binary_expression "PTR_vtable_004360ac + 8" identifier + number_literal) )))) ;) (labeled_statement "std::wfilebuf::close((wfilebuf *)(param_1 + 1));" statement_identifier : (ERROR ":" :) (labeled_statement "wfilebuf::close((wfilebuf *)(param_1 + 1));" statement_identifier : (ERROR ":" :) (expression_statement "close((wfilebuf *)(param_1 + 1));" (call_expression "close((wfilebuf *)(param_1 + 1))" identifier (argument_list "((wfilebuf *)(param_1 + 1))" ( (cast_expression "(wfilebuf *)(param_1 + 1)" ( (type_descriptor "wfilebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))) ))) ;))) (expression_statement "(*(code *)PTR____basic_file_0043307c)(param_1 + 0xf);" (call_expression "(*(code *)PTR____basic_file_0043307c)(param_1 + 0xf)" (parenthesized_expression "(*(code *)PTR____basic_file_0043307c)" ( (pointer_expression "*(code *)PTR____basic_file_0043307c" * (cast_expression "(code *)PTR____basic_file_0043307c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + 0xf)" ( (binary_expression "param_1 + 0xf" identifier + number_literal) ))) ;) (expression_statement "puVar1 = PTR__locale_00433084;" (assignment_expression "puVar1 = PTR__locale_00433084" identifier = identifier) ;) (expression_statement "param_1[1] = (int)(PTR_vtable_00435df4 + 8);" (assignment_expression "param_1[1] = (int)(PTR_vtable_00435df4 + 8)" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (cast_expression "(int)(PTR_vtable_00435df4 + 8)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(PTR_vtable_00435df4 + 8)" ( (binary_expression "PTR_vtable_00435df4 + 8" identifier + number_literal) )))) ;) (expression_statement "(*(code *)puVar1)(param_1 + 8);" (call_expression "(*(code *)puVar1)(param_1 + 8)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))) ;) (expression_statement "iVar2 = param_2[1];" (assignment_expression "iVar2 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[2];" (assignment_expression "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[2]" (pointer_expression "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc))" * (cast_expression "(int *)((int)param_1 + *(int *)(iVar2 + -0xc))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(iVar2 + -0xc))" ( (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))))) )))) = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (return_statement "return;" return ;) })))
(translation_unit "/* std::wofstream::~wofstream() */\n\nvoid __thiscall std::wofstream::~wofstream(wofstream *this)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int *in_a1;\n  \n  iVar2 = *in_a1;\n  *(int *)this = iVar2;\n  *(int *)(this + *(int *)(iVar2 + -0xc)) = in_a1[3];\n  *(undefined **)(this + 4) = PTR_vtable_004360ac + 8;\n  wfilebuf::close((wfilebuf *)(this + 4));\n  (*(code *)PTR____basic_file_0043307c)(this + 0x3c);\n  puVar1 = PTR__locale_00433084;\n  *(undefined **)(this + 4) = PTR_vtable_00435df4 + 8;\n  (*(code *)puVar1)(this + 0x20);\n  iVar2 = in_a1[1];\n  *(int *)this = iVar2;\n  *(int *)(this + *(int *)(iVar2 + -0xc)) = in_a1[2];\n  return;\n}\n\n" comment (function_definition "void __thiscall std::wofstream::~wofstream(wofstream *this)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int *in_a1;\n  \n  iVar2 = *in_a1;\n  *(int *)this = iVar2;\n  *(int *)(this + *(int *)(iVar2 + -0xc)) = in_a1[3];\n  *(undefined **)(this + 4) = PTR_vtable_004360ac + 8;\n  wfilebuf::close((wfilebuf *)(this + 4));\n  (*(code *)PTR____basic_file_0043307c)(this + 0x3c);\n  puVar1 = PTR__locale_00433084;\n  *(undefined **)(this + 4) = PTR_vtable_00435df4 + 8;\n  (*(code *)puVar1)(this + 0x20);\n  iVar2 = in_a1[1];\n  *(int *)this = iVar2;\n  *(int *)(this + *(int *)(iVar2 + -0xc)) = in_a1[2];\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  int iVar2;\n  int *in_a1;\n  \n  iVar2 = *in_a1;\n  *(int *)this = iVar2;\n  *(int *)(this + *(int *)(iVar2 + -0xc)) = in_a1[3];\n  *(undefined **)(this + 4) = PTR_vtable_004360ac + 8;\n  wfilebuf::close((wfilebuf *)(this + 4));\n  (*(code *)PTR____basic_file_0043307c)(this + 0x3c);\n  puVar1 = PTR__locale_00433084;\n  *(undefined **)(this + 4) = PTR_vtable_00435df4 + 8;\n  (*(code *)puVar1)(this + 0x20);\n  iVar2 = in_a1[1];\n  *(int *)this = iVar2;\n  *(int *)(this + *(int *)(iVar2 + -0xc)) = in_a1[2];\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *in_a1;" primitive_type (pointer_declarator "*in_a1" * identifier) ;) (expression_statement "iVar2 = *in_a1;" (assignment_expression "iVar2 = *in_a1" identifier = (pointer_expression "*in_a1" * identifier)) ;) (expression_statement "*(int *)this = iVar2;" (assignment_expression "*(int *)this = iVar2" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(int *)(this + *(int *)(iVar2 + -0xc)) = in_a1[3];" (assignment_expression "*(int *)(this + *(int *)(iVar2 + -0xc)) = in_a1[3]" (pointer_expression "*(int *)(this + *(int *)(iVar2 + -0xc))" * (cast_expression "(int *)(this + *(int *)(iVar2 + -0xc))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(int *)(iVar2 + -0xc))" ( (binary_expression "this + *(int *)(iVar2 + -0xc)" identifier + (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))))) )))) = (subscript_expression "in_a1[3]" identifier [ number_literal ])) ;) (expression_statement "*(undefined **)(this + 4) = PTR_vtable_004360ac + 8;" (assignment_expression "*(undefined **)(this + 4) = PTR_vtable_004360ac + 8" (pointer_expression "*(undefined **)(this + 4)" * (cast_expression "(undefined **)(this + 4)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = (binary_expression "PTR_vtable_004360ac + 8" identifier + number_literal)) ;) (labeled_statement "wfilebuf::close((wfilebuf *)(this + 4));" statement_identifier : (ERROR ":" :) (expression_statement "close((wfilebuf *)(this + 4));" (call_expression "close((wfilebuf *)(this + 4))" identifier (argument_list "((wfilebuf *)(this + 4))" ( (cast_expression "(wfilebuf *)(this + 4)" ( (type_descriptor "wfilebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) ))) ))) ;)) (expression_statement "(*(code *)PTR____basic_file_0043307c)(this + 0x3c);" (call_expression "(*(code *)PTR____basic_file_0043307c)(this + 0x3c)" (parenthesized_expression "(*(code *)PTR____basic_file_0043307c)" ( (pointer_expression "*(code *)PTR____basic_file_0043307c" * (cast_expression "(code *)PTR____basic_file_0043307c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(this + 0x3c)" ( (binary_expression "this + 0x3c" identifier + number_literal) ))) ;) (expression_statement "puVar1 = PTR__locale_00433084;" (assignment_expression "puVar1 = PTR__locale_00433084" identifier = identifier) ;) (expression_statement "*(undefined **)(this + 4) = PTR_vtable_00435df4 + 8;" (assignment_expression "*(undefined **)(this + 4) = PTR_vtable_00435df4 + 8" (pointer_expression "*(undefined **)(this + 4)" * (cast_expression "(undefined **)(this + 4)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = (binary_expression "PTR_vtable_00435df4 + 8" identifier + number_literal)) ;) (expression_statement "(*(code *)puVar1)(this + 0x20);" (call_expression "(*(code *)puVar1)(this + 0x20)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(this + 0x20)" ( (binary_expression "this + 0x20" identifier + number_literal) ))) ;) (expression_statement "iVar2 = in_a1[1];" (assignment_expression "iVar2 = in_a1[1]" identifier = (subscript_expression "in_a1[1]" identifier [ number_literal ])) ;) (expression_statement "*(int *)this = iVar2;" (assignment_expression "*(int *)this = iVar2" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(int *)(this + *(int *)(iVar2 + -0xc)) = in_a1[2];" (assignment_expression "*(int *)(this + *(int *)(iVar2 + -0xc)) = in_a1[2]" (pointer_expression "*(int *)(this + *(int *)(iVar2 + -0xc))" * (cast_expression "(int *)(this + *(int *)(iVar2 + -0xc))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(int *)(iVar2 + -0xc))" ( (binary_expression "this + *(int *)(iVar2 + -0xc)" identifier + (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))))) )))) = (subscript_expression "in_a1[2]" identifier [ number_literal ])) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_002f780c(int *param_1,int *param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  \n  iVar2 = *param_2;\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[3];\n  param_1[1] = (int)(PTR_vtable_004360ac + 8);\n  std::wfilebuf::close((wfilebuf *)(param_1 + 1));\n  (*(code *)PTR____basic_file_0043307c)(param_1 + 0xf);\n  puVar1 = PTR__locale_00433084;\n  param_1[1] = (int)(PTR_vtable_00435df4 + 8);\n  (*(code *)puVar1)(param_1 + 8);\n  iVar2 = param_2[1];\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[2];\n  return;\n}\n\n" (function_definition "void FUN_002f780c(int *param_1,int *param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  \n  iVar2 = *param_2;\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[3];\n  param_1[1] = (int)(PTR_vtable_004360ac + 8);\n  std::wfilebuf::close((wfilebuf *)(param_1 + 1));\n  (*(code *)PTR____basic_file_0043307c)(param_1 + 0xf);\n  puVar1 = PTR__locale_00433084;\n  param_1[1] = (int)(PTR_vtable_00435df4 + 8);\n  (*(code *)puVar1)(param_1 + 8);\n  iVar2 = param_2[1];\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[2];\n  return;\n}" primitive_type (function_declarator "FUN_002f780c(int *param_1,int *param_2)" identifier (parameter_list "(int *param_1,int *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  \n  iVar2 = *param_2;\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[3];\n  param_1[1] = (int)(PTR_vtable_004360ac + 8);\n  std::wfilebuf::close((wfilebuf *)(param_1 + 1));\n  (*(code *)PTR____basic_file_0043307c)(param_1 + 0xf);\n  puVar1 = PTR__locale_00433084;\n  param_1[1] = (int)(PTR_vtable_00435df4 + 8);\n  (*(code *)puVar1)(param_1 + 8);\n  iVar2 = param_2[1];\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[2];\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = *param_2;" (assignment_expression "iVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[3];" (assignment_expression "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[3]" (pointer_expression "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc))" * (cast_expression "(int *)((int)param_1 + *(int *)(iVar2 + -0xc))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(iVar2 + -0xc))" ( (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))))) )))) = (subscript_expression "param_2[3]" identifier [ number_literal ])) ;) (expression_statement "param_1[1] = (int)(PTR_vtable_004360ac + 8);" (assignment_expression "param_1[1] = (int)(PTR_vtable_004360ac + 8)" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (cast_expression "(int)(PTR_vtable_004360ac + 8)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(PTR_vtable_004360ac + 8)" ( (binary_expression "PTR_vtable_004360ac + 8" identifier + number_literal) )))) ;) (labeled_statement "std::wfilebuf::close((wfilebuf *)(param_1 + 1));" statement_identifier : (ERROR ":" :) (labeled_statement "wfilebuf::close((wfilebuf *)(param_1 + 1));" statement_identifier : (ERROR ":" :) (expression_statement "close((wfilebuf *)(param_1 + 1));" (call_expression "close((wfilebuf *)(param_1 + 1))" identifier (argument_list "((wfilebuf *)(param_1 + 1))" ( (cast_expression "(wfilebuf *)(param_1 + 1)" ( (type_descriptor "wfilebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))) ))) ;))) (expression_statement "(*(code *)PTR____basic_file_0043307c)(param_1 + 0xf);" (call_expression "(*(code *)PTR____basic_file_0043307c)(param_1 + 0xf)" (parenthesized_expression "(*(code *)PTR____basic_file_0043307c)" ( (pointer_expression "*(code *)PTR____basic_file_0043307c" * (cast_expression "(code *)PTR____basic_file_0043307c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + 0xf)" ( (binary_expression "param_1 + 0xf" identifier + number_literal) ))) ;) (expression_statement "puVar1 = PTR__locale_00433084;" (assignment_expression "puVar1 = PTR__locale_00433084" identifier = identifier) ;) (expression_statement "param_1[1] = (int)(PTR_vtable_00435df4 + 8);" (assignment_expression "param_1[1] = (int)(PTR_vtable_00435df4 + 8)" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (cast_expression "(int)(PTR_vtable_00435df4 + 8)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(PTR_vtable_00435df4 + 8)" ( (binary_expression "PTR_vtable_00435df4 + 8" identifier + number_literal) )))) ;) (expression_statement "(*(code *)puVar1)(param_1 + 8);" (call_expression "(*(code *)puVar1)(param_1 + 8)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))) ;) (expression_statement "iVar2 = param_2[1];" (assignment_expression "iVar2 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[2];" (assignment_expression "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[2]" (pointer_expression "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc))" * (cast_expression "(int *)((int)param_1 + *(int *)(iVar2 + -0xc))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(iVar2 + -0xc))" ( (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))))) )))) = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (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 IDENT + LIT) ))))) )))) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (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 ]) = (cast_expression ( (type_descriptor TYPE) ) (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 = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (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 IDENT + LIT) ))))) )))) = (subscript_expression IDENT [ LIT ])) ;) (return_statement return ;) })))
(function_definition "void FUN_002f780c(int *param_1,int *param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  \n  iVar2 = *param_2;\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[3];\n  param_1[1] = (int)(PTR_vtable_004360ac + 8);\n  std::wfilebuf::close((wfilebuf *)(param_1 + 1));\n  (*(code *)PTR____basic_file_0043307c)(param_1 + 0xf);\n  puVar1 = PTR__locale_00433084;\n  param_1[1] = (int)(PTR_vtable_00435df4 + 8);\n  (*(code *)puVar1)(param_1 + 8);\n  iVar2 = param_2[1];\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[2];\n  return;\n}" (primitive_type "void") (function_declarator "FUN_002f780c(int *param_1,int *param_2)" (identifier "FUN_002f780c") (parameter_list "(int *param_1,int *param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  \n  iVar2 = *param_2;\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[3];\n  param_1[1] = (int)(PTR_vtable_004360ac + 8);\n  std::wfilebuf::close((wfilebuf *)(param_1 + 1));\n  (*(code *)PTR____basic_file_0043307c)(param_1 + 0xf);\n  puVar1 = PTR__locale_00433084;\n  param_1[1] = (int)(PTR_vtable_00435df4 + 8);\n  (*(code *)puVar1)(param_1 + 8);\n  iVar2 = param_2[1];\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[2];\n  return;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "iVar2 = *param_2;" (assignment_expression "iVar2 = *param_2" (identifier "iVar2") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[3];" (assignment_expression "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[3]" (pointer_expression "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc))" (* "*") (cast_expression "(int *)((int)param_1 + *(int *)(iVar2 + -0xc))" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + *(int *)(iVar2 + -0xc))" (( "(") (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc)" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(int *)(iVar2 + -0xc)" (* "*") (cast_expression "(int *)(iVar2 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + -0xc)" (( "(") (binary_expression "iVar2 + -0xc" (identifier "iVar2") (+ "+") (number_literal "-0xc")) () ")"))))) () ")")))) (= "=") (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "param_1[1] = (int)(PTR_vtable_004360ac + 8);" (assignment_expression "param_1[1] = (int)(PTR_vtable_004360ac + 8)" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(int)(PTR_vtable_004360ac + 8)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(PTR_vtable_004360ac + 8)" (( "(") (binary_expression "PTR_vtable_004360ac + 8" (identifier "PTR_vtable_004360ac") (+ "+") (number_literal "8")) () ")")))) (; ";")) (labeled_statement "std::wfilebuf::close((wfilebuf *)(param_1 + 1));" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "wfilebuf::close((wfilebuf *)(param_1 + 1));" (statement_identifier "wfilebuf") (: ":") (ERROR ":" (: ":")) (expression_statement "close((wfilebuf *)(param_1 + 1));" (call_expression "close((wfilebuf *)(param_1 + 1))" (identifier "close") (argument_list "((wfilebuf *)(param_1 + 1))" (( "(") (cast_expression "(wfilebuf *)(param_1 + 1)" (( "(") (type_descriptor "wfilebuf *" (type_identifier "wfilebuf") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")"))) () ")"))) (; ";")))) (expression_statement "(*(code *)PTR____basic_file_0043307c)(param_1 + 0xf);" (call_expression "(*(code *)PTR____basic_file_0043307c)(param_1 + 0xf)" (parenthesized_expression "(*(code *)PTR____basic_file_0043307c)" (( "(") (pointer_expression "*(code *)PTR____basic_file_0043307c" (* "*") (cast_expression "(code *)PTR____basic_file_0043307c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR____basic_file_0043307c"))) () ")")) (argument_list "(param_1 + 0xf)" (( "(") (binary_expression "param_1 + 0xf" (identifier "param_1") (+ "+") (number_literal "0xf")) () ")"))) (; ";")) (expression_statement "puVar1 = PTR__locale_00433084;" (assignment_expression "puVar1 = PTR__locale_00433084" (identifier "puVar1") (= "=") (identifier "PTR__locale_00433084")) (; ";")) (expression_statement "param_1[1] = (int)(PTR_vtable_00435df4 + 8);" (assignment_expression "param_1[1] = (int)(PTR_vtable_00435df4 + 8)" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(int)(PTR_vtable_00435df4 + 8)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(PTR_vtable_00435df4 + 8)" (( "(") (binary_expression "PTR_vtable_00435df4 + 8" (identifier "PTR_vtable_00435df4") (+ "+") (number_literal "8")) () ")")))) (; ";")) (expression_statement "(*(code *)puVar1)(param_1 + 8);" (call_expression "(*(code *)puVar1)(param_1 + 8)" (parenthesized_expression "(*(code *)puVar1)" (( "(") (pointer_expression "*(code *)puVar1" (* "*") (cast_expression "(code *)puVar1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) () ")")) (argument_list "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))) (; ";")) (expression_statement "iVar2 = param_2[1];" (assignment_expression "iVar2 = param_2[1]" (identifier "iVar2") (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[2];" (assignment_expression "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[2]" (pointer_expression "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc))" (* "*") (cast_expression "(int *)((int)param_1 + *(int *)(iVar2 + -0xc))" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + *(int *)(iVar2 + -0xc))" (( "(") (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc)" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(int *)(iVar2 + -0xc)" (* "*") (cast_expression "(int *)(iVar2 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + -0xc)" (( "(") (binary_expression "iVar2 + -0xc" (identifier "iVar2") (+ "+") (number_literal "-0xc")) () ")"))))) () ")")))) (= "=") (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]"))) (; ";")) (return_statement "return;" (return "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))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) 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: (identifier) right: (number_literal))))))))) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (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: (cast_expression type: (type_descriptor type: (primitive_type)) 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: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) 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: (identifier) right: (number_literal))))))))) right: (subscript_expression argument: (identifier) index: (number_literal)))) (return_statement))))

void MASKED(int *param_1,int *param_2)

{
  undefined *puVar1;
  int iVar2;
  
  iVar2 = *param_2;
  *param_1 = iVar2;
  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[3];
  param_1[1] = (int)(PTR_vtable_004360ac + 8);
  std::wfilebuf::close((wfilebuf *)(param_1 + 1));
  (*(code *)PTR____basic_file_0043307c)(param_1 + 0xf);
  puVar1 = PTR__locale_00433084;
  param_1[1] = (int)(PTR_vtable_00435df4 + 8);
  (*(code *)puVar1)(param_1 + 8);
  iVar2 = param_2[1];
  *param_1 = iVar2;
  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[2];
  return;
}

