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

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

{
  int iVar1;
  int *in_a1;
  
  iVar1 = in_a1[2];
  *(int *)this = iVar1;
  *(int *)(this + *(int *)(iVar1 + -0xc)) = in_a1[3];
  *(undefined4 *)(this + 4) = 0;
  ios::init((ios *)(this + *(int *)(iVar1 + -0xc)),(streambuf *)0x0);
  iVar1 = in_a1[4];
  *(int *)(this + 8) = iVar1;
  iVar1 = *(int *)(iVar1 + -0xc);
                    /* try { // try from 0036d3a0 to 0036d3a7 has its CatchHandler @ 0036d438 */
  *(int *)(this + iVar1 + 8) = in_a1[5];
  ios::init((ios *)(this + iVar1 + 8),(streambuf *)0x0);
  iVar1 = in_a1[1];
  *(int *)this = iVar1;
  *(int *)(this + *(int *)(iVar1 + -0xc)) = in_a1[6];
  *(int *)(this + 8) = in_a1[7];
  iVar1 = *in_a1;
  *(int *)this = iVar1;
  *(int *)(this + *(int *)(iVar1 + -0xc)) = in_a1[8];
                    /* try { // try from 0036d3f4 to 0036d3fb has its CatchHandler @ 0036d4c0 */
  *(int *)(this + 8) = in_a1[9];
  filebuf::filebuf((filebuf *)(this + 0xc));
                    /* try { // try from 0036d410 to 0036d417 has its CatchHandler @ 0036d460 */
  ios::init((ios *)(this + *(int *)(*(int *)this + -0xc)),(streambuf *)(this + 0xc));
  return;
}



void FUN_0036d314(int *param_1,int *param_2)

{
  int iVar1;
  ios *this;
  
  iVar1 = param_2[2];
  *param_1 = iVar1;
  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[3];
  param_1[1] = 0;
  std::ios::init((ios *)((int)param_1 + *(int *)(iVar1 + -0xc)),(streambuf *)0x0);
  iVar1 = param_2[4];
  param_1[2] = iVar1;
  this = (ios *)((int)param_1 + *(int *)(iVar1 + -0xc) + 8);
                    /* try { // try from 0036d3a0 to 0036d3a7 has its CatchHandler @ 0036d438 */
  *(int *)this = param_2[5];
  std::ios::init(this,(streambuf *)0x0);
  iVar1 = param_2[1];
  *param_1 = iVar1;
  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[6];
  param_1[2] = param_2[7];
  iVar1 = *param_2;
  *param_1 = iVar1;
  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[8];
                    /* try { // try from 0036d3f4 to 0036d3fb has its CatchHandler @ 0036d4c0 */
  param_1[2] = param_2[9];
  std::filebuf::filebuf((filebuf *)(param_1 + 3));
                    /* try { // try from 0036d410 to 0036d417 has its CatchHandler @ 0036d460 */
  std::ios::init((ios *)((int)param_1 + *(int *)(*param_1 + -0xc)),(streambuf *)(param_1 + 3));
  return;
}


lui gp,0x16
addiu gp,gp,-0x40d4
addu gp,gp,t9
lw v0,0x8(a1)
addiu sp,sp,-0x30
lw t9,-0x6f98(gp)
sw gp,0x10(sp)
sw s1,0x1c(sp)
or s1,a1,zero
sw s2,0x20(sp)
addiu s2,a0,0x8
sw s0,0x18(sp)
or s0,a0,zero
sw ra,0x2c(sp)
or a1,zero,zero
sw s4,0x28(sp)
sw s3,0x24(sp)
sw v0,0x0(a0)
lw v1,-0xc(v0)
lw a0,0xc(s1)
addu v1,s0,v1
sw a0,0x0(v1)
sw zero,0x4(s0)
lw a0,-0xc(v0)
bal 0x00366530
_addu a0,s0,a0
or a1,zero,zero
lw v0,0x10(s1)
lw gp,0x10(sp)
sw v0,0x8(s0)
lw v0,-0xc(v0)
lw v1,0x14(s1)
lw t9,-0x6f98(gp)
addu v0,s2,v0
or a0,v0,zero
bal 0x00366530
_sw v1,0x0(v0)
lw v0,0x4(s1)
addiu s3,s0,0xc
lw gp,0x10(sp)
or a0,s3,zero
sw v0,0x0(s0)
lw v0,-0xc(v0)
lw v1,0x18(s1)
lw t9,-0x6f90(gp)
addu v0,s0,v0
sw v1,0x0(v0)
lw v0,0x1c(s1)
sw v0,0x8(s0)
lw v0,0x0(s1)
sw v0,0x0(s0)
lw v0,-0xc(v0)
lw v1,0x20(s1)
addu v0,s0,v0
sw v1,0x0(v0)
lw v0,0x24(s1)
bal 0x00368de8
_sw v0,0x8(s0)
lw v0,0x0(s0)
or a1,s3,zero
lw gp,0x10(sp)
lw a0,-0xc(v0)
lw t9,-0x6f98(gp)
bal 0x00366530
_addu a0,s0,a0
lw ra,0x2c(sp)
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x30
(translation_unit "void FUN_0036d314(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  ios *this;\n  \n  iVar1 = param_2[2];\n  *param_1 = iVar1;\n  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[3];\n  param_1[1] = 0;\n  std::ios::init((ios *)((int)param_1 + *(int *)(iVar1 + -0xc)),(streambuf *)0x0);\n  iVar1 = param_2[4];\n  param_1[2] = iVar1;\n  this = (ios *)((int)param_1 + *(int *)(iVar1 + -0xc) + 8);\n                    /* try { // try from 0036d3a0 to 0036d3a7 has its CatchHandler @ 0036d438 */\n  *(int *)this = param_2[5];\n  std::ios::init(this,(streambuf *)0x0);\n  iVar1 = param_2[1];\n  *param_1 = iVar1;\n  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[6];\n  param_1[2] = param_2[7];\n  iVar1 = *param_2;\n  *param_1 = iVar1;\n  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[8];\n                    /* try { // try from 0036d3f4 to 0036d3fb has its CatchHandler @ 0036d4c0 */\n  param_1[2] = param_2[9];\n  std::filebuf::filebuf((filebuf *)(param_1 + 3));\n                    /* try { // try from 0036d410 to 0036d417 has its CatchHandler @ 0036d460 */\n  std::ios::init((ios *)((int)param_1 + *(int *)(*param_1 + -0xc)),(streambuf *)(param_1 + 3));\n  return;\n}\n\n" (function_definition "void FUN_0036d314(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  ios *this;\n  \n  iVar1 = param_2[2];\n  *param_1 = iVar1;\n  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[3];\n  param_1[1] = 0;\n  std::ios::init((ios *)((int)param_1 + *(int *)(iVar1 + -0xc)),(streambuf *)0x0);\n  iVar1 = param_2[4];\n  param_1[2] = iVar1;\n  this = (ios *)((int)param_1 + *(int *)(iVar1 + -0xc) + 8);\n                    /* try { // try from 0036d3a0 to 0036d3a7 has its CatchHandler @ 0036d438 */\n  *(int *)this = param_2[5];\n  std::ios::init(this,(streambuf *)0x0);\n  iVar1 = param_2[1];\n  *param_1 = iVar1;\n  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[6];\n  param_1[2] = param_2[7];\n  iVar1 = *param_2;\n  *param_1 = iVar1;\n  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[8];\n                    /* try { // try from 0036d3f4 to 0036d3fb has its CatchHandler @ 0036d4c0 */\n  param_1[2] = param_2[9];\n  std::filebuf::filebuf((filebuf *)(param_1 + 3));\n                    /* try { // try from 0036d410 to 0036d417 has its CatchHandler @ 0036d460 */\n  std::ios::init((ios *)((int)param_1 + *(int *)(*param_1 + -0xc)),(streambuf *)(param_1 + 3));\n  return;\n}" primitive_type (function_declarator "FUN_0036d314(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  int iVar1;\n  ios *this;\n  \n  iVar1 = param_2[2];\n  *param_1 = iVar1;\n  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[3];\n  param_1[1] = 0;\n  std::ios::init((ios *)((int)param_1 + *(int *)(iVar1 + -0xc)),(streambuf *)0x0);\n  iVar1 = param_2[4];\n  param_1[2] = iVar1;\n  this = (ios *)((int)param_1 + *(int *)(iVar1 + -0xc) + 8);\n                    /* try { // try from 0036d3a0 to 0036d3a7 has its CatchHandler @ 0036d438 */\n  *(int *)this = param_2[5];\n  std::ios::init(this,(streambuf *)0x0);\n  iVar1 = param_2[1];\n  *param_1 = iVar1;\n  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[6];\n  param_1[2] = param_2[7];\n  iVar1 = *param_2;\n  *param_1 = iVar1;\n  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[8];\n                    /* try { // try from 0036d3f4 to 0036d3fb has its CatchHandler @ 0036d4c0 */\n  param_1[2] = param_2[9];\n  std::filebuf::filebuf((filebuf *)(param_1 + 3));\n                    /* try { // try from 0036d410 to 0036d417 has its CatchHandler @ 0036d460 */\n  std::ios::init((ios *)((int)param_1 + *(int *)(*param_1 + -0xc)),(streambuf *)(param_1 + 3));\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "ios *this;" type_identifier (pointer_declarator "*this" * identifier) ;) (expression_statement "iVar1 = param_2[2];" (assignment_expression "iVar1 = param_2[2]" identifier = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[3];" (assignment_expression "*(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[3]" (pointer_expression "*(int *)((int)param_1 + *(int *)(iVar1 + -0xc))" * (cast_expression "(int *)((int)param_1 + *(int *)(iVar1 + -0xc))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(iVar1 + -0xc))" ( (binary_expression "(int)param_1 + *(int *)(iVar1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar1 + -0xc)" * (cast_expression "(int *)(iVar1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0xc)" ( (binary_expression "iVar1 + -0xc" identifier + number_literal) ))))) )))) = (subscript_expression "param_2[3]" identifier [ number_literal ])) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (labeled_statement "std::ios::init((ios *)((int)param_1 + *(int *)(iVar1 + -0xc)),(streambuf *)0x0);" statement_identifier : (ERROR ":" :) (labeled_statement "ios::init((ios *)((int)param_1 + *(int *)(iVar1 + -0xc)),(streambuf *)0x0);" statement_identifier : (ERROR ":" :) (expression_statement "init((ios *)((int)param_1 + *(int *)(iVar1 + -0xc)),(streambuf *)0x0);" (call_expression "init((ios *)((int)param_1 + *(int *)(iVar1 + -0xc)),(streambuf *)0x0)" identifier (argument_list "((ios *)((int)param_1 + *(int *)(iVar1 + -0xc)),(streambuf *)0x0)" ( (cast_expression "(ios *)((int)param_1 + *(int *)(iVar1 + -0xc))" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(iVar1 + -0xc))" ( (binary_expression "(int)param_1 + *(int *)(iVar1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar1 + -0xc)" * (cast_expression "(int *)(iVar1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0xc)" ( (binary_expression "iVar1 + -0xc" identifier + number_literal) ))))) ))) , (cast_expression "(streambuf *)0x0" ( (type_descriptor "streambuf *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;))) (expression_statement "iVar1 = param_2[4];" (assignment_expression "iVar1 = param_2[4]" identifier = (subscript_expression "param_2[4]" identifier [ number_literal ])) ;) (expression_statement "param_1[2] = iVar1;" (assignment_expression "param_1[2] = iVar1" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "this = (ios *)((int)param_1 + *(int *)(iVar1 + -0xc) + 8);" (assignment_expression "this = (ios *)((int)param_1 + *(int *)(iVar1 + -0xc) + 8)" identifier = (cast_expression "(ios *)((int)param_1 + *(int *)(iVar1 + -0xc) + 8)" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(iVar1 + -0xc) + 8)" ( (binary_expression "(int)param_1 + *(int *)(iVar1 + -0xc) + 8" (binary_expression "(int)param_1 + *(int *)(iVar1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar1 + -0xc)" * (cast_expression "(int *)(iVar1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0xc)" ( (binary_expression "iVar1 + -0xc" identifier + number_literal) ))))) + number_literal) )))) ;) comment (expression_statement "*(int *)this = param_2[5];" (assignment_expression "*(int *)this = param_2[5]" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (subscript_expression "param_2[5]" identifier [ number_literal ])) ;) (labeled_statement "std::ios::init(this,(streambuf *)0x0);" statement_identifier : (ERROR ":" :) (labeled_statement "ios::init(this,(streambuf *)0x0);" statement_identifier : (ERROR ":" :) (expression_statement "init(this,(streambuf *)0x0);" (call_expression "init(this,(streambuf *)0x0)" identifier (argument_list "(this,(streambuf *)0x0)" ( identifier , (cast_expression "(streambuf *)0x0" ( (type_descriptor "streambuf *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;))) (expression_statement "iVar1 = param_2[1];" (assignment_expression "iVar1 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[6];" (assignment_expression "*(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[6]" (pointer_expression "*(int *)((int)param_1 + *(int *)(iVar1 + -0xc))" * (cast_expression "(int *)((int)param_1 + *(int *)(iVar1 + -0xc))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(iVar1 + -0xc))" ( (binary_expression "(int)param_1 + *(int *)(iVar1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar1 + -0xc)" * (cast_expression "(int *)(iVar1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0xc)" ( (binary_expression "iVar1 + -0xc" identifier + number_literal) ))))) )))) = (subscript_expression "param_2[6]" identifier [ number_literal ])) ;) (expression_statement "param_1[2] = param_2[7];" (assignment_expression "param_1[2] = param_2[7]" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (subscript_expression "param_2[7]" identifier [ number_literal ])) ;) (expression_statement "iVar1 = *param_2;" (assignment_expression "iVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[8];" (assignment_expression "*(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[8]" (pointer_expression "*(int *)((int)param_1 + *(int *)(iVar1 + -0xc))" * (cast_expression "(int *)((int)param_1 + *(int *)(iVar1 + -0xc))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(iVar1 + -0xc))" ( (binary_expression "(int)param_1 + *(int *)(iVar1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar1 + -0xc)" * (cast_expression "(int *)(iVar1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0xc)" ( (binary_expression "iVar1 + -0xc" identifier + number_literal) ))))) )))) = (subscript_expression "param_2[8]" identifier [ number_literal ])) ;) comment (expression_statement "param_1[2] = param_2[9];" (assignment_expression "param_1[2] = param_2[9]" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (subscript_expression "param_2[9]" identifier [ number_literal ])) ;) (labeled_statement "std::filebuf::filebuf((filebuf *)(param_1 + 3));" statement_identifier : (ERROR ":" :) (labeled_statement "filebuf::filebuf((filebuf *)(param_1 + 3));" statement_identifier : (ERROR ":" :) (expression_statement "filebuf((filebuf *)(param_1 + 3));" (call_expression "filebuf((filebuf *)(param_1 + 3))" identifier (argument_list "((filebuf *)(param_1 + 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) ))) ))) ;))) comment (labeled_statement "std::ios::init((ios *)((int)param_1 + *(int *)(*param_1 + -0xc)),(streambuf *)(param_1 + 3));" statement_identifier : (ERROR ":" :) (labeled_statement "ios::init((ios *)((int)param_1 + *(int *)(*param_1 + -0xc)),(streambuf *)(param_1 + 3));" statement_identifier : (ERROR ":" :) (expression_statement "init((ios *)((int)param_1 + *(int *)(*param_1 + -0xc)),(streambuf *)(param_1 + 3));" (call_expression "init((ios *)((int)param_1 + *(int *)(*param_1 + -0xc)),(streambuf *)(param_1 + 3))" identifier (argument_list "((ios *)((int)param_1 + *(int *)(*param_1 + -0xc)),(streambuf *)(param_1 + 3))" ( (cast_expression "(ios *)((int)param_1 + *(int *)(*param_1 + -0xc))" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc))" ( (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ))) , (cast_expression "(streambuf *)(param_1 + 3)" ( (type_descriptor "streambuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 3)" ( (binary_expression "param_1 + 3" identifier + number_literal) ))) ))) ;))) (return_statement "return;" return ;) })))
(translation_unit "/* std::fstream::fstream() */\n\nvoid __thiscall std::fstream::fstream(fstream *this)\n\n{\n  int iVar1;\n  int *in_a1;\n  \n  iVar1 = in_a1[2];\n  *(int *)this = iVar1;\n  *(int *)(this + *(int *)(iVar1 + -0xc)) = in_a1[3];\n  *(undefined4 *)(this + 4) = 0;\n  ios::init((ios *)(this + *(int *)(iVar1 + -0xc)),(streambuf *)0x0);\n  iVar1 = in_a1[4];\n  *(int *)(this + 8) = iVar1;\n  iVar1 = *(int *)(iVar1 + -0xc);\n                    /* try { // try from 0036d3a0 to 0036d3a7 has its CatchHandler @ 0036d438 */\n  *(int *)(this + iVar1 + 8) = in_a1[5];\n  ios::init((ios *)(this + iVar1 + 8),(streambuf *)0x0);\n  iVar1 = in_a1[1];\n  *(int *)this = iVar1;\n  *(int *)(this + *(int *)(iVar1 + -0xc)) = in_a1[6];\n  *(int *)(this + 8) = in_a1[7];\n  iVar1 = *in_a1;\n  *(int *)this = iVar1;\n  *(int *)(this + *(int *)(iVar1 + -0xc)) = in_a1[8];\n                    /* try { // try from 0036d3f4 to 0036d3fb has its CatchHandler @ 0036d4c0 */\n  *(int *)(this + 8) = in_a1[9];\n  filebuf::filebuf((filebuf *)(this + 0xc));\n                    /* try { // try from 0036d410 to 0036d417 has its CatchHandler @ 0036d460 */\n  ios::init((ios *)(this + *(int *)(*(int *)this + -0xc)),(streambuf *)(this + 0xc));\n  return;\n}\n\n" comment (function_definition "void __thiscall std::fstream::fstream(fstream *this)\n\n{\n  int iVar1;\n  int *in_a1;\n  \n  iVar1 = in_a1[2];\n  *(int *)this = iVar1;\n  *(int *)(this + *(int *)(iVar1 + -0xc)) = in_a1[3];\n  *(undefined4 *)(this + 4) = 0;\n  ios::init((ios *)(this + *(int *)(iVar1 + -0xc)),(streambuf *)0x0);\n  iVar1 = in_a1[4];\n  *(int *)(this + 8) = iVar1;\n  iVar1 = *(int *)(iVar1 + -0xc);\n                    /* try { // try from 0036d3a0 to 0036d3a7 has its CatchHandler @ 0036d438 */\n  *(int *)(this + iVar1 + 8) = in_a1[5];\n  ios::init((ios *)(this + iVar1 + 8),(streambuf *)0x0);\n  iVar1 = in_a1[1];\n  *(int *)this = iVar1;\n  *(int *)(this + *(int *)(iVar1 + -0xc)) = in_a1[6];\n  *(int *)(this + 8) = in_a1[7];\n  iVar1 = *in_a1;\n  *(int *)this = iVar1;\n  *(int *)(this + *(int *)(iVar1 + -0xc)) = in_a1[8];\n                    /* try { // try from 0036d3f4 to 0036d3fb has its CatchHandler @ 0036d4c0 */\n  *(int *)(this + 8) = in_a1[9];\n  filebuf::filebuf((filebuf *)(this + 0xc));\n                    /* try { // try from 0036d410 to 0036d417 has its CatchHandler @ 0036d460 */\n  ios::init((ios *)(this + *(int *)(*(int *)this + -0xc)),(streambuf *)(this + 0xc));\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::fstream::" identifier : : identifier : :) (function_declarator "fstream(fstream *this)" identifier (parameter_list "(fstream *this)" ( (parameter_declaration "fstream *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *in_a1;\n  \n  iVar1 = in_a1[2];\n  *(int *)this = iVar1;\n  *(int *)(this + *(int *)(iVar1 + -0xc)) = in_a1[3];\n  *(undefined4 *)(this + 4) = 0;\n  ios::init((ios *)(this + *(int *)(iVar1 + -0xc)),(streambuf *)0x0);\n  iVar1 = in_a1[4];\n  *(int *)(this + 8) = iVar1;\n  iVar1 = *(int *)(iVar1 + -0xc);\n                    /* try { // try from 0036d3a0 to 0036d3a7 has its CatchHandler @ 0036d438 */\n  *(int *)(this + iVar1 + 8) = in_a1[5];\n  ios::init((ios *)(this + iVar1 + 8),(streambuf *)0x0);\n  iVar1 = in_a1[1];\n  *(int *)this = iVar1;\n  *(int *)(this + *(int *)(iVar1 + -0xc)) = in_a1[6];\n  *(int *)(this + 8) = in_a1[7];\n  iVar1 = *in_a1;\n  *(int *)this = iVar1;\n  *(int *)(this + *(int *)(iVar1 + -0xc)) = in_a1[8];\n                    /* try { // try from 0036d3f4 to 0036d3fb has its CatchHandler @ 0036d4c0 */\n  *(int *)(this + 8) = in_a1[9];\n  filebuf::filebuf((filebuf *)(this + 0xc));\n                    /* try { // try from 0036d410 to 0036d417 has its CatchHandler @ 0036d460 */\n  ios::init((ios *)(this + *(int *)(*(int *)this + -0xc)),(streambuf *)(this + 0xc));\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *in_a1;" primitive_type (pointer_declarator "*in_a1" * identifier) ;) (expression_statement "iVar1 = in_a1[2];" (assignment_expression "iVar1 = in_a1[2]" identifier = (subscript_expression "in_a1[2]" identifier [ number_literal ])) ;) (expression_statement "*(int *)this = iVar1;" (assignment_expression "*(int *)this = iVar1" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(int *)(this + *(int *)(iVar1 + -0xc)) = in_a1[3];" (assignment_expression "*(int *)(this + *(int *)(iVar1 + -0xc)) = in_a1[3]" (pointer_expression "*(int *)(this + *(int *)(iVar1 + -0xc))" * (cast_expression "(int *)(this + *(int *)(iVar1 + -0xc))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(int *)(iVar1 + -0xc))" ( (binary_expression "this + *(int *)(iVar1 + -0xc)" identifier + (pointer_expression "*(int *)(iVar1 + -0xc)" * (cast_expression "(int *)(iVar1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0xc)" ( (binary_expression "iVar1 + -0xc" identifier + number_literal) ))))) )))) = (subscript_expression "in_a1[3]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(this + 4) = 0;" (assignment_expression "*(undefined4 *)(this + 4) = 0" (pointer_expression "*(undefined4 *)(this + 4)" * (cast_expression "(undefined4 *)(this + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = number_literal) ;) (labeled_statement "ios::init((ios *)(this + *(int *)(iVar1 + -0xc)),(streambuf *)0x0);" statement_identifier : (ERROR ":" :) (expression_statement "init((ios *)(this + *(int *)(iVar1 + -0xc)),(streambuf *)0x0);" (call_expression "init((ios *)(this + *(int *)(iVar1 + -0xc)),(streambuf *)0x0)" identifier (argument_list "((ios *)(this + *(int *)(iVar1 + -0xc)),(streambuf *)0x0)" ( (cast_expression "(ios *)(this + *(int *)(iVar1 + -0xc))" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(int *)(iVar1 + -0xc))" ( (binary_expression "this + *(int *)(iVar1 + -0xc)" identifier + (pointer_expression "*(int *)(iVar1 + -0xc)" * (cast_expression "(int *)(iVar1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0xc)" ( (binary_expression "iVar1 + -0xc" identifier + number_literal) ))))) ))) , (cast_expression "(streambuf *)0x0" ( (type_descriptor "streambuf *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;)) (expression_statement "iVar1 = in_a1[4];" (assignment_expression "iVar1 = in_a1[4]" identifier = (subscript_expression "in_a1[4]" identifier [ number_literal ])) ;) (expression_statement "*(int *)(this + 8) = iVar1;" (assignment_expression "*(int *)(this + 8) = iVar1" (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) )))) = identifier) ;) (expression_statement "iVar1 = *(int *)(iVar1 + -0xc);" (assignment_expression "iVar1 = *(int *)(iVar1 + -0xc)" identifier = (pointer_expression "*(int *)(iVar1 + -0xc)" * (cast_expression "(int *)(iVar1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0xc)" ( (binary_expression "iVar1 + -0xc" identifier + number_literal) ))))) ;) comment (expression_statement "*(int *)(this + iVar1 + 8) = in_a1[5];" (assignment_expression "*(int *)(this + iVar1 + 8) = in_a1[5]" (pointer_expression "*(int *)(this + iVar1 + 8)" * (cast_expression "(int *)(this + iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + iVar1 + 8)" ( (binary_expression "this + iVar1 + 8" (binary_expression "this + iVar1" identifier + identifier) + number_literal) )))) = (subscript_expression "in_a1[5]" identifier [ number_literal ])) ;) (labeled_statement "ios::init((ios *)(this + iVar1 + 8),(streambuf *)0x0);" statement_identifier : (ERROR ":" :) (expression_statement "init((ios *)(this + iVar1 + 8),(streambuf *)0x0);" (call_expression "init((ios *)(this + iVar1 + 8),(streambuf *)0x0)" identifier (argument_list "((ios *)(this + iVar1 + 8),(streambuf *)0x0)" ( (cast_expression "(ios *)(this + iVar1 + 8)" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + iVar1 + 8)" ( (binary_expression "this + iVar1 + 8" (binary_expression "this + iVar1" identifier + identifier) + number_literal) ))) , (cast_expression "(streambuf *)0x0" ( (type_descriptor "streambuf *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;)) (expression_statement "iVar1 = in_a1[1];" (assignment_expression "iVar1 = in_a1[1]" identifier = (subscript_expression "in_a1[1]" identifier [ number_literal ])) ;) (expression_statement "*(int *)this = iVar1;" (assignment_expression "*(int *)this = iVar1" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(int *)(this + *(int *)(iVar1 + -0xc)) = in_a1[6];" (assignment_expression "*(int *)(this + *(int *)(iVar1 + -0xc)) = in_a1[6]" (pointer_expression "*(int *)(this + *(int *)(iVar1 + -0xc))" * (cast_expression "(int *)(this + *(int *)(iVar1 + -0xc))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(int *)(iVar1 + -0xc))" ( (binary_expression "this + *(int *)(iVar1 + -0xc)" identifier + (pointer_expression "*(int *)(iVar1 + -0xc)" * (cast_expression "(int *)(iVar1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0xc)" ( (binary_expression "iVar1 + -0xc" identifier + number_literal) ))))) )))) = (subscript_expression "in_a1[6]" identifier [ number_literal ])) ;) (expression_statement "*(int *)(this + 8) = in_a1[7];" (assignment_expression "*(int *)(this + 8) = in_a1[7]" (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) )))) = (subscript_expression "in_a1[7]" identifier [ number_literal ])) ;) (expression_statement "iVar1 = *in_a1;" (assignment_expression "iVar1 = *in_a1" identifier = (pointer_expression "*in_a1" * identifier)) ;) (expression_statement "*(int *)this = iVar1;" (assignment_expression "*(int *)this = iVar1" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(int *)(this + *(int *)(iVar1 + -0xc)) = in_a1[8];" (assignment_expression "*(int *)(this + *(int *)(iVar1 + -0xc)) = in_a1[8]" (pointer_expression "*(int *)(this + *(int *)(iVar1 + -0xc))" * (cast_expression "(int *)(this + *(int *)(iVar1 + -0xc))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(int *)(iVar1 + -0xc))" ( (binary_expression "this + *(int *)(iVar1 + -0xc)" identifier + (pointer_expression "*(int *)(iVar1 + -0xc)" * (cast_expression "(int *)(iVar1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0xc)" ( (binary_expression "iVar1 + -0xc" identifier + number_literal) ))))) )))) = (subscript_expression "in_a1[8]" identifier [ number_literal ])) ;) comment (expression_statement "*(int *)(this + 8) = in_a1[9];" (assignment_expression "*(int *)(this + 8) = in_a1[9]" (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) )))) = (subscript_expression "in_a1[9]" identifier [ number_literal ])) ;) (labeled_statement "filebuf::filebuf((filebuf *)(this + 0xc));" statement_identifier : (ERROR ":" :) (expression_statement "filebuf((filebuf *)(this + 0xc));" (call_expression "filebuf((filebuf *)(this + 0xc))" identifier (argument_list "((filebuf *)(this + 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) ))) ))) ;)) comment (labeled_statement "ios::init((ios *)(this + *(int *)(*(int *)this + -0xc)),(streambuf *)(this + 0xc));" statement_identifier : (ERROR ":" :) (expression_statement "init((ios *)(this + *(int *)(*(int *)this + -0xc)),(streambuf *)(this + 0xc));" (call_expression "init((ios *)(this + *(int *)(*(int *)this + -0xc)),(streambuf *)(this + 0xc))" identifier (argument_list "((ios *)(this + *(int *)(*(int *)this + -0xc)),(streambuf *)(this + 0xc))" ( (cast_expression "(ios *)(this + *(int *)(*(int *)this + -0xc))" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(int *)(*(int *)this + -0xc))" ( (binary_expression "this + *(int *)(*(int *)this + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)this + -0xc)" * (cast_expression "(int *)(*(int *)this + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) , (cast_expression "(streambuf *)(this + 0xc)" ( (type_descriptor "streambuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) ))) ))) ;)) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0036d314(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  ios *this;\n  \n  iVar1 = param_2[2];\n  *param_1 = iVar1;\n  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[3];\n  param_1[1] = 0;\n  std::ios::init((ios *)((int)param_1 + *(int *)(iVar1 + -0xc)),(streambuf *)0x0);\n  iVar1 = param_2[4];\n  param_1[2] = iVar1;\n  this = (ios *)((int)param_1 + *(int *)(iVar1 + -0xc) + 8);\n                    \n  *(int *)this = param_2[5];\n  std::ios::init(this,(streambuf *)0x0);\n  iVar1 = param_2[1];\n  *param_1 = iVar1;\n  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[6];\n  param_1[2] = param_2[7];\n  iVar1 = *param_2;\n  *param_1 = iVar1;\n  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[8];\n                    \n  param_1[2] = param_2[9];\n  std::filebuf::filebuf((filebuf *)(param_1 + 3));\n                    \n  std::ios::init((ios *)((int)param_1 + *(int *)(*param_1 + -0xc)),(streambuf *)(param_1 + 3));\n  return;\n}\n\n" (function_definition "void FUN_0036d314(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  ios *this;\n  \n  iVar1 = param_2[2];\n  *param_1 = iVar1;\n  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[3];\n  param_1[1] = 0;\n  std::ios::init((ios *)((int)param_1 + *(int *)(iVar1 + -0xc)),(streambuf *)0x0);\n  iVar1 = param_2[4];\n  param_1[2] = iVar1;\n  this = (ios *)((int)param_1 + *(int *)(iVar1 + -0xc) + 8);\n                    \n  *(int *)this = param_2[5];\n  std::ios::init(this,(streambuf *)0x0);\n  iVar1 = param_2[1];\n  *param_1 = iVar1;\n  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[6];\n  param_1[2] = param_2[7];\n  iVar1 = *param_2;\n  *param_1 = iVar1;\n  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[8];\n                    \n  param_1[2] = param_2[9];\n  std::filebuf::filebuf((filebuf *)(param_1 + 3));\n                    \n  std::ios::init((ios *)((int)param_1 + *(int *)(*param_1 + -0xc)),(streambuf *)(param_1 + 3));\n  return;\n}" primitive_type (function_declarator "FUN_0036d314(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  int iVar1;\n  ios *this;\n  \n  iVar1 = param_2[2];\n  *param_1 = iVar1;\n  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[3];\n  param_1[1] = 0;\n  std::ios::init((ios *)((int)param_1 + *(int *)(iVar1 + -0xc)),(streambuf *)0x0);\n  iVar1 = param_2[4];\n  param_1[2] = iVar1;\n  this = (ios *)((int)param_1 + *(int *)(iVar1 + -0xc) + 8);\n                    \n  *(int *)this = param_2[5];\n  std::ios::init(this,(streambuf *)0x0);\n  iVar1 = param_2[1];\n  *param_1 = iVar1;\n  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[6];\n  param_1[2] = param_2[7];\n  iVar1 = *param_2;\n  *param_1 = iVar1;\n  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[8];\n                    \n  param_1[2] = param_2[9];\n  std::filebuf::filebuf((filebuf *)(param_1 + 3));\n                    \n  std::ios::init((ios *)((int)param_1 + *(int *)(*param_1 + -0xc)),(streambuf *)(param_1 + 3));\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "ios *this;" type_identifier (pointer_declarator "*this" * identifier) ;) (expression_statement "iVar1 = param_2[2];" (assignment_expression "iVar1 = param_2[2]" identifier = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[3];" (assignment_expression "*(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[3]" (pointer_expression "*(int *)((int)param_1 + *(int *)(iVar1 + -0xc))" * (cast_expression "(int *)((int)param_1 + *(int *)(iVar1 + -0xc))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(iVar1 + -0xc))" ( (binary_expression "(int)param_1 + *(int *)(iVar1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar1 + -0xc)" * (cast_expression "(int *)(iVar1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0xc)" ( (binary_expression "iVar1 + -0xc" identifier + number_literal) ))))) )))) = (subscript_expression "param_2[3]" identifier [ number_literal ])) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (labeled_statement "std::ios::init((ios *)((int)param_1 + *(int *)(iVar1 + -0xc)),(streambuf *)0x0);" statement_identifier : (ERROR ":" :) (labeled_statement "ios::init((ios *)((int)param_1 + *(int *)(iVar1 + -0xc)),(streambuf *)0x0);" statement_identifier : (ERROR ":" :) (expression_statement "init((ios *)((int)param_1 + *(int *)(iVar1 + -0xc)),(streambuf *)0x0);" (call_expression "init((ios *)((int)param_1 + *(int *)(iVar1 + -0xc)),(streambuf *)0x0)" identifier (argument_list "((ios *)((int)param_1 + *(int *)(iVar1 + -0xc)),(streambuf *)0x0)" ( (cast_expression "(ios *)((int)param_1 + *(int *)(iVar1 + -0xc))" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(iVar1 + -0xc))" ( (binary_expression "(int)param_1 + *(int *)(iVar1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar1 + -0xc)" * (cast_expression "(int *)(iVar1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0xc)" ( (binary_expression "iVar1 + -0xc" identifier + number_literal) ))))) ))) , (cast_expression "(streambuf *)0x0" ( (type_descriptor "streambuf *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;))) (expression_statement "iVar1 = param_2[4];" (assignment_expression "iVar1 = param_2[4]" identifier = (subscript_expression "param_2[4]" identifier [ number_literal ])) ;) (expression_statement "param_1[2] = iVar1;" (assignment_expression "param_1[2] = iVar1" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "this = (ios *)((int)param_1 + *(int *)(iVar1 + -0xc) + 8);" (assignment_expression "this = (ios *)((int)param_1 + *(int *)(iVar1 + -0xc) + 8)" identifier = (cast_expression "(ios *)((int)param_1 + *(int *)(iVar1 + -0xc) + 8)" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(iVar1 + -0xc) + 8)" ( (binary_expression "(int)param_1 + *(int *)(iVar1 + -0xc) + 8" (binary_expression "(int)param_1 + *(int *)(iVar1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar1 + -0xc)" * (cast_expression "(int *)(iVar1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0xc)" ( (binary_expression "iVar1 + -0xc" identifier + number_literal) ))))) + number_literal) )))) ;) (expression_statement "*(int *)this = param_2[5];" (assignment_expression "*(int *)this = param_2[5]" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (subscript_expression "param_2[5]" identifier [ number_literal ])) ;) (labeled_statement "std::ios::init(this,(streambuf *)0x0);" statement_identifier : (ERROR ":" :) (labeled_statement "ios::init(this,(streambuf *)0x0);" statement_identifier : (ERROR ":" :) (expression_statement "init(this,(streambuf *)0x0);" (call_expression "init(this,(streambuf *)0x0)" identifier (argument_list "(this,(streambuf *)0x0)" ( identifier , (cast_expression "(streambuf *)0x0" ( (type_descriptor "streambuf *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;))) (expression_statement "iVar1 = param_2[1];" (assignment_expression "iVar1 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[6];" (assignment_expression "*(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[6]" (pointer_expression "*(int *)((int)param_1 + *(int *)(iVar1 + -0xc))" * (cast_expression "(int *)((int)param_1 + *(int *)(iVar1 + -0xc))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(iVar1 + -0xc))" ( (binary_expression "(int)param_1 + *(int *)(iVar1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar1 + -0xc)" * (cast_expression "(int *)(iVar1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0xc)" ( (binary_expression "iVar1 + -0xc" identifier + number_literal) ))))) )))) = (subscript_expression "param_2[6]" identifier [ number_literal ])) ;) (expression_statement "param_1[2] = param_2[7];" (assignment_expression "param_1[2] = param_2[7]" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (subscript_expression "param_2[7]" identifier [ number_literal ])) ;) (expression_statement "iVar1 = *param_2;" (assignment_expression "iVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[8];" (assignment_expression "*(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[8]" (pointer_expression "*(int *)((int)param_1 + *(int *)(iVar1 + -0xc))" * (cast_expression "(int *)((int)param_1 + *(int *)(iVar1 + -0xc))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(iVar1 + -0xc))" ( (binary_expression "(int)param_1 + *(int *)(iVar1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar1 + -0xc)" * (cast_expression "(int *)(iVar1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0xc)" ( (binary_expression "iVar1 + -0xc" identifier + number_literal) ))))) )))) = (subscript_expression "param_2[8]" identifier [ number_literal ])) ;) (expression_statement "param_1[2] = param_2[9];" (assignment_expression "param_1[2] = param_2[9]" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (subscript_expression "param_2[9]" identifier [ number_literal ])) ;) (labeled_statement "std::filebuf::filebuf((filebuf *)(param_1 + 3));" statement_identifier : (ERROR ":" :) (labeled_statement "filebuf::filebuf((filebuf *)(param_1 + 3));" statement_identifier : (ERROR ":" :) (expression_statement "filebuf((filebuf *)(param_1 + 3));" (call_expression "filebuf((filebuf *)(param_1 + 3))" identifier (argument_list "((filebuf *)(param_1 + 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) ))) ))) ;))) (labeled_statement "std::ios::init((ios *)((int)param_1 + *(int *)(*param_1 + -0xc)),(streambuf *)(param_1 + 3));" statement_identifier : (ERROR ":" :) (labeled_statement "ios::init((ios *)((int)param_1 + *(int *)(*param_1 + -0xc)),(streambuf *)(param_1 + 3));" statement_identifier : (ERROR ":" :) (expression_statement "init((ios *)((int)param_1 + *(int *)(*param_1 + -0xc)),(streambuf *)(param_1 + 3));" (call_expression "init((ios *)((int)param_1 + *(int *)(*param_1 + -0xc)),(streambuf *)(param_1 + 3))" identifier (argument_list "((ios *)((int)param_1 + *(int *)(*param_1 + -0xc)),(streambuf *)(param_1 + 3))" ( (cast_expression "(ios *)((int)param_1 + *(int *)(*param_1 + -0xc))" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc))" ( (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ))) , (cast_expression "(streambuf *)(param_1 + 3)" ( (type_descriptor "streambuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (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 (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )))) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (labeled_statement statement_identifier : (ERROR :) (labeled_statement statement_identifier : (ERROR :) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ))) ;))) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = (subscript_expression IDENT [ LIT ])) ;) (labeled_statement statement_identifier : (ERROR :) (labeled_statement statement_identifier : (ERROR :) (expression_statement (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ))) ;))) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )))) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )))) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_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) ))) ))) ;))) (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 (cast_expression ( (type_descriptor TYPE) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) ))) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) ))) ;))) (return_statement return ;) })))
(function_definition "void FUN_0036d314(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  ios *this;\n  \n  iVar1 = param_2[2];\n  *param_1 = iVar1;\n  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[3];\n  param_1[1] = 0;\n  std::ios::init((ios *)((int)param_1 + *(int *)(iVar1 + -0xc)),(streambuf *)0x0);\n  iVar1 = param_2[4];\n  param_1[2] = iVar1;\n  this = (ios *)((int)param_1 + *(int *)(iVar1 + -0xc) + 8);\n                    \n  *(int *)this = param_2[5];\n  std::ios::init(this,(streambuf *)0x0);\n  iVar1 = param_2[1];\n  *param_1 = iVar1;\n  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[6];\n  param_1[2] = param_2[7];\n  iVar1 = *param_2;\n  *param_1 = iVar1;\n  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[8];\n                    \n  param_1[2] = param_2[9];\n  std::filebuf::filebuf((filebuf *)(param_1 + 3));\n                    \n  std::ios::init((ios *)((int)param_1 + *(int *)(*param_1 + -0xc)),(streambuf *)(param_1 + 3));\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0036d314(int *param_1,int *param_2)" (identifier "FUN_0036d314") (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  int iVar1;\n  ios *this;\n  \n  iVar1 = param_2[2];\n  *param_1 = iVar1;\n  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[3];\n  param_1[1] = 0;\n  std::ios::init((ios *)((int)param_1 + *(int *)(iVar1 + -0xc)),(streambuf *)0x0);\n  iVar1 = param_2[4];\n  param_1[2] = iVar1;\n  this = (ios *)((int)param_1 + *(int *)(iVar1 + -0xc) + 8);\n                    \n  *(int *)this = param_2[5];\n  std::ios::init(this,(streambuf *)0x0);\n  iVar1 = param_2[1];\n  *param_1 = iVar1;\n  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[6];\n  param_1[2] = param_2[7];\n  iVar1 = *param_2;\n  *param_1 = iVar1;\n  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[8];\n                    \n  param_1[2] = param_2[9];\n  std::filebuf::filebuf((filebuf *)(param_1 + 3));\n                    \n  std::ios::init((ios *)((int)param_1 + *(int *)(*param_1 + -0xc)),(streambuf *)(param_1 + 3));\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "ios *this;" (type_identifier "ios") (pointer_declarator "*this" (* "*") (identifier "this")) (; ";")) (expression_statement "iVar1 = param_2[2];" (assignment_expression "iVar1 = param_2[2]" (identifier "iVar1") (= "=") (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "*(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[3];" (assignment_expression "*(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[3]" (pointer_expression "*(int *)((int)param_1 + *(int *)(iVar1 + -0xc))" (* "*") (cast_expression "(int *)((int)param_1 + *(int *)(iVar1 + -0xc))" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + *(int *)(iVar1 + -0xc))" (( "(") (binary_expression "(int)param_1 + *(int *)(iVar1 + -0xc)" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(int *)(iVar1 + -0xc)" (* "*") (cast_expression "(int *)(iVar1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + -0xc)" (( "(") (binary_expression "iVar1 + -0xc" (identifier "iVar1") (+ "+") (number_literal "-0xc")) () ")"))))) () ")")))) (= "=") (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (labeled_statement "std::ios::init((ios *)((int)param_1 + *(int *)(iVar1 + -0xc)),(streambuf *)0x0);" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "ios::init((ios *)((int)param_1 + *(int *)(iVar1 + -0xc)),(streambuf *)0x0);" (statement_identifier "ios") (: ":") (ERROR ":" (: ":")) (expression_statement "init((ios *)((int)param_1 + *(int *)(iVar1 + -0xc)),(streambuf *)0x0);" (call_expression "init((ios *)((int)param_1 + *(int *)(iVar1 + -0xc)),(streambuf *)0x0)" (identifier "init") (argument_list "((ios *)((int)param_1 + *(int *)(iVar1 + -0xc)),(streambuf *)0x0)" (( "(") (cast_expression "(ios *)((int)param_1 + *(int *)(iVar1 + -0xc))" (( "(") (type_descriptor "ios *" (type_identifier "ios") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + *(int *)(iVar1 + -0xc))" (( "(") (binary_expression "(int)param_1 + *(int *)(iVar1 + -0xc)" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(int *)(iVar1 + -0xc)" (* "*") (cast_expression "(int *)(iVar1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + -0xc)" (( "(") (binary_expression "iVar1 + -0xc" (identifier "iVar1") (+ "+") (number_literal "-0xc")) () ")"))))) () ")"))) (, ",") (cast_expression "(streambuf *)0x0" (( "(") (type_descriptor "streambuf *" (type_identifier "streambuf") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) () ")"))) (; ";")))) (expression_statement "iVar1 = param_2[4];" (assignment_expression "iVar1 = param_2[4]" (identifier "iVar1") (= "=") (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]"))) (; ";")) (expression_statement "param_1[2] = iVar1;" (assignment_expression "param_1[2] = iVar1" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "this = (ios *)((int)param_1 + *(int *)(iVar1 + -0xc) + 8);" (assignment_expression "this = (ios *)((int)param_1 + *(int *)(iVar1 + -0xc) + 8)" (identifier "this") (= "=") (cast_expression "(ios *)((int)param_1 + *(int *)(iVar1 + -0xc) + 8)" (( "(") (type_descriptor "ios *" (type_identifier "ios") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + *(int *)(iVar1 + -0xc) + 8)" (( "(") (binary_expression "(int)param_1 + *(int *)(iVar1 + -0xc) + 8" (binary_expression "(int)param_1 + *(int *)(iVar1 + -0xc)" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(int *)(iVar1 + -0xc)" (* "*") (cast_expression "(int *)(iVar1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + -0xc)" (( "(") (binary_expression "iVar1 + -0xc" (identifier "iVar1") (+ "+") (number_literal "-0xc")) () ")"))))) (+ "+") (number_literal "8")) () ")")))) (; ";")) (expression_statement "*(int *)this = param_2[5];" (assignment_expression "*(int *)this = param_2[5]" (pointer_expression "*(int *)this" (* "*") (cast_expression "(int *)this" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "this"))) (= "=") (subscript_expression "param_2[5]" (identifier "param_2") ([ "[") (number_literal "5") (] "]"))) (; ";")) (labeled_statement "std::ios::init(this,(streambuf *)0x0);" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "ios::init(this,(streambuf *)0x0);" (statement_identifier "ios") (: ":") (ERROR ":" (: ":")) (expression_statement "init(this,(streambuf *)0x0);" (call_expression "init(this,(streambuf *)0x0)" (identifier "init") (argument_list "(this,(streambuf *)0x0)" (( "(") (identifier "this") (, ",") (cast_expression "(streambuf *)0x0" (( "(") (type_descriptor "streambuf *" (type_identifier "streambuf") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) () ")"))) (; ";")))) (expression_statement "iVar1 = param_2[1];" (assignment_expression "iVar1 = param_2[1]" (identifier "iVar1") (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "*(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[6];" (assignment_expression "*(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[6]" (pointer_expression "*(int *)((int)param_1 + *(int *)(iVar1 + -0xc))" (* "*") (cast_expression "(int *)((int)param_1 + *(int *)(iVar1 + -0xc))" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + *(int *)(iVar1 + -0xc))" (( "(") (binary_expression "(int)param_1 + *(int *)(iVar1 + -0xc)" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(int *)(iVar1 + -0xc)" (* "*") (cast_expression "(int *)(iVar1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + -0xc)" (( "(") (binary_expression "iVar1 + -0xc" (identifier "iVar1") (+ "+") (number_literal "-0xc")) () ")"))))) () ")")))) (= "=") (subscript_expression "param_2[6]" (identifier "param_2") ([ "[") (number_literal "6") (] "]"))) (; ";")) (expression_statement "param_1[2] = param_2[7];" (assignment_expression "param_1[2] = param_2[7]" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (subscript_expression "param_2[7]" (identifier "param_2") ([ "[") (number_literal "7") (] "]"))) (; ";")) (expression_statement "iVar1 = *param_2;" (assignment_expression "iVar1 = *param_2" (identifier "iVar1") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "*(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[8];" (assignment_expression "*(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[8]" (pointer_expression "*(int *)((int)param_1 + *(int *)(iVar1 + -0xc))" (* "*") (cast_expression "(int *)((int)param_1 + *(int *)(iVar1 + -0xc))" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + *(int *)(iVar1 + -0xc))" (( "(") (binary_expression "(int)param_1 + *(int *)(iVar1 + -0xc)" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(int *)(iVar1 + -0xc)" (* "*") (cast_expression "(int *)(iVar1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + -0xc)" (( "(") (binary_expression "iVar1 + -0xc" (identifier "iVar1") (+ "+") (number_literal "-0xc")) () ")"))))) () ")")))) (= "=") (subscript_expression "param_2[8]" (identifier "param_2") ([ "[") (number_literal "8") (] "]"))) (; ";")) (expression_statement "param_1[2] = param_2[9];" (assignment_expression "param_1[2] = param_2[9]" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (subscript_expression "param_2[9]" (identifier "param_2") ([ "[") (number_literal "9") (] "]"))) (; ";")) (labeled_statement "std::filebuf::filebuf((filebuf *)(param_1 + 3));" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "filebuf::filebuf((filebuf *)(param_1 + 3));" (statement_identifier "filebuf") (: ":") (ERROR ":" (: ":")) (expression_statement "filebuf((filebuf *)(param_1 + 3));" (call_expression "filebuf((filebuf *)(param_1 + 3))" (identifier "filebuf") (argument_list "((filebuf *)(param_1 + 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")) () ")"))) () ")"))) (; ";")))) (labeled_statement "std::ios::init((ios *)((int)param_1 + *(int *)(*param_1 + -0xc)),(streambuf *)(param_1 + 3));" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "ios::init((ios *)((int)param_1 + *(int *)(*param_1 + -0xc)),(streambuf *)(param_1 + 3));" (statement_identifier "ios") (: ":") (ERROR ":" (: ":")) (expression_statement "init((ios *)((int)param_1 + *(int *)(*param_1 + -0xc)),(streambuf *)(param_1 + 3));" (call_expression "init((ios *)((int)param_1 + *(int *)(*param_1 + -0xc)),(streambuf *)(param_1 + 3))" (identifier "init") (argument_list "((ios *)((int)param_1 + *(int *)(*param_1 + -0xc)),(streambuf *)(param_1 + 3))" (( "(") (cast_expression "(ios *)((int)param_1 + *(int *)(*param_1 + -0xc))" (( "(") (type_descriptor "ios *" (type_identifier "ios") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc))" (( "(") (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(int *)(*param_1 + -0xc)" (* "*") (cast_expression "(int *)(*param_1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0xc)" (( "(") (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0xc")) () ")"))))) () ")"))) (, ",") (cast_expression "(streambuf *)(param_1 + 3)" (( "(") (type_descriptor "streambuf *" (type_identifier "streambuf") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 3)" (( "(") (binary_expression "param_1 + 3" (identifier "param_1") (+ "+") (number_literal "3")) () ")"))) () ")"))) (; ";")))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

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

{
  int var_2;
  int *in_a1;
  
  var_2 = in_a1[2];
  *(int *)var_1 = var_2;
  *(int *)(var_1 + *(int *)(var_2 + -0xc)) = in_a1[3];
  *(type_1 *)(var_1 + 4) = 0;
  ios::var_3((type_2 *)(var_1 + *(int *)(var_2 + -0xc)),(type_3 *)0x0);
  var_2 = in_a1[4];
  *(int *)(var_1 + 8) = var_2;
  var_2 = *(int *)(var_2 + -0xc);
                    /* try { // try from 0036d3a0 to 0036d3a7 has its CatchHandler @ 0036d438 */
  *(int *)(var_1 + var_2 + 8) = in_a1[5];
  ios::var_3((type_2 *)(var_1 + var_2 + 8),(type_3 *)0x0);
  var_2 = in_a1[1];
  *(int *)var_1 = var_2;
  *(int *)(var_1 + *(int *)(var_2 + -0xc)) = in_a1[6];
  *(int *)(var_1 + 8) = in_a1[7];
  var_2 = *in_a1;
  *(int *)var_1 = var_2;
  *(int *)(var_1 + *(int *)(var_2 + -0xc)) = in_a1[8];
                    /* try { // try from 0036d3f4 to 0036d3fb has its CatchHandler @ 0036d4c0 */
  *(int *)(var_1 + 8) = in_a1[9];
  filebuf::var_4((var_4 *)(var_1 + 0xc));
                    /* try { // try from 0036d410 to 0036d417 has its CatchHandler @ 0036d460 */
  ios::var_3((type_2 *)(var_1 + *(int *)(*(int *)var_1 + -0xc)),(type_3 *)(var_1 + 0xc));
  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: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (labeled_statement label: (statement_identifier) (ERROR) (labeled_statement label: (statement_identifier) (ERROR) (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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: (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: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (subscript_expression argument: (identifier) index: (number_literal)))) (labeled_statement label: (statement_identifier) (ERROR) (labeled_statement label: (statement_identifier) (ERROR) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (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))))))))) (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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))))))) (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (return_statement))))

void MASKED(int *param_1,int *param_2)

{
  int iVar1;
  ios *this;
  
  iVar1 = param_2[2];
  *param_1 = iVar1;
  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[3];
  param_1[1] = 0;
  std::ios::init((ios *)((int)param_1 + *(int *)(iVar1 + -0xc)),(streambuf *)0x0);
  iVar1 = param_2[4];
  param_1[2] = iVar1;
  this = (ios *)((int)param_1 + *(int *)(iVar1 + -0xc) + 8);
                    /* try { // try from 0036d3a0 to 0036d3a7 has its CatchHandler @ 0036d438 */
  *(int *)this = param_2[5];
  std::ios::init(this,(streambuf *)0x0);
  iVar1 = param_2[1];
  *param_1 = iVar1;
  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[6];
  param_1[2] = param_2[7];
  iVar1 = *param_2;
  *param_1 = iVar1;
  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[8];
                    /* try { // try from 0036d3f4 to 0036d3fb has its CatchHandler @ 0036d4c0 */
  param_1[2] = param_2[9];
  std::filebuf::filebuf((filebuf *)(param_1 + 3));
                    /* try { // try from 0036d410 to 0036d417 has its CatchHandler @ 0036d460 */
  std::ios::init((ios *)((int)param_1 + *(int *)(*param_1 + -0xc)),(streambuf *)(param_1 + 3));
  return;
}

