
/* std::wifstream::wifstream() */

void __thiscall std::wifstream::wifstream(wifstream *this)

{
  undefined *puVar1;
  ios_base *this_00;
  
  this_00 = (ios_base *)(this + 0x94);
  ios_base::ios_base(this_00);
  *(undefined4 *)(this + 0x104) = 0;
  *(undefined4 *)(this + 0x108) = 0;
  this[0x10c] = (wifstream)0x0;
  puVar1 = PTR_construction_vtable_004c54d8;
  *(undefined4 *)(this + 0x110) = 0;
  *(undefined4 *)(this + 0x114) = 0;
  *(undefined4 *)(this + 0x118) = 0;
  *(undefined4 *)(this + 0x11c) = 0;
  *(undefined **)this = puVar1 + 0xc;
  *(undefined **)(this + 0x94) = puVar1 + 0x20;
                    /* try { // try from 00370f1c to 00370f23 has its CatchHandler @ 00370f80 */
  *(undefined4 *)(this + 4) = 0;
  wios::init((wios *)this_00,(wstreambuf *)0x0);
  puVar1 = PTR_vtable_004c54d4 + 0x20;
  *(undefined **)this = PTR_vtable_004c54d4 + 0xc;
                    /* try { // try from 00370f44 to 00370f4b has its CatchHandler @ 00370fdc */
  *(undefined **)(this + 0x94) = puVar1;
  wfilebuf::wfilebuf((wfilebuf *)(this + 8));
                    /* try { // try from 00370f58 to 00370f5f has its CatchHandler @ 00370fb0 */
  wios::init((wios *)this_00,(wstreambuf *)(this + 8));
  return;
}



void FUN_00370e9c(undefined4 *param_1)

{
  undefined *puVar1;
  ios_base *this;
  
  this = (ios_base *)(param_1 + 0x25);
  std::ios_base::ios_base(this);
  param_1[0x41] = 0;
  param_1[0x42] = 0;
  *(undefined1 *)(param_1 + 0x43) = 0;
  puVar1 = PTR_DAT_004c54d8;
  param_1[0x44] = 0;
  param_1[0x45] = 0;
  param_1[0x46] = 0;
  param_1[0x47] = 0;
  *param_1 = puVar1 + 0xc;
  param_1[0x25] = puVar1 + 0x20;
                    /* try { // try from 00370f1c to 00370f23 has its CatchHandler @ 00370f80 */
  param_1[1] = 0;
  std::wios::init((wios *)this,(wstreambuf *)0x0);
  puVar1 = PTR_vtable_004c54d4 + 0x20;
  *param_1 = PTR_vtable_004c54d4 + 0xc;
                    /* try { // try from 00370f44 to 00370f4b has its CatchHandler @ 00370fdc */
  param_1[0x25] = puVar1;
  std::wfilebuf::wfilebuf((wfilebuf *)(param_1 + 2));
                    /* try { // try from 00370f58 to 00370f5f has its CatchHandler @ 00370fb0 */
  std::wios::init((wios *)this,(wstreambuf *)(param_1 + 2));
  return;
}


lui gp,0x16
addiu gp,gp,-0x7c5c
addu gp,gp,t9
addiu sp,sp,-0x30
lw t9,-0x6fa0(gp)
sw s1,0x1c(sp)
addiu s1,a0,0x94
sw gp,0x10(sp)
sw s3,0x24(sp)
sw s0,0x18(sp)
or s0,a0,zero
sw ra,0x2c(sp)
or a0,s1,zero
sw s4,0x28(sp)
bal 0x00388920
_sw s2,0x20(sp)
or a1,zero,zero
lw gp,0x10(sp)
or a0,s1,zero
sw zero,0x104(s0)
sw zero,0x108(s0)
sb zero,0x10c(s0)
lw v0,-0x3d68(gp)
lw t9,-0x4030(gp)
sw zero,0x110(s0)
addiu s3,v0,0xc
sw zero,0x114(s0)
addiu v0,v0,0x20
sw zero,0x118(s0)
sw zero,0x11c(s0)
sw s3,0x0(s0)
sw v0,0x94(s0)
bal 0x00367010
_sw zero,0x4(s0)
lw gp,0x10(sp)
addiu s2,s0,0x8
or a0,s2,zero
lw v0,-0x3d6c(gp)
lw t9,-0x3d44(gp)
addiu v1,v0,0xc
addiu v0,v0,0x20
sw v1,0x0(s0)
bal 0x0036e740
_sw v0,0x94(s0)
lw gp,0x10(sp)
or a1,s2,zero
lw t9,-0x4030(gp)
bal 0x00367010
_or a0,s1,zero
lw ra,0x2c(sp)
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x30
(translation_unit "void FUN_00370e9c(undefined4 *param_1)\n\n{\n  undefined *puVar1;\n  ios_base *this;\n  \n  this = (ios_base *)(param_1 + 0x25);\n  std::ios_base::ios_base(this);\n  param_1[0x41] = 0;\n  param_1[0x42] = 0;\n  *(undefined1 *)(param_1 + 0x43) = 0;\n  puVar1 = PTR_DAT_004c54d8;\n  param_1[0x44] = 0;\n  param_1[0x45] = 0;\n  param_1[0x46] = 0;\n  param_1[0x47] = 0;\n  *param_1 = puVar1 + 0xc;\n  param_1[0x25] = puVar1 + 0x20;\n                    /* try { // try from 00370f1c to 00370f23 has its CatchHandler @ 00370f80 */\n  param_1[1] = 0;\n  std::wios::init((wios *)this,(wstreambuf *)0x0);\n  puVar1 = PTR_vtable_004c54d4 + 0x20;\n  *param_1 = PTR_vtable_004c54d4 + 0xc;\n                    /* try { // try from 00370f44 to 00370f4b has its CatchHandler @ 00370fdc */\n  param_1[0x25] = puVar1;\n  std::wfilebuf::wfilebuf((wfilebuf *)(param_1 + 2));\n                    /* try { // try from 00370f58 to 00370f5f has its CatchHandler @ 00370fb0 */\n  std::wios::init((wios *)this,(wstreambuf *)(param_1 + 2));\n  return;\n}\n\n" (function_definition "void FUN_00370e9c(undefined4 *param_1)\n\n{\n  undefined *puVar1;\n  ios_base *this;\n  \n  this = (ios_base *)(param_1 + 0x25);\n  std::ios_base::ios_base(this);\n  param_1[0x41] = 0;\n  param_1[0x42] = 0;\n  *(undefined1 *)(param_1 + 0x43) = 0;\n  puVar1 = PTR_DAT_004c54d8;\n  param_1[0x44] = 0;\n  param_1[0x45] = 0;\n  param_1[0x46] = 0;\n  param_1[0x47] = 0;\n  *param_1 = puVar1 + 0xc;\n  param_1[0x25] = puVar1 + 0x20;\n                    /* try { // try from 00370f1c to 00370f23 has its CatchHandler @ 00370f80 */\n  param_1[1] = 0;\n  std::wios::init((wios *)this,(wstreambuf *)0x0);\n  puVar1 = PTR_vtable_004c54d4 + 0x20;\n  *param_1 = PTR_vtable_004c54d4 + 0xc;\n                    /* try { // try from 00370f44 to 00370f4b has its CatchHandler @ 00370fdc */\n  param_1[0x25] = puVar1;\n  std::wfilebuf::wfilebuf((wfilebuf *)(param_1 + 2));\n                    /* try { // try from 00370f58 to 00370f5f has its CatchHandler @ 00370fb0 */\n  std::wios::init((wios *)this,(wstreambuf *)(param_1 + 2));\n  return;\n}" primitive_type (function_declarator "FUN_00370e9c(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  ios_base *this;\n  \n  this = (ios_base *)(param_1 + 0x25);\n  std::ios_base::ios_base(this);\n  param_1[0x41] = 0;\n  param_1[0x42] = 0;\n  *(undefined1 *)(param_1 + 0x43) = 0;\n  puVar1 = PTR_DAT_004c54d8;\n  param_1[0x44] = 0;\n  param_1[0x45] = 0;\n  param_1[0x46] = 0;\n  param_1[0x47] = 0;\n  *param_1 = puVar1 + 0xc;\n  param_1[0x25] = puVar1 + 0x20;\n                    /* try { // try from 00370f1c to 00370f23 has its CatchHandler @ 00370f80 */\n  param_1[1] = 0;\n  std::wios::init((wios *)this,(wstreambuf *)0x0);\n  puVar1 = PTR_vtable_004c54d4 + 0x20;\n  *param_1 = PTR_vtable_004c54d4 + 0xc;\n                    /* try { // try from 00370f44 to 00370f4b has its CatchHandler @ 00370fdc */\n  param_1[0x25] = puVar1;\n  std::wfilebuf::wfilebuf((wfilebuf *)(param_1 + 2));\n                    /* try { // try from 00370f58 to 00370f5f has its CatchHandler @ 00370fb0 */\n  std::wios::init((wios *)this,(wstreambuf *)(param_1 + 2));\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "ios_base *this;" type_identifier (pointer_declarator "*this" * identifier) ;) (expression_statement "this = (ios_base *)(param_1 + 0x25);" (assignment_expression "this = (ios_base *)(param_1 + 0x25)" identifier = (cast_expression "(ios_base *)(param_1 + 0x25)" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x25)" ( (binary_expression "param_1 + 0x25" identifier + number_literal) )))) ;) (labeled_statement "std::ios_base::ios_base(this);" statement_identifier : (ERROR ":" :) (labeled_statement "ios_base::ios_base(this);" statement_identifier : (ERROR ":" :) (expression_statement "ios_base(this);" (call_expression "ios_base(this)" identifier (argument_list "(this)" ( identifier ))) ;))) (expression_statement "param_1[0x41] = 0;" (assignment_expression "param_1[0x41] = 0" (subscript_expression "param_1[0x41]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x42] = 0;" (assignment_expression "param_1[0x42] = 0" (subscript_expression "param_1[0x42]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined1 *)(param_1 + 0x43) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0x43) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0x43)" * (cast_expression "(undefined1 *)(param_1 + 0x43)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x43)" ( (binary_expression "param_1 + 0x43" identifier + number_literal) )))) = number_literal) ;) (expression_statement "puVar1 = PTR_DAT_004c54d8;" (assignment_expression "puVar1 = PTR_DAT_004c54d8" identifier = identifier) ;) (expression_statement "param_1[0x44] = 0;" (assignment_expression "param_1[0x44] = 0" (subscript_expression "param_1[0x44]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x45] = 0;" (assignment_expression "param_1[0x45] = 0" (subscript_expression "param_1[0x45]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x46] = 0;" (assignment_expression "param_1[0x46] = 0" (subscript_expression "param_1[0x46]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x47] = 0;" (assignment_expression "param_1[0x47] = 0" (subscript_expression "param_1[0x47]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_1 = puVar1 + 0xc;" (assignment_expression "*param_1 = puVar1 + 0xc" (pointer_expression "*param_1" * identifier) = (binary_expression "puVar1 + 0xc" identifier + number_literal)) ;) (expression_statement "param_1[0x25] = puVar1 + 0x20;" (assignment_expression "param_1[0x25] = puVar1 + 0x20" (subscript_expression "param_1[0x25]" identifier [ number_literal ]) = (binary_expression "puVar1 + 0x20" identifier + number_literal)) ;) comment (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (labeled_statement "std::wios::init((wios *)this,(wstreambuf *)0x0);" statement_identifier : (ERROR ":" :) (labeled_statement "wios::init((wios *)this,(wstreambuf *)0x0);" statement_identifier : (ERROR ":" :) (expression_statement "init((wios *)this,(wstreambuf *)0x0);" (call_expression "init((wios *)this,(wstreambuf *)0x0)" identifier (argument_list "((wios *)this,(wstreambuf *)0x0)" ( (cast_expression "(wios *)this" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(wstreambuf *)0x0" ( (type_descriptor "wstreambuf *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;))) (expression_statement "puVar1 = PTR_vtable_004c54d4 + 0x20;" (assignment_expression "puVar1 = PTR_vtable_004c54d4 + 0x20" identifier = (binary_expression "PTR_vtable_004c54d4 + 0x20" identifier + number_literal)) ;) (expression_statement "*param_1 = PTR_vtable_004c54d4 + 0xc;" (assignment_expression "*param_1 = PTR_vtable_004c54d4 + 0xc" (pointer_expression "*param_1" * identifier) = (binary_expression "PTR_vtable_004c54d4 + 0xc" identifier + number_literal)) ;) comment (expression_statement "param_1[0x25] = puVar1;" (assignment_expression "param_1[0x25] = puVar1" (subscript_expression "param_1[0x25]" identifier [ number_literal ]) = identifier) ;) (labeled_statement "std::wfilebuf::wfilebuf((wfilebuf *)(param_1 + 2));" statement_identifier : (ERROR ":" :) (labeled_statement "wfilebuf::wfilebuf((wfilebuf *)(param_1 + 2));" statement_identifier : (ERROR ":" :) (expression_statement "wfilebuf((wfilebuf *)(param_1 + 2));" (call_expression "wfilebuf((wfilebuf *)(param_1 + 2))" identifier (argument_list "((wfilebuf *)(param_1 + 2))" ( (cast_expression "(wfilebuf *)(param_1 + 2)" ( (type_descriptor "wfilebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))) ))) ;))) comment (labeled_statement "std::wios::init((wios *)this,(wstreambuf *)(param_1 + 2));" statement_identifier : (ERROR ":" :) (labeled_statement "wios::init((wios *)this,(wstreambuf *)(param_1 + 2));" statement_identifier : (ERROR ":" :) (expression_statement "init((wios *)this,(wstreambuf *)(param_1 + 2));" (call_expression "init((wios *)this,(wstreambuf *)(param_1 + 2))" identifier (argument_list "((wios *)this,(wstreambuf *)(param_1 + 2))" ( (cast_expression "(wios *)this" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(wstreambuf *)(param_1 + 2)" ( (type_descriptor "wstreambuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))) ))) ;))) (return_statement "return;" return ;) })))
(translation_unit "/* std::wifstream::wifstream() */\n\nvoid __thiscall std::wifstream::wifstream(wifstream *this)\n\n{\n  undefined *puVar1;\n  ios_base *this_00;\n  \n  this_00 = (ios_base *)(this + 0x94);\n  ios_base::ios_base(this_00);\n  *(undefined4 *)(this + 0x104) = 0;\n  *(undefined4 *)(this + 0x108) = 0;\n  this[0x10c] = (wifstream)0x0;\n  puVar1 = PTR_construction_vtable_004c54d8;\n  *(undefined4 *)(this + 0x110) = 0;\n  *(undefined4 *)(this + 0x114) = 0;\n  *(undefined4 *)(this + 0x118) = 0;\n  *(undefined4 *)(this + 0x11c) = 0;\n  *(undefined **)this = puVar1 + 0xc;\n  *(undefined **)(this + 0x94) = puVar1 + 0x20;\n                    /* try { // try from 00370f1c to 00370f23 has its CatchHandler @ 00370f80 */\n  *(undefined4 *)(this + 4) = 0;\n  wios::init((wios *)this_00,(wstreambuf *)0x0);\n  puVar1 = PTR_vtable_004c54d4 + 0x20;\n  *(undefined **)this = PTR_vtable_004c54d4 + 0xc;\n                    /* try { // try from 00370f44 to 00370f4b has its CatchHandler @ 00370fdc */\n  *(undefined **)(this + 0x94) = puVar1;\n  wfilebuf::wfilebuf((wfilebuf *)(this + 8));\n                    /* try { // try from 00370f58 to 00370f5f has its CatchHandler @ 00370fb0 */\n  wios::init((wios *)this_00,(wstreambuf *)(this + 8));\n  return;\n}\n\n" comment (function_definition "void __thiscall std::wifstream::wifstream(wifstream *this)\n\n{\n  undefined *puVar1;\n  ios_base *this_00;\n  \n  this_00 = (ios_base *)(this + 0x94);\n  ios_base::ios_base(this_00);\n  *(undefined4 *)(this + 0x104) = 0;\n  *(undefined4 *)(this + 0x108) = 0;\n  this[0x10c] = (wifstream)0x0;\n  puVar1 = PTR_construction_vtable_004c54d8;\n  *(undefined4 *)(this + 0x110) = 0;\n  *(undefined4 *)(this + 0x114) = 0;\n  *(undefined4 *)(this + 0x118) = 0;\n  *(undefined4 *)(this + 0x11c) = 0;\n  *(undefined **)this = puVar1 + 0xc;\n  *(undefined **)(this + 0x94) = puVar1 + 0x20;\n                    /* try { // try from 00370f1c to 00370f23 has its CatchHandler @ 00370f80 */\n  *(undefined4 *)(this + 4) = 0;\n  wios::init((wios *)this_00,(wstreambuf *)0x0);\n  puVar1 = PTR_vtable_004c54d4 + 0x20;\n  *(undefined **)this = PTR_vtable_004c54d4 + 0xc;\n                    /* try { // try from 00370f44 to 00370f4b has its CatchHandler @ 00370fdc */\n  *(undefined **)(this + 0x94) = puVar1;\n  wfilebuf::wfilebuf((wfilebuf *)(this + 8));\n                    /* try { // try from 00370f58 to 00370f5f has its CatchHandler @ 00370fb0 */\n  wios::init((wios *)this_00,(wstreambuf *)(this + 8));\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::wifstream::" identifier : : identifier : :) (function_declarator "wifstream(wifstream *this)" identifier (parameter_list "(wifstream *this)" ( (parameter_declaration "wifstream *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  ios_base *this_00;\n  \n  this_00 = (ios_base *)(this + 0x94);\n  ios_base::ios_base(this_00);\n  *(undefined4 *)(this + 0x104) = 0;\n  *(undefined4 *)(this + 0x108) = 0;\n  this[0x10c] = (wifstream)0x0;\n  puVar1 = PTR_construction_vtable_004c54d8;\n  *(undefined4 *)(this + 0x110) = 0;\n  *(undefined4 *)(this + 0x114) = 0;\n  *(undefined4 *)(this + 0x118) = 0;\n  *(undefined4 *)(this + 0x11c) = 0;\n  *(undefined **)this = puVar1 + 0xc;\n  *(undefined **)(this + 0x94) = puVar1 + 0x20;\n                    /* try { // try from 00370f1c to 00370f23 has its CatchHandler @ 00370f80 */\n  *(undefined4 *)(this + 4) = 0;\n  wios::init((wios *)this_00,(wstreambuf *)0x0);\n  puVar1 = PTR_vtable_004c54d4 + 0x20;\n  *(undefined **)this = PTR_vtable_004c54d4 + 0xc;\n                    /* try { // try from 00370f44 to 00370f4b has its CatchHandler @ 00370fdc */\n  *(undefined **)(this + 0x94) = puVar1;\n  wfilebuf::wfilebuf((wfilebuf *)(this + 8));\n                    /* try { // try from 00370f58 to 00370f5f has its CatchHandler @ 00370fb0 */\n  wios::init((wios *)this_00,(wstreambuf *)(this + 8));\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "ios_base *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (expression_statement "this_00 = (ios_base *)(this + 0x94);" (assignment_expression "this_00 = (ios_base *)(this + 0x94)" identifier = (cast_expression "(ios_base *)(this + 0x94)" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x94)" ( (binary_expression "this + 0x94" identifier + number_literal) )))) ;) (labeled_statement "ios_base::ios_base(this_00);" statement_identifier : (ERROR ":" :) (expression_statement "ios_base(this_00);" (call_expression "ios_base(this_00)" identifier (argument_list "(this_00)" ( identifier ))) ;)) (expression_statement "*(undefined4 *)(this + 0x104) = 0;" (assignment_expression "*(undefined4 *)(this + 0x104) = 0" (pointer_expression "*(undefined4 *)(this + 0x104)" * (cast_expression "(undefined4 *)(this + 0x104)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x104)" ( (binary_expression "this + 0x104" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(this + 0x108) = 0;" (assignment_expression "*(undefined4 *)(this + 0x108) = 0" (pointer_expression "*(undefined4 *)(this + 0x108)" * (cast_expression "(undefined4 *)(this + 0x108)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x108)" ( (binary_expression "this + 0x108" identifier + number_literal) )))) = number_literal) ;) (expression_statement "this[0x10c] = (wifstream)0x0;" (assignment_expression "this[0x10c] = (wifstream)0x0" (subscript_expression "this[0x10c]" identifier [ number_literal ]) = (cast_expression "(wifstream)0x0" ( (type_descriptor "wifstream" type_identifier) ) number_literal)) ;) (expression_statement "puVar1 = PTR_construction_vtable_004c54d8;" (assignment_expression "puVar1 = PTR_construction_vtable_004c54d8" identifier = identifier) ;) (expression_statement "*(undefined4 *)(this + 0x110) = 0;" (assignment_expression "*(undefined4 *)(this + 0x110) = 0" (pointer_expression "*(undefined4 *)(this + 0x110)" * (cast_expression "(undefined4 *)(this + 0x110)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x110)" ( (binary_expression "this + 0x110" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(this + 0x114) = 0;" (assignment_expression "*(undefined4 *)(this + 0x114) = 0" (pointer_expression "*(undefined4 *)(this + 0x114)" * (cast_expression "(undefined4 *)(this + 0x114)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x114)" ( (binary_expression "this + 0x114" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(this + 0x118) = 0;" (assignment_expression "*(undefined4 *)(this + 0x118) = 0" (pointer_expression "*(undefined4 *)(this + 0x118)" * (cast_expression "(undefined4 *)(this + 0x118)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x118)" ( (binary_expression "this + 0x118" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(this + 0x11c) = 0;" (assignment_expression "*(undefined4 *)(this + 0x11c) = 0" (pointer_expression "*(undefined4 *)(this + 0x11c)" * (cast_expression "(undefined4 *)(this + 0x11c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x11c)" ( (binary_expression "this + 0x11c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined **)this = puVar1 + 0xc;" (assignment_expression "*(undefined **)this = puVar1 + 0xc" (pointer_expression "*(undefined **)this" * (cast_expression "(undefined **)this" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = (binary_expression "puVar1 + 0xc" identifier + number_literal)) ;) (expression_statement "*(undefined **)(this + 0x94) = puVar1 + 0x20;" (assignment_expression "*(undefined **)(this + 0x94) = puVar1 + 0x20" (pointer_expression "*(undefined **)(this + 0x94)" * (cast_expression "(undefined **)(this + 0x94)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x94)" ( (binary_expression "this + 0x94" identifier + number_literal) )))) = (binary_expression "puVar1 + 0x20" identifier + number_literal)) ;) comment (expression_statement "*(undefined4 *)(this + 4) = 0;" (assignment_expression "*(undefined4 *)(this + 4) = 0" (pointer_expression "*(undefined4 *)(this + 4)" * (cast_expression "(undefined4 *)(this + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = number_literal) ;) (labeled_statement "wios::init((wios *)this_00,(wstreambuf *)0x0);" statement_identifier : (ERROR ":" :) (expression_statement "init((wios *)this_00,(wstreambuf *)0x0);" (call_expression "init((wios *)this_00,(wstreambuf *)0x0)" identifier (argument_list "((wios *)this_00,(wstreambuf *)0x0)" ( (cast_expression "(wios *)this_00" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(wstreambuf *)0x0" ( (type_descriptor "wstreambuf *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;)) (expression_statement "puVar1 = PTR_vtable_004c54d4 + 0x20;" (assignment_expression "puVar1 = PTR_vtable_004c54d4 + 0x20" identifier = (binary_expression "PTR_vtable_004c54d4 + 0x20" identifier + number_literal)) ;) (expression_statement "*(undefined **)this = PTR_vtable_004c54d4 + 0xc;" (assignment_expression "*(undefined **)this = PTR_vtable_004c54d4 + 0xc" (pointer_expression "*(undefined **)this" * (cast_expression "(undefined **)this" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = (binary_expression "PTR_vtable_004c54d4 + 0xc" identifier + number_literal)) ;) comment (expression_statement "*(undefined **)(this + 0x94) = puVar1;" (assignment_expression "*(undefined **)(this + 0x94) = puVar1" (pointer_expression "*(undefined **)(this + 0x94)" * (cast_expression "(undefined **)(this + 0x94)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x94)" ( (binary_expression "this + 0x94" identifier + number_literal) )))) = identifier) ;) (labeled_statement "wfilebuf::wfilebuf((wfilebuf *)(this + 8));" statement_identifier : (ERROR ":" :) (expression_statement "wfilebuf((wfilebuf *)(this + 8));" (call_expression "wfilebuf((wfilebuf *)(this + 8))" identifier (argument_list "((wfilebuf *)(this + 8))" ( (cast_expression "(wfilebuf *)(this + 8)" ( (type_descriptor "wfilebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))) ))) ;)) comment (labeled_statement "wios::init((wios *)this_00,(wstreambuf *)(this + 8));" statement_identifier : (ERROR ":" :) (expression_statement "init((wios *)this_00,(wstreambuf *)(this + 8));" (call_expression "init((wios *)this_00,(wstreambuf *)(this + 8))" identifier (argument_list "((wios *)this_00,(wstreambuf *)(this + 8))" ( (cast_expression "(wios *)this_00" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(wstreambuf *)(this + 8)" ( (type_descriptor "wstreambuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))) ))) ;)) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00370e9c(undefined4 *param_1)\n\n{\n  undefined *puVar1;\n  ios_base *this;\n  \n  this = (ios_base *)(param_1 + 0x25);\n  std::ios_base::ios_base(this);\n  param_1[0x41] = 0;\n  param_1[0x42] = 0;\n  *(undefined1 *)(param_1 + 0x43) = 0;\n  puVar1 = PTR_DAT_004c54d8;\n  param_1[0x44] = 0;\n  param_1[0x45] = 0;\n  param_1[0x46] = 0;\n  param_1[0x47] = 0;\n  *param_1 = puVar1 + 0xc;\n  param_1[0x25] = puVar1 + 0x20;\n                    \n  param_1[1] = 0;\n  std::wios::init((wios *)this,(wstreambuf *)0x0);\n  puVar1 = PTR_vtable_004c54d4 + 0x20;\n  *param_1 = PTR_vtable_004c54d4 + 0xc;\n                    \n  param_1[0x25] = puVar1;\n  std::wfilebuf::wfilebuf((wfilebuf *)(param_1 + 2));\n                    \n  std::wios::init((wios *)this,(wstreambuf *)(param_1 + 2));\n  return;\n}\n\n" (function_definition "void FUN_00370e9c(undefined4 *param_1)\n\n{\n  undefined *puVar1;\n  ios_base *this;\n  \n  this = (ios_base *)(param_1 + 0x25);\n  std::ios_base::ios_base(this);\n  param_1[0x41] = 0;\n  param_1[0x42] = 0;\n  *(undefined1 *)(param_1 + 0x43) = 0;\n  puVar1 = PTR_DAT_004c54d8;\n  param_1[0x44] = 0;\n  param_1[0x45] = 0;\n  param_1[0x46] = 0;\n  param_1[0x47] = 0;\n  *param_1 = puVar1 + 0xc;\n  param_1[0x25] = puVar1 + 0x20;\n                    \n  param_1[1] = 0;\n  std::wios::init((wios *)this,(wstreambuf *)0x0);\n  puVar1 = PTR_vtable_004c54d4 + 0x20;\n  *param_1 = PTR_vtable_004c54d4 + 0xc;\n                    \n  param_1[0x25] = puVar1;\n  std::wfilebuf::wfilebuf((wfilebuf *)(param_1 + 2));\n                    \n  std::wios::init((wios *)this,(wstreambuf *)(param_1 + 2));\n  return;\n}" primitive_type (function_declarator "FUN_00370e9c(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  ios_base *this;\n  \n  this = (ios_base *)(param_1 + 0x25);\n  std::ios_base::ios_base(this);\n  param_1[0x41] = 0;\n  param_1[0x42] = 0;\n  *(undefined1 *)(param_1 + 0x43) = 0;\n  puVar1 = PTR_DAT_004c54d8;\n  param_1[0x44] = 0;\n  param_1[0x45] = 0;\n  param_1[0x46] = 0;\n  param_1[0x47] = 0;\n  *param_1 = puVar1 + 0xc;\n  param_1[0x25] = puVar1 + 0x20;\n                    \n  param_1[1] = 0;\n  std::wios::init((wios *)this,(wstreambuf *)0x0);\n  puVar1 = PTR_vtable_004c54d4 + 0x20;\n  *param_1 = PTR_vtable_004c54d4 + 0xc;\n                    \n  param_1[0x25] = puVar1;\n  std::wfilebuf::wfilebuf((wfilebuf *)(param_1 + 2));\n                    \n  std::wios::init((wios *)this,(wstreambuf *)(param_1 + 2));\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "ios_base *this;" type_identifier (pointer_declarator "*this" * identifier) ;) (expression_statement "this = (ios_base *)(param_1 + 0x25);" (assignment_expression "this = (ios_base *)(param_1 + 0x25)" identifier = (cast_expression "(ios_base *)(param_1 + 0x25)" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x25)" ( (binary_expression "param_1 + 0x25" identifier + number_literal) )))) ;) (labeled_statement "std::ios_base::ios_base(this);" statement_identifier : (ERROR ":" :) (labeled_statement "ios_base::ios_base(this);" statement_identifier : (ERROR ":" :) (expression_statement "ios_base(this);" (call_expression "ios_base(this)" identifier (argument_list "(this)" ( identifier ))) ;))) (expression_statement "param_1[0x41] = 0;" (assignment_expression "param_1[0x41] = 0" (subscript_expression "param_1[0x41]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x42] = 0;" (assignment_expression "param_1[0x42] = 0" (subscript_expression "param_1[0x42]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined1 *)(param_1 + 0x43) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0x43) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0x43)" * (cast_expression "(undefined1 *)(param_1 + 0x43)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x43)" ( (binary_expression "param_1 + 0x43" identifier + number_literal) )))) = number_literal) ;) (expression_statement "puVar1 = PTR_DAT_004c54d8;" (assignment_expression "puVar1 = PTR_DAT_004c54d8" identifier = identifier) ;) (expression_statement "param_1[0x44] = 0;" (assignment_expression "param_1[0x44] = 0" (subscript_expression "param_1[0x44]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x45] = 0;" (assignment_expression "param_1[0x45] = 0" (subscript_expression "param_1[0x45]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x46] = 0;" (assignment_expression "param_1[0x46] = 0" (subscript_expression "param_1[0x46]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x47] = 0;" (assignment_expression "param_1[0x47] = 0" (subscript_expression "param_1[0x47]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_1 = puVar1 + 0xc;" (assignment_expression "*param_1 = puVar1 + 0xc" (pointer_expression "*param_1" * identifier) = (binary_expression "puVar1 + 0xc" identifier + number_literal)) ;) (expression_statement "param_1[0x25] = puVar1 + 0x20;" (assignment_expression "param_1[0x25] = puVar1 + 0x20" (subscript_expression "param_1[0x25]" identifier [ number_literal ]) = (binary_expression "puVar1 + 0x20" identifier + number_literal)) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (labeled_statement "std::wios::init((wios *)this,(wstreambuf *)0x0);" statement_identifier : (ERROR ":" :) (labeled_statement "wios::init((wios *)this,(wstreambuf *)0x0);" statement_identifier : (ERROR ":" :) (expression_statement "init((wios *)this,(wstreambuf *)0x0);" (call_expression "init((wios *)this,(wstreambuf *)0x0)" identifier (argument_list "((wios *)this,(wstreambuf *)0x0)" ( (cast_expression "(wios *)this" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(wstreambuf *)0x0" ( (type_descriptor "wstreambuf *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;))) (expression_statement "puVar1 = PTR_vtable_004c54d4 + 0x20;" (assignment_expression "puVar1 = PTR_vtable_004c54d4 + 0x20" identifier = (binary_expression "PTR_vtable_004c54d4 + 0x20" identifier + number_literal)) ;) (expression_statement "*param_1 = PTR_vtable_004c54d4 + 0xc;" (assignment_expression "*param_1 = PTR_vtable_004c54d4 + 0xc" (pointer_expression "*param_1" * identifier) = (binary_expression "PTR_vtable_004c54d4 + 0xc" identifier + number_literal)) ;) (expression_statement "param_1[0x25] = puVar1;" (assignment_expression "param_1[0x25] = puVar1" (subscript_expression "param_1[0x25]" identifier [ number_literal ]) = identifier) ;) (labeled_statement "std::wfilebuf::wfilebuf((wfilebuf *)(param_1 + 2));" statement_identifier : (ERROR ":" :) (labeled_statement "wfilebuf::wfilebuf((wfilebuf *)(param_1 + 2));" statement_identifier : (ERROR ":" :) (expression_statement "wfilebuf((wfilebuf *)(param_1 + 2));" (call_expression "wfilebuf((wfilebuf *)(param_1 + 2))" identifier (argument_list "((wfilebuf *)(param_1 + 2))" ( (cast_expression "(wfilebuf *)(param_1 + 2)" ( (type_descriptor "wfilebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))) ))) ;))) (labeled_statement "std::wios::init((wios *)this,(wstreambuf *)(param_1 + 2));" statement_identifier : (ERROR ":" :) (labeled_statement "wios::init((wios *)this,(wstreambuf *)(param_1 + 2));" statement_identifier : (ERROR ":" :) (expression_statement "init((wios *)this,(wstreambuf *)(param_1 + 2));" (call_expression "init((wios *)this,(wstreambuf *)(param_1 + 2))" identifier (argument_list "((wios *)this,(wstreambuf *)(param_1 + 2))" ( (cast_expression "(wios *)this" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(wstreambuf *)(param_1 + 2)" ( (type_descriptor "wstreambuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))) ))) ;))) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (labeled_statement statement_identifier : (ERROR :) (labeled_statement statement_identifier : (ERROR :) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;))) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = 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 *)) ) IDENT) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ))) ;))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (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) ))) ))) ;))) (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 *)) ) IDENT) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) ))) ;))) (return_statement return ;) })))
(function_definition "void FUN_00370e9c(undefined4 *param_1)\n\n{\n  undefined *puVar1;\n  ios_base *this;\n  \n  this = (ios_base *)(param_1 + 0x25);\n  std::ios_base::ios_base(this);\n  param_1[0x41] = 0;\n  param_1[0x42] = 0;\n  *(undefined1 *)(param_1 + 0x43) = 0;\n  puVar1 = PTR_DAT_004c54d8;\n  param_1[0x44] = 0;\n  param_1[0x45] = 0;\n  param_1[0x46] = 0;\n  param_1[0x47] = 0;\n  *param_1 = puVar1 + 0xc;\n  param_1[0x25] = puVar1 + 0x20;\n                    \n  param_1[1] = 0;\n  std::wios::init((wios *)this,(wstreambuf *)0x0);\n  puVar1 = PTR_vtable_004c54d4 + 0x20;\n  *param_1 = PTR_vtable_004c54d4 + 0xc;\n                    \n  param_1[0x25] = puVar1;\n  std::wfilebuf::wfilebuf((wfilebuf *)(param_1 + 2));\n                    \n  std::wios::init((wios *)this,(wstreambuf *)(param_1 + 2));\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00370e9c(undefined4 *param_1)" (identifier "FUN_00370e9c") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  ios_base *this;\n  \n  this = (ios_base *)(param_1 + 0x25);\n  std::ios_base::ios_base(this);\n  param_1[0x41] = 0;\n  param_1[0x42] = 0;\n  *(undefined1 *)(param_1 + 0x43) = 0;\n  puVar1 = PTR_DAT_004c54d8;\n  param_1[0x44] = 0;\n  param_1[0x45] = 0;\n  param_1[0x46] = 0;\n  param_1[0x47] = 0;\n  *param_1 = puVar1 + 0xc;\n  param_1[0x25] = puVar1 + 0x20;\n                    \n  param_1[1] = 0;\n  std::wios::init((wios *)this,(wstreambuf *)0x0);\n  puVar1 = PTR_vtable_004c54d4 + 0x20;\n  *param_1 = PTR_vtable_004c54d4 + 0xc;\n                    \n  param_1[0x25] = puVar1;\n  std::wfilebuf::wfilebuf((wfilebuf *)(param_1 + 2));\n                    \n  std::wios::init((wios *)this,(wstreambuf *)(param_1 + 2));\n  return;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "ios_base *this;" (type_identifier "ios_base") (pointer_declarator "*this" (* "*") (identifier "this")) (; ";")) (expression_statement "this = (ios_base *)(param_1 + 0x25);" (assignment_expression "this = (ios_base *)(param_1 + 0x25)" (identifier "this") (= "=") (cast_expression "(ios_base *)(param_1 + 0x25)" (( "(") (type_descriptor "ios_base *" (type_identifier "ios_base") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x25)" (( "(") (binary_expression "param_1 + 0x25" (identifier "param_1") (+ "+") (number_literal "0x25")) () ")")))) (; ";")) (labeled_statement "std::ios_base::ios_base(this);" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "ios_base::ios_base(this);" (statement_identifier "ios_base") (: ":") (ERROR ":" (: ":")) (expression_statement "ios_base(this);" (call_expression "ios_base(this)" (identifier "ios_base") (argument_list "(this)" (( "(") (identifier "this") () ")"))) (; ";")))) (expression_statement "param_1[0x41] = 0;" (assignment_expression "param_1[0x41] = 0" (subscript_expression "param_1[0x41]" (identifier "param_1") ([ "[") (number_literal "0x41") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[0x42] = 0;" (assignment_expression "param_1[0x42] = 0" (subscript_expression "param_1[0x42]" (identifier "param_1") ([ "[") (number_literal "0x42") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined1 *)(param_1 + 0x43) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0x43) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0x43)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0x43)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x43)" (( "(") (binary_expression "param_1 + 0x43" (identifier "param_1") (+ "+") (number_literal "0x43")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1 = PTR_DAT_004c54d8;" (assignment_expression "puVar1 = PTR_DAT_004c54d8" (identifier "puVar1") (= "=") (identifier "PTR_DAT_004c54d8")) (; ";")) (expression_statement "param_1[0x44] = 0;" (assignment_expression "param_1[0x44] = 0" (subscript_expression "param_1[0x44]" (identifier "param_1") ([ "[") (number_literal "0x44") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[0x45] = 0;" (assignment_expression "param_1[0x45] = 0" (subscript_expression "param_1[0x45]" (identifier "param_1") ([ "[") (number_literal "0x45") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[0x46] = 0;" (assignment_expression "param_1[0x46] = 0" (subscript_expression "param_1[0x46]" (identifier "param_1") ([ "[") (number_literal "0x46") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[0x47] = 0;" (assignment_expression "param_1[0x47] = 0" (subscript_expression "param_1[0x47]" (identifier "param_1") ([ "[") (number_literal "0x47") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*param_1 = puVar1 + 0xc;" (assignment_expression "*param_1 = puVar1 + 0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "puVar1 + 0xc" (identifier "puVar1") (+ "+") (number_literal "0xc"))) (; ";")) (expression_statement "param_1[0x25] = puVar1 + 0x20;" (assignment_expression "param_1[0x25] = puVar1 + 0x20" (subscript_expression "param_1[0x25]" (identifier "param_1") ([ "[") (number_literal "0x25") (] "]")) (= "=") (binary_expression "puVar1 + 0x20" (identifier "puVar1") (+ "+") (number_literal "0x20"))) (; ";")) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (labeled_statement "std::wios::init((wios *)this,(wstreambuf *)0x0);" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "wios::init((wios *)this,(wstreambuf *)0x0);" (statement_identifier "wios") (: ":") (ERROR ":" (: ":")) (expression_statement "init((wios *)this,(wstreambuf *)0x0);" (call_expression "init((wios *)this,(wstreambuf *)0x0)" (identifier "init") (argument_list "((wios *)this,(wstreambuf *)0x0)" (( "(") (cast_expression "(wios *)this" (( "(") (type_descriptor "wios *" (type_identifier "wios") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "this")) (, ",") (cast_expression "(wstreambuf *)0x0" (( "(") (type_descriptor "wstreambuf *" (type_identifier "wstreambuf") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) () ")"))) (; ";")))) (expression_statement "puVar1 = PTR_vtable_004c54d4 + 0x20;" (assignment_expression "puVar1 = PTR_vtable_004c54d4 + 0x20" (identifier "puVar1") (= "=") (binary_expression "PTR_vtable_004c54d4 + 0x20" (identifier "PTR_vtable_004c54d4") (+ "+") (number_literal "0x20"))) (; ";")) (expression_statement "*param_1 = PTR_vtable_004c54d4 + 0xc;" (assignment_expression "*param_1 = PTR_vtable_004c54d4 + 0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "PTR_vtable_004c54d4 + 0xc" (identifier "PTR_vtable_004c54d4") (+ "+") (number_literal "0xc"))) (; ";")) (expression_statement "param_1[0x25] = puVar1;" (assignment_expression "param_1[0x25] = puVar1" (subscript_expression "param_1[0x25]" (identifier "param_1") ([ "[") (number_literal "0x25") (] "]")) (= "=") (identifier "puVar1")) (; ";")) (labeled_statement "std::wfilebuf::wfilebuf((wfilebuf *)(param_1 + 2));" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "wfilebuf::wfilebuf((wfilebuf *)(param_1 + 2));" (statement_identifier "wfilebuf") (: ":") (ERROR ":" (: ":")) (expression_statement "wfilebuf((wfilebuf *)(param_1 + 2));" (call_expression "wfilebuf((wfilebuf *)(param_1 + 2))" (identifier "wfilebuf") (argument_list "((wfilebuf *)(param_1 + 2))" (( "(") (cast_expression "(wfilebuf *)(param_1 + 2)" (( "(") (type_descriptor "wfilebuf *" (type_identifier "wfilebuf") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")"))) () ")"))) (; ";")))) (labeled_statement "std::wios::init((wios *)this,(wstreambuf *)(param_1 + 2));" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "wios::init((wios *)this,(wstreambuf *)(param_1 + 2));" (statement_identifier "wios") (: ":") (ERROR ":" (: ":")) (expression_statement "init((wios *)this,(wstreambuf *)(param_1 + 2));" (call_expression "init((wios *)this,(wstreambuf *)(param_1 + 2))" (identifier "init") (argument_list "((wios *)this,(wstreambuf *)(param_1 + 2))" (( "(") (cast_expression "(wios *)this" (( "(") (type_descriptor "wios *" (type_identifier "wios") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "this")) (, ",") (cast_expression "(wstreambuf *)(param_1 + 2)" (( "(") (type_descriptor "wstreambuf *" (type_identifier "wstreambuf") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")"))) () ")"))) (; ";")))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::wifstream::wifstream() */

void __thiscall std::function_1::function_1(function_1 *var_1)

{
  type_1 *var_2;
  type_2 *this_00;
  
  this_00 = (type_2 *)(var_1 + 0x94);
  ios_base::type_2(this_00);
  *(type_3 *)(var_1 + 0x104) = 0;
  *(type_3 *)(var_1 + 0x108) = 0;
  var_1[0x10c] = (function_1)0x0;
  var_2 = PTR_construction_vtable_004c54d8;
  *(type_3 *)(var_1 + 0x110) = 0;
  *(type_3 *)(var_1 + 0x114) = 0;
  *(type_3 *)(var_1 + 0x118) = 0;
  *(type_3 *)(var_1 + 0x11c) = 0;
  *(type_1 **)var_1 = var_2 + 0xc;
  *(type_1 **)(var_1 + 0x94) = var_2 + 0x20;
                    /* try { // try from 00370f1c to 00370f23 has its CatchHandler @ 00370f80 */
  *(type_3 *)(var_1 + 4) = 0;
  wios::var_3((type_4 *)this_00,(type_5 *)0x0);
  var_2 = var_4 + 0x20;
  *(type_1 **)var_1 = var_4 + 0xc;
                    /* try { // try from 00370f44 to 00370f4b has its CatchHandler @ 00370fdc */
  *(type_1 **)(var_1 + 0x94) = var_2;
  wfilebuf::var_5((var_5 *)(var_1 + 8));
                    /* try { // try from 00370f58 to 00370f5f has its CatchHandler @ 00370fb0 */
  wios::var_3((type_4 *)this_00,(type_5 *)(var_1 + 8));
  return;
}


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

void MASKED(undefined4 *param_1)

{
  undefined *puVar1;
  ios_base *this;
  
  this = (ios_base *)(param_1 + 0x25);
  std::ios_base::ios_base(this);
  param_1[0x41] = 0;
  param_1[0x42] = 0;
  *(undefined1 *)(param_1 + 0x43) = 0;
  puVar1 = PTR_DAT_004c54d8;
  param_1[0x44] = 0;
  param_1[0x45] = 0;
  param_1[0x46] = 0;
  param_1[0x47] = 0;
  *param_1 = puVar1 + 0xc;
  param_1[0x25] = puVar1 + 0x20;
                    /* try { // try from 00370f1c to 00370f23 has its CatchHandler @ 00370f80 */
  param_1[1] = 0;
  std::wios::init((wios *)this,(wstreambuf *)0x0);
  puVar1 = PTR_vtable_004c54d4 + 0x20;
  *param_1 = PTR_vtable_004c54d4 + 0xc;
                    /* try { // try from 00370f44 to 00370f4b has its CatchHandler @ 00370fdc */
  param_1[0x25] = puVar1;
  std::wfilebuf::wfilebuf((wfilebuf *)(param_1 + 2));
                    /* try { // try from 00370f58 to 00370f5f has its CatchHandler @ 00370fb0 */
  std::wios::init((wios *)this,(wstreambuf *)(param_1 + 2));
  return;
}

