
/* std::wfstream::wfstream(char const*, std::_Ios_Openmode) */

void __thiscall std::wfstream::wfstream(wfstream *this,char *param_1,_Ios_Openmode param_2)

{
  wfilebuf *this_00;
  long lVar1;
  _Ios_Openmode in_ECX;
  undefined4 in_register_00000014;
  wios *this_01;
  
  lVar1 = *(long *)(param_1 + 0x10);
  *(long *)this = lVar1;
  *(undefined8 *)(this + *(long *)(lVar1 + -0x18)) = *(undefined8 *)(param_1 + 0x18);
  *(undefined8 *)(this + 8) = 0;
  wios::init((wios *)(this + *(long *)(lVar1 + -0x18)),(wstreambuf *)0x0);
  lVar1 = *(long *)(param_1 + 0x20);
  *(long *)(this + 0x10) = lVar1;
  lVar1 = *(long *)(lVar1 + -0x18);
  *(undefined8 *)(this + lVar1 + 0x10) = *(undefined8 *)(param_1 + 0x28);
                    /* try { // try from 002d23a7 to 002d23ab has its CatchHandler @ 002d244b */
  wios::init((wios *)(this + lVar1 + 0x10),(wstreambuf *)0x0);
  lVar1 = *(long *)(param_1 + 8);
  this_00 = (wfilebuf *)(this + 0x18);
  *(long *)this = lVar1;
  *(undefined8 *)(this + *(long *)(lVar1 + -0x18)) = *(undefined8 *)(param_1 + 0x30);
  *(undefined8 *)(this + 0x10) = *(undefined8 *)(param_1 + 0x38);
  lVar1 = *(long *)param_1;
  *(long *)this = lVar1;
  *(undefined8 *)(this + *(long *)(lVar1 + -0x18)) = *(undefined8 *)(param_1 + 0x40);
  *(undefined8 *)(this + 0x10) = *(undefined8 *)(param_1 + 0x48);
                    /* try { // try from 002d23e9 to 002d23ed has its CatchHandler @ 002d2449 */
  wfilebuf::wfilebuf(this_00);
                    /* try { // try from 002d23fb to 002d243a has its CatchHandler @ 002d2444 */
  wios::init((wios *)(this + *(long *)(*(long *)this + -0x18)),(wstreambuf *)this_00);
  lVar1 = wfilebuf::open(this_00,(char *)CONCAT44(in_register_00000014,param_2),in_ECX);
  this_01 = (wios *)(this + *(long *)(*(long *)this + -0x18));
  if (lVar1 != 0) {
    wios::clear(this_01,_S_goodbit);
    return;
  }
  wios::clear(this_01,*(_Ios_Iostate *)(this_01 + 0x20) | _S_failbit);
  return;
}



void FUN_002d2350(long *param_1,long *param_2,undefined8 param_3,undefined4 param_4)

{
  long *plVar1;
  long lVar2;
  long lVar3;
  
  lVar2 = param_2[2];
  *param_1 = lVar2;
  *(long *)((long)param_1 + *(long *)(lVar2 + -0x18)) = param_2[3];
  param_1[1] = 0;
  FUN_002c9590(*(long *)(lVar2 + -0x18) + (long)param_1,0);
  lVar2 = param_2[4];
  param_1[2] = lVar2;
  plVar1 = (long *)((long)param_1 + *(long *)(lVar2 + -0x18) + 0x10);
  *plVar1 = param_2[5];
                    /* try { // try from 002d23a7 to 002d23ab has its CatchHandler @ 002d244b */
  FUN_002c9590(plVar1,0);
  lVar2 = param_2[1];
  plVar1 = param_1 + 3;
  *param_1 = lVar2;
  *(long *)((long)param_1 + *(long *)(lVar2 + -0x18)) = param_2[6];
  param_1[2] = param_2[7];
  lVar2 = *param_2;
  *param_1 = lVar2;
  *(long *)((long)param_1 + *(long *)(lVar2 + -0x18)) = param_2[8];
  param_1[2] = param_2[9];
                    /* try { // try from 002d23e9 to 002d23ed has its CatchHandler @ 002d2449 */
  FUN_002ccc90(plVar1);
                    /* try { // try from 002d23fb to 002d243a has its CatchHandler @ 002d2444 */
  FUN_002c9590(*(long *)(*param_1 + -0x18) + (long)param_1,plVar1);
  lVar2 = FUN_002d1d40(plVar1,param_3,param_4);
  lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;
  if (lVar2 != 0) {
    FUN_002c8f80(lVar3,0);
    return;
  }
  FUN_002c8f80(lVar3,*(uint *)(lVar3 + 0x20) | 4);
  return;
}


PUSH R14
MOV R14D,ECX
PUSH R13
MOV R13,RDX
PUSH R12
PUSH RBP
MOV RBP,RSI
PUSH RBX
MOV RAX,qword ptr [RSI + 0x10]
MOV RBX,RDI
MOV qword ptr [RDI],RAX
MOV RDX,qword ptr [RAX + -0x18]
MOV RCX,qword ptr [RSI + 0x18]
XOR ESI,ESI
MOV qword ptr [RDI + RDX*0x1],RCX
MOV qword ptr [RDI + 0x8],0x0
MOV RDI,qword ptr [RAX + -0x18]
ADD RDI,RBX
CALL 0x002c9590
MOV RAX,qword ptr [RBP + 0x20]
XOR ESI,ESI
MOV qword ptr [RBX + 0x10],RAX
MOV RAX,qword ptr [RAX + -0x18]
LEA RDI,[RBX + RAX*0x1 + 0x10]
MOV RAX,qword ptr [RBP + 0x28]
MOV qword ptr [RDI],RAX
CALL 0x002c9590
MOV RAX,qword ptr [RBP + 0x8]
LEA R12,[RBX + 0x18]
MOV RDI,R12
MOV qword ptr [RBX],RAX
MOV RAX,qword ptr [RAX + -0x18]
MOV RDX,qword ptr [RBP + 0x30]
MOV qword ptr [RBX + RAX*0x1],RDX
MOV RAX,qword ptr [RBP + 0x38]
MOV qword ptr [RBX + 0x10],RAX
MOV RAX,qword ptr [RBP]
MOV qword ptr [RBX],RAX
MOV RAX,qword ptr [RAX + -0x18]
MOV RDX,qword ptr [RBP + 0x40]
MOV qword ptr [RBX + RAX*0x1],RDX
MOV RAX,qword ptr [RBP + 0x48]
MOV qword ptr [RBX + 0x10],RAX
CALL 0x002ccc90
MOV RAX,qword ptr [RBX]
MOV RSI,R12
MOV RDI,qword ptr [RAX + -0x18]
ADD RDI,RBX
CALL 0x002c9590
MOV EDX,R14D
MOV RSI,R13
MOV RDI,R12
CALL 0x002d1d40
MOV RDX,qword ptr [RBX]
MOV RDI,qword ptr [RDX + -0x18]
ADD RDI,RBX
TEST RAX,RAX
JZ 0x002d2430
XOR ESI,ESI
CALL 0x002c8f80
POP RBX
POP RBP
POP R12
POP R13
POP R14
RET
MOV ESI,dword ptr [RDI + 0x20]
OR ESI,0x4
CALL 0x002c8f80
POP RBX
POP RBP
POP R12
POP R13
POP R14
RET
(translation_unit "void FUN_002d2350(long *param_1,long *param_2,undefined8 param_3,undefined4 param_4)\n\n{\n  long *plVar1;\n  long lVar2;\n  long lVar3;\n  \n  lVar2 = param_2[2];\n  *param_1 = lVar2;\n  *(long *)((long)param_1 + *(long *)(lVar2 + -0x18)) = param_2[3];\n  param_1[1] = 0;\n  FUN_002c9590(*(long *)(lVar2 + -0x18) + (long)param_1,0);\n  lVar2 = param_2[4];\n  param_1[2] = lVar2;\n  plVar1 = (long *)((long)param_1 + *(long *)(lVar2 + -0x18) + 0x10);\n  *plVar1 = param_2[5];\n                    /* try { // try from 002d23a7 to 002d23ab has its CatchHandler @ 002d244b */\n  FUN_002c9590(plVar1,0);\n  lVar2 = param_2[1];\n  plVar1 = param_1 + 3;\n  *param_1 = lVar2;\n  *(long *)((long)param_1 + *(long *)(lVar2 + -0x18)) = param_2[6];\n  param_1[2] = param_2[7];\n  lVar2 = *param_2;\n  *param_1 = lVar2;\n  *(long *)((long)param_1 + *(long *)(lVar2 + -0x18)) = param_2[8];\n  param_1[2] = param_2[9];\n                    /* try { // try from 002d23e9 to 002d23ed has its CatchHandler @ 002d2449 */\n  FUN_002ccc90(plVar1);\n                    /* try { // try from 002d23fb to 002d243a has its CatchHandler @ 002d2444 */\n  FUN_002c9590(*(long *)(*param_1 + -0x18) + (long)param_1,plVar1);\n  lVar2 = FUN_002d1d40(plVar1,param_3,param_4);\n  lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  if (lVar2 != 0) {\n    FUN_002c8f80(lVar3,0);\n    return;\n  }\n  FUN_002c8f80(lVar3,*(uint *)(lVar3 + 0x20) | 4);\n  return;\n}\n\n" (function_definition "void FUN_002d2350(long *param_1,long *param_2,undefined8 param_3,undefined4 param_4)\n\n{\n  long *plVar1;\n  long lVar2;\n  long lVar3;\n  \n  lVar2 = param_2[2];\n  *param_1 = lVar2;\n  *(long *)((long)param_1 + *(long *)(lVar2 + -0x18)) = param_2[3];\n  param_1[1] = 0;\n  FUN_002c9590(*(long *)(lVar2 + -0x18) + (long)param_1,0);\n  lVar2 = param_2[4];\n  param_1[2] = lVar2;\n  plVar1 = (long *)((long)param_1 + *(long *)(lVar2 + -0x18) + 0x10);\n  *plVar1 = param_2[5];\n                    /* try { // try from 002d23a7 to 002d23ab has its CatchHandler @ 002d244b */\n  FUN_002c9590(plVar1,0);\n  lVar2 = param_2[1];\n  plVar1 = param_1 + 3;\n  *param_1 = lVar2;\n  *(long *)((long)param_1 + *(long *)(lVar2 + -0x18)) = param_2[6];\n  param_1[2] = param_2[7];\n  lVar2 = *param_2;\n  *param_1 = lVar2;\n  *(long *)((long)param_1 + *(long *)(lVar2 + -0x18)) = param_2[8];\n  param_1[2] = param_2[9];\n                    /* try { // try from 002d23e9 to 002d23ed has its CatchHandler @ 002d2449 */\n  FUN_002ccc90(plVar1);\n                    /* try { // try from 002d23fb to 002d243a has its CatchHandler @ 002d2444 */\n  FUN_002c9590(*(long *)(*param_1 + -0x18) + (long)param_1,plVar1);\n  lVar2 = FUN_002d1d40(plVar1,param_3,param_4);\n  lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  if (lVar2 != 0) {\n    FUN_002c8f80(lVar3,0);\n    return;\n  }\n  FUN_002c8f80(lVar3,*(uint *)(lVar3 + 0x20) | 4);\n  return;\n}" primitive_type (function_declarator "FUN_002d2350(long *param_1,long *param_2,undefined8 param_3,undefined4 param_4)" identifier (parameter_list "(long *param_1,long *param_2,undefined8 param_3,undefined4 param_4)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long *param_2" (sized_type_specifier "long" long) (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  long *plVar1;\n  long lVar2;\n  long lVar3;\n  \n  lVar2 = param_2[2];\n  *param_1 = lVar2;\n  *(long *)((long)param_1 + *(long *)(lVar2 + -0x18)) = param_2[3];\n  param_1[1] = 0;\n  FUN_002c9590(*(long *)(lVar2 + -0x18) + (long)param_1,0);\n  lVar2 = param_2[4];\n  param_1[2] = lVar2;\n  plVar1 = (long *)((long)param_1 + *(long *)(lVar2 + -0x18) + 0x10);\n  *plVar1 = param_2[5];\n                    /* try { // try from 002d23a7 to 002d23ab has its CatchHandler @ 002d244b */\n  FUN_002c9590(plVar1,0);\n  lVar2 = param_2[1];\n  plVar1 = param_1 + 3;\n  *param_1 = lVar2;\n  *(long *)((long)param_1 + *(long *)(lVar2 + -0x18)) = param_2[6];\n  param_1[2] = param_2[7];\n  lVar2 = *param_2;\n  *param_1 = lVar2;\n  *(long *)((long)param_1 + *(long *)(lVar2 + -0x18)) = param_2[8];\n  param_1[2] = param_2[9];\n                    /* try { // try from 002d23e9 to 002d23ed has its CatchHandler @ 002d2449 */\n  FUN_002ccc90(plVar1);\n                    /* try { // try from 002d23fb to 002d243a has its CatchHandler @ 002d2444 */\n  FUN_002c9590(*(long *)(*param_1 + -0x18) + (long)param_1,plVar1);\n  lVar2 = FUN_002d1d40(plVar1,param_3,param_4);\n  lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  if (lVar2 != 0) {\n    FUN_002c8f80(lVar3,0);\n    return;\n  }\n  FUN_002c8f80(lVar3,*(uint *)(lVar3 + 0x20) | 4);\n  return;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar2 = param_2[2];" (assignment_expression "lVar2 = param_2[2]" identifier = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (expression_statement "*param_1 = lVar2;" (assignment_expression "*param_1 = lVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*(long *)((long)param_1 + *(long *)(lVar2 + -0x18)) = param_2[3];" (assignment_expression "*(long *)((long)param_1 + *(long *)(lVar2 + -0x18)) = param_2[3]" (pointer_expression "*(long *)((long)param_1 + *(long *)(lVar2 + -0x18))" * (cast_expression "(long *)((long)param_1 + *(long *)(lVar2 + -0x18))" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + *(long *)(lVar2 + -0x18))" ( (binary_expression "(long)param_1 + *(long *)(lVar2 + -0x18)" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (pointer_expression "*(long *)(lVar2 + -0x18)" * (cast_expression "(long *)(lVar2 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + -0x18)" ( (binary_expression "lVar2 + -0x18" 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) ;) (expression_statement "FUN_002c9590(*(long *)(lVar2 + -0x18) + (long)param_1,0);" (call_expression "FUN_002c9590(*(long *)(lVar2 + -0x18) + (long)param_1,0)" identifier (argument_list "(*(long *)(lVar2 + -0x18) + (long)param_1,0)" ( (binary_expression "*(long *)(lVar2 + -0x18) + (long)param_1" (pointer_expression "*(long *)(lVar2 + -0x18)" * (cast_expression "(long *)(lVar2 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + -0x18)" ( (binary_expression "lVar2 + -0x18" identifier + number_literal) )))) + (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) , number_literal ))) ;) (expression_statement "lVar2 = param_2[4];" (assignment_expression "lVar2 = param_2[4]" identifier = (subscript_expression "param_2[4]" identifier [ number_literal ])) ;) (expression_statement "param_1[2] = lVar2;" (assignment_expression "param_1[2] = lVar2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "plVar1 = (long *)((long)param_1 + *(long *)(lVar2 + -0x18) + 0x10);" (assignment_expression "plVar1 = (long *)((long)param_1 + *(long *)(lVar2 + -0x18) + 0x10)" identifier = (cast_expression "(long *)((long)param_1 + *(long *)(lVar2 + -0x18) + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + *(long *)(lVar2 + -0x18) + 0x10)" ( (binary_expression "(long)param_1 + *(long *)(lVar2 + -0x18) + 0x10" (binary_expression "(long)param_1 + *(long *)(lVar2 + -0x18)" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (pointer_expression "*(long *)(lVar2 + -0x18)" * (cast_expression "(long *)(lVar2 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + -0x18)" ( (binary_expression "lVar2 + -0x18" identifier + number_literal) ))))) + number_literal) )))) ;) (expression_statement "*plVar1 = param_2[5];" (assignment_expression "*plVar1 = param_2[5]" (pointer_expression "*plVar1" * identifier) = (subscript_expression "param_2[5]" identifier [ number_literal ])) ;) comment (expression_statement "FUN_002c9590(plVar1,0);" (call_expression "FUN_002c9590(plVar1,0)" identifier (argument_list "(plVar1,0)" ( identifier , number_literal ))) ;) (expression_statement "lVar2 = param_2[1];" (assignment_expression "lVar2 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "plVar1 = param_1 + 3;" (assignment_expression "plVar1 = param_1 + 3" identifier = (binary_expression "param_1 + 3" identifier + number_literal)) ;) (expression_statement "*param_1 = lVar2;" (assignment_expression "*param_1 = lVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*(long *)((long)param_1 + *(long *)(lVar2 + -0x18)) = param_2[6];" (assignment_expression "*(long *)((long)param_1 + *(long *)(lVar2 + -0x18)) = param_2[6]" (pointer_expression "*(long *)((long)param_1 + *(long *)(lVar2 + -0x18))" * (cast_expression "(long *)((long)param_1 + *(long *)(lVar2 + -0x18))" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + *(long *)(lVar2 + -0x18))" ( (binary_expression "(long)param_1 + *(long *)(lVar2 + -0x18)" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (pointer_expression "*(long *)(lVar2 + -0x18)" * (cast_expression "(long *)(lVar2 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + -0x18)" ( (binary_expression "lVar2 + -0x18" 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 "lVar2 = *param_2;" (assignment_expression "lVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*param_1 = lVar2;" (assignment_expression "*param_1 = lVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*(long *)((long)param_1 + *(long *)(lVar2 + -0x18)) = param_2[8];" (assignment_expression "*(long *)((long)param_1 + *(long *)(lVar2 + -0x18)) = param_2[8]" (pointer_expression "*(long *)((long)param_1 + *(long *)(lVar2 + -0x18))" * (cast_expression "(long *)((long)param_1 + *(long *)(lVar2 + -0x18))" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + *(long *)(lVar2 + -0x18))" ( (binary_expression "(long)param_1 + *(long *)(lVar2 + -0x18)" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (pointer_expression "*(long *)(lVar2 + -0x18)" * (cast_expression "(long *)(lVar2 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + -0x18)" ( (binary_expression "lVar2 + -0x18" 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 ])) ;) comment (expression_statement "FUN_002ccc90(plVar1);" (call_expression "FUN_002ccc90(plVar1)" identifier (argument_list "(plVar1)" ( identifier ))) ;) comment (expression_statement "FUN_002c9590(*(long *)(*param_1 + -0x18) + (long)param_1,plVar1);" (call_expression "FUN_002c9590(*(long *)(*param_1 + -0x18) + (long)param_1,plVar1)" identifier (argument_list "(*(long *)(*param_1 + -0x18) + (long)param_1,plVar1)" ( (binary_expression "*(long *)(*param_1 + -0x18) + (long)param_1" (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) , identifier ))) ;) (expression_statement "lVar2 = FUN_002d1d40(plVar1,param_3,param_4);" (assignment_expression "lVar2 = FUN_002d1d40(plVar1,param_3,param_4)" identifier = (call_expression "FUN_002d1d40(plVar1,param_3,param_4)" identifier (argument_list "(plVar1,param_3,param_4)" ( identifier , identifier , identifier )))) ;) (expression_statement "lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;" (assignment_expression "lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1" identifier = (binary_expression "*(long *)(*param_1 + -0x18) + (long)param_1" (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (if_statement "if (lVar2 != 0) {\n    FUN_002c8f80(lVar3,0);\n    return;\n  }" if (parenthesized_expression "(lVar2 != 0)" ( (binary_expression "lVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_002c8f80(lVar3,0);\n    return;\n  }" { (expression_statement "FUN_002c8f80(lVar3,0);" (call_expression "FUN_002c8f80(lVar3,0)" identifier (argument_list "(lVar3,0)" ( identifier , number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_002c8f80(lVar3,*(uint *)(lVar3 + 0x20) | 4);" (call_expression "FUN_002c8f80(lVar3,*(uint *)(lVar3 + 0x20) | 4)" identifier (argument_list "(lVar3,*(uint *)(lVar3 + 0x20) | 4)" ( identifier , (binary_expression "*(uint *)(lVar3 + 0x20) | 4" (pointer_expression "*(uint *)(lVar3 + 0x20)" * (cast_expression "(uint *)(lVar3 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x20)" ( (binary_expression "lVar3 + 0x20" identifier + number_literal) )))) | number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* std::wfstream::wfstream(char const*, std::_Ios_Openmode) */\n\nvoid __thiscall std::wfstream::wfstream(wfstream *this,char *param_1,_Ios_Openmode param_2)\n\n{\n  wfilebuf *this_00;\n  long lVar1;\n  _Ios_Openmode in_ECX;\n  undefined4 in_register_00000014;\n  wios *this_01;\n  \n  lVar1 = *(long *)(param_1 + 0x10);\n  *(long *)this = lVar1;\n  *(undefined8 *)(this + *(long *)(lVar1 + -0x18)) = *(undefined8 *)(param_1 + 0x18);\n  *(undefined8 *)(this + 8) = 0;\n  wios::init((wios *)(this + *(long *)(lVar1 + -0x18)),(wstreambuf *)0x0);\n  lVar1 = *(long *)(param_1 + 0x20);\n  *(long *)(this + 0x10) = lVar1;\n  lVar1 = *(long *)(lVar1 + -0x18);\n  *(undefined8 *)(this + lVar1 + 0x10) = *(undefined8 *)(param_1 + 0x28);\n                    /* try { // try from 002d23a7 to 002d23ab has its CatchHandler @ 002d244b */\n  wios::init((wios *)(this + lVar1 + 0x10),(wstreambuf *)0x0);\n  lVar1 = *(long *)(param_1 + 8);\n  this_00 = (wfilebuf *)(this + 0x18);\n  *(long *)this = lVar1;\n  *(undefined8 *)(this + *(long *)(lVar1 + -0x18)) = *(undefined8 *)(param_1 + 0x30);\n  *(undefined8 *)(this + 0x10) = *(undefined8 *)(param_1 + 0x38);\n  lVar1 = *(long *)param_1;\n  *(long *)this = lVar1;\n  *(undefined8 *)(this + *(long *)(lVar1 + -0x18)) = *(undefined8 *)(param_1 + 0x40);\n  *(undefined8 *)(this + 0x10) = *(undefined8 *)(param_1 + 0x48);\n                    /* try { // try from 002d23e9 to 002d23ed has its CatchHandler @ 002d2449 */\n  wfilebuf::wfilebuf(this_00);\n                    /* try { // try from 002d23fb to 002d243a has its CatchHandler @ 002d2444 */\n  wios::init((wios *)(this + *(long *)(*(long *)this + -0x18)),(wstreambuf *)this_00);\n  lVar1 = wfilebuf::open(this_00,(char *)CONCAT44(in_register_00000014,param_2),in_ECX);\n  this_01 = (wios *)(this + *(long *)(*(long *)this + -0x18));\n  if (lVar1 != 0) {\n    wios::clear(this_01,_S_goodbit);\n    return;\n  }\n  wios::clear(this_01,*(_Ios_Iostate *)(this_01 + 0x20) | _S_failbit);\n  return;\n}\n\n" comment (function_definition "void __thiscall std::wfstream::wfstream(wfstream *this,char *param_1,_Ios_Openmode param_2)\n\n{\n  wfilebuf *this_00;\n  long lVar1;\n  _Ios_Openmode in_ECX;\n  undefined4 in_register_00000014;\n  wios *this_01;\n  \n  lVar1 = *(long *)(param_1 + 0x10);\n  *(long *)this = lVar1;\n  *(undefined8 *)(this + *(long *)(lVar1 + -0x18)) = *(undefined8 *)(param_1 + 0x18);\n  *(undefined8 *)(this + 8) = 0;\n  wios::init((wios *)(this + *(long *)(lVar1 + -0x18)),(wstreambuf *)0x0);\n  lVar1 = *(long *)(param_1 + 0x20);\n  *(long *)(this + 0x10) = lVar1;\n  lVar1 = *(long *)(lVar1 + -0x18);\n  *(undefined8 *)(this + lVar1 + 0x10) = *(undefined8 *)(param_1 + 0x28);\n                    /* try { // try from 002d23a7 to 002d23ab has its CatchHandler @ 002d244b */\n  wios::init((wios *)(this + lVar1 + 0x10),(wstreambuf *)0x0);\n  lVar1 = *(long *)(param_1 + 8);\n  this_00 = (wfilebuf *)(this + 0x18);\n  *(long *)this = lVar1;\n  *(undefined8 *)(this + *(long *)(lVar1 + -0x18)) = *(undefined8 *)(param_1 + 0x30);\n  *(undefined8 *)(this + 0x10) = *(undefined8 *)(param_1 + 0x38);\n  lVar1 = *(long *)param_1;\n  *(long *)this = lVar1;\n  *(undefined8 *)(this + *(long *)(lVar1 + -0x18)) = *(undefined8 *)(param_1 + 0x40);\n  *(undefined8 *)(this + 0x10) = *(undefined8 *)(param_1 + 0x48);\n                    /* try { // try from 002d23e9 to 002d23ed has its CatchHandler @ 002d2449 */\n  wfilebuf::wfilebuf(this_00);\n                    /* try { // try from 002d23fb to 002d243a has its CatchHandler @ 002d2444 */\n  wios::init((wios *)(this + *(long *)(*(long *)this + -0x18)),(wstreambuf *)this_00);\n  lVar1 = wfilebuf::open(this_00,(char *)CONCAT44(in_register_00000014,param_2),in_ECX);\n  this_01 = (wios *)(this + *(long *)(*(long *)this + -0x18));\n  if (lVar1 != 0) {\n    wios::clear(this_01,_S_goodbit);\n    return;\n  }\n  wios::clear(this_01,*(_Ios_Iostate *)(this_01 + 0x20) | _S_failbit);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::wfstream::" identifier : : identifier : :) (function_declarator "wfstream(wfstream *this,char *param_1,_Ios_Openmode param_2)" identifier (parameter_list "(wfstream *this,char *param_1,_Ios_Openmode param_2)" ( (parameter_declaration "wfstream *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "_Ios_Openmode param_2" type_identifier identifier) ))) (compound_statement "{\n  wfilebuf *this_00;\n  long lVar1;\n  _Ios_Openmode in_ECX;\n  undefined4 in_register_00000014;\n  wios *this_01;\n  \n  lVar1 = *(long *)(param_1 + 0x10);\n  *(long *)this = lVar1;\n  *(undefined8 *)(this + *(long *)(lVar1 + -0x18)) = *(undefined8 *)(param_1 + 0x18);\n  *(undefined8 *)(this + 8) = 0;\n  wios::init((wios *)(this + *(long *)(lVar1 + -0x18)),(wstreambuf *)0x0);\n  lVar1 = *(long *)(param_1 + 0x20);\n  *(long *)(this + 0x10) = lVar1;\n  lVar1 = *(long *)(lVar1 + -0x18);\n  *(undefined8 *)(this + lVar1 + 0x10) = *(undefined8 *)(param_1 + 0x28);\n                    /* try { // try from 002d23a7 to 002d23ab has its CatchHandler @ 002d244b */\n  wios::init((wios *)(this + lVar1 + 0x10),(wstreambuf *)0x0);\n  lVar1 = *(long *)(param_1 + 8);\n  this_00 = (wfilebuf *)(this + 0x18);\n  *(long *)this = lVar1;\n  *(undefined8 *)(this + *(long *)(lVar1 + -0x18)) = *(undefined8 *)(param_1 + 0x30);\n  *(undefined8 *)(this + 0x10) = *(undefined8 *)(param_1 + 0x38);\n  lVar1 = *(long *)param_1;\n  *(long *)this = lVar1;\n  *(undefined8 *)(this + *(long *)(lVar1 + -0x18)) = *(undefined8 *)(param_1 + 0x40);\n  *(undefined8 *)(this + 0x10) = *(undefined8 *)(param_1 + 0x48);\n                    /* try { // try from 002d23e9 to 002d23ed has its CatchHandler @ 002d2449 */\n  wfilebuf::wfilebuf(this_00);\n                    /* try { // try from 002d23fb to 002d243a has its CatchHandler @ 002d2444 */\n  wios::init((wios *)(this + *(long *)(*(long *)this + -0x18)),(wstreambuf *)this_00);\n  lVar1 = wfilebuf::open(this_00,(char *)CONCAT44(in_register_00000014,param_2),in_ECX);\n  this_01 = (wios *)(this + *(long *)(*(long *)this + -0x18));\n  if (lVar1 != 0) {\n    wios::clear(this_01,_S_goodbit);\n    return;\n  }\n  wios::clear(this_01,*(_Ios_Iostate *)(this_01 + 0x20) | _S_failbit);\n  return;\n}" { (declaration "wfilebuf *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "_Ios_Openmode in_ECX;" type_identifier identifier ;) (declaration "undefined4 in_register_00000014;" type_identifier identifier ;) (declaration "wios *this_01;" type_identifier (pointer_declarator "*this_01" * identifier) ;) (expression_statement "lVar1 = *(long *)(param_1 + 0x10);" (assignment_expression "lVar1 = *(long *)(param_1 + 0x10)" identifier = (pointer_expression "*(long *)(param_1 + 0x10)" * (cast_expression "(long *)(param_1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "*(long *)this = lVar1;" (assignment_expression "*(long *)this = lVar1" (pointer_expression "*(long *)this" * (cast_expression "(long *)this" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(undefined8 *)(this + *(long *)(lVar1 + -0x18)) = *(undefined8 *)(param_1 + 0x18);" (assignment_expression "*(undefined8 *)(this + *(long *)(lVar1 + -0x18)) = *(undefined8 *)(param_1 + 0x18)" (pointer_expression "*(undefined8 *)(this + *(long *)(lVar1 + -0x18))" * (cast_expression "(undefined8 *)(this + *(long *)(lVar1 + -0x18))" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(long *)(lVar1 + -0x18))" ( (binary_expression "this + *(long *)(lVar1 + -0x18)" identifier + (pointer_expression "*(long *)(lVar1 + -0x18)" * (cast_expression "(long *)(lVar1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + -0x18)" ( (binary_expression "lVar1 + -0x18" identifier + number_literal) ))))) )))) = (pointer_expression "*(undefined8 *)(param_1 + 0x18)" * (cast_expression "(undefined8 *)(param_1 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)(this + 8) = 0;" (assignment_expression "*(undefined8 *)(this + 8) = 0" (pointer_expression "*(undefined8 *)(this + 8)" * (cast_expression "(undefined8 *)(this + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = number_literal) ;) (labeled_statement "wios::init((wios *)(this + *(long *)(lVar1 + -0x18)),(wstreambuf *)0x0);" statement_identifier : (ERROR ":" :) (expression_statement "init((wios *)(this + *(long *)(lVar1 + -0x18)),(wstreambuf *)0x0);" (call_expression "init((wios *)(this + *(long *)(lVar1 + -0x18)),(wstreambuf *)0x0)" identifier (argument_list "((wios *)(this + *(long *)(lVar1 + -0x18)),(wstreambuf *)0x0)" ( (cast_expression "(wios *)(this + *(long *)(lVar1 + -0x18))" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(long *)(lVar1 + -0x18))" ( (binary_expression "this + *(long *)(lVar1 + -0x18)" identifier + (pointer_expression "*(long *)(lVar1 + -0x18)" * (cast_expression "(long *)(lVar1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + -0x18)" ( (binary_expression "lVar1 + -0x18" identifier + number_literal) ))))) ))) , (cast_expression "(wstreambuf *)0x0" ( (type_descriptor "wstreambuf *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;)) (expression_statement "lVar1 = *(long *)(param_1 + 0x20);" (assignment_expression "lVar1 = *(long *)(param_1 + 0x20)" identifier = (pointer_expression "*(long *)(param_1 + 0x20)" * (cast_expression "(long *)(param_1 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "*(long *)(this + 0x10) = lVar1;" (assignment_expression "*(long *)(this + 0x10) = lVar1" (pointer_expression "*(long *)(this + 0x10)" * (cast_expression "(long *)(this + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "lVar1 = *(long *)(lVar1 + -0x18);" (assignment_expression "lVar1 = *(long *)(lVar1 + -0x18)" identifier = (pointer_expression "*(long *)(lVar1 + -0x18)" * (cast_expression "(long *)(lVar1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + -0x18)" ( (binary_expression "lVar1 + -0x18" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)(this + lVar1 + 0x10) = *(undefined8 *)(param_1 + 0x28);" (assignment_expression "*(undefined8 *)(this + lVar1 + 0x10) = *(undefined8 *)(param_1 + 0x28)" (pointer_expression "*(undefined8 *)(this + lVar1 + 0x10)" * (cast_expression "(undefined8 *)(this + lVar1 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + lVar1 + 0x10)" ( (binary_expression "this + lVar1 + 0x10" (binary_expression "this + lVar1" identifier + identifier) + number_literal) )))) = (pointer_expression "*(undefined8 *)(param_1 + 0x28)" * (cast_expression "(undefined8 *)(param_1 + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) ;) comment (labeled_statement "wios::init((wios *)(this + lVar1 + 0x10),(wstreambuf *)0x0);" statement_identifier : (ERROR ":" :) (expression_statement "init((wios *)(this + lVar1 + 0x10),(wstreambuf *)0x0);" (call_expression "init((wios *)(this + lVar1 + 0x10),(wstreambuf *)0x0)" identifier (argument_list "((wios *)(this + lVar1 + 0x10),(wstreambuf *)0x0)" ( (cast_expression "(wios *)(this + lVar1 + 0x10)" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + lVar1 + 0x10)" ( (binary_expression "this + lVar1 + 0x10" (binary_expression "this + lVar1" identifier + identifier) + number_literal) ))) , (cast_expression "(wstreambuf *)0x0" ( (type_descriptor "wstreambuf *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;)) (expression_statement "lVar1 = *(long *)(param_1 + 8);" (assignment_expression "lVar1 = *(long *)(param_1 + 8)" identifier = (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "this_00 = (wfilebuf *)(this + 0x18);" (assignment_expression "this_00 = (wfilebuf *)(this + 0x18)" identifier = (cast_expression "(wfilebuf *)(this + 0x18)" ( (type_descriptor "wfilebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x18)" ( (binary_expression "this + 0x18" identifier + number_literal) )))) ;) (expression_statement "*(long *)this = lVar1;" (assignment_expression "*(long *)this = lVar1" (pointer_expression "*(long *)this" * (cast_expression "(long *)this" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(undefined8 *)(this + *(long *)(lVar1 + -0x18)) = *(undefined8 *)(param_1 + 0x30);" (assignment_expression "*(undefined8 *)(this + *(long *)(lVar1 + -0x18)) = *(undefined8 *)(param_1 + 0x30)" (pointer_expression "*(undefined8 *)(this + *(long *)(lVar1 + -0x18))" * (cast_expression "(undefined8 *)(this + *(long *)(lVar1 + -0x18))" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(long *)(lVar1 + -0x18))" ( (binary_expression "this + *(long *)(lVar1 + -0x18)" identifier + (pointer_expression "*(long *)(lVar1 + -0x18)" * (cast_expression "(long *)(lVar1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + -0x18)" ( (binary_expression "lVar1 + -0x18" identifier + number_literal) ))))) )))) = (pointer_expression "*(undefined8 *)(param_1 + 0x30)" * (cast_expression "(undefined8 *)(param_1 + 0x30)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)(this + 0x10) = *(undefined8 *)(param_1 + 0x38);" (assignment_expression "*(undefined8 *)(this + 0x10) = *(undefined8 *)(param_1 + 0x38)" (pointer_expression "*(undefined8 *)(this + 0x10)" * (cast_expression "(undefined8 *)(this + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) )))) = (pointer_expression "*(undefined8 *)(param_1 + 0x38)" * (cast_expression "(undefined8 *)(param_1 + 0x38)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) ))))) ;) (expression_statement "lVar1 = *(long *)param_1;" (assignment_expression "lVar1 = *(long *)param_1" identifier = (pointer_expression "*(long *)param_1" * (cast_expression "(long *)param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(long *)this = lVar1;" (assignment_expression "*(long *)this = lVar1" (pointer_expression "*(long *)this" * (cast_expression "(long *)this" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(undefined8 *)(this + *(long *)(lVar1 + -0x18)) = *(undefined8 *)(param_1 + 0x40);" (assignment_expression "*(undefined8 *)(this + *(long *)(lVar1 + -0x18)) = *(undefined8 *)(param_1 + 0x40)" (pointer_expression "*(undefined8 *)(this + *(long *)(lVar1 + -0x18))" * (cast_expression "(undefined8 *)(this + *(long *)(lVar1 + -0x18))" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(long *)(lVar1 + -0x18))" ( (binary_expression "this + *(long *)(lVar1 + -0x18)" identifier + (pointer_expression "*(long *)(lVar1 + -0x18)" * (cast_expression "(long *)(lVar1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + -0x18)" ( (binary_expression "lVar1 + -0x18" identifier + number_literal) ))))) )))) = (pointer_expression "*(undefined8 *)(param_1 + 0x40)" * (cast_expression "(undefined8 *)(param_1 + 0x40)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)(this + 0x10) = *(undefined8 *)(param_1 + 0x48);" (assignment_expression "*(undefined8 *)(this + 0x10) = *(undefined8 *)(param_1 + 0x48)" (pointer_expression "*(undefined8 *)(this + 0x10)" * (cast_expression "(undefined8 *)(this + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) )))) = (pointer_expression "*(undefined8 *)(param_1 + 0x48)" * (cast_expression "(undefined8 *)(param_1 + 0x48)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) ))))) ;) comment (labeled_statement "wfilebuf::wfilebuf(this_00);" statement_identifier : (ERROR ":" :) (expression_statement "wfilebuf(this_00);" (call_expression "wfilebuf(this_00)" identifier (argument_list "(this_00)" ( identifier ))) ;)) comment (labeled_statement "wios::init((wios *)(this + *(long *)(*(long *)this + -0x18)),(wstreambuf *)this_00);" statement_identifier : (ERROR ":" :) (expression_statement "init((wios *)(this + *(long *)(*(long *)this + -0x18)),(wstreambuf *)this_00);" (call_expression "init((wios *)(this + *(long *)(*(long *)this + -0x18)),(wstreambuf *)this_00)" identifier (argument_list "((wios *)(this + *(long *)(*(long *)this + -0x18)),(wstreambuf *)this_00)" ( (cast_expression "(wios *)(this + *(long *)(*(long *)this + -0x18))" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(long *)(*(long *)this + -0x18))" ( (binary_expression "this + *(long *)(*(long *)this + -0x18)" identifier + (pointer_expression "*(long *)(*(long *)this + -0x18)" * (cast_expression "(long *)(*(long *)this + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)this + -0x18)" ( (binary_expression "*(long *)this + -0x18" (pointer_expression "*(long *)this" * (cast_expression "(long *)this" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) , (cast_expression "(wstreambuf *)this_00" ( (type_descriptor "wstreambuf *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;)) (ERROR "lVar1 = wfilebuf::" (assignment_expression "lVar1 = wfilebuf" identifier = identifier) : :) (expression_statement "open(this_00,(char *)CONCAT44(in_register_00000014,param_2),in_ECX);" (call_expression "open(this_00,(char *)CONCAT44(in_register_00000014,param_2),in_ECX)" identifier (argument_list "(this_00,(char *)CONCAT44(in_register_00000014,param_2),in_ECX)" ( identifier , (cast_expression "(char *)CONCAT44(in_register_00000014,param_2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "CONCAT44(in_register_00000014,param_2)" identifier (argument_list "(in_register_00000014,param_2)" ( identifier , identifier )))) , identifier ))) ;) (expression_statement "this_01 = (wios *)(this + *(long *)(*(long *)this + -0x18));" (assignment_expression "this_01 = (wios *)(this + *(long *)(*(long *)this + -0x18))" identifier = (cast_expression "(wios *)(this + *(long *)(*(long *)this + -0x18))" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(long *)(*(long *)this + -0x18))" ( (binary_expression "this + *(long *)(*(long *)this + -0x18)" identifier + (pointer_expression "*(long *)(*(long *)this + -0x18)" * (cast_expression "(long *)(*(long *)this + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)this + -0x18)" ( (binary_expression "*(long *)this + -0x18" (pointer_expression "*(long *)this" * (cast_expression "(long *)this" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )))) ;) (if_statement "if (lVar1 != 0) {\n    wios::clear(this_01,_S_goodbit);\n    return;\n  }" if (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    wios::clear(this_01,_S_goodbit);\n    return;\n  }" { (labeled_statement "wios::clear(this_01,_S_goodbit);" statement_identifier : (ERROR ":" :) (expression_statement "clear(this_01,_S_goodbit);" (call_expression "clear(this_01,_S_goodbit)" identifier (argument_list "(this_01,_S_goodbit)" ( identifier , identifier ))) ;)) (return_statement "return;" return ;) })) (labeled_statement "wios::clear(this_01,*(_Ios_Iostate *)(this_01 + 0x20) | _S_failbit);" statement_identifier : (ERROR ":" :) (expression_statement "clear(this_01,*(_Ios_Iostate *)(this_01 + 0x20) | _S_failbit);" (call_expression "clear(this_01,*(_Ios_Iostate *)(this_01 + 0x20) | _S_failbit)" identifier (argument_list "(this_01,*(_Ios_Iostate *)(this_01 + 0x20) | _S_failbit)" ( identifier , (binary_expression "*(_Ios_Iostate *)(this_01 + 0x20) | _S_failbit" (pointer_expression "*(_Ios_Iostate *)(this_01 + 0x20)" * (cast_expression "(_Ios_Iostate *)(this_01 + 0x20)" ( (type_descriptor "_Ios_Iostate *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this_01 + 0x20)" ( (binary_expression "this_01 + 0x20" identifier + number_literal) )))) | identifier) ))) ;)) (return_statement "return;" return ;) })))
(translation_unit "void FUN_002d2350(long *param_1,long *param_2,undefined8 param_3,undefined4 param_4)\n\n{\n  long *plVar1;\n  long lVar2;\n  long lVar3;\n  \n  lVar2 = param_2[2];\n  *param_1 = lVar2;\n  *(long *)((long)param_1 + *(long *)(lVar2 + -0x18)) = param_2[3];\n  param_1[1] = 0;\n  FUN_002c9590(*(long *)(lVar2 + -0x18) + (long)param_1,0);\n  lVar2 = param_2[4];\n  param_1[2] = lVar2;\n  plVar1 = (long *)((long)param_1 + *(long *)(lVar2 + -0x18) + 0x10);\n  *plVar1 = param_2[5];\n                    \n  FUN_002c9590(plVar1,0);\n  lVar2 = param_2[1];\n  plVar1 = param_1 + 3;\n  *param_1 = lVar2;\n  *(long *)((long)param_1 + *(long *)(lVar2 + -0x18)) = param_2[6];\n  param_1[2] = param_2[7];\n  lVar2 = *param_2;\n  *param_1 = lVar2;\n  *(long *)((long)param_1 + *(long *)(lVar2 + -0x18)) = param_2[8];\n  param_1[2] = param_2[9];\n                    \n  FUN_002ccc90(plVar1);\n                    \n  FUN_002c9590(*(long *)(*param_1 + -0x18) + (long)param_1,plVar1);\n  lVar2 = FUN_002d1d40(plVar1,param_3,param_4);\n  lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  if (lVar2 != 0) {\n    FUN_002c8f80(lVar3,0);\n    return;\n  }\n  FUN_002c8f80(lVar3,*(uint *)(lVar3 + 0x20) | 4);\n  return;\n}\n\n" (function_definition "void FUN_002d2350(long *param_1,long *param_2,undefined8 param_3,undefined4 param_4)\n\n{\n  long *plVar1;\n  long lVar2;\n  long lVar3;\n  \n  lVar2 = param_2[2];\n  *param_1 = lVar2;\n  *(long *)((long)param_1 + *(long *)(lVar2 + -0x18)) = param_2[3];\n  param_1[1] = 0;\n  FUN_002c9590(*(long *)(lVar2 + -0x18) + (long)param_1,0);\n  lVar2 = param_2[4];\n  param_1[2] = lVar2;\n  plVar1 = (long *)((long)param_1 + *(long *)(lVar2 + -0x18) + 0x10);\n  *plVar1 = param_2[5];\n                    \n  FUN_002c9590(plVar1,0);\n  lVar2 = param_2[1];\n  plVar1 = param_1 + 3;\n  *param_1 = lVar2;\n  *(long *)((long)param_1 + *(long *)(lVar2 + -0x18)) = param_2[6];\n  param_1[2] = param_2[7];\n  lVar2 = *param_2;\n  *param_1 = lVar2;\n  *(long *)((long)param_1 + *(long *)(lVar2 + -0x18)) = param_2[8];\n  param_1[2] = param_2[9];\n                    \n  FUN_002ccc90(plVar1);\n                    \n  FUN_002c9590(*(long *)(*param_1 + -0x18) + (long)param_1,plVar1);\n  lVar2 = FUN_002d1d40(plVar1,param_3,param_4);\n  lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  if (lVar2 != 0) {\n    FUN_002c8f80(lVar3,0);\n    return;\n  }\n  FUN_002c8f80(lVar3,*(uint *)(lVar3 + 0x20) | 4);\n  return;\n}" primitive_type (function_declarator "FUN_002d2350(long *param_1,long *param_2,undefined8 param_3,undefined4 param_4)" identifier (parameter_list "(long *param_1,long *param_2,undefined8 param_3,undefined4 param_4)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long *param_2" (sized_type_specifier "long" long) (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  long *plVar1;\n  long lVar2;\n  long lVar3;\n  \n  lVar2 = param_2[2];\n  *param_1 = lVar2;\n  *(long *)((long)param_1 + *(long *)(lVar2 + -0x18)) = param_2[3];\n  param_1[1] = 0;\n  FUN_002c9590(*(long *)(lVar2 + -0x18) + (long)param_1,0);\n  lVar2 = param_2[4];\n  param_1[2] = lVar2;\n  plVar1 = (long *)((long)param_1 + *(long *)(lVar2 + -0x18) + 0x10);\n  *plVar1 = param_2[5];\n                    \n  FUN_002c9590(plVar1,0);\n  lVar2 = param_2[1];\n  plVar1 = param_1 + 3;\n  *param_1 = lVar2;\n  *(long *)((long)param_1 + *(long *)(lVar2 + -0x18)) = param_2[6];\n  param_1[2] = param_2[7];\n  lVar2 = *param_2;\n  *param_1 = lVar2;\n  *(long *)((long)param_1 + *(long *)(lVar2 + -0x18)) = param_2[8];\n  param_1[2] = param_2[9];\n                    \n  FUN_002ccc90(plVar1);\n                    \n  FUN_002c9590(*(long *)(*param_1 + -0x18) + (long)param_1,plVar1);\n  lVar2 = FUN_002d1d40(plVar1,param_3,param_4);\n  lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  if (lVar2 != 0) {\n    FUN_002c8f80(lVar3,0);\n    return;\n  }\n  FUN_002c8f80(lVar3,*(uint *)(lVar3 + 0x20) | 4);\n  return;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar2 = param_2[2];" (assignment_expression "lVar2 = param_2[2]" identifier = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (expression_statement "*param_1 = lVar2;" (assignment_expression "*param_1 = lVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*(long *)((long)param_1 + *(long *)(lVar2 + -0x18)) = param_2[3];" (assignment_expression "*(long *)((long)param_1 + *(long *)(lVar2 + -0x18)) = param_2[3]" (pointer_expression "*(long *)((long)param_1 + *(long *)(lVar2 + -0x18))" * (cast_expression "(long *)((long)param_1 + *(long *)(lVar2 + -0x18))" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + *(long *)(lVar2 + -0x18))" ( (binary_expression "(long)param_1 + *(long *)(lVar2 + -0x18)" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (pointer_expression "*(long *)(lVar2 + -0x18)" * (cast_expression "(long *)(lVar2 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + -0x18)" ( (binary_expression "lVar2 + -0x18" 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) ;) (expression_statement "FUN_002c9590(*(long *)(lVar2 + -0x18) + (long)param_1,0);" (call_expression "FUN_002c9590(*(long *)(lVar2 + -0x18) + (long)param_1,0)" identifier (argument_list "(*(long *)(lVar2 + -0x18) + (long)param_1,0)" ( (binary_expression "*(long *)(lVar2 + -0x18) + (long)param_1" (pointer_expression "*(long *)(lVar2 + -0x18)" * (cast_expression "(long *)(lVar2 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + -0x18)" ( (binary_expression "lVar2 + -0x18" identifier + number_literal) )))) + (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) , number_literal ))) ;) (expression_statement "lVar2 = param_2[4];" (assignment_expression "lVar2 = param_2[4]" identifier = (subscript_expression "param_2[4]" identifier [ number_literal ])) ;) (expression_statement "param_1[2] = lVar2;" (assignment_expression "param_1[2] = lVar2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "plVar1 = (long *)((long)param_1 + *(long *)(lVar2 + -0x18) + 0x10);" (assignment_expression "plVar1 = (long *)((long)param_1 + *(long *)(lVar2 + -0x18) + 0x10)" identifier = (cast_expression "(long *)((long)param_1 + *(long *)(lVar2 + -0x18) + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + *(long *)(lVar2 + -0x18) + 0x10)" ( (binary_expression "(long)param_1 + *(long *)(lVar2 + -0x18) + 0x10" (binary_expression "(long)param_1 + *(long *)(lVar2 + -0x18)" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (pointer_expression "*(long *)(lVar2 + -0x18)" * (cast_expression "(long *)(lVar2 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + -0x18)" ( (binary_expression "lVar2 + -0x18" identifier + number_literal) ))))) + number_literal) )))) ;) (expression_statement "*plVar1 = param_2[5];" (assignment_expression "*plVar1 = param_2[5]" (pointer_expression "*plVar1" * identifier) = (subscript_expression "param_2[5]" identifier [ number_literal ])) ;) (expression_statement "FUN_002c9590(plVar1,0);" (call_expression "FUN_002c9590(plVar1,0)" identifier (argument_list "(plVar1,0)" ( identifier , number_literal ))) ;) (expression_statement "lVar2 = param_2[1];" (assignment_expression "lVar2 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "plVar1 = param_1 + 3;" (assignment_expression "plVar1 = param_1 + 3" identifier = (binary_expression "param_1 + 3" identifier + number_literal)) ;) (expression_statement "*param_1 = lVar2;" (assignment_expression "*param_1 = lVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*(long *)((long)param_1 + *(long *)(lVar2 + -0x18)) = param_2[6];" (assignment_expression "*(long *)((long)param_1 + *(long *)(lVar2 + -0x18)) = param_2[6]" (pointer_expression "*(long *)((long)param_1 + *(long *)(lVar2 + -0x18))" * (cast_expression "(long *)((long)param_1 + *(long *)(lVar2 + -0x18))" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + *(long *)(lVar2 + -0x18))" ( (binary_expression "(long)param_1 + *(long *)(lVar2 + -0x18)" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (pointer_expression "*(long *)(lVar2 + -0x18)" * (cast_expression "(long *)(lVar2 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + -0x18)" ( (binary_expression "lVar2 + -0x18" 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 "lVar2 = *param_2;" (assignment_expression "lVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*param_1 = lVar2;" (assignment_expression "*param_1 = lVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*(long *)((long)param_1 + *(long *)(lVar2 + -0x18)) = param_2[8];" (assignment_expression "*(long *)((long)param_1 + *(long *)(lVar2 + -0x18)) = param_2[8]" (pointer_expression "*(long *)((long)param_1 + *(long *)(lVar2 + -0x18))" * (cast_expression "(long *)((long)param_1 + *(long *)(lVar2 + -0x18))" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + *(long *)(lVar2 + -0x18))" ( (binary_expression "(long)param_1 + *(long *)(lVar2 + -0x18)" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (pointer_expression "*(long *)(lVar2 + -0x18)" * (cast_expression "(long *)(lVar2 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + -0x18)" ( (binary_expression "lVar2 + -0x18" 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 ])) ;) (expression_statement "FUN_002ccc90(plVar1);" (call_expression "FUN_002ccc90(plVar1)" identifier (argument_list "(plVar1)" ( identifier ))) ;) (expression_statement "FUN_002c9590(*(long *)(*param_1 + -0x18) + (long)param_1,plVar1);" (call_expression "FUN_002c9590(*(long *)(*param_1 + -0x18) + (long)param_1,plVar1)" identifier (argument_list "(*(long *)(*param_1 + -0x18) + (long)param_1,plVar1)" ( (binary_expression "*(long *)(*param_1 + -0x18) + (long)param_1" (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) , identifier ))) ;) (expression_statement "lVar2 = FUN_002d1d40(plVar1,param_3,param_4);" (assignment_expression "lVar2 = FUN_002d1d40(plVar1,param_3,param_4)" identifier = (call_expression "FUN_002d1d40(plVar1,param_3,param_4)" identifier (argument_list "(plVar1,param_3,param_4)" ( identifier , identifier , identifier )))) ;) (expression_statement "lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;" (assignment_expression "lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1" identifier = (binary_expression "*(long *)(*param_1 + -0x18) + (long)param_1" (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (if_statement "if (lVar2 != 0) {\n    FUN_002c8f80(lVar3,0);\n    return;\n  }" if (parenthesized_expression "(lVar2 != 0)" ( (binary_expression "lVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_002c8f80(lVar3,0);\n    return;\n  }" { (expression_statement "FUN_002c8f80(lVar3,0);" (call_expression "FUN_002c8f80(lVar3,0)" identifier (argument_list "(lVar3,0)" ( identifier , number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_002c8f80(lVar3,*(uint *)(lVar3 + 0x20) | 4);" (call_expression "FUN_002c8f80(lVar3,*(uint *)(lVar3 + 0x20) | 4)" identifier (argument_list "(lVar3,*(uint *)(lVar3 + 0x20) | 4)" ( identifier , (binary_expression "*(uint *)(lVar3 + 0x20) | 4" (pointer_expression "*(uint *)(lVar3 + 0x20)" * (cast_expression "(uint *)(lVar3 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x20)" ( (binary_expression "lVar3 + 0x20" identifier + number_literal) )))) | number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) 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 (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )))) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) , 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 (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (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 (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (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 (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) + (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) + (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT) ))) ;) (return_statement return ;) })))
(function_definition "void FUN_002d2350(long *param_1,long *param_2,undefined8 param_3,undefined4 param_4)\n\n{\n  long *plVar1;\n  long lVar2;\n  long lVar3;\n  \n  lVar2 = param_2[2];\n  *param_1 = lVar2;\n  *(long *)((long)param_1 + *(long *)(lVar2 + -0x18)) = param_2[3];\n  param_1[1] = 0;\n  FUN_002c9590(*(long *)(lVar2 + -0x18) + (long)param_1,0);\n  lVar2 = param_2[4];\n  param_1[2] = lVar2;\n  plVar1 = (long *)((long)param_1 + *(long *)(lVar2 + -0x18) + 0x10);\n  *plVar1 = param_2[5];\n                    \n  FUN_002c9590(plVar1,0);\n  lVar2 = param_2[1];\n  plVar1 = param_1 + 3;\n  *param_1 = lVar2;\n  *(long *)((long)param_1 + *(long *)(lVar2 + -0x18)) = param_2[6];\n  param_1[2] = param_2[7];\n  lVar2 = *param_2;\n  *param_1 = lVar2;\n  *(long *)((long)param_1 + *(long *)(lVar2 + -0x18)) = param_2[8];\n  param_1[2] = param_2[9];\n                    \n  FUN_002ccc90(plVar1);\n                    \n  FUN_002c9590(*(long *)(*param_1 + -0x18) + (long)param_1,plVar1);\n  lVar2 = FUN_002d1d40(plVar1,param_3,param_4);\n  lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  if (lVar2 != 0) {\n    FUN_002c8f80(lVar3,0);\n    return;\n  }\n  FUN_002c8f80(lVar3,*(uint *)(lVar3 + 0x20) | 4);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_002d2350(long *param_1,long *param_2,undefined8 param_3,undefined4 param_4)" (identifier "FUN_002d2350") (parameter_list "(long *param_1,long *param_2,undefined8 param_3,undefined4 param_4)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "long *param_2" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined8 param_3" (type_identifier "undefined8") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  long *plVar1;\n  long lVar2;\n  long lVar3;\n  \n  lVar2 = param_2[2];\n  *param_1 = lVar2;\n  *(long *)((long)param_1 + *(long *)(lVar2 + -0x18)) = param_2[3];\n  param_1[1] = 0;\n  FUN_002c9590(*(long *)(lVar2 + -0x18) + (long)param_1,0);\n  lVar2 = param_2[4];\n  param_1[2] = lVar2;\n  plVar1 = (long *)((long)param_1 + *(long *)(lVar2 + -0x18) + 0x10);\n  *plVar1 = param_2[5];\n                    \n  FUN_002c9590(plVar1,0);\n  lVar2 = param_2[1];\n  plVar1 = param_1 + 3;\n  *param_1 = lVar2;\n  *(long *)((long)param_1 + *(long *)(lVar2 + -0x18)) = param_2[6];\n  param_1[2] = param_2[7];\n  lVar2 = *param_2;\n  *param_1 = lVar2;\n  *(long *)((long)param_1 + *(long *)(lVar2 + -0x18)) = param_2[8];\n  param_1[2] = param_2[9];\n                    \n  FUN_002ccc90(plVar1);\n                    \n  FUN_002c9590(*(long *)(*param_1 + -0x18) + (long)param_1,plVar1);\n  lVar2 = FUN_002d1d40(plVar1,param_3,param_4);\n  lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  if (lVar2 != 0) {\n    FUN_002c8f80(lVar3,0);\n    return;\n  }\n  FUN_002c8f80(lVar3,*(uint *)(lVar3 + 0x20) | 4);\n  return;\n}" ({ "{") (declaration "long *plVar1;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar1" (* "*") (identifier "plVar1")) (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (expression_statement "lVar2 = param_2[2];" (assignment_expression "lVar2 = param_2[2]" (identifier "lVar2") (= "=") (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "*param_1 = lVar2;" (assignment_expression "*param_1 = lVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "lVar2")) (; ";")) (expression_statement "*(long *)((long)param_1 + *(long *)(lVar2 + -0x18)) = param_2[3];" (assignment_expression "*(long *)((long)param_1 + *(long *)(lVar2 + -0x18)) = param_2[3]" (pointer_expression "*(long *)((long)param_1 + *(long *)(lVar2 + -0x18))" (* "*") (cast_expression "(long *)((long)param_1 + *(long *)(lVar2 + -0x18))" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + *(long *)(lVar2 + -0x18))" (( "(") (binary_expression "(long)param_1 + *(long *)(lVar2 + -0x18)" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(long *)(lVar2 + -0x18)" (* "*") (cast_expression "(long *)(lVar2 + -0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + -0x18)" (( "(") (binary_expression "lVar2 + -0x18" (identifier "lVar2") (+ "+") (number_literal "-0x18")) () ")"))))) () ")")))) (= "=") (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")) (; ";")) (expression_statement "FUN_002c9590(*(long *)(lVar2 + -0x18) + (long)param_1,0);" (call_expression "FUN_002c9590(*(long *)(lVar2 + -0x18) + (long)param_1,0)" (identifier "FUN_002c9590") (argument_list "(*(long *)(lVar2 + -0x18) + (long)param_1,0)" (( "(") (binary_expression "*(long *)(lVar2 + -0x18) + (long)param_1" (pointer_expression "*(long *)(lVar2 + -0x18)" (* "*") (cast_expression "(long *)(lVar2 + -0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + -0x18)" (( "(") (binary_expression "lVar2 + -0x18" (identifier "lVar2") (+ "+") (number_literal "-0x18")) () ")")))) (+ "+") (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1"))) (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "lVar2 = param_2[4];" (assignment_expression "lVar2 = param_2[4]" (identifier "lVar2") (= "=") (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]"))) (; ";")) (expression_statement "param_1[2] = lVar2;" (assignment_expression "param_1[2] = lVar2" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "lVar2")) (; ";")) (expression_statement "plVar1 = (long *)((long)param_1 + *(long *)(lVar2 + -0x18) + 0x10);" (assignment_expression "plVar1 = (long *)((long)param_1 + *(long *)(lVar2 + -0x18) + 0x10)" (identifier "plVar1") (= "=") (cast_expression "(long *)((long)param_1 + *(long *)(lVar2 + -0x18) + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + *(long *)(lVar2 + -0x18) + 0x10)" (( "(") (binary_expression "(long)param_1 + *(long *)(lVar2 + -0x18) + 0x10" (binary_expression "(long)param_1 + *(long *)(lVar2 + -0x18)" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(long *)(lVar2 + -0x18)" (* "*") (cast_expression "(long *)(lVar2 + -0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + -0x18)" (( "(") (binary_expression "lVar2 + -0x18" (identifier "lVar2") (+ "+") (number_literal "-0x18")) () ")"))))) (+ "+") (number_literal "0x10")) () ")")))) (; ";")) (expression_statement "*plVar1 = param_2[5];" (assignment_expression "*plVar1 = param_2[5]" (pointer_expression "*plVar1" (* "*") (identifier "plVar1")) (= "=") (subscript_expression "param_2[5]" (identifier "param_2") ([ "[") (number_literal "5") (] "]"))) (; ";")) (expression_statement "FUN_002c9590(plVar1,0);" (call_expression "FUN_002c9590(plVar1,0)" (identifier "FUN_002c9590") (argument_list "(plVar1,0)" (( "(") (identifier "plVar1") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "lVar2 = param_2[1];" (assignment_expression "lVar2 = param_2[1]" (identifier "lVar2") (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "plVar1 = param_1 + 3;" (assignment_expression "plVar1 = param_1 + 3" (identifier "plVar1") (= "=") (binary_expression "param_1 + 3" (identifier "param_1") (+ "+") (number_literal "3"))) (; ";")) (expression_statement "*param_1 = lVar2;" (assignment_expression "*param_1 = lVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "lVar2")) (; ";")) (expression_statement "*(long *)((long)param_1 + *(long *)(lVar2 + -0x18)) = param_2[6];" (assignment_expression "*(long *)((long)param_1 + *(long *)(lVar2 + -0x18)) = param_2[6]" (pointer_expression "*(long *)((long)param_1 + *(long *)(lVar2 + -0x18))" (* "*") (cast_expression "(long *)((long)param_1 + *(long *)(lVar2 + -0x18))" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + *(long *)(lVar2 + -0x18))" (( "(") (binary_expression "(long)param_1 + *(long *)(lVar2 + -0x18)" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(long *)(lVar2 + -0x18)" (* "*") (cast_expression "(long *)(lVar2 + -0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + -0x18)" (( "(") (binary_expression "lVar2 + -0x18" (identifier "lVar2") (+ "+") (number_literal "-0x18")) () ")"))))) () ")")))) (= "=") (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 "lVar2 = *param_2;" (assignment_expression "lVar2 = *param_2" (identifier "lVar2") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "*param_1 = lVar2;" (assignment_expression "*param_1 = lVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "lVar2")) (; ";")) (expression_statement "*(long *)((long)param_1 + *(long *)(lVar2 + -0x18)) = param_2[8];" (assignment_expression "*(long *)((long)param_1 + *(long *)(lVar2 + -0x18)) = param_2[8]" (pointer_expression "*(long *)((long)param_1 + *(long *)(lVar2 + -0x18))" (* "*") (cast_expression "(long *)((long)param_1 + *(long *)(lVar2 + -0x18))" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + *(long *)(lVar2 + -0x18))" (( "(") (binary_expression "(long)param_1 + *(long *)(lVar2 + -0x18)" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(long *)(lVar2 + -0x18)" (* "*") (cast_expression "(long *)(lVar2 + -0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + -0x18)" (( "(") (binary_expression "lVar2 + -0x18" (identifier "lVar2") (+ "+") (number_literal "-0x18")) () ")"))))) () ")")))) (= "=") (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") (] "]"))) (; ";")) (expression_statement "FUN_002ccc90(plVar1);" (call_expression "FUN_002ccc90(plVar1)" (identifier "FUN_002ccc90") (argument_list "(plVar1)" (( "(") (identifier "plVar1") () ")"))) (; ";")) (expression_statement "FUN_002c9590(*(long *)(*param_1 + -0x18) + (long)param_1,plVar1);" (call_expression "FUN_002c9590(*(long *)(*param_1 + -0x18) + (long)param_1,plVar1)" (identifier "FUN_002c9590") (argument_list "(*(long *)(*param_1 + -0x18) + (long)param_1,plVar1)" (( "(") (binary_expression "*(long *)(*param_1 + -0x18) + (long)param_1" (pointer_expression "*(long *)(*param_1 + -0x18)" (* "*") (cast_expression "(long *)(*param_1 + -0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0x18)" (( "(") (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0x18")) () ")")))) (+ "+") (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1"))) (, ",") (identifier "plVar1") () ")"))) (; ";")) (expression_statement "lVar2 = FUN_002d1d40(plVar1,param_3,param_4);" (assignment_expression "lVar2 = FUN_002d1d40(plVar1,param_3,param_4)" (identifier "lVar2") (= "=") (call_expression "FUN_002d1d40(plVar1,param_3,param_4)" (identifier "FUN_002d1d40") (argument_list "(plVar1,param_3,param_4)" (( "(") (identifier "plVar1") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")")))) (; ";")) (expression_statement "lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;" (assignment_expression "lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1" (identifier "lVar3") (= "=") (binary_expression "*(long *)(*param_1 + -0x18) + (long)param_1" (pointer_expression "*(long *)(*param_1 + -0x18)" (* "*") (cast_expression "(long *)(*param_1 + -0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0x18)" (( "(") (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0x18")) () ")")))) (+ "+") (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")))) (; ";")) (if_statement "if (lVar2 != 0) {\n    FUN_002c8f80(lVar3,0);\n    return;\n  }" (if "if") (parenthesized_expression "(lVar2 != 0)" (( "(") (binary_expression "lVar2 != 0" (identifier "lVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_002c8f80(lVar3,0);\n    return;\n  }" ({ "{") (expression_statement "FUN_002c8f80(lVar3,0);" (call_expression "FUN_002c8f80(lVar3,0)" (identifier "FUN_002c8f80") (argument_list "(lVar3,0)" (( "(") (identifier "lVar3") (, ",") (number_literal "0") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_002c8f80(lVar3,*(uint *)(lVar3 + 0x20) | 4);" (call_expression "FUN_002c8f80(lVar3,*(uint *)(lVar3 + 0x20) | 4)" (identifier "FUN_002c8f80") (argument_list "(lVar3,*(uint *)(lVar3 + 0x20) | 4)" (( "(") (identifier "lVar3") (, ",") (binary_expression "*(uint *)(lVar3 + 0x20) | 4" (pointer_expression "*(uint *)(lVar3 + 0x20)" (* "*") (cast_expression "(uint *)(lVar3 + 0x20)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x20)" (( "(") (binary_expression "lVar3 + 0x20" (identifier "lVar3") (+ "+") (number_literal "0x20")) () ")")))) (| "|") (number_literal "4")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::wfstream::wfstream(char const*, std::_Ios_Openmode) */

void __thiscall std::function_1::function_1(function_1 *var_2,char *var_1,type_1 param_2)

{
  type_2 *this_00;
  long var_3;
  type_1 in_ECX;
  type_3 in_register_00000014;
  type_4 *var_8;
  
  var_3 = *(long *)(var_1 + 0x10);
  *(long *)var_2 = var_3;
  *(type_5 *)(var_2 + *(long *)(var_3 + -0x18)) = *(type_5 *)(var_1 + 0x18);
  *(type_5 *)(var_2 + 8) = 0;
  wios::var_4((type_4 *)(var_2 + *(long *)(var_3 + -0x18)),(type_6 *)0x0);
  var_3 = *(long *)(var_1 + 0x20);
  *(long *)(var_2 + 0x10) = var_3;
  var_3 = *(long *)(var_3 + -0x18);
  *(type_5 *)(var_2 + var_3 + 0x10) = *(type_5 *)(var_1 + 0x28);
                    /* try { // try from 002d23a7 to 002d23ab has its CatchHandler @ 002d244b */
  wios::var_4((type_4 *)(var_2 + var_3 + 0x10),(type_6 *)0x0);
  var_3 = *(long *)(var_1 + 8);
  this_00 = (type_2 *)(var_2 + 0x18);
  *(long *)var_2 = var_3;
  *(type_5 *)(var_2 + *(long *)(var_3 + -0x18)) = *(type_5 *)(var_1 + 0x30);
  *(type_5 *)(var_2 + 0x10) = *(type_5 *)(var_1 + 0x38);
  var_3 = *(long *)var_1;
  *(long *)var_2 = var_3;
  *(type_5 *)(var_2 + *(long *)(var_3 + -0x18)) = *(type_5 *)(var_1 + 0x40);
  *(type_5 *)(var_2 + 0x10) = *(type_5 *)(var_1 + 0x48);
                    /* try { // try from 002d23e9 to 002d23ed has its CatchHandler @ 002d2449 */
  wfilebuf::type_2(this_00);
                    /* try { // try from 002d23fb to 002d243a has its CatchHandler @ 002d2444 */
  wios::var_4((type_4 *)(var_2 + *(long *)(*(long *)var_2 + -0x18)),(type_6 *)this_00);
  var_3 = type_2::var_5(this_00,(char *)var_6(in_register_00000014,param_2),in_ECX);
  var_8 = (type_4 *)(var_2 + *(long *)(*(long *)var_2 + -0x18));
  if (var_3 != 0) {
    wios::var_7(var_8,_S_goodbit);
    return;
  }
  wios::var_7(var_8,*(type_7 *)(var_8 + 0x20) | var_9);
  return;
}


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

void MASKED(long *param_1,long *param_2,undefined8 param_3,undefined4 param_4)

{
  long *plVar1;
  long lVar2;
  long lVar3;
  
  lVar2 = param_2[2];
  *param_1 = lVar2;
  *(long *)((long)param_1 + *(long *)(lVar2 + -0x18)) = param_2[3];
  param_1[1] = 0;
  FUN_002c9590(*(long *)(lVar2 + -0x18) + (long)param_1,0);
  lVar2 = param_2[4];
  param_1[2] = lVar2;
  plVar1 = (long *)((long)param_1 + *(long *)(lVar2 + -0x18) + 0x10);
  *plVar1 = param_2[5];
                    /* try { // try from 002d23a7 to 002d23ab has its CatchHandler @ 002d244b */
  FUN_002c9590(plVar1,0);
  lVar2 = param_2[1];
  plVar1 = param_1 + 3;
  *param_1 = lVar2;
  *(long *)((long)param_1 + *(long *)(lVar2 + -0x18)) = param_2[6];
  param_1[2] = param_2[7];
  lVar2 = *param_2;
  *param_1 = lVar2;
  *(long *)((long)param_1 + *(long *)(lVar2 + -0x18)) = param_2[8];
  param_1[2] = param_2[9];
                    /* try { // try from 002d23e9 to 002d23ed has its CatchHandler @ 002d2449 */
  FUN_002ccc90(plVar1);
                    /* try { // try from 002d23fb to 002d243a has its CatchHandler @ 002d2444 */
  FUN_002c9590(*(long *)(*param_1 + -0x18) + (long)param_1,plVar1);
  lVar2 = FUN_002d1d40(plVar1,param_3,param_4);
  lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;
  if (lVar2 != 0) {
    FUN_002c8f80(lVar3,0);
    return;
  }
  FUN_002c8f80(lVar3,*(uint *)(lVar3 + 0x20) | 4);
  return;
}

