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

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

{
  filebuf *this_00;
  ios_base *this_01;
  int iVar1;
  ios *this_02;
  int unaff_EDI;
  
  __x86_get_pc_thunk_di();
  this_01 = (ios_base *)(this + 0x94);
  ios_base::ios_base(this_01);
  *(undefined4 *)(this + 0x104) = 0;
  *(undefined2 *)(this + 0x108) = 0;
  *(undefined4 *)(this + 0x10c) = 0;
  *(undefined4 *)(this + 0x110) = 0;
  *(undefined4 *)(this + 0x114) = 0;
  *(undefined4 *)(this + 0x118) = 0;
  *(int *)this = unaff_EDI + 0x17c9e3;
  *(int *)(this + 0x94) = unaff_EDI + 0x17c9f7;
  *(undefined4 *)(this + 4) = 0;
                    /* try { // try from 00230018 to 0023001c has its CatchHandler @ 00230123 */
  ios::init((ios *)this_01,(streambuf *)0x0);
  *(int *)(this + 0x94) = unaff_EDI + 0x17c9cf;
  *(int *)(this + 8) = unaff_EDI + 0x17c9bb;
                    /* try { // try from 0023003e to 00230042 has its CatchHandler @ 00230121 */
  ios::init((ios *)this_01,(streambuf *)0x0);
  this_00 = (filebuf *)(this + 0xc);
  *(int *)this = unaff_EDI + 0x17ca6f;
  *(int *)(this + 0x94) = unaff_EDI + 0x17ca97;
  *(int *)(this + 8) = unaff_EDI + 0x17ca83;
                    /* try { // try from 00230066 to 0023006a has its CatchHandler @ 002300cd */
  filebuf::filebuf(this_00);
                    /* try { // try from 00230073 to 002300bf has its CatchHandler @ 002300cb */
  ios::init((ios *)this_01,(streambuf *)this_00);
  iVar1 = filebuf::open(this_00,param_1,param_2);
  this_02 = (ios *)(this + *(int *)(*(int *)this + -0xc));
  if (iVar1 != 0) {
    ios::clear(this_02,_S_goodbit);
    return;
  }
  ios::clear(this_02,*(_Ios_Iostate *)(this_02 + 0x14) | _S_failbit);
  return;
}



void FUN_0022ff90(int *param_1,undefined4 param_2,undefined4 param_3)

{
  int *piVar1;
  int *piVar2;
  int iVar3;
  int iVar4;
  int unaff_EDI;
  
  FUN_000644be();
  piVar2 = param_1 + 0x25;
  FUN_00243f20(piVar2);
  param_1[0x41] = 0;
  *(undefined2 *)(param_1 + 0x42) = 0;
  param_1[0x43] = 0;
  param_1[0x44] = 0;
  param_1[0x45] = 0;
  param_1[0x46] = 0;
  *param_1 = (int)(&UNK_0017c9e3 + unaff_EDI);
  param_1[0x25] = unaff_EDI + 0x17c9f7;
  param_1[1] = 0;
                    /* try { // try from 00230018 to 0023001c has its CatchHandler @ 00230123 */
  FUN_002296d0(piVar2,0);
  param_1[0x25] = unaff_EDI + 0x17c9cf;
  param_1[2] = unaff_EDI + 0x17c9bb;
                    /* try { // try from 0023003e to 00230042 has its CatchHandler @ 00230121 */
  FUN_002296d0(piVar2,0);
  piVar1 = param_1 + 3;
  *param_1 = (int)(&UNK_0017ca6f + unaff_EDI);
  param_1[0x25] = (int)(&UNK_0017ca97 + unaff_EDI);
  param_1[2] = (int)(&UNK_0017ca83 + unaff_EDI);
                    /* try { // try from 00230066 to 0023006a has its CatchHandler @ 002300cd */
  FUN_0022b8f0(piVar1);
                    /* try { // try from 00230073 to 002300bf has its CatchHandler @ 002300cb */
  FUN_002296d0(piVar2,piVar1);
  iVar3 = FUN_0022fbd0(piVar1,param_2,param_3);
  iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;
  if (iVar3 != 0) {
    FUN_00228e80(iVar4,0);
    return;
  }
  FUN_00228e80(iVar4,*(uint *)(iVar4 + 0x14) | 4);
  return;
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
CALL 0x000644be
ADD EDI,0x17f067
PUSH ESI
PUSH EBX
SUB ESP,0x38
MOV ESI,dword ptr [EBP + 0x8]
LEA EAX,[ESI + 0x94]
MOV EBX,EDI
PUSH EAX
MOV dword ptr [EBP + -0x1c],EAX
CALL 0x00243f20
XOR EAX,EAX
LEA ECX,[EDI + 0xffffd97c]
MOV dword ptr [ESI + 0x104],0x0
MOV word ptr [ESI + 0x108],AX
LEA EAX,[EDI + 0xffffd990]
MOV dword ptr [ESI + 0x10c],0x0
MOV dword ptr [ESI + 0x110],0x0
MOV dword ptr [ESI + 0x114],0x0
MOV dword ptr [ESI + 0x118],0x0
MOV dword ptr [ESI],ECX
MOV dword ptr [ESI + 0x94],EAX
MOV dword ptr [ESI + 0x4],0x0
POP EAX
POP EDX
PUSH 0x0
PUSH dword ptr [EBP + -0x1c]
MOV dword ptr [EBP + -0x24],ECX
CALL 0x002296d0
POP ECX
LEA EAX,[EDI + 0xffffd968]
POP EBX
LEA EBX,[EDI + 0xffffd954]
MOV dword ptr [ESI + 0x94],EAX
MOV dword ptr [ESI + 0x8],EBX
PUSH 0x0
PUSH dword ptr [EBP + -0x1c]
MOV dword ptr [EBP + -0x28],EBX
MOV EBX,EDI
CALL 0x002296d0
LEA EAX,[EDI + 0xffffd9fc]
LEA ECX,[ESI + 0xc]
MOV dword ptr [EBP + -0x20],ECX
LEA EDX,[EAX + 0xc]
MOV dword ptr [ESI],EDX
LEA EDX,[EAX + 0x34]
ADD EAX,0x20
MOV dword ptr [ESI + 0x94],EDX
MOV dword ptr [ESI + 0x8],EAX
MOV dword ptr [ESP],ECX
CALL 0x0022b8f0
POP EAX
POP EDX
PUSH dword ptr [EBP + -0x20]
PUSH dword ptr [EBP + -0x1c]
CALL 0x002296d0
ADD ESP,0xc
PUSH dword ptr [EBP + 0x10]
PUSH dword ptr [EBP + 0xc]
PUSH dword ptr [EBP + -0x20]
CALL 0x0022fbd0
MOV EDX,dword ptr [ESI]
ADD ESP,0x10
MOV ECX,dword ptr [EDX + -0xc]
ADD ECX,ESI
TEST EAX,EAX
JZ 0x002300b0
SUB ESP,0x8
PUSH 0x0
PUSH ECX
CALL 0x00228e80
ADD ESP,0x10
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ECX + 0x14]
SUB ESP,0x8
OR EAX,0x4
PUSH EAX
PUSH ECX
CALL 0x00228e80
ADD ESP,0x10
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "void FUN_0022ff90(int *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  int unaff_EDI;\n  \n  FUN_000644be();\n  piVar2 = param_1 + 0x25;\n  FUN_00243f20(piVar2);\n  param_1[0x41] = 0;\n  *(undefined2 *)(param_1 + 0x42) = 0;\n  param_1[0x43] = 0;\n  param_1[0x44] = 0;\n  param_1[0x45] = 0;\n  param_1[0x46] = 0;\n  *param_1 = (int)(&UNK_0017c9e3 + unaff_EDI);\n  param_1[0x25] = unaff_EDI + 0x17c9f7;\n  param_1[1] = 0;\n                    /* try { // try from 00230018 to 0023001c has its CatchHandler @ 00230123 */\n  FUN_002296d0(piVar2,0);\n  param_1[0x25] = unaff_EDI + 0x17c9cf;\n  param_1[2] = unaff_EDI + 0x17c9bb;\n                    /* try { // try from 0023003e to 00230042 has its CatchHandler @ 00230121 */\n  FUN_002296d0(piVar2,0);\n  piVar1 = param_1 + 3;\n  *param_1 = (int)(&UNK_0017ca6f + unaff_EDI);\n  param_1[0x25] = (int)(&UNK_0017ca97 + unaff_EDI);\n  param_1[2] = (int)(&UNK_0017ca83 + unaff_EDI);\n                    /* try { // try from 00230066 to 0023006a has its CatchHandler @ 002300cd */\n  FUN_0022b8f0(piVar1);\n                    /* try { // try from 00230073 to 002300bf has its CatchHandler @ 002300cb */\n  FUN_002296d0(piVar2,piVar1);\n  iVar3 = FUN_0022fbd0(piVar1,param_2,param_3);\n  iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  if (iVar3 != 0) {\n    FUN_00228e80(iVar4,0);\n    return;\n  }\n  FUN_00228e80(iVar4,*(uint *)(iVar4 + 0x14) | 4);\n  return;\n}\n\n" (function_definition "void FUN_0022ff90(int *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  int unaff_EDI;\n  \n  FUN_000644be();\n  piVar2 = param_1 + 0x25;\n  FUN_00243f20(piVar2);\n  param_1[0x41] = 0;\n  *(undefined2 *)(param_1 + 0x42) = 0;\n  param_1[0x43] = 0;\n  param_1[0x44] = 0;\n  param_1[0x45] = 0;\n  param_1[0x46] = 0;\n  *param_1 = (int)(&UNK_0017c9e3 + unaff_EDI);\n  param_1[0x25] = unaff_EDI + 0x17c9f7;\n  param_1[1] = 0;\n                    /* try { // try from 00230018 to 0023001c has its CatchHandler @ 00230123 */\n  FUN_002296d0(piVar2,0);\n  param_1[0x25] = unaff_EDI + 0x17c9cf;\n  param_1[2] = unaff_EDI + 0x17c9bb;\n                    /* try { // try from 0023003e to 00230042 has its CatchHandler @ 00230121 */\n  FUN_002296d0(piVar2,0);\n  piVar1 = param_1 + 3;\n  *param_1 = (int)(&UNK_0017ca6f + unaff_EDI);\n  param_1[0x25] = (int)(&UNK_0017ca97 + unaff_EDI);\n  param_1[2] = (int)(&UNK_0017ca83 + unaff_EDI);\n                    /* try { // try from 00230066 to 0023006a has its CatchHandler @ 002300cd */\n  FUN_0022b8f0(piVar1);\n                    /* try { // try from 00230073 to 002300bf has its CatchHandler @ 002300cb */\n  FUN_002296d0(piVar2,piVar1);\n  iVar3 = FUN_0022fbd0(piVar1,param_2,param_3);\n  iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  if (iVar3 != 0) {\n    FUN_00228e80(iVar4,0);\n    return;\n  }\n  FUN_00228e80(iVar4,*(uint *)(iVar4 + 0x14) | 4);\n  return;\n}" primitive_type (function_declarator "FUN_0022ff90(int *param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(int *param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  int unaff_EDI;\n  \n  FUN_000644be();\n  piVar2 = param_1 + 0x25;\n  FUN_00243f20(piVar2);\n  param_1[0x41] = 0;\n  *(undefined2 *)(param_1 + 0x42) = 0;\n  param_1[0x43] = 0;\n  param_1[0x44] = 0;\n  param_1[0x45] = 0;\n  param_1[0x46] = 0;\n  *param_1 = (int)(&UNK_0017c9e3 + unaff_EDI);\n  param_1[0x25] = unaff_EDI + 0x17c9f7;\n  param_1[1] = 0;\n                    /* try { // try from 00230018 to 0023001c has its CatchHandler @ 00230123 */\n  FUN_002296d0(piVar2,0);\n  param_1[0x25] = unaff_EDI + 0x17c9cf;\n  param_1[2] = unaff_EDI + 0x17c9bb;\n                    /* try { // try from 0023003e to 00230042 has its CatchHandler @ 00230121 */\n  FUN_002296d0(piVar2,0);\n  piVar1 = param_1 + 3;\n  *param_1 = (int)(&UNK_0017ca6f + unaff_EDI);\n  param_1[0x25] = (int)(&UNK_0017ca97 + unaff_EDI);\n  param_1[2] = (int)(&UNK_0017ca83 + unaff_EDI);\n                    /* try { // try from 00230066 to 0023006a has its CatchHandler @ 002300cd */\n  FUN_0022b8f0(piVar1);\n                    /* try { // try from 00230073 to 002300bf has its CatchHandler @ 002300cb */\n  FUN_002296d0(piVar2,piVar1);\n  iVar3 = FUN_0022fbd0(piVar1,param_2,param_3);\n  iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  if (iVar3 != 0) {\n    FUN_00228e80(iVar4,0);\n    return;\n  }\n  FUN_00228e80(iVar4,*(uint *)(iVar4 + 0x14) | 4);\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (expression_statement "FUN_000644be();" (call_expression "FUN_000644be()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar2 = param_1 + 0x25;" (assignment_expression "piVar2 = param_1 + 0x25" identifier = (binary_expression "param_1 + 0x25" identifier + number_literal)) ;) (expression_statement "FUN_00243f20(piVar2);" (call_expression "FUN_00243f20(piVar2)" identifier (argument_list "(piVar2)" ( identifier ))) ;) (expression_statement "param_1[0x41] = 0;" (assignment_expression "param_1[0x41] = 0" (subscript_expression "param_1[0x41]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined2 *)(param_1 + 0x42) = 0;" (assignment_expression "*(undefined2 *)(param_1 + 0x42) = 0" (pointer_expression "*(undefined2 *)(param_1 + 0x42)" * (cast_expression "(undefined2 *)(param_1 + 0x42)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x42)" ( (binary_expression "param_1 + 0x42" identifier + number_literal) )))) = number_literal) ;) (expression_statement "param_1[0x43] = 0;" (assignment_expression "param_1[0x43] = 0" (subscript_expression "param_1[0x43]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x44] = 0;" (assignment_expression "param_1[0x44] = 0" (subscript_expression "param_1[0x44]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x45] = 0;" (assignment_expression "param_1[0x45] = 0" (subscript_expression "param_1[0x45]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x46] = 0;" (assignment_expression "param_1[0x46] = 0" (subscript_expression "param_1[0x46]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_1 = (int)(&UNK_0017c9e3 + unaff_EDI);" (assignment_expression "*param_1 = (int)(&UNK_0017c9e3 + unaff_EDI)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(&UNK_0017c9e3 + unaff_EDI)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(&UNK_0017c9e3 + unaff_EDI)" ( (binary_expression "&UNK_0017c9e3 + unaff_EDI" (pointer_expression "&UNK_0017c9e3" & identifier) + identifier) )))) ;) (expression_statement "param_1[0x25] = unaff_EDI + 0x17c9f7;" (assignment_expression "param_1[0x25] = unaff_EDI + 0x17c9f7" (subscript_expression "param_1[0x25]" identifier [ number_literal ]) = (binary_expression "unaff_EDI + 0x17c9f7" 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) ;) comment (expression_statement "FUN_002296d0(piVar2,0);" (call_expression "FUN_002296d0(piVar2,0)" identifier (argument_list "(piVar2,0)" ( identifier , number_literal ))) ;) (expression_statement "param_1[0x25] = unaff_EDI + 0x17c9cf;" (assignment_expression "param_1[0x25] = unaff_EDI + 0x17c9cf" (subscript_expression "param_1[0x25]" identifier [ number_literal ]) = (binary_expression "unaff_EDI + 0x17c9cf" identifier + number_literal)) ;) (expression_statement "param_1[2] = unaff_EDI + 0x17c9bb;" (assignment_expression "param_1[2] = unaff_EDI + 0x17c9bb" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (binary_expression "unaff_EDI + 0x17c9bb" identifier + number_literal)) ;) comment (expression_statement "FUN_002296d0(piVar2,0);" (call_expression "FUN_002296d0(piVar2,0)" identifier (argument_list "(piVar2,0)" ( identifier , number_literal ))) ;) (expression_statement "piVar1 = param_1 + 3;" (assignment_expression "piVar1 = param_1 + 3" identifier = (binary_expression "param_1 + 3" identifier + number_literal)) ;) (expression_statement "*param_1 = (int)(&UNK_0017ca6f + unaff_EDI);" (assignment_expression "*param_1 = (int)(&UNK_0017ca6f + unaff_EDI)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(&UNK_0017ca6f + unaff_EDI)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(&UNK_0017ca6f + unaff_EDI)" ( (binary_expression "&UNK_0017ca6f + unaff_EDI" (pointer_expression "&UNK_0017ca6f" & identifier) + identifier) )))) ;) (expression_statement "param_1[0x25] = (int)(&UNK_0017ca97 + unaff_EDI);" (assignment_expression "param_1[0x25] = (int)(&UNK_0017ca97 + unaff_EDI)" (subscript_expression "param_1[0x25]" identifier [ number_literal ]) = (cast_expression "(int)(&UNK_0017ca97 + unaff_EDI)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(&UNK_0017ca97 + unaff_EDI)" ( (binary_expression "&UNK_0017ca97 + unaff_EDI" (pointer_expression "&UNK_0017ca97" & identifier) + identifier) )))) ;) (expression_statement "param_1[2] = (int)(&UNK_0017ca83 + unaff_EDI);" (assignment_expression "param_1[2] = (int)(&UNK_0017ca83 + unaff_EDI)" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (cast_expression "(int)(&UNK_0017ca83 + unaff_EDI)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(&UNK_0017ca83 + unaff_EDI)" ( (binary_expression "&UNK_0017ca83 + unaff_EDI" (pointer_expression "&UNK_0017ca83" & identifier) + identifier) )))) ;) comment (expression_statement "FUN_0022b8f0(piVar1);" (call_expression "FUN_0022b8f0(piVar1)" identifier (argument_list "(piVar1)" ( identifier ))) ;) comment (expression_statement "FUN_002296d0(piVar2,piVar1);" (call_expression "FUN_002296d0(piVar2,piVar1)" identifier (argument_list "(piVar2,piVar1)" ( identifier , identifier ))) ;) (expression_statement "iVar3 = FUN_0022fbd0(piVar1,param_2,param_3);" (assignment_expression "iVar3 = FUN_0022fbd0(piVar1,param_2,param_3)" identifier = (call_expression "FUN_0022fbd0(piVar1,param_2,param_3)" identifier (argument_list "(piVar1,param_2,param_3)" ( identifier , identifier , identifier )))) ;) (expression_statement "iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1" identifier = (binary_expression "*(int *)(*param_1 + -0xc) + (int)param_1" (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (iVar3 != 0) {\n    FUN_00228e80(iVar4,0);\n    return;\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_00228e80(iVar4,0);\n    return;\n  }" { (expression_statement "FUN_00228e80(iVar4,0);" (call_expression "FUN_00228e80(iVar4,0)" identifier (argument_list "(iVar4,0)" ( identifier , number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00228e80(iVar4,*(uint *)(iVar4 + 0x14) | 4);" (call_expression "FUN_00228e80(iVar4,*(uint *)(iVar4 + 0x14) | 4)" identifier (argument_list "(iVar4,*(uint *)(iVar4 + 0x14) | 4)" ( identifier , (binary_expression "*(uint *)(iVar4 + 0x14) | 4" (pointer_expression "*(uint *)(iVar4 + 0x14)" * (cast_expression "(uint *)(iVar4 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x14)" ( (binary_expression "iVar4 + 0x14" identifier + number_literal) )))) | number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* std::fstream::fstream(char const*, std::_Ios_Openmode) */\n\nvoid __thiscall std::fstream::fstream(fstream *this,char *param_1,_Ios_Openmode param_2)\n\n{\n  filebuf *this_00;\n  ios_base *this_01;\n  int iVar1;\n  ios *this_02;\n  int unaff_EDI;\n  \n  __x86_get_pc_thunk_di();\n  this_01 = (ios_base *)(this + 0x94);\n  ios_base::ios_base(this_01);\n  *(undefined4 *)(this + 0x104) = 0;\n  *(undefined2 *)(this + 0x108) = 0;\n  *(undefined4 *)(this + 0x10c) = 0;\n  *(undefined4 *)(this + 0x110) = 0;\n  *(undefined4 *)(this + 0x114) = 0;\n  *(undefined4 *)(this + 0x118) = 0;\n  *(int *)this = unaff_EDI + 0x17c9e3;\n  *(int *)(this + 0x94) = unaff_EDI + 0x17c9f7;\n  *(undefined4 *)(this + 4) = 0;\n                    /* try { // try from 00230018 to 0023001c has its CatchHandler @ 00230123 */\n  ios::init((ios *)this_01,(streambuf *)0x0);\n  *(int *)(this + 0x94) = unaff_EDI + 0x17c9cf;\n  *(int *)(this + 8) = unaff_EDI + 0x17c9bb;\n                    /* try { // try from 0023003e to 00230042 has its CatchHandler @ 00230121 */\n  ios::init((ios *)this_01,(streambuf *)0x0);\n  this_00 = (filebuf *)(this + 0xc);\n  *(int *)this = unaff_EDI + 0x17ca6f;\n  *(int *)(this + 0x94) = unaff_EDI + 0x17ca97;\n  *(int *)(this + 8) = unaff_EDI + 0x17ca83;\n                    /* try { // try from 00230066 to 0023006a has its CatchHandler @ 002300cd */\n  filebuf::filebuf(this_00);\n                    /* try { // try from 00230073 to 002300bf has its CatchHandler @ 002300cb */\n  ios::init((ios *)this_01,(streambuf *)this_00);\n  iVar1 = filebuf::open(this_00,param_1,param_2);\n  this_02 = (ios *)(this + *(int *)(*(int *)this + -0xc));\n  if (iVar1 != 0) {\n    ios::clear(this_02,_S_goodbit);\n    return;\n  }\n  ios::clear(this_02,*(_Ios_Iostate *)(this_02 + 0x14) | _S_failbit);\n  return;\n}\n\n" comment (function_definition "void __thiscall std::fstream::fstream(fstream *this,char *param_1,_Ios_Openmode param_2)\n\n{\n  filebuf *this_00;\n  ios_base *this_01;\n  int iVar1;\n  ios *this_02;\n  int unaff_EDI;\n  \n  __x86_get_pc_thunk_di();\n  this_01 = (ios_base *)(this + 0x94);\n  ios_base::ios_base(this_01);\n  *(undefined4 *)(this + 0x104) = 0;\n  *(undefined2 *)(this + 0x108) = 0;\n  *(undefined4 *)(this + 0x10c) = 0;\n  *(undefined4 *)(this + 0x110) = 0;\n  *(undefined4 *)(this + 0x114) = 0;\n  *(undefined4 *)(this + 0x118) = 0;\n  *(int *)this = unaff_EDI + 0x17c9e3;\n  *(int *)(this + 0x94) = unaff_EDI + 0x17c9f7;\n  *(undefined4 *)(this + 4) = 0;\n                    /* try { // try from 00230018 to 0023001c has its CatchHandler @ 00230123 */\n  ios::init((ios *)this_01,(streambuf *)0x0);\n  *(int *)(this + 0x94) = unaff_EDI + 0x17c9cf;\n  *(int *)(this + 8) = unaff_EDI + 0x17c9bb;\n                    /* try { // try from 0023003e to 00230042 has its CatchHandler @ 00230121 */\n  ios::init((ios *)this_01,(streambuf *)0x0);\n  this_00 = (filebuf *)(this + 0xc);\n  *(int *)this = unaff_EDI + 0x17ca6f;\n  *(int *)(this + 0x94) = unaff_EDI + 0x17ca97;\n  *(int *)(this + 8) = unaff_EDI + 0x17ca83;\n                    /* try { // try from 00230066 to 0023006a has its CatchHandler @ 002300cd */\n  filebuf::filebuf(this_00);\n                    /* try { // try from 00230073 to 002300bf has its CatchHandler @ 002300cb */\n  ios::init((ios *)this_01,(streambuf *)this_00);\n  iVar1 = filebuf::open(this_00,param_1,param_2);\n  this_02 = (ios *)(this + *(int *)(*(int *)this + -0xc));\n  if (iVar1 != 0) {\n    ios::clear(this_02,_S_goodbit);\n    return;\n  }\n  ios::clear(this_02,*(_Ios_Iostate *)(this_02 + 0x14) | _S_failbit);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::fstream::" identifier : : identifier : :) (function_declarator "fstream(fstream *this,char *param_1,_Ios_Openmode param_2)" identifier (parameter_list "(fstream *this,char *param_1,_Ios_Openmode param_2)" ( (parameter_declaration "fstream *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  filebuf *this_00;\n  ios_base *this_01;\n  int iVar1;\n  ios *this_02;\n  int unaff_EDI;\n  \n  __x86_get_pc_thunk_di();\n  this_01 = (ios_base *)(this + 0x94);\n  ios_base::ios_base(this_01);\n  *(undefined4 *)(this + 0x104) = 0;\n  *(undefined2 *)(this + 0x108) = 0;\n  *(undefined4 *)(this + 0x10c) = 0;\n  *(undefined4 *)(this + 0x110) = 0;\n  *(undefined4 *)(this + 0x114) = 0;\n  *(undefined4 *)(this + 0x118) = 0;\n  *(int *)this = unaff_EDI + 0x17c9e3;\n  *(int *)(this + 0x94) = unaff_EDI + 0x17c9f7;\n  *(undefined4 *)(this + 4) = 0;\n                    /* try { // try from 00230018 to 0023001c has its CatchHandler @ 00230123 */\n  ios::init((ios *)this_01,(streambuf *)0x0);\n  *(int *)(this + 0x94) = unaff_EDI + 0x17c9cf;\n  *(int *)(this + 8) = unaff_EDI + 0x17c9bb;\n                    /* try { // try from 0023003e to 00230042 has its CatchHandler @ 00230121 */\n  ios::init((ios *)this_01,(streambuf *)0x0);\n  this_00 = (filebuf *)(this + 0xc);\n  *(int *)this = unaff_EDI + 0x17ca6f;\n  *(int *)(this + 0x94) = unaff_EDI + 0x17ca97;\n  *(int *)(this + 8) = unaff_EDI + 0x17ca83;\n                    /* try { // try from 00230066 to 0023006a has its CatchHandler @ 002300cd */\n  filebuf::filebuf(this_00);\n                    /* try { // try from 00230073 to 002300bf has its CatchHandler @ 002300cb */\n  ios::init((ios *)this_01,(streambuf *)this_00);\n  iVar1 = filebuf::open(this_00,param_1,param_2);\n  this_02 = (ios *)(this + *(int *)(*(int *)this + -0xc));\n  if (iVar1 != 0) {\n    ios::clear(this_02,_S_goodbit);\n    return;\n  }\n  ios::clear(this_02,*(_Ios_Iostate *)(this_02 + 0x14) | _S_failbit);\n  return;\n}" { (declaration "filebuf *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (declaration "ios_base *this_01;" type_identifier (pointer_declarator "*this_01" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "ios *this_02;" type_identifier (pointer_declarator "*this_02" * identifier) ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (expression_statement "__x86_get_pc_thunk_di();" (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( ))) ;) (expression_statement "this_01 = (ios_base *)(this + 0x94);" (assignment_expression "this_01 = (ios_base *)(this + 0x94)" identifier = (cast_expression "(ios_base *)(this + 0x94)" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x94)" ( (binary_expression "this + 0x94" identifier + number_literal) )))) ;) (labeled_statement "ios_base::ios_base(this_01);" statement_identifier : (ERROR ":" :) (expression_statement "ios_base(this_01);" (call_expression "ios_base(this_01)" identifier (argument_list "(this_01)" ( identifier ))) ;)) (expression_statement "*(undefined4 *)(this + 0x104) = 0;" (assignment_expression "*(undefined4 *)(this + 0x104) = 0" (pointer_expression "*(undefined4 *)(this + 0x104)" * (cast_expression "(undefined4 *)(this + 0x104)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x104)" ( (binary_expression "this + 0x104" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined2 *)(this + 0x108) = 0;" (assignment_expression "*(undefined2 *)(this + 0x108) = 0" (pointer_expression "*(undefined2 *)(this + 0x108)" * (cast_expression "(undefined2 *)(this + 0x108)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x108)" ( (binary_expression "this + 0x108" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(this + 0x10c) = 0;" (assignment_expression "*(undefined4 *)(this + 0x10c) = 0" (pointer_expression "*(undefined4 *)(this + 0x10c)" * (cast_expression "(undefined4 *)(this + 0x10c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10c)" ( (binary_expression "this + 0x10c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(this + 0x110) = 0;" (assignment_expression "*(undefined4 *)(this + 0x110) = 0" (pointer_expression "*(undefined4 *)(this + 0x110)" * (cast_expression "(undefined4 *)(this + 0x110)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x110)" ( (binary_expression "this + 0x110" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(this + 0x114) = 0;" (assignment_expression "*(undefined4 *)(this + 0x114) = 0" (pointer_expression "*(undefined4 *)(this + 0x114)" * (cast_expression "(undefined4 *)(this + 0x114)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x114)" ( (binary_expression "this + 0x114" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(this + 0x118) = 0;" (assignment_expression "*(undefined4 *)(this + 0x118) = 0" (pointer_expression "*(undefined4 *)(this + 0x118)" * (cast_expression "(undefined4 *)(this + 0x118)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x118)" ( (binary_expression "this + 0x118" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)this = unaff_EDI + 0x17c9e3;" (assignment_expression "*(int *)this = unaff_EDI + 0x17c9e3" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "unaff_EDI + 0x17c9e3" identifier + number_literal)) ;) (expression_statement "*(int *)(this + 0x94) = unaff_EDI + 0x17c9f7;" (assignment_expression "*(int *)(this + 0x94) = unaff_EDI + 0x17c9f7" (pointer_expression "*(int *)(this + 0x94)" * (cast_expression "(int *)(this + 0x94)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x94)" ( (binary_expression "this + 0x94" identifier + number_literal) )))) = (binary_expression "unaff_EDI + 0x17c9f7" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(this + 4) = 0;" (assignment_expression "*(undefined4 *)(this + 4) = 0" (pointer_expression "*(undefined4 *)(this + 4)" * (cast_expression "(undefined4 *)(this + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = number_literal) ;) comment (labeled_statement "ios::init((ios *)this_01,(streambuf *)0x0);" statement_identifier : (ERROR ":" :) (expression_statement "init((ios *)this_01,(streambuf *)0x0);" (call_expression "init((ios *)this_01,(streambuf *)0x0)" identifier (argument_list "((ios *)this_01,(streambuf *)0x0)" ( (cast_expression "(ios *)this_01" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(streambuf *)0x0" ( (type_descriptor "streambuf *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;)) (expression_statement "*(int *)(this + 0x94) = unaff_EDI + 0x17c9cf;" (assignment_expression "*(int *)(this + 0x94) = unaff_EDI + 0x17c9cf" (pointer_expression "*(int *)(this + 0x94)" * (cast_expression "(int *)(this + 0x94)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x94)" ( (binary_expression "this + 0x94" identifier + number_literal) )))) = (binary_expression "unaff_EDI + 0x17c9cf" identifier + number_literal)) ;) (expression_statement "*(int *)(this + 8) = unaff_EDI + 0x17c9bb;" (assignment_expression "*(int *)(this + 8) = unaff_EDI + 0x17c9bb" (pointer_expression "*(int *)(this + 8)" * (cast_expression "(int *)(this + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = (binary_expression "unaff_EDI + 0x17c9bb" identifier + number_literal)) ;) comment (labeled_statement "ios::init((ios *)this_01,(streambuf *)0x0);" statement_identifier : (ERROR ":" :) (expression_statement "init((ios *)this_01,(streambuf *)0x0);" (call_expression "init((ios *)this_01,(streambuf *)0x0)" identifier (argument_list "((ios *)this_01,(streambuf *)0x0)" ( (cast_expression "(ios *)this_01" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(streambuf *)0x0" ( (type_descriptor "streambuf *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;)) (expression_statement "this_00 = (filebuf *)(this + 0xc);" (assignment_expression "this_00 = (filebuf *)(this + 0xc)" identifier = (cast_expression "(filebuf *)(this + 0xc)" ( (type_descriptor "filebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) )))) ;) (expression_statement "*(int *)this = unaff_EDI + 0x17ca6f;" (assignment_expression "*(int *)this = unaff_EDI + 0x17ca6f" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "unaff_EDI + 0x17ca6f" identifier + number_literal)) ;) (expression_statement "*(int *)(this + 0x94) = unaff_EDI + 0x17ca97;" (assignment_expression "*(int *)(this + 0x94) = unaff_EDI + 0x17ca97" (pointer_expression "*(int *)(this + 0x94)" * (cast_expression "(int *)(this + 0x94)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x94)" ( (binary_expression "this + 0x94" identifier + number_literal) )))) = (binary_expression "unaff_EDI + 0x17ca97" identifier + number_literal)) ;) (expression_statement "*(int *)(this + 8) = unaff_EDI + 0x17ca83;" (assignment_expression "*(int *)(this + 8) = unaff_EDI + 0x17ca83" (pointer_expression "*(int *)(this + 8)" * (cast_expression "(int *)(this + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = (binary_expression "unaff_EDI + 0x17ca83" identifier + number_literal)) ;) comment (labeled_statement "filebuf::filebuf(this_00);" statement_identifier : (ERROR ":" :) (expression_statement "filebuf(this_00);" (call_expression "filebuf(this_00)" identifier (argument_list "(this_00)" ( identifier ))) ;)) comment (labeled_statement "ios::init((ios *)this_01,(streambuf *)this_00);" statement_identifier : (ERROR ":" :) (expression_statement "init((ios *)this_01,(streambuf *)this_00);" (call_expression "init((ios *)this_01,(streambuf *)this_00)" identifier (argument_list "((ios *)this_01,(streambuf *)this_00)" ( (cast_expression "(ios *)this_01" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(streambuf *)this_00" ( (type_descriptor "streambuf *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;)) (ERROR "iVar1 = filebuf::" (assignment_expression "iVar1 = filebuf" identifier = identifier) : :) (expression_statement "open(this_00,param_1,param_2);" (call_expression "open(this_00,param_1,param_2)" identifier (argument_list "(this_00,param_1,param_2)" ( identifier , identifier , identifier ))) ;) (expression_statement "this_02 = (ios *)(this + *(int *)(*(int *)this + -0xc));" (assignment_expression "this_02 = (ios *)(this + *(int *)(*(int *)this + -0xc))" identifier = (cast_expression "(ios *)(this + *(int *)(*(int *)this + -0xc))" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(int *)(*(int *)this + -0xc))" ( (binary_expression "this + *(int *)(*(int *)this + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)this + -0xc)" * (cast_expression "(int *)(*(int *)this + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )))) ;) (if_statement "if (iVar1 != 0) {\n    ios::clear(this_02,_S_goodbit);\n    return;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    ios::clear(this_02,_S_goodbit);\n    return;\n  }" { (labeled_statement "ios::clear(this_02,_S_goodbit);" statement_identifier : (ERROR ":" :) (expression_statement "clear(this_02,_S_goodbit);" (call_expression "clear(this_02,_S_goodbit)" identifier (argument_list "(this_02,_S_goodbit)" ( identifier , identifier ))) ;)) (return_statement "return;" return ;) })) (labeled_statement "ios::clear(this_02,*(_Ios_Iostate *)(this_02 + 0x14) | _S_failbit);" statement_identifier : (ERROR ":" :) (expression_statement "clear(this_02,*(_Ios_Iostate *)(this_02 + 0x14) | _S_failbit);" (call_expression "clear(this_02,*(_Ios_Iostate *)(this_02 + 0x14) | _S_failbit)" identifier (argument_list "(this_02,*(_Ios_Iostate *)(this_02 + 0x14) | _S_failbit)" ( identifier , (binary_expression "*(_Ios_Iostate *)(this_02 + 0x14) | _S_failbit" (pointer_expression "*(_Ios_Iostate *)(this_02 + 0x14)" * (cast_expression "(_Ios_Iostate *)(this_02 + 0x14)" ( (type_descriptor "_Ios_Iostate *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this_02 + 0x14)" ( (binary_expression "this_02 + 0x14" identifier + number_literal) )))) | identifier) ))) ;)) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0022ff90(int *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  int unaff_EDI;\n  \n  FUN_000644be();\n  piVar2 = param_1 + 0x25;\n  FUN_00243f20(piVar2);\n  param_1[0x41] = 0;\n  *(undefined2 *)(param_1 + 0x42) = 0;\n  param_1[0x43] = 0;\n  param_1[0x44] = 0;\n  param_1[0x45] = 0;\n  param_1[0x46] = 0;\n  *param_1 = (int)(&UNK_0017c9e3 + unaff_EDI);\n  param_1[0x25] = unaff_EDI + 0x17c9f7;\n  param_1[1] = 0;\n                    \n  FUN_002296d0(piVar2,0);\n  param_1[0x25] = unaff_EDI + 0x17c9cf;\n  param_1[2] = unaff_EDI + 0x17c9bb;\n                    \n  FUN_002296d0(piVar2,0);\n  piVar1 = param_1 + 3;\n  *param_1 = (int)(&UNK_0017ca6f + unaff_EDI);\n  param_1[0x25] = (int)(&UNK_0017ca97 + unaff_EDI);\n  param_1[2] = (int)(&UNK_0017ca83 + unaff_EDI);\n                    \n  FUN_0022b8f0(piVar1);\n                    \n  FUN_002296d0(piVar2,piVar1);\n  iVar3 = FUN_0022fbd0(piVar1,param_2,param_3);\n  iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  if (iVar3 != 0) {\n    FUN_00228e80(iVar4,0);\n    return;\n  }\n  FUN_00228e80(iVar4,*(uint *)(iVar4 + 0x14) | 4);\n  return;\n}\n\n" (function_definition "void FUN_0022ff90(int *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  int unaff_EDI;\n  \n  FUN_000644be();\n  piVar2 = param_1 + 0x25;\n  FUN_00243f20(piVar2);\n  param_1[0x41] = 0;\n  *(undefined2 *)(param_1 + 0x42) = 0;\n  param_1[0x43] = 0;\n  param_1[0x44] = 0;\n  param_1[0x45] = 0;\n  param_1[0x46] = 0;\n  *param_1 = (int)(&UNK_0017c9e3 + unaff_EDI);\n  param_1[0x25] = unaff_EDI + 0x17c9f7;\n  param_1[1] = 0;\n                    \n  FUN_002296d0(piVar2,0);\n  param_1[0x25] = unaff_EDI + 0x17c9cf;\n  param_1[2] = unaff_EDI + 0x17c9bb;\n                    \n  FUN_002296d0(piVar2,0);\n  piVar1 = param_1 + 3;\n  *param_1 = (int)(&UNK_0017ca6f + unaff_EDI);\n  param_1[0x25] = (int)(&UNK_0017ca97 + unaff_EDI);\n  param_1[2] = (int)(&UNK_0017ca83 + unaff_EDI);\n                    \n  FUN_0022b8f0(piVar1);\n                    \n  FUN_002296d0(piVar2,piVar1);\n  iVar3 = FUN_0022fbd0(piVar1,param_2,param_3);\n  iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  if (iVar3 != 0) {\n    FUN_00228e80(iVar4,0);\n    return;\n  }\n  FUN_00228e80(iVar4,*(uint *)(iVar4 + 0x14) | 4);\n  return;\n}" primitive_type (function_declarator "FUN_0022ff90(int *param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(int *param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  int unaff_EDI;\n  \n  FUN_000644be();\n  piVar2 = param_1 + 0x25;\n  FUN_00243f20(piVar2);\n  param_1[0x41] = 0;\n  *(undefined2 *)(param_1 + 0x42) = 0;\n  param_1[0x43] = 0;\n  param_1[0x44] = 0;\n  param_1[0x45] = 0;\n  param_1[0x46] = 0;\n  *param_1 = (int)(&UNK_0017c9e3 + unaff_EDI);\n  param_1[0x25] = unaff_EDI + 0x17c9f7;\n  param_1[1] = 0;\n                    \n  FUN_002296d0(piVar2,0);\n  param_1[0x25] = unaff_EDI + 0x17c9cf;\n  param_1[2] = unaff_EDI + 0x17c9bb;\n                    \n  FUN_002296d0(piVar2,0);\n  piVar1 = param_1 + 3;\n  *param_1 = (int)(&UNK_0017ca6f + unaff_EDI);\n  param_1[0x25] = (int)(&UNK_0017ca97 + unaff_EDI);\n  param_1[2] = (int)(&UNK_0017ca83 + unaff_EDI);\n                    \n  FUN_0022b8f0(piVar1);\n                    \n  FUN_002296d0(piVar2,piVar1);\n  iVar3 = FUN_0022fbd0(piVar1,param_2,param_3);\n  iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  if (iVar3 != 0) {\n    FUN_00228e80(iVar4,0);\n    return;\n  }\n  FUN_00228e80(iVar4,*(uint *)(iVar4 + 0x14) | 4);\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (expression_statement "FUN_000644be();" (call_expression "FUN_000644be()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar2 = param_1 + 0x25;" (assignment_expression "piVar2 = param_1 + 0x25" identifier = (binary_expression "param_1 + 0x25" identifier + number_literal)) ;) (expression_statement "FUN_00243f20(piVar2);" (call_expression "FUN_00243f20(piVar2)" identifier (argument_list "(piVar2)" ( identifier ))) ;) (expression_statement "param_1[0x41] = 0;" (assignment_expression "param_1[0x41] = 0" (subscript_expression "param_1[0x41]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined2 *)(param_1 + 0x42) = 0;" (assignment_expression "*(undefined2 *)(param_1 + 0x42) = 0" (pointer_expression "*(undefined2 *)(param_1 + 0x42)" * (cast_expression "(undefined2 *)(param_1 + 0x42)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x42)" ( (binary_expression "param_1 + 0x42" identifier + number_literal) )))) = number_literal) ;) (expression_statement "param_1[0x43] = 0;" (assignment_expression "param_1[0x43] = 0" (subscript_expression "param_1[0x43]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x44] = 0;" (assignment_expression "param_1[0x44] = 0" (subscript_expression "param_1[0x44]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x45] = 0;" (assignment_expression "param_1[0x45] = 0" (subscript_expression "param_1[0x45]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x46] = 0;" (assignment_expression "param_1[0x46] = 0" (subscript_expression "param_1[0x46]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_1 = (int)(&UNK_0017c9e3 + unaff_EDI);" (assignment_expression "*param_1 = (int)(&UNK_0017c9e3 + unaff_EDI)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(&UNK_0017c9e3 + unaff_EDI)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(&UNK_0017c9e3 + unaff_EDI)" ( (binary_expression "&UNK_0017c9e3 + unaff_EDI" (pointer_expression "&UNK_0017c9e3" & identifier) + identifier) )))) ;) (expression_statement "param_1[0x25] = unaff_EDI + 0x17c9f7;" (assignment_expression "param_1[0x25] = unaff_EDI + 0x17c9f7" (subscript_expression "param_1[0x25]" identifier [ number_literal ]) = (binary_expression "unaff_EDI + 0x17c9f7" 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_002296d0(piVar2,0);" (call_expression "FUN_002296d0(piVar2,0)" identifier (argument_list "(piVar2,0)" ( identifier , number_literal ))) ;) (expression_statement "param_1[0x25] = unaff_EDI + 0x17c9cf;" (assignment_expression "param_1[0x25] = unaff_EDI + 0x17c9cf" (subscript_expression "param_1[0x25]" identifier [ number_literal ]) = (binary_expression "unaff_EDI + 0x17c9cf" identifier + number_literal)) ;) (expression_statement "param_1[2] = unaff_EDI + 0x17c9bb;" (assignment_expression "param_1[2] = unaff_EDI + 0x17c9bb" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (binary_expression "unaff_EDI + 0x17c9bb" identifier + number_literal)) ;) (expression_statement "FUN_002296d0(piVar2,0);" (call_expression "FUN_002296d0(piVar2,0)" identifier (argument_list "(piVar2,0)" ( identifier , number_literal ))) ;) (expression_statement "piVar1 = param_1 + 3;" (assignment_expression "piVar1 = param_1 + 3" identifier = (binary_expression "param_1 + 3" identifier + number_literal)) ;) (expression_statement "*param_1 = (int)(&UNK_0017ca6f + unaff_EDI);" (assignment_expression "*param_1 = (int)(&UNK_0017ca6f + unaff_EDI)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(&UNK_0017ca6f + unaff_EDI)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(&UNK_0017ca6f + unaff_EDI)" ( (binary_expression "&UNK_0017ca6f + unaff_EDI" (pointer_expression "&UNK_0017ca6f" & identifier) + identifier) )))) ;) (expression_statement "param_1[0x25] = (int)(&UNK_0017ca97 + unaff_EDI);" (assignment_expression "param_1[0x25] = (int)(&UNK_0017ca97 + unaff_EDI)" (subscript_expression "param_1[0x25]" identifier [ number_literal ]) = (cast_expression "(int)(&UNK_0017ca97 + unaff_EDI)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(&UNK_0017ca97 + unaff_EDI)" ( (binary_expression "&UNK_0017ca97 + unaff_EDI" (pointer_expression "&UNK_0017ca97" & identifier) + identifier) )))) ;) (expression_statement "param_1[2] = (int)(&UNK_0017ca83 + unaff_EDI);" (assignment_expression "param_1[2] = (int)(&UNK_0017ca83 + unaff_EDI)" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (cast_expression "(int)(&UNK_0017ca83 + unaff_EDI)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(&UNK_0017ca83 + unaff_EDI)" ( (binary_expression "&UNK_0017ca83 + unaff_EDI" (pointer_expression "&UNK_0017ca83" & identifier) + identifier) )))) ;) (expression_statement "FUN_0022b8f0(piVar1);" (call_expression "FUN_0022b8f0(piVar1)" identifier (argument_list "(piVar1)" ( identifier ))) ;) (expression_statement "FUN_002296d0(piVar2,piVar1);" (call_expression "FUN_002296d0(piVar2,piVar1)" identifier (argument_list "(piVar2,piVar1)" ( identifier , identifier ))) ;) (expression_statement "iVar3 = FUN_0022fbd0(piVar1,param_2,param_3);" (assignment_expression "iVar3 = FUN_0022fbd0(piVar1,param_2,param_3)" identifier = (call_expression "FUN_0022fbd0(piVar1,param_2,param_3)" identifier (argument_list "(piVar1,param_2,param_3)" ( identifier , identifier , identifier )))) ;) (expression_statement "iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1" identifier = (binary_expression "*(int *)(*param_1 + -0xc) + (int)param_1" (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (iVar3 != 0) {\n    FUN_00228e80(iVar4,0);\n    return;\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_00228e80(iVar4,0);\n    return;\n  }" { (expression_statement "FUN_00228e80(iVar4,0);" (call_expression "FUN_00228e80(iVar4,0)" identifier (argument_list "(iVar4,0)" ( identifier , number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00228e80(iVar4,*(uint *)(iVar4 + 0x14) | 4);" (call_expression "FUN_00228e80(iVar4,*(uint *)(iVar4 + 0x14) | 4)" identifier (argument_list "(iVar4,*(uint *)(iVar4 + 0x14) | 4)" ( identifier , (binary_expression "*(uint *)(iVar4 + 0x14) | 4" (pointer_expression "*(uint *)(iVar4 + 0x14)" * (cast_expression "(uint *)(iVar4 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x14)" ( (binary_expression "iVar4 + 0x14" identifier + number_literal) )))) | number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + IDENT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + IDENT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + IDENT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + IDENT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( 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 TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) + (cast_expression ( (type_descriptor TYPE) ) 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_0022ff90(int *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  int unaff_EDI;\n  \n  FUN_000644be();\n  piVar2 = param_1 + 0x25;\n  FUN_00243f20(piVar2);\n  param_1[0x41] = 0;\n  *(undefined2 *)(param_1 + 0x42) = 0;\n  param_1[0x43] = 0;\n  param_1[0x44] = 0;\n  param_1[0x45] = 0;\n  param_1[0x46] = 0;\n  *param_1 = (int)(&UNK_0017c9e3 + unaff_EDI);\n  param_1[0x25] = unaff_EDI + 0x17c9f7;\n  param_1[1] = 0;\n                    \n  FUN_002296d0(piVar2,0);\n  param_1[0x25] = unaff_EDI + 0x17c9cf;\n  param_1[2] = unaff_EDI + 0x17c9bb;\n                    \n  FUN_002296d0(piVar2,0);\n  piVar1 = param_1 + 3;\n  *param_1 = (int)(&UNK_0017ca6f + unaff_EDI);\n  param_1[0x25] = (int)(&UNK_0017ca97 + unaff_EDI);\n  param_1[2] = (int)(&UNK_0017ca83 + unaff_EDI);\n                    \n  FUN_0022b8f0(piVar1);\n                    \n  FUN_002296d0(piVar2,piVar1);\n  iVar3 = FUN_0022fbd0(piVar1,param_2,param_3);\n  iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  if (iVar3 != 0) {\n    FUN_00228e80(iVar4,0);\n    return;\n  }\n  FUN_00228e80(iVar4,*(uint *)(iVar4 + 0x14) | 4);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0022ff90(int *param_1,undefined4 param_2,undefined4 param_3)" (identifier "FUN_0022ff90") (parameter_list "(int *param_1,undefined4 param_2,undefined4 param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  int unaff_EDI;\n  \n  FUN_000644be();\n  piVar2 = param_1 + 0x25;\n  FUN_00243f20(piVar2);\n  param_1[0x41] = 0;\n  *(undefined2 *)(param_1 + 0x42) = 0;\n  param_1[0x43] = 0;\n  param_1[0x44] = 0;\n  param_1[0x45] = 0;\n  param_1[0x46] = 0;\n  *param_1 = (int)(&UNK_0017c9e3 + unaff_EDI);\n  param_1[0x25] = unaff_EDI + 0x17c9f7;\n  param_1[1] = 0;\n                    \n  FUN_002296d0(piVar2,0);\n  param_1[0x25] = unaff_EDI + 0x17c9cf;\n  param_1[2] = unaff_EDI + 0x17c9bb;\n                    \n  FUN_002296d0(piVar2,0);\n  piVar1 = param_1 + 3;\n  *param_1 = (int)(&UNK_0017ca6f + unaff_EDI);\n  param_1[0x25] = (int)(&UNK_0017ca97 + unaff_EDI);\n  param_1[2] = (int)(&UNK_0017ca83 + unaff_EDI);\n                    \n  FUN_0022b8f0(piVar1);\n                    \n  FUN_002296d0(piVar2,piVar1);\n  iVar3 = FUN_0022fbd0(piVar1,param_2,param_3);\n  iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  if (iVar3 != 0) {\n    FUN_00228e80(iVar4,0);\n    return;\n  }\n  FUN_00228e80(iVar4,*(uint *)(iVar4 + 0x14) | 4);\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int unaff_EDI;" (primitive_type "int") (identifier "unaff_EDI") (; ";")) (expression_statement "FUN_000644be();" (call_expression "FUN_000644be()" (identifier "FUN_000644be") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "piVar2 = param_1 + 0x25;" (assignment_expression "piVar2 = param_1 + 0x25" (identifier "piVar2") (= "=") (binary_expression "param_1 + 0x25" (identifier "param_1") (+ "+") (number_literal "0x25"))) (; ";")) (expression_statement "FUN_00243f20(piVar2);" (call_expression "FUN_00243f20(piVar2)" (identifier "FUN_00243f20") (argument_list "(piVar2)" (( "(") (identifier "piVar2") () ")"))) (; ";")) (expression_statement "param_1[0x41] = 0;" (assignment_expression "param_1[0x41] = 0" (subscript_expression "param_1[0x41]" (identifier "param_1") ([ "[") (number_literal "0x41") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined2 *)(param_1 + 0x42) = 0;" (assignment_expression "*(undefined2 *)(param_1 + 0x42) = 0" (pointer_expression "*(undefined2 *)(param_1 + 0x42)" (* "*") (cast_expression "(undefined2 *)(param_1 + 0x42)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x42)" (( "(") (binary_expression "param_1 + 0x42" (identifier "param_1") (+ "+") (number_literal "0x42")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[0x43] = 0;" (assignment_expression "param_1[0x43] = 0" (subscript_expression "param_1[0x43]" (identifier "param_1") ([ "[") (number_literal "0x43") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[0x44] = 0;" (assignment_expression "param_1[0x44] = 0" (subscript_expression "param_1[0x44]" (identifier "param_1") ([ "[") (number_literal "0x44") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[0x45] = 0;" (assignment_expression "param_1[0x45] = 0" (subscript_expression "param_1[0x45]" (identifier "param_1") ([ "[") (number_literal "0x45") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[0x46] = 0;" (assignment_expression "param_1[0x46] = 0" (subscript_expression "param_1[0x46]" (identifier "param_1") ([ "[") (number_literal "0x46") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*param_1 = (int)(&UNK_0017c9e3 + unaff_EDI);" (assignment_expression "*param_1 = (int)(&UNK_0017c9e3 + unaff_EDI)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)(&UNK_0017c9e3 + unaff_EDI)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(&UNK_0017c9e3 + unaff_EDI)" (( "(") (binary_expression "&UNK_0017c9e3 + unaff_EDI" (pointer_expression "&UNK_0017c9e3" (& "&") (identifier "UNK_0017c9e3")) (+ "+") (identifier "unaff_EDI")) () ")")))) (; ";")) (expression_statement "param_1[0x25] = unaff_EDI + 0x17c9f7;" (assignment_expression "param_1[0x25] = unaff_EDI + 0x17c9f7" (subscript_expression "param_1[0x25]" (identifier "param_1") ([ "[") (number_literal "0x25") (] "]")) (= "=") (binary_expression "unaff_EDI + 0x17c9f7" (identifier "unaff_EDI") (+ "+") (number_literal "0x17c9f7"))) (; ";")) (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_002296d0(piVar2,0);" (call_expression "FUN_002296d0(piVar2,0)" (identifier "FUN_002296d0") (argument_list "(piVar2,0)" (( "(") (identifier "piVar2") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "param_1[0x25] = unaff_EDI + 0x17c9cf;" (assignment_expression "param_1[0x25] = unaff_EDI + 0x17c9cf" (subscript_expression "param_1[0x25]" (identifier "param_1") ([ "[") (number_literal "0x25") (] "]")) (= "=") (binary_expression "unaff_EDI + 0x17c9cf" (identifier "unaff_EDI") (+ "+") (number_literal "0x17c9cf"))) (; ";")) (expression_statement "param_1[2] = unaff_EDI + 0x17c9bb;" (assignment_expression "param_1[2] = unaff_EDI + 0x17c9bb" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "unaff_EDI + 0x17c9bb" (identifier "unaff_EDI") (+ "+") (number_literal "0x17c9bb"))) (; ";")) (expression_statement "FUN_002296d0(piVar2,0);" (call_expression "FUN_002296d0(piVar2,0)" (identifier "FUN_002296d0") (argument_list "(piVar2,0)" (( "(") (identifier "piVar2") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "piVar1 = param_1 + 3;" (assignment_expression "piVar1 = param_1 + 3" (identifier "piVar1") (= "=") (binary_expression "param_1 + 3" (identifier "param_1") (+ "+") (number_literal "3"))) (; ";")) (expression_statement "*param_1 = (int)(&UNK_0017ca6f + unaff_EDI);" (assignment_expression "*param_1 = (int)(&UNK_0017ca6f + unaff_EDI)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)(&UNK_0017ca6f + unaff_EDI)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(&UNK_0017ca6f + unaff_EDI)" (( "(") (binary_expression "&UNK_0017ca6f + unaff_EDI" (pointer_expression "&UNK_0017ca6f" (& "&") (identifier "UNK_0017ca6f")) (+ "+") (identifier "unaff_EDI")) () ")")))) (; ";")) (expression_statement "param_1[0x25] = (int)(&UNK_0017ca97 + unaff_EDI);" (assignment_expression "param_1[0x25] = (int)(&UNK_0017ca97 + unaff_EDI)" (subscript_expression "param_1[0x25]" (identifier "param_1") ([ "[") (number_literal "0x25") (] "]")) (= "=") (cast_expression "(int)(&UNK_0017ca97 + unaff_EDI)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(&UNK_0017ca97 + unaff_EDI)" (( "(") (binary_expression "&UNK_0017ca97 + unaff_EDI" (pointer_expression "&UNK_0017ca97" (& "&") (identifier "UNK_0017ca97")) (+ "+") (identifier "unaff_EDI")) () ")")))) (; ";")) (expression_statement "param_1[2] = (int)(&UNK_0017ca83 + unaff_EDI);" (assignment_expression "param_1[2] = (int)(&UNK_0017ca83 + unaff_EDI)" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(int)(&UNK_0017ca83 + unaff_EDI)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(&UNK_0017ca83 + unaff_EDI)" (( "(") (binary_expression "&UNK_0017ca83 + unaff_EDI" (pointer_expression "&UNK_0017ca83" (& "&") (identifier "UNK_0017ca83")) (+ "+") (identifier "unaff_EDI")) () ")")))) (; ";")) (expression_statement "FUN_0022b8f0(piVar1);" (call_expression "FUN_0022b8f0(piVar1)" (identifier "FUN_0022b8f0") (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")"))) (; ";")) (expression_statement "FUN_002296d0(piVar2,piVar1);" (call_expression "FUN_002296d0(piVar2,piVar1)" (identifier "FUN_002296d0") (argument_list "(piVar2,piVar1)" (( "(") (identifier "piVar2") (, ",") (identifier "piVar1") () ")"))) (; ";")) (expression_statement "iVar3 = FUN_0022fbd0(piVar1,param_2,param_3);" (assignment_expression "iVar3 = FUN_0022fbd0(piVar1,param_2,param_3)" (identifier "iVar3") (= "=") (call_expression "FUN_0022fbd0(piVar1,param_2,param_3)" (identifier "FUN_0022fbd0") (argument_list "(piVar1,param_2,param_3)" (( "(") (identifier "piVar1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")")))) (; ";")) (expression_statement "iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1" (identifier "iVar4") (= "=") (binary_expression "*(int *)(*param_1 + -0xc) + (int)param_1" (pointer_expression "*(int *)(*param_1 + -0xc)" (* "*") (cast_expression "(int *)(*param_1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0xc)" (( "(") (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0xc")) () ")")))) (+ "+") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")))) (; ";")) (if_statement "if (iVar3 != 0) {\n    FUN_00228e80(iVar4,0);\n    return;\n  }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_00228e80(iVar4,0);\n    return;\n  }" ({ "{") (expression_statement "FUN_00228e80(iVar4,0);" (call_expression "FUN_00228e80(iVar4,0)" (identifier "FUN_00228e80") (argument_list "(iVar4,0)" (( "(") (identifier "iVar4") (, ",") (number_literal "0") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00228e80(iVar4,*(uint *)(iVar4 + 0x14) | 4);" (call_expression "FUN_00228e80(iVar4,*(uint *)(iVar4 + 0x14) | 4)" (identifier "FUN_00228e80") (argument_list "(iVar4,*(uint *)(iVar4 + 0x14) | 4)" (( "(") (identifier "iVar4") (, ",") (binary_expression "*(uint *)(iVar4 + 0x14) | 4" (pointer_expression "*(uint *)(iVar4 + 0x14)" (* "*") (cast_expression "(uint *)(iVar4 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x14)" (( "(") (binary_expression "iVar4 + 0x14" (identifier "iVar4") (+ "+") (number_literal "0x14")) () ")")))) (| "|") (number_literal "4")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

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

{
  type_2 *this_00;
  type_3 *this_01;
  int var_6;
  type_4 *var_8;
  int var_3;
  
  var_1();
  this_01 = (type_3 *)(var_2 + 0x94);
  ios_base::type_3(this_01);
  *(type_5 *)(var_2 + 0x104) = 0;
  *(type_6 *)(var_2 + 0x108) = 0;
  *(type_5 *)(var_2 + 0x10c) = 0;
  *(type_5 *)(var_2 + 0x110) = 0;
  *(type_5 *)(var_2 + 0x114) = 0;
  *(type_5 *)(var_2 + 0x118) = 0;
  *(int *)var_2 = var_3 + 0x17c9e3;
  *(int *)(var_2 + 0x94) = var_3 + 0x17c9f7;
  *(type_5 *)(var_2 + 4) = 0;
                    /* try { // try from 00230018 to 0023001c has its CatchHandler @ 00230123 */
  ios::var_4((type_4 *)this_01,(type_7 *)0x0);
  *(int *)(var_2 + 0x94) = var_3 + 0x17c9cf;
  *(int *)(var_2 + 8) = var_3 + 0x17c9bb;
                    /* try { // try from 0023003e to 00230042 has its CatchHandler @ 00230121 */
  ios::var_4((type_4 *)this_01,(type_7 *)0x0);
  this_00 = (type_2 *)(var_2 + 0xc);
  *(int *)var_2 = var_3 + 0x17ca6f;
  *(int *)(var_2 + 0x94) = var_3 + 0x17ca97;
  *(int *)(var_2 + 8) = var_3 + 0x17ca83;
                    /* try { // try from 00230066 to 0023006a has its CatchHandler @ 002300cd */
  filebuf::type_2(this_00);
                    /* try { // try from 00230073 to 002300bf has its CatchHandler @ 002300cb */
  ios::var_4((type_4 *)this_01,(type_7 *)this_00);
  var_6 = type_2::var_5(this_00,param_1,param_2);
  var_8 = (type_4 *)(var_2 + *(int *)(*(int *)var_2 + -0xc));
  if (var_6 != 0) {
    ios::var_7(var_8,_S_goodbit);
    return;
  }
  ios::var_7(var_8,*(type_8 *)(var_8 + 0x14) | var_9);
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (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: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) right: (cast_expression type: (type_descriptor type: (primitive_type)) 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(int *param_1,undefined4 param_2,undefined4 param_3)

{
  int *piVar1;
  int *piVar2;
  int iVar3;
  int iVar4;
  int unaff_EDI;
  
  FUN_000644be();
  piVar2 = param_1 + 0x25;
  FUN_00243f20(piVar2);
  param_1[0x41] = 0;
  *(undefined2 *)(param_1 + 0x42) = 0;
  param_1[0x43] = 0;
  param_1[0x44] = 0;
  param_1[0x45] = 0;
  param_1[0x46] = 0;
  *param_1 = (int)(&UNK_0017c9e3 + unaff_EDI);
  param_1[0x25] = unaff_EDI + 0x17c9f7;
  param_1[1] = 0;
                    /* try { // try from 00230018 to 0023001c has its CatchHandler @ 00230123 */
  FUN_002296d0(piVar2,0);
  param_1[0x25] = unaff_EDI + 0x17c9cf;
  param_1[2] = unaff_EDI + 0x17c9bb;
                    /* try { // try from 0023003e to 00230042 has its CatchHandler @ 00230121 */
  FUN_002296d0(piVar2,0);
  piVar1 = param_1 + 3;
  *param_1 = (int)(&UNK_0017ca6f + unaff_EDI);
  param_1[0x25] = (int)(&UNK_0017ca97 + unaff_EDI);
  param_1[2] = (int)(&UNK_0017ca83 + unaff_EDI);
                    /* try { // try from 00230066 to 0023006a has its CatchHandler @ 002300cd */
  FUN_0022b8f0(piVar1);
                    /* try { // try from 00230073 to 002300bf has its CatchHandler @ 002300cb */
  FUN_002296d0(piVar2,piVar1);
  iVar3 = FUN_0022fbd0(piVar1,param_2,param_3);
  iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;
  if (iVar3 != 0) {
    FUN_00228e80(iVar4,0);
    return;
  }
  FUN_00228e80(iVar4,*(uint *)(iVar4 + 0x14) | 4);
  return;
}

