
/* std::fstream::fstream(std::fstream&&) */

void __thiscall std::fstream::fstream(fstream *this,fstream *param_1)

{
  fstream fVar1;
  int iVar2;
  undefined4 uVar3;
  int iVar4;
  ios_base *piVar5;
  ios_base *this_00;
  int in_t9;
  
  this_00 = (ios_base *)(this + 0x94);
  ios_base::ios_base(this_00);
  *(undefined2 *)(this + 0x108) = 0;
  uVar3 = *(undefined4 *)(param_1 + 4);
  *(undefined4 *)(this + 0x104) = 0;
  iVar2 = *(int *)(in_t9 + 0x1573d8);
  *(undefined4 *)(this + 4) = uVar3;
  *(int *)this = iVar2 + 0xc;
  iVar4 = *(int *)param_1;
  *(undefined4 *)(this + 0x10c) = 0;
  *(undefined4 *)(this + 0x110) = 0;
  *(undefined4 *)(this + 0x114) = 0;
  iVar4 = *(int *)(iVar4 + -0xc);
  *(undefined4 *)(this + 0x118) = 0;
  *(int *)(this + 0x94) = iVar2 + 0x20;
  piVar5 = (ios_base *)(param_1 + iVar4);
  ios_base::_M_move(this_00,piVar5);
                    /* try { // try from 0036e154 to 0036e15b has its CatchHandler @ 0036e1dc */
  ios::_M_cache_locale((ios *)this_00,(locale *)(this + 0x100));
  uVar3 = *(undefined4 *)(piVar5 + 0x70);
  *(undefined4 *)(piVar5 + 0x70) = 0;
  *(undefined4 *)(this + 0x104) = uVar3;
  iVar2 = *(int *)(in_t9 + 0x1573d0);
  this[0x108] = *(fstream *)(piVar5 + 0x74);
  fVar1 = *(fstream *)(piVar5 + 0x75);
  *(undefined4 *)(this + 0x10c) = 0;
  this[0x109] = fVar1;
  *(undefined4 *)(param_1 + 4) = 0;
  *(int *)this = iVar2 + 0xc;
  *(int *)(this + 0x94) = iVar2 + 0x34;
                    /* try { // try from 0036e1ac to 0036e1b3 has its CatchHandler @ 0036e20c */
  *(int *)(this + 8) = iVar2 + 0x20;
  filebuf::filebuf((filebuf *)(this + 0xc),(filebuf *)(param_1 + 0xc));
  *(filebuf **)(this + 0x10c) = (filebuf *)(this + 0xc);
  return;
}



void FUN_0036e0ac(int *param_1,int *param_2)

{
  ios_base iVar1;
  int iVar2;
  int iVar3;
  ios_base *piVar4;
  ios_base *this;
  int in_t9;
  
  this = (ios_base *)(param_1 + 0x25);
  std::ios_base::ios_base(this);
  *(undefined2 *)(param_1 + 0x42) = 0;
  iVar3 = param_2[1];
  param_1[0x41] = 0;
  iVar2 = *(int *)(in_t9 + 0x1573d8);
  param_1[1] = iVar3;
  *param_1 = iVar2 + 0xc;
  iVar3 = *param_2;
  param_1[0x43] = 0;
  param_1[0x44] = 0;
  param_1[0x45] = 0;
  iVar3 = *(int *)(iVar3 + -0xc);
  param_1[0x46] = 0;
  param_1[0x25] = iVar2 + 0x20;
  piVar4 = (ios_base *)((int)param_2 + iVar3);
  std::ios_base::_M_move(this,piVar4);
                    /* try { // try from 0036e154 to 0036e15b has its CatchHandler @ 0036e1dc */
  std::ios::_M_cache_locale((ios *)this,(locale *)(param_1 + 0x40));
  iVar2 = *(int *)(piVar4 + 0x70);
  *(undefined4 *)(piVar4 + 0x70) = 0;
  param_1[0x41] = iVar2;
  iVar2 = *(int *)(in_t9 + 0x1573d0);
  *(ios_base *)(param_1 + 0x42) = piVar4[0x74];
  iVar1 = piVar4[0x75];
  param_1[0x43] = 0;
  *(ios_base *)((int)param_1 + 0x109) = iVar1;
  param_2[1] = 0;
  *param_1 = iVar2 + 0xc;
  param_1[0x25] = iVar2 + 0x34;
                    /* try { // try from 0036e1ac to 0036e1b3 has its CatchHandler @ 0036e20c */
  param_1[2] = iVar2 + 0x20;
  std::filebuf::filebuf((filebuf *)(param_1 + 3),(filebuf *)(param_2 + 3));
  param_1[0x43] = (int)(param_1 + 3);
  return;
}


lui gp,0x16
addiu gp,gp,-0x4e6c
addu gp,gp,t9
addiu sp,sp,-0x38
lw t9,-0x6fa0(gp)
sw s3,0x28(sp)
addiu s3,a0,0x94
sw gp,0x10(sp)
sw ra,0x34(sp)
sw s4,0x2c(sp)
sw s2,0x24(sp)
or s2,a1,zero
sw s1,0x20(sp)
sw s0,0x1c(sp)
or s0,a0,zero
sw s5,0x30(sp)
bal 0x00388920
_or a0,s3,zero
or a0,s3,zero
lw gp,0x10(sp)
sh zero,0x108(s0)
lw v1,0x4(s2)
sw zero,0x104(s0)
lw v0,-0x3dbc(gp)
sw v1,0x4(s0)
lw t9,-0x3f34(gp)
addiu s4,v0,0xc
addiu v0,v0,0x20
sw s4,0x0(s0)
lw v1,0x0(s2)
sw zero,0x10c(s0)
sw zero,0x110(s0)
sw zero,0x114(s0)
lw s1,-0xc(v1)
sw zero,0x118(s0)
sw v0,0x94(s0)
addu s1,s2,s1
bal 0x00388e7c
_or a1,s1,zero
addiu a1,s0,0x100
lw gp,0x10(sp)
lw t9,-0x3f30(gp)
bal 0x00366004
_or a0,s3,zero
lw v1,0x70(s1)
addiu s5,s0,0xc
lw gp,0x10(sp)
addiu a1,s2,0xc
sw zero,0x70(s1)
or a0,s5,zero
sw v1,0x104(s0)
lb a3,0x74(s1)
lw v0,-0x3dc4(gp)
lw t9,-0x3da0(gp)
sb a3,0x108(s0)
lbu a3,0x75(s1)
addiu a2,v0,0xc
addiu v1,v0,0x34
sw zero,0x10c(s0)
addiu v0,v0,0x20
sb a3,0x109(s0)
sw zero,0x4(s2)
sw a2,0x0(s0)
sw v1,0x94(s0)
bal 0x00368f74
_sw v0,0x8(s0)
lw ra,0x34(sp)
lw s4,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
sw s5,0x10c(s0)
lw s5,0x30(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x38
(translation_unit "void FUN_0036e0ac(int *param_1,int *param_2)\n\n{\n  ios_base iVar1;\n  int iVar2;\n  int iVar3;\n  ios_base *piVar4;\n  ios_base *this;\n  int in_t9;\n  \n  this = (ios_base *)(param_1 + 0x25);\n  std::ios_base::ios_base(this);\n  *(undefined2 *)(param_1 + 0x42) = 0;\n  iVar3 = param_2[1];\n  param_1[0x41] = 0;\n  iVar2 = *(int *)(in_t9 + 0x1573d8);\n  param_1[1] = iVar3;\n  *param_1 = iVar2 + 0xc;\n  iVar3 = *param_2;\n  param_1[0x43] = 0;\n  param_1[0x44] = 0;\n  param_1[0x45] = 0;\n  iVar3 = *(int *)(iVar3 + -0xc);\n  param_1[0x46] = 0;\n  param_1[0x25] = iVar2 + 0x20;\n  piVar4 = (ios_base *)((int)param_2 + iVar3);\n  std::ios_base::_M_move(this,piVar4);\n                    /* try { // try from 0036e154 to 0036e15b has its CatchHandler @ 0036e1dc */\n  std::ios::_M_cache_locale((ios *)this,(locale *)(param_1 + 0x40));\n  iVar2 = *(int *)(piVar4 + 0x70);\n  *(undefined4 *)(piVar4 + 0x70) = 0;\n  param_1[0x41] = iVar2;\n  iVar2 = *(int *)(in_t9 + 0x1573d0);\n  *(ios_base *)(param_1 + 0x42) = piVar4[0x74];\n  iVar1 = piVar4[0x75];\n  param_1[0x43] = 0;\n  *(ios_base *)((int)param_1 + 0x109) = iVar1;\n  param_2[1] = 0;\n  *param_1 = iVar2 + 0xc;\n  param_1[0x25] = iVar2 + 0x34;\n                    /* try { // try from 0036e1ac to 0036e1b3 has its CatchHandler @ 0036e20c */\n  param_1[2] = iVar2 + 0x20;\n  std::filebuf::filebuf((filebuf *)(param_1 + 3),(filebuf *)(param_2 + 3));\n  param_1[0x43] = (int)(param_1 + 3);\n  return;\n}\n\n" (function_definition "void FUN_0036e0ac(int *param_1,int *param_2)\n\n{\n  ios_base iVar1;\n  int iVar2;\n  int iVar3;\n  ios_base *piVar4;\n  ios_base *this;\n  int in_t9;\n  \n  this = (ios_base *)(param_1 + 0x25);\n  std::ios_base::ios_base(this);\n  *(undefined2 *)(param_1 + 0x42) = 0;\n  iVar3 = param_2[1];\n  param_1[0x41] = 0;\n  iVar2 = *(int *)(in_t9 + 0x1573d8);\n  param_1[1] = iVar3;\n  *param_1 = iVar2 + 0xc;\n  iVar3 = *param_2;\n  param_1[0x43] = 0;\n  param_1[0x44] = 0;\n  param_1[0x45] = 0;\n  iVar3 = *(int *)(iVar3 + -0xc);\n  param_1[0x46] = 0;\n  param_1[0x25] = iVar2 + 0x20;\n  piVar4 = (ios_base *)((int)param_2 + iVar3);\n  std::ios_base::_M_move(this,piVar4);\n                    /* try { // try from 0036e154 to 0036e15b has its CatchHandler @ 0036e1dc */\n  std::ios::_M_cache_locale((ios *)this,(locale *)(param_1 + 0x40));\n  iVar2 = *(int *)(piVar4 + 0x70);\n  *(undefined4 *)(piVar4 + 0x70) = 0;\n  param_1[0x41] = iVar2;\n  iVar2 = *(int *)(in_t9 + 0x1573d0);\n  *(ios_base *)(param_1 + 0x42) = piVar4[0x74];\n  iVar1 = piVar4[0x75];\n  param_1[0x43] = 0;\n  *(ios_base *)((int)param_1 + 0x109) = iVar1;\n  param_2[1] = 0;\n  *param_1 = iVar2 + 0xc;\n  param_1[0x25] = iVar2 + 0x34;\n                    /* try { // try from 0036e1ac to 0036e1b3 has its CatchHandler @ 0036e20c */\n  param_1[2] = iVar2 + 0x20;\n  std::filebuf::filebuf((filebuf *)(param_1 + 3),(filebuf *)(param_2 + 3));\n  param_1[0x43] = (int)(param_1 + 3);\n  return;\n}" primitive_type (function_declarator "FUN_0036e0ac(int *param_1,int *param_2)" identifier (parameter_list "(int *param_1,int *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  ios_base iVar1;\n  int iVar2;\n  int iVar3;\n  ios_base *piVar4;\n  ios_base *this;\n  int in_t9;\n  \n  this = (ios_base *)(param_1 + 0x25);\n  std::ios_base::ios_base(this);\n  *(undefined2 *)(param_1 + 0x42) = 0;\n  iVar3 = param_2[1];\n  param_1[0x41] = 0;\n  iVar2 = *(int *)(in_t9 + 0x1573d8);\n  param_1[1] = iVar3;\n  *param_1 = iVar2 + 0xc;\n  iVar3 = *param_2;\n  param_1[0x43] = 0;\n  param_1[0x44] = 0;\n  param_1[0x45] = 0;\n  iVar3 = *(int *)(iVar3 + -0xc);\n  param_1[0x46] = 0;\n  param_1[0x25] = iVar2 + 0x20;\n  piVar4 = (ios_base *)((int)param_2 + iVar3);\n  std::ios_base::_M_move(this,piVar4);\n                    /* try { // try from 0036e154 to 0036e15b has its CatchHandler @ 0036e1dc */\n  std::ios::_M_cache_locale((ios *)this,(locale *)(param_1 + 0x40));\n  iVar2 = *(int *)(piVar4 + 0x70);\n  *(undefined4 *)(piVar4 + 0x70) = 0;\n  param_1[0x41] = iVar2;\n  iVar2 = *(int *)(in_t9 + 0x1573d0);\n  *(ios_base *)(param_1 + 0x42) = piVar4[0x74];\n  iVar1 = piVar4[0x75];\n  param_1[0x43] = 0;\n  *(ios_base *)((int)param_1 + 0x109) = iVar1;\n  param_2[1] = 0;\n  *param_1 = iVar2 + 0xc;\n  param_1[0x25] = iVar2 + 0x34;\n                    /* try { // try from 0036e1ac to 0036e1b3 has its CatchHandler @ 0036e20c */\n  param_1[2] = iVar2 + 0x20;\n  std::filebuf::filebuf((filebuf *)(param_1 + 3),(filebuf *)(param_2 + 3));\n  param_1[0x43] = (int)(param_1 + 3);\n  return;\n}" { (declaration "ios_base iVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "ios_base *piVar4;" type_identifier (pointer_declarator "*piVar4" * identifier) ;) (declaration "ios_base *this;" type_identifier (pointer_declarator "*this" * identifier) ;) (declaration "int in_t9;" primitive_type 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 "*(undefined2 *)(param_1 + 0x42) = 0;" (assignment_expression "*(undefined2 *)(param_1 + 0x42) = 0" (pointer_expression "*(undefined2 *)(param_1 + 0x42)" * (cast_expression "(undefined2 *)(param_1 + 0x42)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x42)" ( (binary_expression "param_1 + 0x42" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar3 = param_2[1];" (assignment_expression "iVar3 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "param_1[0x41] = 0;" (assignment_expression "param_1[0x41] = 0" (subscript_expression "param_1[0x41]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar2 = *(int *)(in_t9 + 0x1573d8);" (assignment_expression "iVar2 = *(int *)(in_t9 + 0x1573d8)" identifier = (pointer_expression "*(int *)(in_t9 + 0x1573d8)" * (cast_expression "(int *)(in_t9 + 0x1573d8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_t9 + 0x1573d8)" ( (binary_expression "in_t9 + 0x1573d8" identifier + number_literal) ))))) ;) (expression_statement "param_1[1] = iVar3;" (assignment_expression "param_1[1] = iVar3" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*param_1 = iVar2 + 0xc;" (assignment_expression "*param_1 = iVar2 + 0xc" (pointer_expression "*param_1" * identifier) = (binary_expression "iVar2 + 0xc" identifier + number_literal)) ;) (expression_statement "iVar3 = *param_2;" (assignment_expression "iVar3 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "param_1[0x43] = 0;" (assignment_expression "param_1[0x43] = 0" (subscript_expression "param_1[0x43]" identifier [ number_literal ]) = number_literal) ;) (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 "iVar3 = *(int *)(iVar3 + -0xc);" (assignment_expression "iVar3 = *(int *)(iVar3 + -0xc)" identifier = (pointer_expression "*(int *)(iVar3 + -0xc)" * (cast_expression "(int *)(iVar3 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + -0xc)" ( (binary_expression "iVar3 + -0xc" identifier + 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[0x25] = iVar2 + 0x20;" (assignment_expression "param_1[0x25] = iVar2 + 0x20" (subscript_expression "param_1[0x25]" identifier [ number_literal ]) = (binary_expression "iVar2 + 0x20" identifier + number_literal)) ;) (expression_statement "piVar4 = (ios_base *)((int)param_2 + iVar3);" (assignment_expression "piVar4 = (ios_base *)((int)param_2 + iVar3)" identifier = (cast_expression "(ios_base *)((int)param_2 + iVar3)" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + iVar3)" ( (binary_expression "(int)param_2 + iVar3" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ;) (labeled_statement "std::ios_base::_M_move(this,piVar4);" statement_identifier : (ERROR ":" :) (labeled_statement "ios_base::_M_move(this,piVar4);" statement_identifier : (ERROR ":" :) (expression_statement "_M_move(this,piVar4);" (call_expression "_M_move(this,piVar4)" identifier (argument_list "(this,piVar4)" ( identifier , identifier ))) ;))) comment (labeled_statement "std::ios::_M_cache_locale((ios *)this,(locale *)(param_1 + 0x40));" statement_identifier : (ERROR ":" :) (labeled_statement "ios::_M_cache_locale((ios *)this,(locale *)(param_1 + 0x40));" statement_identifier : (ERROR ":" :) (expression_statement "_M_cache_locale((ios *)this,(locale *)(param_1 + 0x40));" (call_expression "_M_cache_locale((ios *)this,(locale *)(param_1 + 0x40))" identifier (argument_list "((ios *)this,(locale *)(param_1 + 0x40))" ( (cast_expression "(ios *)this" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(locale *)(param_1 + 0x40)" ( (type_descriptor "locale *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) ))) ))) ;))) (expression_statement "iVar2 = *(int *)(piVar4 + 0x70);" (assignment_expression "iVar2 = *(int *)(piVar4 + 0x70)" identifier = (pointer_expression "*(int *)(piVar4 + 0x70)" * (cast_expression "(int *)(piVar4 + 0x70)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar4 + 0x70)" ( (binary_expression "piVar4 + 0x70" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(piVar4 + 0x70) = 0;" (assignment_expression "*(undefined4 *)(piVar4 + 0x70) = 0" (pointer_expression "*(undefined4 *)(piVar4 + 0x70)" * (cast_expression "(undefined4 *)(piVar4 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar4 + 0x70)" ( (binary_expression "piVar4 + 0x70" identifier + number_literal) )))) = number_literal) ;) (expression_statement "param_1[0x41] = iVar2;" (assignment_expression "param_1[0x41] = iVar2" (subscript_expression "param_1[0x41]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar2 = *(int *)(in_t9 + 0x1573d0);" (assignment_expression "iVar2 = *(int *)(in_t9 + 0x1573d0)" identifier = (pointer_expression "*(int *)(in_t9 + 0x1573d0)" * (cast_expression "(int *)(in_t9 + 0x1573d0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_t9 + 0x1573d0)" ( (binary_expression "in_t9 + 0x1573d0" identifier + number_literal) ))))) ;) (expression_statement "*(ios_base *)(param_1 + 0x42) = piVar4[0x74];" (assignment_expression "*(ios_base *)(param_1 + 0x42) = piVar4[0x74]" (pointer_expression "*(ios_base *)(param_1 + 0x42)" * (cast_expression "(ios_base *)(param_1 + 0x42)" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x42)" ( (binary_expression "param_1 + 0x42" identifier + number_literal) )))) = (subscript_expression "piVar4[0x74]" identifier [ number_literal ])) ;) (expression_statement "iVar1 = piVar4[0x75];" (assignment_expression "iVar1 = piVar4[0x75]" identifier = (subscript_expression "piVar4[0x75]" identifier [ number_literal ])) ;) (expression_statement "param_1[0x43] = 0;" (assignment_expression "param_1[0x43] = 0" (subscript_expression "param_1[0x43]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(ios_base *)((int)param_1 + 0x109) = iVar1;" (assignment_expression "*(ios_base *)((int)param_1 + 0x109) = iVar1" (pointer_expression "*(ios_base *)((int)param_1 + 0x109)" * (cast_expression "(ios_base *)((int)param_1 + 0x109)" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x109)" ( (binary_expression "(int)param_1 + 0x109" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "param_2[1] = 0;" (assignment_expression "param_2[1] = 0" (subscript_expression "param_2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_1 = iVar2 + 0xc;" (assignment_expression "*param_1 = iVar2 + 0xc" (pointer_expression "*param_1" * identifier) = (binary_expression "iVar2 + 0xc" identifier + number_literal)) ;) (expression_statement "param_1[0x25] = iVar2 + 0x34;" (assignment_expression "param_1[0x25] = iVar2 + 0x34" (subscript_expression "param_1[0x25]" identifier [ number_literal ]) = (binary_expression "iVar2 + 0x34" identifier + number_literal)) ;) comment (expression_statement "param_1[2] = iVar2 + 0x20;" (assignment_expression "param_1[2] = iVar2 + 0x20" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (binary_expression "iVar2 + 0x20" identifier + number_literal)) ;) (labeled_statement "std::filebuf::filebuf((filebuf *)(param_1 + 3),(filebuf *)(param_2 + 3));" statement_identifier : (ERROR ":" :) (labeled_statement "filebuf::filebuf((filebuf *)(param_1 + 3),(filebuf *)(param_2 + 3));" statement_identifier : (ERROR ":" :) (expression_statement "filebuf((filebuf *)(param_1 + 3),(filebuf *)(param_2 + 3));" (call_expression "filebuf((filebuf *)(param_1 + 3),(filebuf *)(param_2 + 3))" identifier (argument_list "((filebuf *)(param_1 + 3),(filebuf *)(param_2 + 3))" ( (cast_expression "(filebuf *)(param_1 + 3)" ( (type_descriptor "filebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 3)" ( (binary_expression "param_1 + 3" identifier + number_literal) ))) , (cast_expression "(filebuf *)(param_2 + 3)" ( (type_descriptor "filebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 3)" ( (binary_expression "param_2 + 3" identifier + number_literal) ))) ))) ;))) (expression_statement "param_1[0x43] = (int)(param_1 + 3);" (assignment_expression "param_1[0x43] = (int)(param_1 + 3)" (subscript_expression "param_1[0x43]" identifier [ number_literal ]) = (cast_expression "(int)(param_1 + 3)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(param_1 + 3)" ( (binary_expression "param_1 + 3" identifier + number_literal) )))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* std::fstream::fstream(std::fstream&&) */\n\nvoid __thiscall std::fstream::fstream(fstream *this,fstream *param_1)\n\n{\n  fstream fVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  ios_base *piVar5;\n  ios_base *this_00;\n  int in_t9;\n  \n  this_00 = (ios_base *)(this + 0x94);\n  ios_base::ios_base(this_00);\n  *(undefined2 *)(this + 0x108) = 0;\n  uVar3 = *(undefined4 *)(param_1 + 4);\n  *(undefined4 *)(this + 0x104) = 0;\n  iVar2 = *(int *)(in_t9 + 0x1573d8);\n  *(undefined4 *)(this + 4) = uVar3;\n  *(int *)this = iVar2 + 0xc;\n  iVar4 = *(int *)param_1;\n  *(undefined4 *)(this + 0x10c) = 0;\n  *(undefined4 *)(this + 0x110) = 0;\n  *(undefined4 *)(this + 0x114) = 0;\n  iVar4 = *(int *)(iVar4 + -0xc);\n  *(undefined4 *)(this + 0x118) = 0;\n  *(int *)(this + 0x94) = iVar2 + 0x20;\n  piVar5 = (ios_base *)(param_1 + iVar4);\n  ios_base::_M_move(this_00,piVar5);\n                    /* try { // try from 0036e154 to 0036e15b has its CatchHandler @ 0036e1dc */\n  ios::_M_cache_locale((ios *)this_00,(locale *)(this + 0x100));\n  uVar3 = *(undefined4 *)(piVar5 + 0x70);\n  *(undefined4 *)(piVar5 + 0x70) = 0;\n  *(undefined4 *)(this + 0x104) = uVar3;\n  iVar2 = *(int *)(in_t9 + 0x1573d0);\n  this[0x108] = *(fstream *)(piVar5 + 0x74);\n  fVar1 = *(fstream *)(piVar5 + 0x75);\n  *(undefined4 *)(this + 0x10c) = 0;\n  this[0x109] = fVar1;\n  *(undefined4 *)(param_1 + 4) = 0;\n  *(int *)this = iVar2 + 0xc;\n  *(int *)(this + 0x94) = iVar2 + 0x34;\n                    /* try { // try from 0036e1ac to 0036e1b3 has its CatchHandler @ 0036e20c */\n  *(int *)(this + 8) = iVar2 + 0x20;\n  filebuf::filebuf((filebuf *)(this + 0xc),(filebuf *)(param_1 + 0xc));\n  *(filebuf **)(this + 0x10c) = (filebuf *)(this + 0xc);\n  return;\n}\n\n" comment (function_definition "void __thiscall std::fstream::fstream(fstream *this,fstream *param_1)\n\n{\n  fstream fVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  ios_base *piVar5;\n  ios_base *this_00;\n  int in_t9;\n  \n  this_00 = (ios_base *)(this + 0x94);\n  ios_base::ios_base(this_00);\n  *(undefined2 *)(this + 0x108) = 0;\n  uVar3 = *(undefined4 *)(param_1 + 4);\n  *(undefined4 *)(this + 0x104) = 0;\n  iVar2 = *(int *)(in_t9 + 0x1573d8);\n  *(undefined4 *)(this + 4) = uVar3;\n  *(int *)this = iVar2 + 0xc;\n  iVar4 = *(int *)param_1;\n  *(undefined4 *)(this + 0x10c) = 0;\n  *(undefined4 *)(this + 0x110) = 0;\n  *(undefined4 *)(this + 0x114) = 0;\n  iVar4 = *(int *)(iVar4 + -0xc);\n  *(undefined4 *)(this + 0x118) = 0;\n  *(int *)(this + 0x94) = iVar2 + 0x20;\n  piVar5 = (ios_base *)(param_1 + iVar4);\n  ios_base::_M_move(this_00,piVar5);\n                    /* try { // try from 0036e154 to 0036e15b has its CatchHandler @ 0036e1dc */\n  ios::_M_cache_locale((ios *)this_00,(locale *)(this + 0x100));\n  uVar3 = *(undefined4 *)(piVar5 + 0x70);\n  *(undefined4 *)(piVar5 + 0x70) = 0;\n  *(undefined4 *)(this + 0x104) = uVar3;\n  iVar2 = *(int *)(in_t9 + 0x1573d0);\n  this[0x108] = *(fstream *)(piVar5 + 0x74);\n  fVar1 = *(fstream *)(piVar5 + 0x75);\n  *(undefined4 *)(this + 0x10c) = 0;\n  this[0x109] = fVar1;\n  *(undefined4 *)(param_1 + 4) = 0;\n  *(int *)this = iVar2 + 0xc;\n  *(int *)(this + 0x94) = iVar2 + 0x34;\n                    /* try { // try from 0036e1ac to 0036e1b3 has its CatchHandler @ 0036e20c */\n  *(int *)(this + 8) = iVar2 + 0x20;\n  filebuf::filebuf((filebuf *)(this + 0xc),(filebuf *)(param_1 + 0xc));\n  *(filebuf **)(this + 0x10c) = (filebuf *)(this + 0xc);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::fstream::" identifier : : identifier : :) (function_declarator "fstream(fstream *this,fstream *param_1)" identifier (parameter_list "(fstream *this,fstream *param_1)" ( (parameter_declaration "fstream *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "fstream *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  fstream fVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  ios_base *piVar5;\n  ios_base *this_00;\n  int in_t9;\n  \n  this_00 = (ios_base *)(this + 0x94);\n  ios_base::ios_base(this_00);\n  *(undefined2 *)(this + 0x108) = 0;\n  uVar3 = *(undefined4 *)(param_1 + 4);\n  *(undefined4 *)(this + 0x104) = 0;\n  iVar2 = *(int *)(in_t9 + 0x1573d8);\n  *(undefined4 *)(this + 4) = uVar3;\n  *(int *)this = iVar2 + 0xc;\n  iVar4 = *(int *)param_1;\n  *(undefined4 *)(this + 0x10c) = 0;\n  *(undefined4 *)(this + 0x110) = 0;\n  *(undefined4 *)(this + 0x114) = 0;\n  iVar4 = *(int *)(iVar4 + -0xc);\n  *(undefined4 *)(this + 0x118) = 0;\n  *(int *)(this + 0x94) = iVar2 + 0x20;\n  piVar5 = (ios_base *)(param_1 + iVar4);\n  ios_base::_M_move(this_00,piVar5);\n                    /* try { // try from 0036e154 to 0036e15b has its CatchHandler @ 0036e1dc */\n  ios::_M_cache_locale((ios *)this_00,(locale *)(this + 0x100));\n  uVar3 = *(undefined4 *)(piVar5 + 0x70);\n  *(undefined4 *)(piVar5 + 0x70) = 0;\n  *(undefined4 *)(this + 0x104) = uVar3;\n  iVar2 = *(int *)(in_t9 + 0x1573d0);\n  this[0x108] = *(fstream *)(piVar5 + 0x74);\n  fVar1 = *(fstream *)(piVar5 + 0x75);\n  *(undefined4 *)(this + 0x10c) = 0;\n  this[0x109] = fVar1;\n  *(undefined4 *)(param_1 + 4) = 0;\n  *(int *)this = iVar2 + 0xc;\n  *(int *)(this + 0x94) = iVar2 + 0x34;\n                    /* try { // try from 0036e1ac to 0036e1b3 has its CatchHandler @ 0036e20c */\n  *(int *)(this + 8) = iVar2 + 0x20;\n  filebuf::filebuf((filebuf *)(this + 0xc),(filebuf *)(param_1 + 0xc));\n  *(filebuf **)(this + 0x10c) = (filebuf *)(this + 0xc);\n  return;\n}" { (declaration "fstream fVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "ios_base *piVar5;" type_identifier (pointer_declarator "*piVar5" * identifier) ;) (declaration "ios_base *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (declaration "int in_t9;" primitive_type 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 "*(undefined2 *)(this + 0x108) = 0;" (assignment_expression "*(undefined2 *)(this + 0x108) = 0" (pointer_expression "*(undefined2 *)(this + 0x108)" * (cast_expression "(undefined2 *)(this + 0x108)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x108)" ( (binary_expression "this + 0x108" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar3 = *(undefined4 *)(param_1 + 4);" (assignment_expression "uVar3 = *(undefined4 *)(param_1 + 4)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (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 "iVar2 = *(int *)(in_t9 + 0x1573d8);" (assignment_expression "iVar2 = *(int *)(in_t9 + 0x1573d8)" identifier = (pointer_expression "*(int *)(in_t9 + 0x1573d8)" * (cast_expression "(int *)(in_t9 + 0x1573d8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_t9 + 0x1573d8)" ( (binary_expression "in_t9 + 0x1573d8" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(this + 4) = uVar3;" (assignment_expression "*(undefined4 *)(this + 4) = uVar3" (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) )))) = identifier) ;) (expression_statement "*(int *)this = iVar2 + 0xc;" (assignment_expression "*(int *)this = iVar2 + 0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "iVar2 + 0xc" identifier + number_literal)) ;) (expression_statement "iVar4 = *(int *)param_1;" (assignment_expression "iVar4 = *(int *)param_1" identifier = (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(undefined4 *)(this + 0x10c) = 0;" (assignment_expression "*(undefined4 *)(this + 0x10c) = 0" (pointer_expression "*(undefined4 *)(this + 0x10c)" * (cast_expression "(undefined4 *)(this + 0x10c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10c)" ( (binary_expression "this + 0x10c" identifier + number_literal) )))) = number_literal) ;) (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 "iVar4 = *(int *)(iVar4 + -0xc);" (assignment_expression "iVar4 = *(int *)(iVar4 + -0xc)" identifier = (pointer_expression "*(int *)(iVar4 + -0xc)" * (cast_expression "(int *)(iVar4 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + -0xc)" ( (binary_expression "iVar4 + -0xc" identifier + 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 "*(int *)(this + 0x94) = iVar2 + 0x20;" (assignment_expression "*(int *)(this + 0x94) = iVar2 + 0x20" (pointer_expression "*(int *)(this + 0x94)" * (cast_expression "(int *)(this + 0x94)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x94)" ( (binary_expression "this + 0x94" identifier + number_literal) )))) = (binary_expression "iVar2 + 0x20" identifier + number_literal)) ;) (expression_statement "piVar5 = (ios_base *)(param_1 + iVar4);" (assignment_expression "piVar5 = (ios_base *)(param_1 + iVar4)" identifier = (cast_expression "(ios_base *)(param_1 + iVar4)" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar4)" ( (binary_expression "param_1 + iVar4" identifier + identifier) )))) ;) (labeled_statement "ios_base::_M_move(this_00,piVar5);" statement_identifier : (ERROR ":" :) (expression_statement "_M_move(this_00,piVar5);" (call_expression "_M_move(this_00,piVar5)" identifier (argument_list "(this_00,piVar5)" ( identifier , identifier ))) ;)) comment (labeled_statement "ios::_M_cache_locale((ios *)this_00,(locale *)(this + 0x100));" statement_identifier : (ERROR ":" :) (expression_statement "_M_cache_locale((ios *)this_00,(locale *)(this + 0x100));" (call_expression "_M_cache_locale((ios *)this_00,(locale *)(this + 0x100))" identifier (argument_list "((ios *)this_00,(locale *)(this + 0x100))" ( (cast_expression "(ios *)this_00" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(locale *)(this + 0x100)" ( (type_descriptor "locale *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x100)" ( (binary_expression "this + 0x100" identifier + number_literal) ))) ))) ;)) (expression_statement "uVar3 = *(undefined4 *)(piVar5 + 0x70);" (assignment_expression "uVar3 = *(undefined4 *)(piVar5 + 0x70)" identifier = (pointer_expression "*(undefined4 *)(piVar5 + 0x70)" * (cast_expression "(undefined4 *)(piVar5 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar5 + 0x70)" ( (binary_expression "piVar5 + 0x70" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(piVar5 + 0x70) = 0;" (assignment_expression "*(undefined4 *)(piVar5 + 0x70) = 0" (pointer_expression "*(undefined4 *)(piVar5 + 0x70)" * (cast_expression "(undefined4 *)(piVar5 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar5 + 0x70)" ( (binary_expression "piVar5 + 0x70" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(this + 0x104) = uVar3;" (assignment_expression "*(undefined4 *)(this + 0x104) = uVar3" (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) )))) = identifier) ;) (expression_statement "iVar2 = *(int *)(in_t9 + 0x1573d0);" (assignment_expression "iVar2 = *(int *)(in_t9 + 0x1573d0)" identifier = (pointer_expression "*(int *)(in_t9 + 0x1573d0)" * (cast_expression "(int *)(in_t9 + 0x1573d0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_t9 + 0x1573d0)" ( (binary_expression "in_t9 + 0x1573d0" identifier + number_literal) ))))) ;) (expression_statement "this[0x108] = *(fstream *)(piVar5 + 0x74);" (assignment_expression "this[0x108] = *(fstream *)(piVar5 + 0x74)" (subscript_expression "this[0x108]" identifier [ number_literal ]) = (pointer_expression "*(fstream *)(piVar5 + 0x74)" * (cast_expression "(fstream *)(piVar5 + 0x74)" ( (type_descriptor "fstream *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar5 + 0x74)" ( (binary_expression "piVar5 + 0x74" identifier + number_literal) ))))) ;) (expression_statement "fVar1 = *(fstream *)(piVar5 + 0x75);" (assignment_expression "fVar1 = *(fstream *)(piVar5 + 0x75)" identifier = (pointer_expression "*(fstream *)(piVar5 + 0x75)" * (cast_expression "(fstream *)(piVar5 + 0x75)" ( (type_descriptor "fstream *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar5 + 0x75)" ( (binary_expression "piVar5 + 0x75" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(this + 0x10c) = 0;" (assignment_expression "*(undefined4 *)(this + 0x10c) = 0" (pointer_expression "*(undefined4 *)(this + 0x10c)" * (cast_expression "(undefined4 *)(this + 0x10c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10c)" ( (binary_expression "this + 0x10c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "this[0x109] = fVar1;" (assignment_expression "this[0x109] = fVar1" (subscript_expression "this[0x109]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 4) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 4) = 0" (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)this = iVar2 + 0xc;" (assignment_expression "*(int *)this = iVar2 + 0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "iVar2 + 0xc" identifier + number_literal)) ;) (expression_statement "*(int *)(this + 0x94) = iVar2 + 0x34;" (assignment_expression "*(int *)(this + 0x94) = iVar2 + 0x34" (pointer_expression "*(int *)(this + 0x94)" * (cast_expression "(int *)(this + 0x94)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x94)" ( (binary_expression "this + 0x94" identifier + number_literal) )))) = (binary_expression "iVar2 + 0x34" identifier + number_literal)) ;) comment (expression_statement "*(int *)(this + 8) = iVar2 + 0x20;" (assignment_expression "*(int *)(this + 8) = iVar2 + 0x20" (pointer_expression "*(int *)(this + 8)" * (cast_expression "(int *)(this + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = (binary_expression "iVar2 + 0x20" identifier + number_literal)) ;) (labeled_statement "filebuf::filebuf((filebuf *)(this + 0xc),(filebuf *)(param_1 + 0xc));" statement_identifier : (ERROR ":" :) (expression_statement "filebuf((filebuf *)(this + 0xc),(filebuf *)(param_1 + 0xc));" (call_expression "filebuf((filebuf *)(this + 0xc),(filebuf *)(param_1 + 0xc))" identifier (argument_list "((filebuf *)(this + 0xc),(filebuf *)(param_1 + 0xc))" ( (cast_expression "(filebuf *)(this + 0xc)" ( (type_descriptor "filebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) ))) , (cast_expression "(filebuf *)(param_1 + 0xc)" ( (type_descriptor "filebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))) ))) ;)) (expression_statement "*(filebuf **)(this + 0x10c) = (filebuf *)(this + 0xc);" (assignment_expression "*(filebuf **)(this + 0x10c) = (filebuf *)(this + 0xc)" (pointer_expression "*(filebuf **)(this + 0x10c)" * (cast_expression "(filebuf **)(this + 0x10c)" ( (type_descriptor "filebuf **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x10c)" ( (binary_expression "this + 0x10c" identifier + number_literal) )))) = (cast_expression "(filebuf *)(this + 0xc)" ( (type_descriptor "filebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) )))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0036e0ac(int *param_1,int *param_2)\n\n{\n  ios_base iVar1;\n  int iVar2;\n  int iVar3;\n  ios_base *piVar4;\n  ios_base *this;\n  int in_t9;\n  \n  this = (ios_base *)(param_1 + 0x25);\n  std::ios_base::ios_base(this);\n  *(undefined2 *)(param_1 + 0x42) = 0;\n  iVar3 = param_2[1];\n  param_1[0x41] = 0;\n  iVar2 = *(int *)(in_t9 + 0x1573d8);\n  param_1[1] = iVar3;\n  *param_1 = iVar2 + 0xc;\n  iVar3 = *param_2;\n  param_1[0x43] = 0;\n  param_1[0x44] = 0;\n  param_1[0x45] = 0;\n  iVar3 = *(int *)(iVar3 + -0xc);\n  param_1[0x46] = 0;\n  param_1[0x25] = iVar2 + 0x20;\n  piVar4 = (ios_base *)((int)param_2 + iVar3);\n  std::ios_base::_M_move(this,piVar4);\n                    \n  std::ios::_M_cache_locale((ios *)this,(locale *)(param_1 + 0x40));\n  iVar2 = *(int *)(piVar4 + 0x70);\n  *(undefined4 *)(piVar4 + 0x70) = 0;\n  param_1[0x41] = iVar2;\n  iVar2 = *(int *)(in_t9 + 0x1573d0);\n  *(ios_base *)(param_1 + 0x42) = piVar4[0x74];\n  iVar1 = piVar4[0x75];\n  param_1[0x43] = 0;\n  *(ios_base *)((int)param_1 + 0x109) = iVar1;\n  param_2[1] = 0;\n  *param_1 = iVar2 + 0xc;\n  param_1[0x25] = iVar2 + 0x34;\n                    \n  param_1[2] = iVar2 + 0x20;\n  std::filebuf::filebuf((filebuf *)(param_1 + 3),(filebuf *)(param_2 + 3));\n  param_1[0x43] = (int)(param_1 + 3);\n  return;\n}\n\n" (function_definition "void FUN_0036e0ac(int *param_1,int *param_2)\n\n{\n  ios_base iVar1;\n  int iVar2;\n  int iVar3;\n  ios_base *piVar4;\n  ios_base *this;\n  int in_t9;\n  \n  this = (ios_base *)(param_1 + 0x25);\n  std::ios_base::ios_base(this);\n  *(undefined2 *)(param_1 + 0x42) = 0;\n  iVar3 = param_2[1];\n  param_1[0x41] = 0;\n  iVar2 = *(int *)(in_t9 + 0x1573d8);\n  param_1[1] = iVar3;\n  *param_1 = iVar2 + 0xc;\n  iVar3 = *param_2;\n  param_1[0x43] = 0;\n  param_1[0x44] = 0;\n  param_1[0x45] = 0;\n  iVar3 = *(int *)(iVar3 + -0xc);\n  param_1[0x46] = 0;\n  param_1[0x25] = iVar2 + 0x20;\n  piVar4 = (ios_base *)((int)param_2 + iVar3);\n  std::ios_base::_M_move(this,piVar4);\n                    \n  std::ios::_M_cache_locale((ios *)this,(locale *)(param_1 + 0x40));\n  iVar2 = *(int *)(piVar4 + 0x70);\n  *(undefined4 *)(piVar4 + 0x70) = 0;\n  param_1[0x41] = iVar2;\n  iVar2 = *(int *)(in_t9 + 0x1573d0);\n  *(ios_base *)(param_1 + 0x42) = piVar4[0x74];\n  iVar1 = piVar4[0x75];\n  param_1[0x43] = 0;\n  *(ios_base *)((int)param_1 + 0x109) = iVar1;\n  param_2[1] = 0;\n  *param_1 = iVar2 + 0xc;\n  param_1[0x25] = iVar2 + 0x34;\n                    \n  param_1[2] = iVar2 + 0x20;\n  std::filebuf::filebuf((filebuf *)(param_1 + 3),(filebuf *)(param_2 + 3));\n  param_1[0x43] = (int)(param_1 + 3);\n  return;\n}" primitive_type (function_declarator "FUN_0036e0ac(int *param_1,int *param_2)" identifier (parameter_list "(int *param_1,int *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  ios_base iVar1;\n  int iVar2;\n  int iVar3;\n  ios_base *piVar4;\n  ios_base *this;\n  int in_t9;\n  \n  this = (ios_base *)(param_1 + 0x25);\n  std::ios_base::ios_base(this);\n  *(undefined2 *)(param_1 + 0x42) = 0;\n  iVar3 = param_2[1];\n  param_1[0x41] = 0;\n  iVar2 = *(int *)(in_t9 + 0x1573d8);\n  param_1[1] = iVar3;\n  *param_1 = iVar2 + 0xc;\n  iVar3 = *param_2;\n  param_1[0x43] = 0;\n  param_1[0x44] = 0;\n  param_1[0x45] = 0;\n  iVar3 = *(int *)(iVar3 + -0xc);\n  param_1[0x46] = 0;\n  param_1[0x25] = iVar2 + 0x20;\n  piVar4 = (ios_base *)((int)param_2 + iVar3);\n  std::ios_base::_M_move(this,piVar4);\n                    \n  std::ios::_M_cache_locale((ios *)this,(locale *)(param_1 + 0x40));\n  iVar2 = *(int *)(piVar4 + 0x70);\n  *(undefined4 *)(piVar4 + 0x70) = 0;\n  param_1[0x41] = iVar2;\n  iVar2 = *(int *)(in_t9 + 0x1573d0);\n  *(ios_base *)(param_1 + 0x42) = piVar4[0x74];\n  iVar1 = piVar4[0x75];\n  param_1[0x43] = 0;\n  *(ios_base *)((int)param_1 + 0x109) = iVar1;\n  param_2[1] = 0;\n  *param_1 = iVar2 + 0xc;\n  param_1[0x25] = iVar2 + 0x34;\n                    \n  param_1[2] = iVar2 + 0x20;\n  std::filebuf::filebuf((filebuf *)(param_1 + 3),(filebuf *)(param_2 + 3));\n  param_1[0x43] = (int)(param_1 + 3);\n  return;\n}" { (declaration "ios_base iVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "ios_base *piVar4;" type_identifier (pointer_declarator "*piVar4" * identifier) ;) (declaration "ios_base *this;" type_identifier (pointer_declarator "*this" * identifier) ;) (declaration "int in_t9;" primitive_type 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 "*(undefined2 *)(param_1 + 0x42) = 0;" (assignment_expression "*(undefined2 *)(param_1 + 0x42) = 0" (pointer_expression "*(undefined2 *)(param_1 + 0x42)" * (cast_expression "(undefined2 *)(param_1 + 0x42)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x42)" ( (binary_expression "param_1 + 0x42" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar3 = param_2[1];" (assignment_expression "iVar3 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "param_1[0x41] = 0;" (assignment_expression "param_1[0x41] = 0" (subscript_expression "param_1[0x41]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar2 = *(int *)(in_t9 + 0x1573d8);" (assignment_expression "iVar2 = *(int *)(in_t9 + 0x1573d8)" identifier = (pointer_expression "*(int *)(in_t9 + 0x1573d8)" * (cast_expression "(int *)(in_t9 + 0x1573d8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_t9 + 0x1573d8)" ( (binary_expression "in_t9 + 0x1573d8" identifier + number_literal) ))))) ;) (expression_statement "param_1[1] = iVar3;" (assignment_expression "param_1[1] = iVar3" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*param_1 = iVar2 + 0xc;" (assignment_expression "*param_1 = iVar2 + 0xc" (pointer_expression "*param_1" * identifier) = (binary_expression "iVar2 + 0xc" identifier + number_literal)) ;) (expression_statement "iVar3 = *param_2;" (assignment_expression "iVar3 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "param_1[0x43] = 0;" (assignment_expression "param_1[0x43] = 0" (subscript_expression "param_1[0x43]" identifier [ number_literal ]) = number_literal) ;) (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 "iVar3 = *(int *)(iVar3 + -0xc);" (assignment_expression "iVar3 = *(int *)(iVar3 + -0xc)" identifier = (pointer_expression "*(int *)(iVar3 + -0xc)" * (cast_expression "(int *)(iVar3 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + -0xc)" ( (binary_expression "iVar3 + -0xc" identifier + 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[0x25] = iVar2 + 0x20;" (assignment_expression "param_1[0x25] = iVar2 + 0x20" (subscript_expression "param_1[0x25]" identifier [ number_literal ]) = (binary_expression "iVar2 + 0x20" identifier + number_literal)) ;) (expression_statement "piVar4 = (ios_base *)((int)param_2 + iVar3);" (assignment_expression "piVar4 = (ios_base *)((int)param_2 + iVar3)" identifier = (cast_expression "(ios_base *)((int)param_2 + iVar3)" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + iVar3)" ( (binary_expression "(int)param_2 + iVar3" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ;) (labeled_statement "std::ios_base::_M_move(this,piVar4);" statement_identifier : (ERROR ":" :) (labeled_statement "ios_base::_M_move(this,piVar4);" statement_identifier : (ERROR ":" :) (expression_statement "_M_move(this,piVar4);" (call_expression "_M_move(this,piVar4)" identifier (argument_list "(this,piVar4)" ( identifier , identifier ))) ;))) (labeled_statement "std::ios::_M_cache_locale((ios *)this,(locale *)(param_1 + 0x40));" statement_identifier : (ERROR ":" :) (labeled_statement "ios::_M_cache_locale((ios *)this,(locale *)(param_1 + 0x40));" statement_identifier : (ERROR ":" :) (expression_statement "_M_cache_locale((ios *)this,(locale *)(param_1 + 0x40));" (call_expression "_M_cache_locale((ios *)this,(locale *)(param_1 + 0x40))" identifier (argument_list "((ios *)this,(locale *)(param_1 + 0x40))" ( (cast_expression "(ios *)this" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(locale *)(param_1 + 0x40)" ( (type_descriptor "locale *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) ))) ))) ;))) (expression_statement "iVar2 = *(int *)(piVar4 + 0x70);" (assignment_expression "iVar2 = *(int *)(piVar4 + 0x70)" identifier = (pointer_expression "*(int *)(piVar4 + 0x70)" * (cast_expression "(int *)(piVar4 + 0x70)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar4 + 0x70)" ( (binary_expression "piVar4 + 0x70" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(piVar4 + 0x70) = 0;" (assignment_expression "*(undefined4 *)(piVar4 + 0x70) = 0" (pointer_expression "*(undefined4 *)(piVar4 + 0x70)" * (cast_expression "(undefined4 *)(piVar4 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar4 + 0x70)" ( (binary_expression "piVar4 + 0x70" identifier + number_literal) )))) = number_literal) ;) (expression_statement "param_1[0x41] = iVar2;" (assignment_expression "param_1[0x41] = iVar2" (subscript_expression "param_1[0x41]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar2 = *(int *)(in_t9 + 0x1573d0);" (assignment_expression "iVar2 = *(int *)(in_t9 + 0x1573d0)" identifier = (pointer_expression "*(int *)(in_t9 + 0x1573d0)" * (cast_expression "(int *)(in_t9 + 0x1573d0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_t9 + 0x1573d0)" ( (binary_expression "in_t9 + 0x1573d0" identifier + number_literal) ))))) ;) (expression_statement "*(ios_base *)(param_1 + 0x42) = piVar4[0x74];" (assignment_expression "*(ios_base *)(param_1 + 0x42) = piVar4[0x74]" (pointer_expression "*(ios_base *)(param_1 + 0x42)" * (cast_expression "(ios_base *)(param_1 + 0x42)" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x42)" ( (binary_expression "param_1 + 0x42" identifier + number_literal) )))) = (subscript_expression "piVar4[0x74]" identifier [ number_literal ])) ;) (expression_statement "iVar1 = piVar4[0x75];" (assignment_expression "iVar1 = piVar4[0x75]" identifier = (subscript_expression "piVar4[0x75]" identifier [ number_literal ])) ;) (expression_statement "param_1[0x43] = 0;" (assignment_expression "param_1[0x43] = 0" (subscript_expression "param_1[0x43]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(ios_base *)((int)param_1 + 0x109) = iVar1;" (assignment_expression "*(ios_base *)((int)param_1 + 0x109) = iVar1" (pointer_expression "*(ios_base *)((int)param_1 + 0x109)" * (cast_expression "(ios_base *)((int)param_1 + 0x109)" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x109)" ( (binary_expression "(int)param_1 + 0x109" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "param_2[1] = 0;" (assignment_expression "param_2[1] = 0" (subscript_expression "param_2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_1 = iVar2 + 0xc;" (assignment_expression "*param_1 = iVar2 + 0xc" (pointer_expression "*param_1" * identifier) = (binary_expression "iVar2 + 0xc" identifier + number_literal)) ;) (expression_statement "param_1[0x25] = iVar2 + 0x34;" (assignment_expression "param_1[0x25] = iVar2 + 0x34" (subscript_expression "param_1[0x25]" identifier [ number_literal ]) = (binary_expression "iVar2 + 0x34" identifier + number_literal)) ;) (expression_statement "param_1[2] = iVar2 + 0x20;" (assignment_expression "param_1[2] = iVar2 + 0x20" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (binary_expression "iVar2 + 0x20" identifier + number_literal)) ;) (labeled_statement "std::filebuf::filebuf((filebuf *)(param_1 + 3),(filebuf *)(param_2 + 3));" statement_identifier : (ERROR ":" :) (labeled_statement "filebuf::filebuf((filebuf *)(param_1 + 3),(filebuf *)(param_2 + 3));" statement_identifier : (ERROR ":" :) (expression_statement "filebuf((filebuf *)(param_1 + 3),(filebuf *)(param_2 + 3));" (call_expression "filebuf((filebuf *)(param_1 + 3),(filebuf *)(param_2 + 3))" identifier (argument_list "((filebuf *)(param_1 + 3),(filebuf *)(param_2 + 3))" ( (cast_expression "(filebuf *)(param_1 + 3)" ( (type_descriptor "filebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 3)" ( (binary_expression "param_1 + 3" identifier + number_literal) ))) , (cast_expression "(filebuf *)(param_2 + 3)" ( (type_descriptor "filebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 3)" ( (binary_expression "param_2 + 3" identifier + number_literal) ))) ))) ;))) (expression_statement "param_1[0x43] = (int)(param_1 + 3);" (assignment_expression "param_1[0x43] = (int)(param_1 + 3)" (subscript_expression "param_1[0x43]" identifier [ number_literal ]) = (cast_expression "(int)(param_1 + 3)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(param_1 + 3)" ( (binary_expression "param_1 + 3" identifier + number_literal) )))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE 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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * 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 IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) ;) (labeled_statement statement_identifier : (ERROR :) (labeled_statement statement_identifier : (ERROR :) (expression_statement (call_expression IDENT (argument_list ( IDENT , 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 *)) ) IDENT) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) ))) ;))) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + 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 (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ 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 (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (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 ]) = (binary_expression IDENT + LIT)) ;) (labeled_statement statement_identifier : (ERROR :) (labeled_statement statement_identifier : (ERROR :) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) ))) ;))) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (return_statement return ;) })))
(function_definition "void FUN_0036e0ac(int *param_1,int *param_2)\n\n{\n  ios_base iVar1;\n  int iVar2;\n  int iVar3;\n  ios_base *piVar4;\n  ios_base *this;\n  int in_t9;\n  \n  this = (ios_base *)(param_1 + 0x25);\n  std::ios_base::ios_base(this);\n  *(undefined2 *)(param_1 + 0x42) = 0;\n  iVar3 = param_2[1];\n  param_1[0x41] = 0;\n  iVar2 = *(int *)(in_t9 + 0x1573d8);\n  param_1[1] = iVar3;\n  *param_1 = iVar2 + 0xc;\n  iVar3 = *param_2;\n  param_1[0x43] = 0;\n  param_1[0x44] = 0;\n  param_1[0x45] = 0;\n  iVar3 = *(int *)(iVar3 + -0xc);\n  param_1[0x46] = 0;\n  param_1[0x25] = iVar2 + 0x20;\n  piVar4 = (ios_base *)((int)param_2 + iVar3);\n  std::ios_base::_M_move(this,piVar4);\n                    \n  std::ios::_M_cache_locale((ios *)this,(locale *)(param_1 + 0x40));\n  iVar2 = *(int *)(piVar4 + 0x70);\n  *(undefined4 *)(piVar4 + 0x70) = 0;\n  param_1[0x41] = iVar2;\n  iVar2 = *(int *)(in_t9 + 0x1573d0);\n  *(ios_base *)(param_1 + 0x42) = piVar4[0x74];\n  iVar1 = piVar4[0x75];\n  param_1[0x43] = 0;\n  *(ios_base *)((int)param_1 + 0x109) = iVar1;\n  param_2[1] = 0;\n  *param_1 = iVar2 + 0xc;\n  param_1[0x25] = iVar2 + 0x34;\n                    \n  param_1[2] = iVar2 + 0x20;\n  std::filebuf::filebuf((filebuf *)(param_1 + 3),(filebuf *)(param_2 + 3));\n  param_1[0x43] = (int)(param_1 + 3);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0036e0ac(int *param_1,int *param_2)" (identifier "FUN_0036e0ac") (parameter_list "(int *param_1,int *param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  ios_base iVar1;\n  int iVar2;\n  int iVar3;\n  ios_base *piVar4;\n  ios_base *this;\n  int in_t9;\n  \n  this = (ios_base *)(param_1 + 0x25);\n  std::ios_base::ios_base(this);\n  *(undefined2 *)(param_1 + 0x42) = 0;\n  iVar3 = param_2[1];\n  param_1[0x41] = 0;\n  iVar2 = *(int *)(in_t9 + 0x1573d8);\n  param_1[1] = iVar3;\n  *param_1 = iVar2 + 0xc;\n  iVar3 = *param_2;\n  param_1[0x43] = 0;\n  param_1[0x44] = 0;\n  param_1[0x45] = 0;\n  iVar3 = *(int *)(iVar3 + -0xc);\n  param_1[0x46] = 0;\n  param_1[0x25] = iVar2 + 0x20;\n  piVar4 = (ios_base *)((int)param_2 + iVar3);\n  std::ios_base::_M_move(this,piVar4);\n                    \n  std::ios::_M_cache_locale((ios *)this,(locale *)(param_1 + 0x40));\n  iVar2 = *(int *)(piVar4 + 0x70);\n  *(undefined4 *)(piVar4 + 0x70) = 0;\n  param_1[0x41] = iVar2;\n  iVar2 = *(int *)(in_t9 + 0x1573d0);\n  *(ios_base *)(param_1 + 0x42) = piVar4[0x74];\n  iVar1 = piVar4[0x75];\n  param_1[0x43] = 0;\n  *(ios_base *)((int)param_1 + 0x109) = iVar1;\n  param_2[1] = 0;\n  *param_1 = iVar2 + 0xc;\n  param_1[0x25] = iVar2 + 0x34;\n                    \n  param_1[2] = iVar2 + 0x20;\n  std::filebuf::filebuf((filebuf *)(param_1 + 3),(filebuf *)(param_2 + 3));\n  param_1[0x43] = (int)(param_1 + 3);\n  return;\n}" ({ "{") (declaration "ios_base iVar1;" (type_identifier "ios_base") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "ios_base *piVar4;" (type_identifier "ios_base") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "ios_base *this;" (type_identifier "ios_base") (pointer_declarator "*this" (* "*") (identifier "this")) (; ";")) (declaration "int in_t9;" (primitive_type "int") (identifier "in_t9") (; ";")) (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 "*(undefined2 *)(param_1 + 0x42) = 0;" (assignment_expression "*(undefined2 *)(param_1 + 0x42) = 0" (pointer_expression "*(undefined2 *)(param_1 + 0x42)" (* "*") (cast_expression "(undefined2 *)(param_1 + 0x42)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x42)" (( "(") (binary_expression "param_1 + 0x42" (identifier "param_1") (+ "+") (number_literal "0x42")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar3 = param_2[1];" (assignment_expression "iVar3 = param_2[1]" (identifier "iVar3") (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (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 "iVar2 = *(int *)(in_t9 + 0x1573d8);" (assignment_expression "iVar2 = *(int *)(in_t9 + 0x1573d8)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(in_t9 + 0x1573d8)" (* "*") (cast_expression "(int *)(in_t9 + 0x1573d8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_t9 + 0x1573d8)" (( "(") (binary_expression "in_t9 + 0x1573d8" (identifier "in_t9") (+ "+") (number_literal "0x1573d8")) () ")"))))) (; ";")) (expression_statement "param_1[1] = iVar3;" (assignment_expression "param_1[1] = iVar3" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "*param_1 = iVar2 + 0xc;" (assignment_expression "*param_1 = iVar2 + 0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "iVar2 + 0xc" (identifier "iVar2") (+ "+") (number_literal "0xc"))) (; ";")) (expression_statement "iVar3 = *param_2;" (assignment_expression "iVar3 = *param_2" (identifier "iVar3") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "param_1[0x43] = 0;" (assignment_expression "param_1[0x43] = 0" (subscript_expression "param_1[0x43]" (identifier "param_1") ([ "[") (number_literal "0x43") (] "]")) (= "=") (number_literal "0")) (; ";")) (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 "iVar3 = *(int *)(iVar3 + -0xc);" (assignment_expression "iVar3 = *(int *)(iVar3 + -0xc)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(iVar3 + -0xc)" (* "*") (cast_expression "(int *)(iVar3 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + -0xc)" (( "(") (binary_expression "iVar3 + -0xc" (identifier "iVar3") (+ "+") (number_literal "-0xc")) () ")"))))) (; ";")) (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[0x25] = iVar2 + 0x20;" (assignment_expression "param_1[0x25] = iVar2 + 0x20" (subscript_expression "param_1[0x25]" (identifier "param_1") ([ "[") (number_literal "0x25") (] "]")) (= "=") (binary_expression "iVar2 + 0x20" (identifier "iVar2") (+ "+") (number_literal "0x20"))) (; ";")) (expression_statement "piVar4 = (ios_base *)((int)param_2 + iVar3);" (assignment_expression "piVar4 = (ios_base *)((int)param_2 + iVar3)" (identifier "piVar4") (= "=") (cast_expression "(ios_base *)((int)param_2 + iVar3)" (( "(") (type_descriptor "ios_base *" (type_identifier "ios_base") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + iVar3)" (( "(") (binary_expression "(int)param_2 + iVar3" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (identifier "iVar3")) () ")")))) (; ";")) (labeled_statement "std::ios_base::_M_move(this,piVar4);" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "ios_base::_M_move(this,piVar4);" (statement_identifier "ios_base") (: ":") (ERROR ":" (: ":")) (expression_statement "_M_move(this,piVar4);" (call_expression "_M_move(this,piVar4)" (identifier "_M_move") (argument_list "(this,piVar4)" (( "(") (identifier "this") (, ",") (identifier "piVar4") () ")"))) (; ";")))) (labeled_statement "std::ios::_M_cache_locale((ios *)this,(locale *)(param_1 + 0x40));" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "ios::_M_cache_locale((ios *)this,(locale *)(param_1 + 0x40));" (statement_identifier "ios") (: ":") (ERROR ":" (: ":")) (expression_statement "_M_cache_locale((ios *)this,(locale *)(param_1 + 0x40));" (call_expression "_M_cache_locale((ios *)this,(locale *)(param_1 + 0x40))" (identifier "_M_cache_locale") (argument_list "((ios *)this,(locale *)(param_1 + 0x40))" (( "(") (cast_expression "(ios *)this" (( "(") (type_descriptor "ios *" (type_identifier "ios") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "this")) (, ",") (cast_expression "(locale *)(param_1 + 0x40)" (( "(") (type_descriptor "locale *" (type_identifier "locale") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) () ")"))) () ")"))) (; ";")))) (expression_statement "iVar2 = *(int *)(piVar4 + 0x70);" (assignment_expression "iVar2 = *(int *)(piVar4 + 0x70)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(piVar4 + 0x70)" (* "*") (cast_expression "(int *)(piVar4 + 0x70)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar4 + 0x70)" (( "(") (binary_expression "piVar4 + 0x70" (identifier "piVar4") (+ "+") (number_literal "0x70")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(piVar4 + 0x70) = 0;" (assignment_expression "*(undefined4 *)(piVar4 + 0x70) = 0" (pointer_expression "*(undefined4 *)(piVar4 + 0x70)" (* "*") (cast_expression "(undefined4 *)(piVar4 + 0x70)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar4 + 0x70)" (( "(") (binary_expression "piVar4 + 0x70" (identifier "piVar4") (+ "+") (number_literal "0x70")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[0x41] = iVar2;" (assignment_expression "param_1[0x41] = iVar2" (subscript_expression "param_1[0x41]" (identifier "param_1") ([ "[") (number_literal "0x41") (] "]")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "iVar2 = *(int *)(in_t9 + 0x1573d0);" (assignment_expression "iVar2 = *(int *)(in_t9 + 0x1573d0)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(in_t9 + 0x1573d0)" (* "*") (cast_expression "(int *)(in_t9 + 0x1573d0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_t9 + 0x1573d0)" (( "(") (binary_expression "in_t9 + 0x1573d0" (identifier "in_t9") (+ "+") (number_literal "0x1573d0")) () ")"))))) (; ";")) (expression_statement "*(ios_base *)(param_1 + 0x42) = piVar4[0x74];" (assignment_expression "*(ios_base *)(param_1 + 0x42) = piVar4[0x74]" (pointer_expression "*(ios_base *)(param_1 + 0x42)" (* "*") (cast_expression "(ios_base *)(param_1 + 0x42)" (( "(") (type_descriptor "ios_base *" (type_identifier "ios_base") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x42)" (( "(") (binary_expression "param_1 + 0x42" (identifier "param_1") (+ "+") (number_literal "0x42")) () ")")))) (= "=") (subscript_expression "piVar4[0x74]" (identifier "piVar4") ([ "[") (number_literal "0x74") (] "]"))) (; ";")) (expression_statement "iVar1 = piVar4[0x75];" (assignment_expression "iVar1 = piVar4[0x75]" (identifier "iVar1") (= "=") (subscript_expression "piVar4[0x75]" (identifier "piVar4") ([ "[") (number_literal "0x75") (] "]"))) (; ";")) (expression_statement "param_1[0x43] = 0;" (assignment_expression "param_1[0x43] = 0" (subscript_expression "param_1[0x43]" (identifier "param_1") ([ "[") (number_literal "0x43") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(ios_base *)((int)param_1 + 0x109) = iVar1;" (assignment_expression "*(ios_base *)((int)param_1 + 0x109) = iVar1" (pointer_expression "*(ios_base *)((int)param_1 + 0x109)" (* "*") (cast_expression "(ios_base *)((int)param_1 + 0x109)" (( "(") (type_descriptor "ios_base *" (type_identifier "ios_base") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 0x109)" (( "(") (binary_expression "(int)param_1 + 0x109" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0x109")) () ")")))) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "param_2[1] = 0;" (assignment_expression "param_2[1] = 0" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*param_1 = iVar2 + 0xc;" (assignment_expression "*param_1 = iVar2 + 0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "iVar2 + 0xc" (identifier "iVar2") (+ "+") (number_literal "0xc"))) (; ";")) (expression_statement "param_1[0x25] = iVar2 + 0x34;" (assignment_expression "param_1[0x25] = iVar2 + 0x34" (subscript_expression "param_1[0x25]" (identifier "param_1") ([ "[") (number_literal "0x25") (] "]")) (= "=") (binary_expression "iVar2 + 0x34" (identifier "iVar2") (+ "+") (number_literal "0x34"))) (; ";")) (expression_statement "param_1[2] = iVar2 + 0x20;" (assignment_expression "param_1[2] = iVar2 + 0x20" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "iVar2 + 0x20" (identifier "iVar2") (+ "+") (number_literal "0x20"))) (; ";")) (labeled_statement "std::filebuf::filebuf((filebuf *)(param_1 + 3),(filebuf *)(param_2 + 3));" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "filebuf::filebuf((filebuf *)(param_1 + 3),(filebuf *)(param_2 + 3));" (statement_identifier "filebuf") (: ":") (ERROR ":" (: ":")) (expression_statement "filebuf((filebuf *)(param_1 + 3),(filebuf *)(param_2 + 3));" (call_expression "filebuf((filebuf *)(param_1 + 3),(filebuf *)(param_2 + 3))" (identifier "filebuf") (argument_list "((filebuf *)(param_1 + 3),(filebuf *)(param_2 + 3))" (( "(") (cast_expression "(filebuf *)(param_1 + 3)" (( "(") (type_descriptor "filebuf *" (type_identifier "filebuf") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 3)" (( "(") (binary_expression "param_1 + 3" (identifier "param_1") (+ "+") (number_literal "3")) () ")"))) (, ",") (cast_expression "(filebuf *)(param_2 + 3)" (( "(") (type_descriptor "filebuf *" (type_identifier "filebuf") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 3)" (( "(") (binary_expression "param_2 + 3" (identifier "param_2") (+ "+") (number_literal "3")) () ")"))) () ")"))) (; ";")))) (expression_statement "param_1[0x43] = (int)(param_1 + 3);" (assignment_expression "param_1[0x43] = (int)(param_1 + 3)" (subscript_expression "param_1[0x43]" (identifier "param_1") ([ "[") (number_literal "0x43") (] "]")) (= "=") (cast_expression "(int)(param_1 + 3)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(param_1 + 3)" (( "(") (binary_expression "param_1 + 3" (identifier "param_1") (+ "+") (number_literal "3")) () ")")))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) 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: (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: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (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: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (identifier)))))) (labeled_statement label: (statement_identifier) (ERROR) (labeled_statement label: (statement_identifier) (ERROR) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (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: (identifier)) (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (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: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (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: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (identifier))) (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: (binary_expression left: (identifier) right: (number_literal)))) (labeled_statement label: (statement_identifier) (ERROR) (labeled_statement label: (statement_identifier) (ERROR) (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (return_statement))))

void MASKED(int *param_1,int *param_2)

{
  ios_base iVar1;
  int iVar2;
  int iVar3;
  ios_base *piVar4;
  ios_base *this;
  int in_t9;
  
  this = (ios_base *)(param_1 + 0x25);
  std::ios_base::ios_base(this);
  *(undefined2 *)(param_1 + 0x42) = 0;
  iVar3 = param_2[1];
  param_1[0x41] = 0;
  iVar2 = *(int *)(in_t9 + 0x1573d8);
  param_1[1] = iVar3;
  *param_1 = iVar2 + 0xc;
  iVar3 = *param_2;
  param_1[0x43] = 0;
  param_1[0x44] = 0;
  param_1[0x45] = 0;
  iVar3 = *(int *)(iVar3 + -0xc);
  param_1[0x46] = 0;
  param_1[0x25] = iVar2 + 0x20;
  piVar4 = (ios_base *)((int)param_2 + iVar3);
  std::ios_base::_M_move(this,piVar4);
                    /* try { // try from 0036e154 to 0036e15b has its CatchHandler @ 0036e1dc */
  std::ios::_M_cache_locale((ios *)this,(locale *)(param_1 + 0x40));
  iVar2 = *(int *)(piVar4 + 0x70);
  *(undefined4 *)(piVar4 + 0x70) = 0;
  param_1[0x41] = iVar2;
  iVar2 = *(int *)(in_t9 + 0x1573d0);
  *(ios_base *)(param_1 + 0x42) = piVar4[0x74];
  iVar1 = piVar4[0x75];
  param_1[0x43] = 0;
  *(ios_base *)((int)param_1 + 0x109) = iVar1;
  param_2[1] = 0;
  *param_1 = iVar2 + 0xc;
  param_1[0x25] = iVar2 + 0x34;
                    /* try { // try from 0036e1ac to 0036e1b3 has its CatchHandler @ 0036e20c */
  param_1[2] = iVar2 + 0x20;
  std::filebuf::filebuf((filebuf *)(param_1 + 3),(filebuf *)(param_2 + 3));
  param_1[0x43] = (int)(param_1 + 3);
  return;
}

