
/* std::wiostream::wiostream(std::wstreambuf*) */

void __thiscall std::wiostream::wiostream(wiostream *this,wstreambuf *param_1)

{
  undefined *puVar1;
  undefined *puVar2;
  wiostream *pwVar3;
  
  pwVar3 = this + 0xc;
  (*(code *)PTR_ios_base_004c22a0)(pwVar3);
  *(undefined4 *)(this + 0x7c) = 0;
  *(undefined4 *)(this + 0x80) = 0;
  this[0x84] = (wiostream)0x0;
  puVar1 = PTR_construction_vtable_004c57f4;
  puVar2 = PTR_init_004c5210;
  *(undefined4 *)(this + 0x88) = 0;
  *(undefined4 *)(this + 0x8c) = 0;
  *(undefined4 *)(this + 0x90) = 0;
  *(undefined4 *)(this + 0x94) = 0;
  *(undefined **)this = puVar1 + 0xc;
  *(undefined **)(this + 0xc) = puVar1 + 0x20;
                    /* try { // try from 003ae738 to 003ae73f has its CatchHandler @ 003ae7a4 */
  *(undefined4 *)(this + 4) = 0;
  (*(code *)puVar2)(pwVar3,param_1);
  puVar2 = PTR_init_004c5210;
  puVar1 = PTR_construction_vtable_004c57f0 + 0x20;
  *(undefined **)(this + 8) = PTR_construction_vtable_004c57f0 + 0xc;
                    /* try { // try from 003ae760 to 003ae767 has its CatchHandler @ 003ae7d4 */
  *(undefined **)(this + 0xc) = puVar1;
  (*(code *)puVar2)(pwVar3,param_1);
  puVar1 = PTR_vtable_004c57fc + 0x34;
  puVar2 = PTR_vtable_004c57fc + 0x20;
  *(undefined **)this = PTR_vtable_004c57fc + 0xc;
  *(undefined **)(this + 0xc) = puVar1;
  *(undefined **)(this + 8) = puVar2;
  return;
}



void FUN_003ae6b8(undefined4 *param_1,undefined4 param_2)

{
  undefined *puVar1;
  undefined *puVar2;
  undefined4 *puVar3;
  
  puVar3 = param_1 + 3;
  (*(code *)PTR_ios_base_004c22a0)(puVar3);
  param_1[0x1f] = 0;
  param_1[0x20] = 0;
  *(undefined1 *)(param_1 + 0x21) = 0;
  puVar1 = PTR_DAT_004c57f4;
  puVar2 = PTR_init_004c5210;
  param_1[0x22] = 0;
  param_1[0x23] = 0;
  param_1[0x24] = 0;
  param_1[0x25] = 0;
  *param_1 = puVar1 + 0xc;
  param_1[3] = puVar1 + 0x20;
                    /* try { // try from 003ae738 to 003ae73f has its CatchHandler @ 003ae7a4 */
  param_1[1] = 0;
  (*(code *)puVar2)(puVar3,param_2);
  puVar2 = PTR_init_004c5210;
  puVar1 = PTR_DAT_004c57f0 + 0x20;
  param_1[2] = PTR_DAT_004c57f0 + 0xc;
                    /* try { // try from 003ae760 to 003ae767 has its CatchHandler @ 003ae7d4 */
  param_1[3] = puVar1;
  (*(code *)puVar2)(puVar3,param_2);
  puVar1 = PTR_vtable_004c57fc + 0x34;
  puVar2 = PTR_vtable_004c57fc + 0x20;
  *param_1 = PTR_vtable_004c57fc + 0xc;
  param_1[3] = puVar1;
  param_1[2] = puVar2;
  return;
}


lui gp,0x12
addiu gp,gp,-0x5478
addu gp,gp,t9
addiu sp,sp,-0x30
lw t9,-0x6fa0(gp)
sw s1,0x20(sp)
addiu s1,a0,0xc
sw gp,0x10(sp)
sw s3,0x28(sp)
sw s2,0x24(sp)
or s2,a1,zero
sw s0,0x1c(sp)
or s0,a0,zero
sw ra,0x2c(sp)
jalr t9
_or a0,s1,zero
or a1,s2,zero
lw gp,0x10(sp)
or a0,s1,zero
sw zero,0x7c(s0)
sw zero,0x80(s0)
sb zero,0x84(s0)
lw v0,-0x3a4c(gp)
lw t9,-0x4030(gp)
sw zero,0x88(s0)
addiu s3,v0,0xc
sw zero,0x8c(s0)
addiu v0,v0,0x20
sw zero,0x90(s0)
sw zero,0x94(s0)
sw s3,0x0(s0)
sw v0,0xc(s0)
jalr t9
_sw zero,0x4(s0)
lw gp,0x10(sp)
or a1,s2,zero
or a0,s1,zero
lw v0,-0x3a50(gp)
lw t9,-0x4030(gp)
addiu v1,v0,0xc
addiu v0,v0,0x20
sw v1,0x8(s0)
jalr t9
_sw v0,0xc(s0)
lw gp,0x10(sp)
lw ra,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw v0,-0x3a44(gp)
lw s1,0x20(sp)
addiu a0,v0,0xc
addiu v1,v0,0x34
addiu v0,v0,0x20
sw a0,0x0(s0)
sw v1,0xc(s0)
sw v0,0x8(s0)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
(translation_unit "void FUN_003ae6b8(undefined4 *param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  \n  puVar3 = param_1 + 3;\n  (*(code *)PTR_ios_base_004c22a0)(puVar3);\n  param_1[0x1f] = 0;\n  param_1[0x20] = 0;\n  *(undefined1 *)(param_1 + 0x21) = 0;\n  puVar1 = PTR_DAT_004c57f4;\n  puVar2 = PTR_init_004c5210;\n  param_1[0x22] = 0;\n  param_1[0x23] = 0;\n  param_1[0x24] = 0;\n  param_1[0x25] = 0;\n  *param_1 = puVar1 + 0xc;\n  param_1[3] = puVar1 + 0x20;\n                    /* try { // try from 003ae738 to 003ae73f has its CatchHandler @ 003ae7a4 */\n  param_1[1] = 0;\n  (*(code *)puVar2)(puVar3,param_2);\n  puVar2 = PTR_init_004c5210;\n  puVar1 = PTR_DAT_004c57f0 + 0x20;\n  param_1[2] = PTR_DAT_004c57f0 + 0xc;\n                    /* try { // try from 003ae760 to 003ae767 has its CatchHandler @ 003ae7d4 */\n  param_1[3] = puVar1;\n  (*(code *)puVar2)(puVar3,param_2);\n  puVar1 = PTR_vtable_004c57fc + 0x34;\n  puVar2 = PTR_vtable_004c57fc + 0x20;\n  *param_1 = PTR_vtable_004c57fc + 0xc;\n  param_1[3] = puVar1;\n  param_1[2] = puVar2;\n  return;\n}\n\n" (function_definition "void FUN_003ae6b8(undefined4 *param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  \n  puVar3 = param_1 + 3;\n  (*(code *)PTR_ios_base_004c22a0)(puVar3);\n  param_1[0x1f] = 0;\n  param_1[0x20] = 0;\n  *(undefined1 *)(param_1 + 0x21) = 0;\n  puVar1 = PTR_DAT_004c57f4;\n  puVar2 = PTR_init_004c5210;\n  param_1[0x22] = 0;\n  param_1[0x23] = 0;\n  param_1[0x24] = 0;\n  param_1[0x25] = 0;\n  *param_1 = puVar1 + 0xc;\n  param_1[3] = puVar1 + 0x20;\n                    /* try { // try from 003ae738 to 003ae73f has its CatchHandler @ 003ae7a4 */\n  param_1[1] = 0;\n  (*(code *)puVar2)(puVar3,param_2);\n  puVar2 = PTR_init_004c5210;\n  puVar1 = PTR_DAT_004c57f0 + 0x20;\n  param_1[2] = PTR_DAT_004c57f0 + 0xc;\n                    /* try { // try from 003ae760 to 003ae767 has its CatchHandler @ 003ae7d4 */\n  param_1[3] = puVar1;\n  (*(code *)puVar2)(puVar3,param_2);\n  puVar1 = PTR_vtable_004c57fc + 0x34;\n  puVar2 = PTR_vtable_004c57fc + 0x20;\n  *param_1 = PTR_vtable_004c57fc + 0xc;\n  param_1[3] = puVar1;\n  param_1[2] = puVar2;\n  return;\n}" primitive_type (function_declarator "FUN_003ae6b8(undefined4 *param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  \n  puVar3 = param_1 + 3;\n  (*(code *)PTR_ios_base_004c22a0)(puVar3);\n  param_1[0x1f] = 0;\n  param_1[0x20] = 0;\n  *(undefined1 *)(param_1 + 0x21) = 0;\n  puVar1 = PTR_DAT_004c57f4;\n  puVar2 = PTR_init_004c5210;\n  param_1[0x22] = 0;\n  param_1[0x23] = 0;\n  param_1[0x24] = 0;\n  param_1[0x25] = 0;\n  *param_1 = puVar1 + 0xc;\n  param_1[3] = puVar1 + 0x20;\n                    /* try { // try from 003ae738 to 003ae73f has its CatchHandler @ 003ae7a4 */\n  param_1[1] = 0;\n  (*(code *)puVar2)(puVar3,param_2);\n  puVar2 = PTR_init_004c5210;\n  puVar1 = PTR_DAT_004c57f0 + 0x20;\n  param_1[2] = PTR_DAT_004c57f0 + 0xc;\n                    /* try { // try from 003ae760 to 003ae767 has its CatchHandler @ 003ae7d4 */\n  param_1[3] = puVar1;\n  (*(code *)puVar2)(puVar3,param_2);\n  puVar1 = PTR_vtable_004c57fc + 0x34;\n  puVar2 = PTR_vtable_004c57fc + 0x20;\n  *param_1 = PTR_vtable_004c57fc + 0xc;\n  param_1[3] = puVar1;\n  param_1[2] = puVar2;\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "puVar3 = param_1 + 3;" (assignment_expression "puVar3 = param_1 + 3" identifier = (binary_expression "param_1 + 3" identifier + number_literal)) ;) (expression_statement "(*(code *)PTR_ios_base_004c22a0)(puVar3);" (call_expression "(*(code *)PTR_ios_base_004c22a0)(puVar3)" (parenthesized_expression "(*(code *)PTR_ios_base_004c22a0)" ( (pointer_expression "*(code *)PTR_ios_base_004c22a0" * (cast_expression "(code *)PTR_ios_base_004c22a0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar3)" ( identifier ))) ;) (expression_statement "param_1[0x1f] = 0;" (assignment_expression "param_1[0x1f] = 0" (subscript_expression "param_1[0x1f]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x20] = 0;" (assignment_expression "param_1[0x20] = 0" (subscript_expression "param_1[0x20]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined1 *)(param_1 + 0x21) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0x21) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0x21)" * (cast_expression "(undefined1 *)(param_1 + 0x21)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x21)" ( (binary_expression "param_1 + 0x21" identifier + number_literal) )))) = number_literal) ;) (expression_statement "puVar1 = PTR_DAT_004c57f4;" (assignment_expression "puVar1 = PTR_DAT_004c57f4" identifier = identifier) ;) (expression_statement "puVar2 = PTR_init_004c5210;" (assignment_expression "puVar2 = PTR_init_004c5210" identifier = identifier) ;) (expression_statement "param_1[0x22] = 0;" (assignment_expression "param_1[0x22] = 0" (subscript_expression "param_1[0x22]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x23] = 0;" (assignment_expression "param_1[0x23] = 0" (subscript_expression "param_1[0x23]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x24] = 0;" (assignment_expression "param_1[0x24] = 0" (subscript_expression "param_1[0x24]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x25] = 0;" (assignment_expression "param_1[0x25] = 0" (subscript_expression "param_1[0x25]" 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[3] = puVar1 + 0x20;" (assignment_expression "param_1[3] = puVar1 + 0x20" (subscript_expression "param_1[3]" 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) ;) (expression_statement "(*(code *)puVar2)(puVar3,param_2);" (call_expression "(*(code *)puVar2)(puVar3,param_2)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar3,param_2)" ( identifier , identifier ))) ;) (expression_statement "puVar2 = PTR_init_004c5210;" (assignment_expression "puVar2 = PTR_init_004c5210" identifier = identifier) ;) (expression_statement "puVar1 = PTR_DAT_004c57f0 + 0x20;" (assignment_expression "puVar1 = PTR_DAT_004c57f0 + 0x20" identifier = (binary_expression "PTR_DAT_004c57f0 + 0x20" identifier + number_literal)) ;) (expression_statement "param_1[2] = PTR_DAT_004c57f0 + 0xc;" (assignment_expression "param_1[2] = PTR_DAT_004c57f0 + 0xc" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (binary_expression "PTR_DAT_004c57f0 + 0xc" identifier + number_literal)) ;) comment (expression_statement "param_1[3] = puVar1;" (assignment_expression "param_1[3] = puVar1" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "(*(code *)puVar2)(puVar3,param_2);" (call_expression "(*(code *)puVar2)(puVar3,param_2)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar3,param_2)" ( identifier , identifier ))) ;) (expression_statement "puVar1 = PTR_vtable_004c57fc + 0x34;" (assignment_expression "puVar1 = PTR_vtable_004c57fc + 0x34" identifier = (binary_expression "PTR_vtable_004c57fc + 0x34" identifier + number_literal)) ;) (expression_statement "puVar2 = PTR_vtable_004c57fc + 0x20;" (assignment_expression "puVar2 = PTR_vtable_004c57fc + 0x20" identifier = (binary_expression "PTR_vtable_004c57fc + 0x20" identifier + number_literal)) ;) (expression_statement "*param_1 = PTR_vtable_004c57fc + 0xc;" (assignment_expression "*param_1 = PTR_vtable_004c57fc + 0xc" (pointer_expression "*param_1" * identifier) = (binary_expression "PTR_vtable_004c57fc + 0xc" identifier + number_literal)) ;) (expression_statement "param_1[3] = puVar1;" (assignment_expression "param_1[3] = puVar1" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[2] = puVar2;" (assignment_expression "param_1[2] = puVar2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* std::wiostream::wiostream(std::wstreambuf*) */\n\nvoid __thiscall std::wiostream::wiostream(wiostream *this,wstreambuf *param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  wiostream *pwVar3;\n  \n  pwVar3 = this + 0xc;\n  (*(code *)PTR_ios_base_004c22a0)(pwVar3);\n  *(undefined4 *)(this + 0x7c) = 0;\n  *(undefined4 *)(this + 0x80) = 0;\n  this[0x84] = (wiostream)0x0;\n  puVar1 = PTR_construction_vtable_004c57f4;\n  puVar2 = PTR_init_004c5210;\n  *(undefined4 *)(this + 0x88) = 0;\n  *(undefined4 *)(this + 0x8c) = 0;\n  *(undefined4 *)(this + 0x90) = 0;\n  *(undefined4 *)(this + 0x94) = 0;\n  *(undefined **)this = puVar1 + 0xc;\n  *(undefined **)(this + 0xc) = puVar1 + 0x20;\n                    /* try { // try from 003ae738 to 003ae73f has its CatchHandler @ 003ae7a4 */\n  *(undefined4 *)(this + 4) = 0;\n  (*(code *)puVar2)(pwVar3,param_1);\n  puVar2 = PTR_init_004c5210;\n  puVar1 = PTR_construction_vtable_004c57f0 + 0x20;\n  *(undefined **)(this + 8) = PTR_construction_vtable_004c57f0 + 0xc;\n                    /* try { // try from 003ae760 to 003ae767 has its CatchHandler @ 003ae7d4 */\n  *(undefined **)(this + 0xc) = puVar1;\n  (*(code *)puVar2)(pwVar3,param_1);\n  puVar1 = PTR_vtable_004c57fc + 0x34;\n  puVar2 = PTR_vtable_004c57fc + 0x20;\n  *(undefined **)this = PTR_vtable_004c57fc + 0xc;\n  *(undefined **)(this + 0xc) = puVar1;\n  *(undefined **)(this + 8) = puVar2;\n  return;\n}\n\n" comment (function_definition "void __thiscall std::wiostream::wiostream(wiostream *this,wstreambuf *param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  wiostream *pwVar3;\n  \n  pwVar3 = this + 0xc;\n  (*(code *)PTR_ios_base_004c22a0)(pwVar3);\n  *(undefined4 *)(this + 0x7c) = 0;\n  *(undefined4 *)(this + 0x80) = 0;\n  this[0x84] = (wiostream)0x0;\n  puVar1 = PTR_construction_vtable_004c57f4;\n  puVar2 = PTR_init_004c5210;\n  *(undefined4 *)(this + 0x88) = 0;\n  *(undefined4 *)(this + 0x8c) = 0;\n  *(undefined4 *)(this + 0x90) = 0;\n  *(undefined4 *)(this + 0x94) = 0;\n  *(undefined **)this = puVar1 + 0xc;\n  *(undefined **)(this + 0xc) = puVar1 + 0x20;\n                    /* try { // try from 003ae738 to 003ae73f has its CatchHandler @ 003ae7a4 */\n  *(undefined4 *)(this + 4) = 0;\n  (*(code *)puVar2)(pwVar3,param_1);\n  puVar2 = PTR_init_004c5210;\n  puVar1 = PTR_construction_vtable_004c57f0 + 0x20;\n  *(undefined **)(this + 8) = PTR_construction_vtable_004c57f0 + 0xc;\n                    /* try { // try from 003ae760 to 003ae767 has its CatchHandler @ 003ae7d4 */\n  *(undefined **)(this + 0xc) = puVar1;\n  (*(code *)puVar2)(pwVar3,param_1);\n  puVar1 = PTR_vtable_004c57fc + 0x34;\n  puVar2 = PTR_vtable_004c57fc + 0x20;\n  *(undefined **)this = PTR_vtable_004c57fc + 0xc;\n  *(undefined **)(this + 0xc) = puVar1;\n  *(undefined **)(this + 8) = puVar2;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::wiostream::" identifier : : identifier : :) (function_declarator "wiostream(wiostream *this,wstreambuf *param_1)" identifier (parameter_list "(wiostream *this,wstreambuf *param_1)" ( (parameter_declaration "wiostream *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "wstreambuf *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  wiostream *pwVar3;\n  \n  pwVar3 = this + 0xc;\n  (*(code *)PTR_ios_base_004c22a0)(pwVar3);\n  *(undefined4 *)(this + 0x7c) = 0;\n  *(undefined4 *)(this + 0x80) = 0;\n  this[0x84] = (wiostream)0x0;\n  puVar1 = PTR_construction_vtable_004c57f4;\n  puVar2 = PTR_init_004c5210;\n  *(undefined4 *)(this + 0x88) = 0;\n  *(undefined4 *)(this + 0x8c) = 0;\n  *(undefined4 *)(this + 0x90) = 0;\n  *(undefined4 *)(this + 0x94) = 0;\n  *(undefined **)this = puVar1 + 0xc;\n  *(undefined **)(this + 0xc) = puVar1 + 0x20;\n                    /* try { // try from 003ae738 to 003ae73f has its CatchHandler @ 003ae7a4 */\n  *(undefined4 *)(this + 4) = 0;\n  (*(code *)puVar2)(pwVar3,param_1);\n  puVar2 = PTR_init_004c5210;\n  puVar1 = PTR_construction_vtable_004c57f0 + 0x20;\n  *(undefined **)(this + 8) = PTR_construction_vtable_004c57f0 + 0xc;\n                    /* try { // try from 003ae760 to 003ae767 has its CatchHandler @ 003ae7d4 */\n  *(undefined **)(this + 0xc) = puVar1;\n  (*(code *)puVar2)(pwVar3,param_1);\n  puVar1 = PTR_vtable_004c57fc + 0x34;\n  puVar2 = PTR_vtable_004c57fc + 0x20;\n  *(undefined **)this = PTR_vtable_004c57fc + 0xc;\n  *(undefined **)(this + 0xc) = puVar1;\n  *(undefined **)(this + 8) = puVar2;\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "wiostream *pwVar3;" type_identifier (pointer_declarator "*pwVar3" * identifier) ;) (expression_statement "pwVar3 = this + 0xc;" (assignment_expression "pwVar3 = this + 0xc" identifier = (binary_expression "this + 0xc" identifier + number_literal)) ;) (expression_statement "(*(code *)PTR_ios_base_004c22a0)(pwVar3);" (call_expression "(*(code *)PTR_ios_base_004c22a0)(pwVar3)" (parenthesized_expression "(*(code *)PTR_ios_base_004c22a0)" ( (pointer_expression "*(code *)PTR_ios_base_004c22a0" * (cast_expression "(code *)PTR_ios_base_004c22a0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pwVar3)" ( identifier ))) ;) (expression_statement "*(undefined4 *)(this + 0x7c) = 0;" (assignment_expression "*(undefined4 *)(this + 0x7c) = 0" (pointer_expression "*(undefined4 *)(this + 0x7c)" * (cast_expression "(undefined4 *)(this + 0x7c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x7c)" ( (binary_expression "this + 0x7c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(this + 0x80) = 0;" (assignment_expression "*(undefined4 *)(this + 0x80) = 0" (pointer_expression "*(undefined4 *)(this + 0x80)" * (cast_expression "(undefined4 *)(this + 0x80)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x80)" ( (binary_expression "this + 0x80" identifier + number_literal) )))) = number_literal) ;) (expression_statement "this[0x84] = (wiostream)0x0;" (assignment_expression "this[0x84] = (wiostream)0x0" (subscript_expression "this[0x84]" identifier [ number_literal ]) = (cast_expression "(wiostream)0x0" ( (type_descriptor "wiostream" type_identifier) ) number_literal)) ;) (expression_statement "puVar1 = PTR_construction_vtable_004c57f4;" (assignment_expression "puVar1 = PTR_construction_vtable_004c57f4" identifier = identifier) ;) (expression_statement "puVar2 = PTR_init_004c5210;" (assignment_expression "puVar2 = PTR_init_004c5210" identifier = identifier) ;) (expression_statement "*(undefined4 *)(this + 0x88) = 0;" (assignment_expression "*(undefined4 *)(this + 0x88) = 0" (pointer_expression "*(undefined4 *)(this + 0x88)" * (cast_expression "(undefined4 *)(this + 0x88)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x88)" ( (binary_expression "this + 0x88" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(this + 0x8c) = 0;" (assignment_expression "*(undefined4 *)(this + 0x8c) = 0" (pointer_expression "*(undefined4 *)(this + 0x8c)" * (cast_expression "(undefined4 *)(this + 0x8c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x8c)" ( (binary_expression "this + 0x8c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(this + 0x90) = 0;" (assignment_expression "*(undefined4 *)(this + 0x90) = 0" (pointer_expression "*(undefined4 *)(this + 0x90)" * (cast_expression "(undefined4 *)(this + 0x90)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x90)" ( (binary_expression "this + 0x90" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(this + 0x94) = 0;" (assignment_expression "*(undefined4 *)(this + 0x94) = 0" (pointer_expression "*(undefined4 *)(this + 0x94)" * (cast_expression "(undefined4 *)(this + 0x94)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x94)" ( (binary_expression "this + 0x94" 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 + 0xc) = puVar1 + 0x20;" (assignment_expression "*(undefined **)(this + 0xc) = puVar1 + 0x20" (pointer_expression "*(undefined **)(this + 0xc)" * (cast_expression "(undefined **)(this + 0xc)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" 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) ;) (expression_statement "(*(code *)puVar2)(pwVar3,param_1);" (call_expression "(*(code *)puVar2)(pwVar3,param_1)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pwVar3,param_1)" ( identifier , identifier ))) ;) (expression_statement "puVar2 = PTR_init_004c5210;" (assignment_expression "puVar2 = PTR_init_004c5210" identifier = identifier) ;) (expression_statement "puVar1 = PTR_construction_vtable_004c57f0 + 0x20;" (assignment_expression "puVar1 = PTR_construction_vtable_004c57f0 + 0x20" identifier = (binary_expression "PTR_construction_vtable_004c57f0 + 0x20" identifier + number_literal)) ;) (expression_statement "*(undefined **)(this + 8) = PTR_construction_vtable_004c57f0 + 0xc;" (assignment_expression "*(undefined **)(this + 8) = PTR_construction_vtable_004c57f0 + 0xc" (pointer_expression "*(undefined **)(this + 8)" * (cast_expression "(undefined **)(this + 8)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = (binary_expression "PTR_construction_vtable_004c57f0 + 0xc" identifier + number_literal)) ;) comment (expression_statement "*(undefined **)(this + 0xc) = puVar1;" (assignment_expression "*(undefined **)(this + 0xc) = puVar1" (pointer_expression "*(undefined **)(this + 0xc)" * (cast_expression "(undefined **)(this + 0xc)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "(*(code *)puVar2)(pwVar3,param_1);" (call_expression "(*(code *)puVar2)(pwVar3,param_1)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pwVar3,param_1)" ( identifier , identifier ))) ;) (expression_statement "puVar1 = PTR_vtable_004c57fc + 0x34;" (assignment_expression "puVar1 = PTR_vtable_004c57fc + 0x34" identifier = (binary_expression "PTR_vtable_004c57fc + 0x34" identifier + number_literal)) ;) (expression_statement "puVar2 = PTR_vtable_004c57fc + 0x20;" (assignment_expression "puVar2 = PTR_vtable_004c57fc + 0x20" identifier = (binary_expression "PTR_vtable_004c57fc + 0x20" identifier + number_literal)) ;) (expression_statement "*(undefined **)this = PTR_vtable_004c57fc + 0xc;" (assignment_expression "*(undefined **)this = PTR_vtable_004c57fc + 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_004c57fc + 0xc" identifier + number_literal)) ;) (expression_statement "*(undefined **)(this + 0xc) = puVar1;" (assignment_expression "*(undefined **)(this + 0xc) = puVar1" (pointer_expression "*(undefined **)(this + 0xc)" * (cast_expression "(undefined **)(this + 0xc)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined **)(this + 8) = puVar2;" (assignment_expression "*(undefined **)(this + 8) = puVar2" (pointer_expression "*(undefined **)(this + 8)" * (cast_expression "(undefined **)(this + 8)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_003ae6b8(undefined4 *param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  \n  puVar3 = param_1 + 3;\n  (*(code *)PTR_ios_base_004c22a0)(puVar3);\n  param_1[0x1f] = 0;\n  param_1[0x20] = 0;\n  *(undefined1 *)(param_1 + 0x21) = 0;\n  puVar1 = PTR_DAT_004c57f4;\n  puVar2 = PTR_init_004c5210;\n  param_1[0x22] = 0;\n  param_1[0x23] = 0;\n  param_1[0x24] = 0;\n  param_1[0x25] = 0;\n  *param_1 = puVar1 + 0xc;\n  param_1[3] = puVar1 + 0x20;\n                    \n  param_1[1] = 0;\n  (*(code *)puVar2)(puVar3,param_2);\n  puVar2 = PTR_init_004c5210;\n  puVar1 = PTR_DAT_004c57f0 + 0x20;\n  param_1[2] = PTR_DAT_004c57f0 + 0xc;\n                    \n  param_1[3] = puVar1;\n  (*(code *)puVar2)(puVar3,param_2);\n  puVar1 = PTR_vtable_004c57fc + 0x34;\n  puVar2 = PTR_vtable_004c57fc + 0x20;\n  *param_1 = PTR_vtable_004c57fc + 0xc;\n  param_1[3] = puVar1;\n  param_1[2] = puVar2;\n  return;\n}\n\n" (function_definition "void FUN_003ae6b8(undefined4 *param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  \n  puVar3 = param_1 + 3;\n  (*(code *)PTR_ios_base_004c22a0)(puVar3);\n  param_1[0x1f] = 0;\n  param_1[0x20] = 0;\n  *(undefined1 *)(param_1 + 0x21) = 0;\n  puVar1 = PTR_DAT_004c57f4;\n  puVar2 = PTR_init_004c5210;\n  param_1[0x22] = 0;\n  param_1[0x23] = 0;\n  param_1[0x24] = 0;\n  param_1[0x25] = 0;\n  *param_1 = puVar1 + 0xc;\n  param_1[3] = puVar1 + 0x20;\n                    \n  param_1[1] = 0;\n  (*(code *)puVar2)(puVar3,param_2);\n  puVar2 = PTR_init_004c5210;\n  puVar1 = PTR_DAT_004c57f0 + 0x20;\n  param_1[2] = PTR_DAT_004c57f0 + 0xc;\n                    \n  param_1[3] = puVar1;\n  (*(code *)puVar2)(puVar3,param_2);\n  puVar1 = PTR_vtable_004c57fc + 0x34;\n  puVar2 = PTR_vtable_004c57fc + 0x20;\n  *param_1 = PTR_vtable_004c57fc + 0xc;\n  param_1[3] = puVar1;\n  param_1[2] = puVar2;\n  return;\n}" primitive_type (function_declarator "FUN_003ae6b8(undefined4 *param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  \n  puVar3 = param_1 + 3;\n  (*(code *)PTR_ios_base_004c22a0)(puVar3);\n  param_1[0x1f] = 0;\n  param_1[0x20] = 0;\n  *(undefined1 *)(param_1 + 0x21) = 0;\n  puVar1 = PTR_DAT_004c57f4;\n  puVar2 = PTR_init_004c5210;\n  param_1[0x22] = 0;\n  param_1[0x23] = 0;\n  param_1[0x24] = 0;\n  param_1[0x25] = 0;\n  *param_1 = puVar1 + 0xc;\n  param_1[3] = puVar1 + 0x20;\n                    \n  param_1[1] = 0;\n  (*(code *)puVar2)(puVar3,param_2);\n  puVar2 = PTR_init_004c5210;\n  puVar1 = PTR_DAT_004c57f0 + 0x20;\n  param_1[2] = PTR_DAT_004c57f0 + 0xc;\n                    \n  param_1[3] = puVar1;\n  (*(code *)puVar2)(puVar3,param_2);\n  puVar1 = PTR_vtable_004c57fc + 0x34;\n  puVar2 = PTR_vtable_004c57fc + 0x20;\n  *param_1 = PTR_vtable_004c57fc + 0xc;\n  param_1[3] = puVar1;\n  param_1[2] = puVar2;\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "puVar3 = param_1 + 3;" (assignment_expression "puVar3 = param_1 + 3" identifier = (binary_expression "param_1 + 3" identifier + number_literal)) ;) (expression_statement "(*(code *)PTR_ios_base_004c22a0)(puVar3);" (call_expression "(*(code *)PTR_ios_base_004c22a0)(puVar3)" (parenthesized_expression "(*(code *)PTR_ios_base_004c22a0)" ( (pointer_expression "*(code *)PTR_ios_base_004c22a0" * (cast_expression "(code *)PTR_ios_base_004c22a0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar3)" ( identifier ))) ;) (expression_statement "param_1[0x1f] = 0;" (assignment_expression "param_1[0x1f] = 0" (subscript_expression "param_1[0x1f]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x20] = 0;" (assignment_expression "param_1[0x20] = 0" (subscript_expression "param_1[0x20]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined1 *)(param_1 + 0x21) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0x21) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0x21)" * (cast_expression "(undefined1 *)(param_1 + 0x21)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x21)" ( (binary_expression "param_1 + 0x21" identifier + number_literal) )))) = number_literal) ;) (expression_statement "puVar1 = PTR_DAT_004c57f4;" (assignment_expression "puVar1 = PTR_DAT_004c57f4" identifier = identifier) ;) (expression_statement "puVar2 = PTR_init_004c5210;" (assignment_expression "puVar2 = PTR_init_004c5210" identifier = identifier) ;) (expression_statement "param_1[0x22] = 0;" (assignment_expression "param_1[0x22] = 0" (subscript_expression "param_1[0x22]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x23] = 0;" (assignment_expression "param_1[0x23] = 0" (subscript_expression "param_1[0x23]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x24] = 0;" (assignment_expression "param_1[0x24] = 0" (subscript_expression "param_1[0x24]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x25] = 0;" (assignment_expression "param_1[0x25] = 0" (subscript_expression "param_1[0x25]" 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[3] = puVar1 + 0x20;" (assignment_expression "param_1[3] = puVar1 + 0x20" (subscript_expression "param_1[3]" 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) ;) (expression_statement "(*(code *)puVar2)(puVar3,param_2);" (call_expression "(*(code *)puVar2)(puVar3,param_2)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar3,param_2)" ( identifier , identifier ))) ;) (expression_statement "puVar2 = PTR_init_004c5210;" (assignment_expression "puVar2 = PTR_init_004c5210" identifier = identifier) ;) (expression_statement "puVar1 = PTR_DAT_004c57f0 + 0x20;" (assignment_expression "puVar1 = PTR_DAT_004c57f0 + 0x20" identifier = (binary_expression "PTR_DAT_004c57f0 + 0x20" identifier + number_literal)) ;) (expression_statement "param_1[2] = PTR_DAT_004c57f0 + 0xc;" (assignment_expression "param_1[2] = PTR_DAT_004c57f0 + 0xc" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (binary_expression "PTR_DAT_004c57f0 + 0xc" identifier + number_literal)) ;) (expression_statement "param_1[3] = puVar1;" (assignment_expression "param_1[3] = puVar1" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "(*(code *)puVar2)(puVar3,param_2);" (call_expression "(*(code *)puVar2)(puVar3,param_2)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar3,param_2)" ( identifier , identifier ))) ;) (expression_statement "puVar1 = PTR_vtable_004c57fc + 0x34;" (assignment_expression "puVar1 = PTR_vtable_004c57fc + 0x34" identifier = (binary_expression "PTR_vtable_004c57fc + 0x34" identifier + number_literal)) ;) (expression_statement "puVar2 = PTR_vtable_004c57fc + 0x20;" (assignment_expression "puVar2 = PTR_vtable_004c57fc + 0x20" identifier = (binary_expression "PTR_vtable_004c57fc + 0x20" identifier + number_literal)) ;) (expression_statement "*param_1 = PTR_vtable_004c57fc + 0xc;" (assignment_expression "*param_1 = PTR_vtable_004c57fc + 0xc" (pointer_expression "*param_1" * identifier) = (binary_expression "PTR_vtable_004c57fc + 0xc" identifier + number_literal)) ;) (expression_statement "param_1[3] = puVar1;" (assignment_expression "param_1[3] = puVar1" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[2] = puVar2;" (assignment_expression "param_1[2] = puVar2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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 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) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + 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) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return ;) })))
(function_definition "void FUN_003ae6b8(undefined4 *param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  \n  puVar3 = param_1 + 3;\n  (*(code *)PTR_ios_base_004c22a0)(puVar3);\n  param_1[0x1f] = 0;\n  param_1[0x20] = 0;\n  *(undefined1 *)(param_1 + 0x21) = 0;\n  puVar1 = PTR_DAT_004c57f4;\n  puVar2 = PTR_init_004c5210;\n  param_1[0x22] = 0;\n  param_1[0x23] = 0;\n  param_1[0x24] = 0;\n  param_1[0x25] = 0;\n  *param_1 = puVar1 + 0xc;\n  param_1[3] = puVar1 + 0x20;\n                    \n  param_1[1] = 0;\n  (*(code *)puVar2)(puVar3,param_2);\n  puVar2 = PTR_init_004c5210;\n  puVar1 = PTR_DAT_004c57f0 + 0x20;\n  param_1[2] = PTR_DAT_004c57f0 + 0xc;\n                    \n  param_1[3] = puVar1;\n  (*(code *)puVar2)(puVar3,param_2);\n  puVar1 = PTR_vtable_004c57fc + 0x34;\n  puVar2 = PTR_vtable_004c57fc + 0x20;\n  *param_1 = PTR_vtable_004c57fc + 0xc;\n  param_1[3] = puVar1;\n  param_1[2] = puVar2;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_003ae6b8(undefined4 *param_1,undefined4 param_2)" (identifier "FUN_003ae6b8") (parameter_list "(undefined4 *param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  \n  puVar3 = param_1 + 3;\n  (*(code *)PTR_ios_base_004c22a0)(puVar3);\n  param_1[0x1f] = 0;\n  param_1[0x20] = 0;\n  *(undefined1 *)(param_1 + 0x21) = 0;\n  puVar1 = PTR_DAT_004c57f4;\n  puVar2 = PTR_init_004c5210;\n  param_1[0x22] = 0;\n  param_1[0x23] = 0;\n  param_1[0x24] = 0;\n  param_1[0x25] = 0;\n  *param_1 = puVar1 + 0xc;\n  param_1[3] = puVar1 + 0x20;\n                    \n  param_1[1] = 0;\n  (*(code *)puVar2)(puVar3,param_2);\n  puVar2 = PTR_init_004c5210;\n  puVar1 = PTR_DAT_004c57f0 + 0x20;\n  param_1[2] = PTR_DAT_004c57f0 + 0xc;\n                    \n  param_1[3] = puVar1;\n  (*(code *)puVar2)(puVar3,param_2);\n  puVar1 = PTR_vtable_004c57fc + 0x34;\n  puVar2 = PTR_vtable_004c57fc + 0x20;\n  *param_1 = PTR_vtable_004c57fc + 0xc;\n  param_1[3] = puVar1;\n  param_1[2] = puVar2;\n  return;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (expression_statement "puVar3 = param_1 + 3;" (assignment_expression "puVar3 = param_1 + 3" (identifier "puVar3") (= "=") (binary_expression "param_1 + 3" (identifier "param_1") (+ "+") (number_literal "3"))) (; ";")) (expression_statement "(*(code *)PTR_ios_base_004c22a0)(puVar3);" (call_expression "(*(code *)PTR_ios_base_004c22a0)(puVar3)" (parenthesized_expression "(*(code *)PTR_ios_base_004c22a0)" (( "(") (pointer_expression "*(code *)PTR_ios_base_004c22a0" (* "*") (cast_expression "(code *)PTR_ios_base_004c22a0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_ios_base_004c22a0"))) () ")")) (argument_list "(puVar3)" (( "(") (identifier "puVar3") () ")"))) (; ";")) (expression_statement "param_1[0x1f] = 0;" (assignment_expression "param_1[0x1f] = 0" (subscript_expression "param_1[0x1f]" (identifier "param_1") ([ "[") (number_literal "0x1f") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[0x20] = 0;" (assignment_expression "param_1[0x20] = 0" (subscript_expression "param_1[0x20]" (identifier "param_1") ([ "[") (number_literal "0x20") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined1 *)(param_1 + 0x21) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0x21) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0x21)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0x21)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x21)" (( "(") (binary_expression "param_1 + 0x21" (identifier "param_1") (+ "+") (number_literal "0x21")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1 = PTR_DAT_004c57f4;" (assignment_expression "puVar1 = PTR_DAT_004c57f4" (identifier "puVar1") (= "=") (identifier "PTR_DAT_004c57f4")) (; ";")) (expression_statement "puVar2 = PTR_init_004c5210;" (assignment_expression "puVar2 = PTR_init_004c5210" (identifier "puVar2") (= "=") (identifier "PTR_init_004c5210")) (; ";")) (expression_statement "param_1[0x22] = 0;" (assignment_expression "param_1[0x22] = 0" (subscript_expression "param_1[0x22]" (identifier "param_1") ([ "[") (number_literal "0x22") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[0x23] = 0;" (assignment_expression "param_1[0x23] = 0" (subscript_expression "param_1[0x23]" (identifier "param_1") ([ "[") (number_literal "0x23") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[0x24] = 0;" (assignment_expression "param_1[0x24] = 0" (subscript_expression "param_1[0x24]" (identifier "param_1") ([ "[") (number_literal "0x24") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[0x25] = 0;" (assignment_expression "param_1[0x25] = 0" (subscript_expression "param_1[0x25]" (identifier "param_1") ([ "[") (number_literal "0x25") (] "]")) (= "=") (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[3] = puVar1 + 0x20;" (assignment_expression "param_1[3] = puVar1 + 0x20" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (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")) (; ";")) (expression_statement "(*(code *)puVar2)(puVar3,param_2);" (call_expression "(*(code *)puVar2)(puVar3,param_2)" (parenthesized_expression "(*(code *)puVar2)" (( "(") (pointer_expression "*(code *)puVar2" (* "*") (cast_expression "(code *)puVar2" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2"))) () ")")) (argument_list "(puVar3,param_2)" (( "(") (identifier "puVar3") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "puVar2 = PTR_init_004c5210;" (assignment_expression "puVar2 = PTR_init_004c5210" (identifier "puVar2") (= "=") (identifier "PTR_init_004c5210")) (; ";")) (expression_statement "puVar1 = PTR_DAT_004c57f0 + 0x20;" (assignment_expression "puVar1 = PTR_DAT_004c57f0 + 0x20" (identifier "puVar1") (= "=") (binary_expression "PTR_DAT_004c57f0 + 0x20" (identifier "PTR_DAT_004c57f0") (+ "+") (number_literal "0x20"))) (; ";")) (expression_statement "param_1[2] = PTR_DAT_004c57f0 + 0xc;" (assignment_expression "param_1[2] = PTR_DAT_004c57f0 + 0xc" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "PTR_DAT_004c57f0 + 0xc" (identifier "PTR_DAT_004c57f0") (+ "+") (number_literal "0xc"))) (; ";")) (expression_statement "param_1[3] = puVar1;" (assignment_expression "param_1[3] = puVar1" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "puVar1")) (; ";")) (expression_statement "(*(code *)puVar2)(puVar3,param_2);" (call_expression "(*(code *)puVar2)(puVar3,param_2)" (parenthesized_expression "(*(code *)puVar2)" (( "(") (pointer_expression "*(code *)puVar2" (* "*") (cast_expression "(code *)puVar2" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2"))) () ")")) (argument_list "(puVar3,param_2)" (( "(") (identifier "puVar3") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "puVar1 = PTR_vtable_004c57fc + 0x34;" (assignment_expression "puVar1 = PTR_vtable_004c57fc + 0x34" (identifier "puVar1") (= "=") (binary_expression "PTR_vtable_004c57fc + 0x34" (identifier "PTR_vtable_004c57fc") (+ "+") (number_literal "0x34"))) (; ";")) (expression_statement "puVar2 = PTR_vtable_004c57fc + 0x20;" (assignment_expression "puVar2 = PTR_vtable_004c57fc + 0x20" (identifier "puVar2") (= "=") (binary_expression "PTR_vtable_004c57fc + 0x20" (identifier "PTR_vtable_004c57fc") (+ "+") (number_literal "0x20"))) (; ";")) (expression_statement "*param_1 = PTR_vtable_004c57fc + 0xc;" (assignment_expression "*param_1 = PTR_vtable_004c57fc + 0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "PTR_vtable_004c57fc + 0xc" (identifier "PTR_vtable_004c57fc") (+ "+") (number_literal "0xc"))) (; ";")) (expression_statement "param_1[3] = puVar1;" (assignment_expression "param_1[3] = puVar1" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "puVar1")) (; ";")) (expression_statement "param_1[2] = puVar2;" (assignment_expression "param_1[2] = puVar2" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "puVar2")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::wiostream::wiostream(std::wstreambuf*) */

void __thiscall std::function_1::function_1(function_1 *var_1,type_1 *param_1)

{
  type_2 *var_2;
  type_2 *puVar2;
  function_1 *pwVar3;
  
  pwVar3 = var_1 + 0xc;
  (*(type_3 *)PTR_ios_base_004c22a0)(pwVar3);
  *(type_4 *)(var_1 + 0x7c) = 0;
  *(type_4 *)(var_1 + 0x80) = 0;
  var_1[0x84] = (function_1)0x0;
  var_2 = PTR_construction_vtable_004c57f4;
  puVar2 = PTR_init_004c5210;
  *(type_4 *)(var_1 + 0x88) = 0;
  *(type_4 *)(var_1 + 0x8c) = 0;
  *(type_4 *)(var_1 + 0x90) = 0;
  *(type_4 *)(var_1 + 0x94) = 0;
  *(type_2 **)var_1 = var_2 + 0xc;
  *(type_2 **)(var_1 + 0xc) = var_2 + 0x20;
                    /* try { // try from 003ae738 to 003ae73f has its CatchHandler @ 003ae7a4 */
  *(type_4 *)(var_1 + 4) = 0;
  (*(type_3 *)puVar2)(pwVar3,param_1);
  puVar2 = PTR_init_004c5210;
  var_2 = var_3 + 0x20;
  *(type_2 **)(var_1 + 8) = var_3 + 0xc;
                    /* try { // try from 003ae760 to 003ae767 has its CatchHandler @ 003ae7d4 */
  *(type_2 **)(var_1 + 0xc) = var_2;
  (*(type_3 *)puVar2)(pwVar3,param_1);
  var_2 = var_4 + 0x34;
  puVar2 = var_4 + 0x20;
  *(type_2 **)var_1 = var_4 + 0xc;
  *(type_2 **)(var_1 + 0xc) = var_2;
  *(type_2 **)(var_1 + 8) = puVar2;
  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))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))) (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: (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))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (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))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (return_statement))))

void MASKED(undefined4 *param_1,undefined4 param_2)

{
  undefined *puVar1;
  undefined *puVar2;
  undefined4 *puVar3;
  
  puVar3 = param_1 + 3;
  (*(code *)PTR_ios_base_004c22a0)(puVar3);
  param_1[0x1f] = 0;
  param_1[0x20] = 0;
  *(undefined1 *)(param_1 + 0x21) = 0;
  puVar1 = PTR_DAT_004c57f4;
  puVar2 = PTR_init_004c5210;
  param_1[0x22] = 0;
  param_1[0x23] = 0;
  param_1[0x24] = 0;
  param_1[0x25] = 0;
  *param_1 = puVar1 + 0xc;
  param_1[3] = puVar1 + 0x20;
                    /* try { // try from 003ae738 to 003ae73f has its CatchHandler @ 003ae7a4 */
  param_1[1] = 0;
  (*(code *)puVar2)(puVar3,param_2);
  puVar2 = PTR_init_004c5210;
  puVar1 = PTR_DAT_004c57f0 + 0x20;
  param_1[2] = PTR_DAT_004c57f0 + 0xc;
                    /* try { // try from 003ae760 to 003ae767 has its CatchHandler @ 003ae7d4 */
  param_1[3] = puVar1;
  (*(code *)puVar2)(puVar3,param_2);
  puVar1 = PTR_vtable_004c57fc + 0x34;
  puVar2 = PTR_vtable_004c57fc + 0x20;
  *param_1 = PTR_vtable_004c57fc + 0xc;
  param_1[3] = puVar1;
  param_1[2] = puVar2;
  return;
}

