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

void __thiscall std::ifstream::ifstream(ifstream *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 + 0x90);
  ios_base::ios_base(this_01);
  *(undefined4 *)(this + 0x100) = 0;
  *(undefined2 *)(this + 0x104) = 0;
  *(undefined4 *)(this + 0x108) = 0;
  *(undefined4 *)(this + 0x10c) = 0;
  *(undefined4 *)(this + 0x110) = 0;
  *(undefined4 *)(this + 0x114) = 0;
  *(int *)this = unaff_EDI + 0x14da3b;
  *(int *)(this + 0x90) = unaff_EDI + 0x14da4f;
  *(undefined4 *)(this + 4) = 0;
                    /* try { // try from 001b1eb8 to 001b1ebc has its CatchHandler @ 001b1f51 */
  ios::init((ios *)this_01,(streambuf *)0x0);
  this_00 = (filebuf *)(this + 8);
  *(int *)this = unaff_EDI + 0x14da73;
  *(int *)(this + 0x90) = unaff_EDI + 0x14da87;
                    /* try { // try from 001b1eda to 001b1ede has its CatchHandler @ 001b1f4f */
  filebuf::filebuf(this_00);
                    /* try { // try from 001b1ee7 to 001b1f41 has its CatchHandler @ 001b1f4d */
  ios::init((ios *)this_01,(streambuf *)this_00);
  iVar1 = filebuf::open(this_00,param_1,param_2 | _S_in);
  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_001b1e30(int *param_1,undefined4 param_2,uint param_3)

{
  int *piVar1;
  int *piVar2;
  int iVar3;
  int iVar4;
  int unaff_EDI;
  
  FUN_0004fb7e();
  piVar2 = param_1 + 0x24;
  FUN_001c5690(piVar2);
  param_1[0x40] = 0;
  *(undefined2 *)(param_1 + 0x41) = 0;
  param_1[0x42] = 0;
  param_1[0x43] = 0;
  param_1[0x44] = 0;
  param_1[0x45] = 0;
  *param_1 = unaff_EDI + 0x14da3b;
  param_1[0x24] = unaff_EDI + 0x14da4f;
  param_1[1] = 0;
                    /* try { // try from 001b1eb8 to 001b1ebc has its CatchHandler @ 001b1f51 */
  FUN_001aae40(piVar2,0);
  piVar1 = param_1 + 2;
  *param_1 = unaff_EDI + 0x14da73;
  param_1[0x24] = unaff_EDI + 0x14da87;
                    /* try { // try from 001b1eda to 001b1ede has its CatchHandler @ 001b1f4f */
  FUN_001ad060(piVar1);
                    /* try { // try from 001b1ee7 to 001b1f41 has its CatchHandler @ 001b1f4d */
  FUN_001aae40(piVar2,piVar1);
  iVar3 = FUN_001b1340(piVar1,param_2,param_3 | 8);
  iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;
  if (iVar3 != 0) {
    FUN_001aa5f0(iVar4,0);
    return;
  }
  FUN_001aa5f0(iVar4,*(uint *)(iVar4 + 0x14) | 4);
  return;
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
CALL 0x0004fb7e
ADD EDI,0x1501c7
PUSH ESI
PUSH EBX
SUB ESP,0x28
MOV ESI,dword ptr [EBP + 0x8]
LEA EAX,[ESI + 0x90]
MOV EBX,EDI
PUSH EAX
MOV dword ptr [EBP + -0x20],EAX
CALL 0x001c5690
XOR EAX,EAX
LEA ECX,[EDI + 0xffffd874]
MOV dword ptr [ESI + 0x100],0x0
MOV word ptr [ESI + 0x104],AX
LEA EAX,[EDI + 0xffffd888]
MOV dword ptr [ESI + 0x108],0x0
MOV dword ptr [ESI + 0x10c],0x0
MOV dword ptr [ESI + 0x110],0x0
MOV dword ptr [ESI + 0x114],0x0
MOV dword ptr [ESI],ECX
MOV dword ptr [ESI + 0x90],EAX
MOV dword ptr [ESI + 0x4],0x0
POP EAX
POP EDX
PUSH 0x0
PUSH dword ptr [EBP + -0x20]
MOV dword ptr [EBP + -0x24],ECX
CALL 0x001aae40
LEA EAX,[EDI + 0xffffd8a0]
LEA ECX,[ESI + 0x8]
MOV dword ptr [EBP + -0x1c],ECX
LEA EDX,[EAX + 0xc]
ADD EAX,0x20
MOV dword ptr [ESI],EDX
MOV dword ptr [ESI + 0x90],EAX
MOV dword ptr [ESP],ECX
CALL 0x001ad060
POP EDX
POP ECX
PUSH dword ptr [EBP + -0x1c]
PUSH dword ptr [EBP + -0x20]
CALL 0x001aae40
MOV EAX,dword ptr [EBP + 0x10]
ADD ESP,0xc
OR EAX,0x8
PUSH EAX
PUSH dword ptr [EBP + 0xc]
PUSH dword ptr [EBP + -0x1c]
CALL 0x001b1340
MOV EDX,dword ptr [ESI]
ADD ESP,0x10
MOV EBX,dword ptr [EDX + -0xc]
ADD EBX,ESI
TEST EAX,EAX
JZ 0x001b1f30
SUB ESP,0x8
PUSH 0x0
PUSH EBX
MOV EBX,EDI
CALL 0x001aa5f0
ADD ESP,0x10
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [EBX + 0x14]
SUB ESP,0x8
OR EAX,0x4
PUSH EAX
PUSH EBX
MOV EBX,EDI
CALL 0x001aa5f0
ADD ESP,0x10
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "void FUN_001b1e30(int *param_1,undefined4 param_2,uint param_3)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  int unaff_EDI;\n  \n  FUN_0004fb7e();\n  piVar2 = param_1 + 0x24;\n  FUN_001c5690(piVar2);\n  param_1[0x40] = 0;\n  *(undefined2 *)(param_1 + 0x41) = 0;\n  param_1[0x42] = 0;\n  param_1[0x43] = 0;\n  param_1[0x44] = 0;\n  param_1[0x45] = 0;\n  *param_1 = unaff_EDI + 0x14da3b;\n  param_1[0x24] = unaff_EDI + 0x14da4f;\n  param_1[1] = 0;\n                    /* try { // try from 001b1eb8 to 001b1ebc has its CatchHandler @ 001b1f51 */\n  FUN_001aae40(piVar2,0);\n  piVar1 = param_1 + 2;\n  *param_1 = unaff_EDI + 0x14da73;\n  param_1[0x24] = unaff_EDI + 0x14da87;\n                    /* try { // try from 001b1eda to 001b1ede has its CatchHandler @ 001b1f4f */\n  FUN_001ad060(piVar1);\n                    /* try { // try from 001b1ee7 to 001b1f41 has its CatchHandler @ 001b1f4d */\n  FUN_001aae40(piVar2,piVar1);\n  iVar3 = FUN_001b1340(piVar1,param_2,param_3 | 8);\n  iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  if (iVar3 != 0) {\n    FUN_001aa5f0(iVar4,0);\n    return;\n  }\n  FUN_001aa5f0(iVar4,*(uint *)(iVar4 + 0x14) | 4);\n  return;\n}\n\n" (function_definition "void FUN_001b1e30(int *param_1,undefined4 param_2,uint param_3)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  int unaff_EDI;\n  \n  FUN_0004fb7e();\n  piVar2 = param_1 + 0x24;\n  FUN_001c5690(piVar2);\n  param_1[0x40] = 0;\n  *(undefined2 *)(param_1 + 0x41) = 0;\n  param_1[0x42] = 0;\n  param_1[0x43] = 0;\n  param_1[0x44] = 0;\n  param_1[0x45] = 0;\n  *param_1 = unaff_EDI + 0x14da3b;\n  param_1[0x24] = unaff_EDI + 0x14da4f;\n  param_1[1] = 0;\n                    /* try { // try from 001b1eb8 to 001b1ebc has its CatchHandler @ 001b1f51 */\n  FUN_001aae40(piVar2,0);\n  piVar1 = param_1 + 2;\n  *param_1 = unaff_EDI + 0x14da73;\n  param_1[0x24] = unaff_EDI + 0x14da87;\n                    /* try { // try from 001b1eda to 001b1ede has its CatchHandler @ 001b1f4f */\n  FUN_001ad060(piVar1);\n                    /* try { // try from 001b1ee7 to 001b1f41 has its CatchHandler @ 001b1f4d */\n  FUN_001aae40(piVar2,piVar1);\n  iVar3 = FUN_001b1340(piVar1,param_2,param_3 | 8);\n  iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  if (iVar3 != 0) {\n    FUN_001aa5f0(iVar4,0);\n    return;\n  }\n  FUN_001aa5f0(iVar4,*(uint *)(iVar4 + 0x14) | 4);\n  return;\n}" primitive_type (function_declarator "FUN_001b1e30(int *param_1,undefined4 param_2,uint param_3)" identifier (parameter_list "(int *param_1,undefined4 param_2,uint param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "uint 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_0004fb7e();\n  piVar2 = param_1 + 0x24;\n  FUN_001c5690(piVar2);\n  param_1[0x40] = 0;\n  *(undefined2 *)(param_1 + 0x41) = 0;\n  param_1[0x42] = 0;\n  param_1[0x43] = 0;\n  param_1[0x44] = 0;\n  param_1[0x45] = 0;\n  *param_1 = unaff_EDI + 0x14da3b;\n  param_1[0x24] = unaff_EDI + 0x14da4f;\n  param_1[1] = 0;\n                    /* try { // try from 001b1eb8 to 001b1ebc has its CatchHandler @ 001b1f51 */\n  FUN_001aae40(piVar2,0);\n  piVar1 = param_1 + 2;\n  *param_1 = unaff_EDI + 0x14da73;\n  param_1[0x24] = unaff_EDI + 0x14da87;\n                    /* try { // try from 001b1eda to 001b1ede has its CatchHandler @ 001b1f4f */\n  FUN_001ad060(piVar1);\n                    /* try { // try from 001b1ee7 to 001b1f41 has its CatchHandler @ 001b1f4d */\n  FUN_001aae40(piVar2,piVar1);\n  iVar3 = FUN_001b1340(piVar1,param_2,param_3 | 8);\n  iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  if (iVar3 != 0) {\n    FUN_001aa5f0(iVar4,0);\n    return;\n  }\n  FUN_001aa5f0(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_0004fb7e();" (call_expression "FUN_0004fb7e()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar2 = param_1 + 0x24;" (assignment_expression "piVar2 = param_1 + 0x24" identifier = (binary_expression "param_1 + 0x24" identifier + number_literal)) ;) (expression_statement "FUN_001c5690(piVar2);" (call_expression "FUN_001c5690(piVar2)" identifier (argument_list "(piVar2)" ( identifier ))) ;) (expression_statement "param_1[0x40] = 0;" (assignment_expression "param_1[0x40] = 0" (subscript_expression "param_1[0x40]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined2 *)(param_1 + 0x41) = 0;" (assignment_expression "*(undefined2 *)(param_1 + 0x41) = 0" (pointer_expression "*(undefined2 *)(param_1 + 0x41)" * (cast_expression "(undefined2 *)(param_1 + 0x41)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x41)" ( (binary_expression "param_1 + 0x41" identifier + number_literal) )))) = number_literal) ;) (expression_statement "param_1[0x42] = 0;" (assignment_expression "param_1[0x42] = 0" (subscript_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 = unaff_EDI + 0x14da3b;" (assignment_expression "*param_1 = unaff_EDI + 0x14da3b" (pointer_expression "*param_1" * identifier) = (binary_expression "unaff_EDI + 0x14da3b" identifier + number_literal)) ;) (expression_statement "param_1[0x24] = unaff_EDI + 0x14da4f;" (assignment_expression "param_1[0x24] = unaff_EDI + 0x14da4f" (subscript_expression "param_1[0x24]" identifier [ number_literal ]) = (binary_expression "unaff_EDI + 0x14da4f" 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_001aae40(piVar2,0);" (call_expression "FUN_001aae40(piVar2,0)" identifier (argument_list "(piVar2,0)" ( identifier , number_literal ))) ;) (expression_statement "piVar1 = param_1 + 2;" (assignment_expression "piVar1 = param_1 + 2" identifier = (binary_expression "param_1 + 2" identifier + number_literal)) ;) (expression_statement "*param_1 = unaff_EDI + 0x14da73;" (assignment_expression "*param_1 = unaff_EDI + 0x14da73" (pointer_expression "*param_1" * identifier) = (binary_expression "unaff_EDI + 0x14da73" identifier + number_literal)) ;) (expression_statement "param_1[0x24] = unaff_EDI + 0x14da87;" (assignment_expression "param_1[0x24] = unaff_EDI + 0x14da87" (subscript_expression "param_1[0x24]" identifier [ number_literal ]) = (binary_expression "unaff_EDI + 0x14da87" identifier + number_literal)) ;) comment (expression_statement "FUN_001ad060(piVar1);" (call_expression "FUN_001ad060(piVar1)" identifier (argument_list "(piVar1)" ( identifier ))) ;) comment (expression_statement "FUN_001aae40(piVar2,piVar1);" (call_expression "FUN_001aae40(piVar2,piVar1)" identifier (argument_list "(piVar2,piVar1)" ( identifier , identifier ))) ;) (expression_statement "iVar3 = FUN_001b1340(piVar1,param_2,param_3 | 8);" (assignment_expression "iVar3 = FUN_001b1340(piVar1,param_2,param_3 | 8)" identifier = (call_expression "FUN_001b1340(piVar1,param_2,param_3 | 8)" identifier (argument_list "(piVar1,param_2,param_3 | 8)" ( identifier , identifier , (binary_expression "param_3 | 8" identifier | number_literal) )))) ;) (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_001aa5f0(iVar4,0);\n    return;\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_001aa5f0(iVar4,0);\n    return;\n  }" { (expression_statement "FUN_001aa5f0(iVar4,0);" (call_expression "FUN_001aa5f0(iVar4,0)" identifier (argument_list "(iVar4,0)" ( identifier , number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_001aa5f0(iVar4,*(uint *)(iVar4 + 0x14) | 4);" (call_expression "FUN_001aa5f0(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::ifstream::ifstream(char const*, std::_Ios_Openmode) */\n\nvoid __thiscall std::ifstream::ifstream(ifstream *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 + 0x90);\n  ios_base::ios_base(this_01);\n  *(undefined4 *)(this + 0x100) = 0;\n  *(undefined2 *)(this + 0x104) = 0;\n  *(undefined4 *)(this + 0x108) = 0;\n  *(undefined4 *)(this + 0x10c) = 0;\n  *(undefined4 *)(this + 0x110) = 0;\n  *(undefined4 *)(this + 0x114) = 0;\n  *(int *)this = unaff_EDI + 0x14da3b;\n  *(int *)(this + 0x90) = unaff_EDI + 0x14da4f;\n  *(undefined4 *)(this + 4) = 0;\n                    /* try { // try from 001b1eb8 to 001b1ebc has its CatchHandler @ 001b1f51 */\n  ios::init((ios *)this_01,(streambuf *)0x0);\n  this_00 = (filebuf *)(this + 8);\n  *(int *)this = unaff_EDI + 0x14da73;\n  *(int *)(this + 0x90) = unaff_EDI + 0x14da87;\n                    /* try { // try from 001b1eda to 001b1ede has its CatchHandler @ 001b1f4f */\n  filebuf::filebuf(this_00);\n                    /* try { // try from 001b1ee7 to 001b1f41 has its CatchHandler @ 001b1f4d */\n  ios::init((ios *)this_01,(streambuf *)this_00);\n  iVar1 = filebuf::open(this_00,param_1,param_2 | _S_in);\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::ifstream::ifstream(ifstream *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 + 0x90);\n  ios_base::ios_base(this_01);\n  *(undefined4 *)(this + 0x100) = 0;\n  *(undefined2 *)(this + 0x104) = 0;\n  *(undefined4 *)(this + 0x108) = 0;\n  *(undefined4 *)(this + 0x10c) = 0;\n  *(undefined4 *)(this + 0x110) = 0;\n  *(undefined4 *)(this + 0x114) = 0;\n  *(int *)this = unaff_EDI + 0x14da3b;\n  *(int *)(this + 0x90) = unaff_EDI + 0x14da4f;\n  *(undefined4 *)(this + 4) = 0;\n                    /* try { // try from 001b1eb8 to 001b1ebc has its CatchHandler @ 001b1f51 */\n  ios::init((ios *)this_01,(streambuf *)0x0);\n  this_00 = (filebuf *)(this + 8);\n  *(int *)this = unaff_EDI + 0x14da73;\n  *(int *)(this + 0x90) = unaff_EDI + 0x14da87;\n                    /* try { // try from 001b1eda to 001b1ede has its CatchHandler @ 001b1f4f */\n  filebuf::filebuf(this_00);\n                    /* try { // try from 001b1ee7 to 001b1f41 has its CatchHandler @ 001b1f4d */\n  ios::init((ios *)this_01,(streambuf *)this_00);\n  iVar1 = filebuf::open(this_00,param_1,param_2 | _S_in);\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::ifstream::" identifier : : identifier : :) (function_declarator "ifstream(ifstream *this,char *param_1,_Ios_Openmode param_2)" identifier (parameter_list "(ifstream *this,char *param_1,_Ios_Openmode param_2)" ( (parameter_declaration "ifstream *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 + 0x90);\n  ios_base::ios_base(this_01);\n  *(undefined4 *)(this + 0x100) = 0;\n  *(undefined2 *)(this + 0x104) = 0;\n  *(undefined4 *)(this + 0x108) = 0;\n  *(undefined4 *)(this + 0x10c) = 0;\n  *(undefined4 *)(this + 0x110) = 0;\n  *(undefined4 *)(this + 0x114) = 0;\n  *(int *)this = unaff_EDI + 0x14da3b;\n  *(int *)(this + 0x90) = unaff_EDI + 0x14da4f;\n  *(undefined4 *)(this + 4) = 0;\n                    /* try { // try from 001b1eb8 to 001b1ebc has its CatchHandler @ 001b1f51 */\n  ios::init((ios *)this_01,(streambuf *)0x0);\n  this_00 = (filebuf *)(this + 8);\n  *(int *)this = unaff_EDI + 0x14da73;\n  *(int *)(this + 0x90) = unaff_EDI + 0x14da87;\n                    /* try { // try from 001b1eda to 001b1ede has its CatchHandler @ 001b1f4f */\n  filebuf::filebuf(this_00);\n                    /* try { // try from 001b1ee7 to 001b1f41 has its CatchHandler @ 001b1f4d */\n  ios::init((ios *)this_01,(streambuf *)this_00);\n  iVar1 = filebuf::open(this_00,param_1,param_2 | _S_in);\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 + 0x90);" (assignment_expression "this_01 = (ios_base *)(this + 0x90)" identifier = (cast_expression "(ios_base *)(this + 0x90)" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x90)" ( (binary_expression "this + 0x90" 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 + 0x100) = 0;" (assignment_expression "*(undefined4 *)(this + 0x100) = 0" (pointer_expression "*(undefined4 *)(this + 0x100)" * (cast_expression "(undefined4 *)(this + 0x100)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x100)" ( (binary_expression "this + 0x100" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined2 *)(this + 0x104) = 0;" (assignment_expression "*(undefined2 *)(this + 0x104) = 0" (pointer_expression "*(undefined2 *)(this + 0x104)" * (cast_expression "(undefined2 *)(this + 0x104)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x104)" ( (binary_expression "this + 0x104" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(this + 0x108) = 0;" (assignment_expression "*(undefined4 *)(this + 0x108) = 0" (pointer_expression "*(undefined4 *)(this + 0x108)" * (cast_expression "(undefined4 *)(this + 0x108)" ( (type_descriptor "undefined4 *" 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 "*(int *)this = unaff_EDI + 0x14da3b;" (assignment_expression "*(int *)this = unaff_EDI + 0x14da3b" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "unaff_EDI + 0x14da3b" identifier + number_literal)) ;) (expression_statement "*(int *)(this + 0x90) = unaff_EDI + 0x14da4f;" (assignment_expression "*(int *)(this + 0x90) = unaff_EDI + 0x14da4f" (pointer_expression "*(int *)(this + 0x90)" * (cast_expression "(int *)(this + 0x90)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x90)" ( (binary_expression "this + 0x90" identifier + number_literal) )))) = (binary_expression "unaff_EDI + 0x14da4f" 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 "this_00 = (filebuf *)(this + 8);" (assignment_expression "this_00 = (filebuf *)(this + 8)" identifier = (cast_expression "(filebuf *)(this + 8)" ( (type_descriptor "filebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) ;) (expression_statement "*(int *)this = unaff_EDI + 0x14da73;" (assignment_expression "*(int *)this = unaff_EDI + 0x14da73" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "unaff_EDI + 0x14da73" identifier + number_literal)) ;) (expression_statement "*(int *)(this + 0x90) = unaff_EDI + 0x14da87;" (assignment_expression "*(int *)(this + 0x90) = unaff_EDI + 0x14da87" (pointer_expression "*(int *)(this + 0x90)" * (cast_expression "(int *)(this + 0x90)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x90)" ( (binary_expression "this + 0x90" identifier + number_literal) )))) = (binary_expression "unaff_EDI + 0x14da87" 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 | _S_in);" (call_expression "open(this_00,param_1,param_2 | _S_in)" identifier (argument_list "(this_00,param_1,param_2 | _S_in)" ( identifier , identifier , (binary_expression "param_2 | _S_in" 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_001b1e30(int *param_1,undefined4 param_2,uint param_3)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  int unaff_EDI;\n  \n  FUN_0004fb7e();\n  piVar2 = param_1 + 0x24;\n  FUN_001c5690(piVar2);\n  param_1[0x40] = 0;\n  *(undefined2 *)(param_1 + 0x41) = 0;\n  param_1[0x42] = 0;\n  param_1[0x43] = 0;\n  param_1[0x44] = 0;\n  param_1[0x45] = 0;\n  *param_1 = unaff_EDI + 0x14da3b;\n  param_1[0x24] = unaff_EDI + 0x14da4f;\n  param_1[1] = 0;\n                    \n  FUN_001aae40(piVar2,0);\n  piVar1 = param_1 + 2;\n  *param_1 = unaff_EDI + 0x14da73;\n  param_1[0x24] = unaff_EDI + 0x14da87;\n                    \n  FUN_001ad060(piVar1);\n                    \n  FUN_001aae40(piVar2,piVar1);\n  iVar3 = FUN_001b1340(piVar1,param_2,param_3 | 8);\n  iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  if (iVar3 != 0) {\n    FUN_001aa5f0(iVar4,0);\n    return;\n  }\n  FUN_001aa5f0(iVar4,*(uint *)(iVar4 + 0x14) | 4);\n  return;\n}\n\n" (function_definition "void FUN_001b1e30(int *param_1,undefined4 param_2,uint param_3)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  int unaff_EDI;\n  \n  FUN_0004fb7e();\n  piVar2 = param_1 + 0x24;\n  FUN_001c5690(piVar2);\n  param_1[0x40] = 0;\n  *(undefined2 *)(param_1 + 0x41) = 0;\n  param_1[0x42] = 0;\n  param_1[0x43] = 0;\n  param_1[0x44] = 0;\n  param_1[0x45] = 0;\n  *param_1 = unaff_EDI + 0x14da3b;\n  param_1[0x24] = unaff_EDI + 0x14da4f;\n  param_1[1] = 0;\n                    \n  FUN_001aae40(piVar2,0);\n  piVar1 = param_1 + 2;\n  *param_1 = unaff_EDI + 0x14da73;\n  param_1[0x24] = unaff_EDI + 0x14da87;\n                    \n  FUN_001ad060(piVar1);\n                    \n  FUN_001aae40(piVar2,piVar1);\n  iVar3 = FUN_001b1340(piVar1,param_2,param_3 | 8);\n  iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  if (iVar3 != 0) {\n    FUN_001aa5f0(iVar4,0);\n    return;\n  }\n  FUN_001aa5f0(iVar4,*(uint *)(iVar4 + 0x14) | 4);\n  return;\n}" primitive_type (function_declarator "FUN_001b1e30(int *param_1,undefined4 param_2,uint param_3)" identifier (parameter_list "(int *param_1,undefined4 param_2,uint param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "uint 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_0004fb7e();\n  piVar2 = param_1 + 0x24;\n  FUN_001c5690(piVar2);\n  param_1[0x40] = 0;\n  *(undefined2 *)(param_1 + 0x41) = 0;\n  param_1[0x42] = 0;\n  param_1[0x43] = 0;\n  param_1[0x44] = 0;\n  param_1[0x45] = 0;\n  *param_1 = unaff_EDI + 0x14da3b;\n  param_1[0x24] = unaff_EDI + 0x14da4f;\n  param_1[1] = 0;\n                    \n  FUN_001aae40(piVar2,0);\n  piVar1 = param_1 + 2;\n  *param_1 = unaff_EDI + 0x14da73;\n  param_1[0x24] = unaff_EDI + 0x14da87;\n                    \n  FUN_001ad060(piVar1);\n                    \n  FUN_001aae40(piVar2,piVar1);\n  iVar3 = FUN_001b1340(piVar1,param_2,param_3 | 8);\n  iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  if (iVar3 != 0) {\n    FUN_001aa5f0(iVar4,0);\n    return;\n  }\n  FUN_001aa5f0(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_0004fb7e();" (call_expression "FUN_0004fb7e()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar2 = param_1 + 0x24;" (assignment_expression "piVar2 = param_1 + 0x24" identifier = (binary_expression "param_1 + 0x24" identifier + number_literal)) ;) (expression_statement "FUN_001c5690(piVar2);" (call_expression "FUN_001c5690(piVar2)" identifier (argument_list "(piVar2)" ( identifier ))) ;) (expression_statement "param_1[0x40] = 0;" (assignment_expression "param_1[0x40] = 0" (subscript_expression "param_1[0x40]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined2 *)(param_1 + 0x41) = 0;" (assignment_expression "*(undefined2 *)(param_1 + 0x41) = 0" (pointer_expression "*(undefined2 *)(param_1 + 0x41)" * (cast_expression "(undefined2 *)(param_1 + 0x41)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x41)" ( (binary_expression "param_1 + 0x41" identifier + number_literal) )))) = number_literal) ;) (expression_statement "param_1[0x42] = 0;" (assignment_expression "param_1[0x42] = 0" (subscript_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 = unaff_EDI + 0x14da3b;" (assignment_expression "*param_1 = unaff_EDI + 0x14da3b" (pointer_expression "*param_1" * identifier) = (binary_expression "unaff_EDI + 0x14da3b" identifier + number_literal)) ;) (expression_statement "param_1[0x24] = unaff_EDI + 0x14da4f;" (assignment_expression "param_1[0x24] = unaff_EDI + 0x14da4f" (subscript_expression "param_1[0x24]" identifier [ number_literal ]) = (binary_expression "unaff_EDI + 0x14da4f" 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_001aae40(piVar2,0);" (call_expression "FUN_001aae40(piVar2,0)" identifier (argument_list "(piVar2,0)" ( identifier , number_literal ))) ;) (expression_statement "piVar1 = param_1 + 2;" (assignment_expression "piVar1 = param_1 + 2" identifier = (binary_expression "param_1 + 2" identifier + number_literal)) ;) (expression_statement "*param_1 = unaff_EDI + 0x14da73;" (assignment_expression "*param_1 = unaff_EDI + 0x14da73" (pointer_expression "*param_1" * identifier) = (binary_expression "unaff_EDI + 0x14da73" identifier + number_literal)) ;) (expression_statement "param_1[0x24] = unaff_EDI + 0x14da87;" (assignment_expression "param_1[0x24] = unaff_EDI + 0x14da87" (subscript_expression "param_1[0x24]" identifier [ number_literal ]) = (binary_expression "unaff_EDI + 0x14da87" identifier + number_literal)) ;) (expression_statement "FUN_001ad060(piVar1);" (call_expression "FUN_001ad060(piVar1)" identifier (argument_list "(piVar1)" ( identifier ))) ;) (expression_statement "FUN_001aae40(piVar2,piVar1);" (call_expression "FUN_001aae40(piVar2,piVar1)" identifier (argument_list "(piVar2,piVar1)" ( identifier , identifier ))) ;) (expression_statement "iVar3 = FUN_001b1340(piVar1,param_2,param_3 | 8);" (assignment_expression "iVar3 = FUN_001b1340(piVar1,param_2,param_3 | 8)" identifier = (call_expression "FUN_001b1340(piVar1,param_2,param_3 | 8)" identifier (argument_list "(piVar1,param_2,param_3 | 8)" ( identifier , identifier , (binary_expression "param_3 | 8" identifier | number_literal) )))) ;) (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_001aa5f0(iVar4,0);\n    return;\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_001aa5f0(iVar4,0);\n    return;\n  }" { (expression_statement "FUN_001aa5f0(iVar4,0);" (call_expression "FUN_001aa5f0(iVar4,0)" identifier (argument_list "(iVar4,0)" ( identifier , number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_001aa5f0(iVar4,*(uint *)(iVar4 + 0x14) | 4);" (call_expression "FUN_001aa5f0(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) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (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 , (binary_expression IDENT | LIT) )))) ;) (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_001b1e30(int *param_1,undefined4 param_2,uint param_3)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  int unaff_EDI;\n  \n  FUN_0004fb7e();\n  piVar2 = param_1 + 0x24;\n  FUN_001c5690(piVar2);\n  param_1[0x40] = 0;\n  *(undefined2 *)(param_1 + 0x41) = 0;\n  param_1[0x42] = 0;\n  param_1[0x43] = 0;\n  param_1[0x44] = 0;\n  param_1[0x45] = 0;\n  *param_1 = unaff_EDI + 0x14da3b;\n  param_1[0x24] = unaff_EDI + 0x14da4f;\n  param_1[1] = 0;\n                    \n  FUN_001aae40(piVar2,0);\n  piVar1 = param_1 + 2;\n  *param_1 = unaff_EDI + 0x14da73;\n  param_1[0x24] = unaff_EDI + 0x14da87;\n                    \n  FUN_001ad060(piVar1);\n                    \n  FUN_001aae40(piVar2,piVar1);\n  iVar3 = FUN_001b1340(piVar1,param_2,param_3 | 8);\n  iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  if (iVar3 != 0) {\n    FUN_001aa5f0(iVar4,0);\n    return;\n  }\n  FUN_001aa5f0(iVar4,*(uint *)(iVar4 + 0x14) | 4);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001b1e30(int *param_1,undefined4 param_2,uint param_3)" (identifier "FUN_001b1e30") (parameter_list "(int *param_1,undefined4 param_2,uint 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 "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  int unaff_EDI;\n  \n  FUN_0004fb7e();\n  piVar2 = param_1 + 0x24;\n  FUN_001c5690(piVar2);\n  param_1[0x40] = 0;\n  *(undefined2 *)(param_1 + 0x41) = 0;\n  param_1[0x42] = 0;\n  param_1[0x43] = 0;\n  param_1[0x44] = 0;\n  param_1[0x45] = 0;\n  *param_1 = unaff_EDI + 0x14da3b;\n  param_1[0x24] = unaff_EDI + 0x14da4f;\n  param_1[1] = 0;\n                    \n  FUN_001aae40(piVar2,0);\n  piVar1 = param_1 + 2;\n  *param_1 = unaff_EDI + 0x14da73;\n  param_1[0x24] = unaff_EDI + 0x14da87;\n                    \n  FUN_001ad060(piVar1);\n                    \n  FUN_001aae40(piVar2,piVar1);\n  iVar3 = FUN_001b1340(piVar1,param_2,param_3 | 8);\n  iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  if (iVar3 != 0) {\n    FUN_001aa5f0(iVar4,0);\n    return;\n  }\n  FUN_001aa5f0(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_0004fb7e();" (call_expression "FUN_0004fb7e()" (identifier "FUN_0004fb7e") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "piVar2 = param_1 + 0x24;" (assignment_expression "piVar2 = param_1 + 0x24" (identifier "piVar2") (= "=") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24"))) (; ";")) (expression_statement "FUN_001c5690(piVar2);" (call_expression "FUN_001c5690(piVar2)" (identifier "FUN_001c5690") (argument_list "(piVar2)" (( "(") (identifier "piVar2") () ")"))) (; ";")) (expression_statement "param_1[0x40] = 0;" (assignment_expression "param_1[0x40] = 0" (subscript_expression "param_1[0x40]" (identifier "param_1") ([ "[") (number_literal "0x40") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined2 *)(param_1 + 0x41) = 0;" (assignment_expression "*(undefined2 *)(param_1 + 0x41) = 0" (pointer_expression "*(undefined2 *)(param_1 + 0x41)" (* "*") (cast_expression "(undefined2 *)(param_1 + 0x41)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x41)" (( "(") (binary_expression "param_1 + 0x41" (identifier "param_1") (+ "+") (number_literal "0x41")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[0x42] = 0;" (assignment_expression "param_1[0x42] = 0" (subscript_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 = unaff_EDI + 0x14da3b;" (assignment_expression "*param_1 = unaff_EDI + 0x14da3b" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "unaff_EDI + 0x14da3b" (identifier "unaff_EDI") (+ "+") (number_literal "0x14da3b"))) (; ";")) (expression_statement "param_1[0x24] = unaff_EDI + 0x14da4f;" (assignment_expression "param_1[0x24] = unaff_EDI + 0x14da4f" (subscript_expression "param_1[0x24]" (identifier "param_1") ([ "[") (number_literal "0x24") (] "]")) (= "=") (binary_expression "unaff_EDI + 0x14da4f" (identifier "unaff_EDI") (+ "+") (number_literal "0x14da4f"))) (; ";")) (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_001aae40(piVar2,0);" (call_expression "FUN_001aae40(piVar2,0)" (identifier "FUN_001aae40") (argument_list "(piVar2,0)" (( "(") (identifier "piVar2") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "piVar1 = param_1 + 2;" (assignment_expression "piVar1 = param_1 + 2" (identifier "piVar1") (= "=") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "*param_1 = unaff_EDI + 0x14da73;" (assignment_expression "*param_1 = unaff_EDI + 0x14da73" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "unaff_EDI + 0x14da73" (identifier "unaff_EDI") (+ "+") (number_literal "0x14da73"))) (; ";")) (expression_statement "param_1[0x24] = unaff_EDI + 0x14da87;" (assignment_expression "param_1[0x24] = unaff_EDI + 0x14da87" (subscript_expression "param_1[0x24]" (identifier "param_1") ([ "[") (number_literal "0x24") (] "]")) (= "=") (binary_expression "unaff_EDI + 0x14da87" (identifier "unaff_EDI") (+ "+") (number_literal "0x14da87"))) (; ";")) (expression_statement "FUN_001ad060(piVar1);" (call_expression "FUN_001ad060(piVar1)" (identifier "FUN_001ad060") (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")"))) (; ";")) (expression_statement "FUN_001aae40(piVar2,piVar1);" (call_expression "FUN_001aae40(piVar2,piVar1)" (identifier "FUN_001aae40") (argument_list "(piVar2,piVar1)" (( "(") (identifier "piVar2") (, ",") (identifier "piVar1") () ")"))) (; ";")) (expression_statement "iVar3 = FUN_001b1340(piVar1,param_2,param_3 | 8);" (assignment_expression "iVar3 = FUN_001b1340(piVar1,param_2,param_3 | 8)" (identifier "iVar3") (= "=") (call_expression "FUN_001b1340(piVar1,param_2,param_3 | 8)" (identifier "FUN_001b1340") (argument_list "(piVar1,param_2,param_3 | 8)" (( "(") (identifier "piVar1") (, ",") (identifier "param_2") (, ",") (binary_expression "param_3 | 8" (identifier "param_3") (| "|") (number_literal "8")) () ")")))) (; ";")) (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_001aa5f0(iVar4,0);\n    return;\n  }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_001aa5f0(iVar4,0);\n    return;\n  }" ({ "{") (expression_statement "FUN_001aa5f0(iVar4,0);" (call_expression "FUN_001aa5f0(iVar4,0)" (identifier "FUN_001aa5f0") (argument_list "(iVar4,0)" (( "(") (identifier "iVar4") (, ",") (number_literal "0") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_001aa5f0(iVar4,*(uint *)(iVar4 + 0x14) | 4);" (call_expression "FUN_001aa5f0(iVar4,*(uint *)(iVar4 + 0x14) | 4)" (identifier "FUN_001aa5f0") (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::ifstream::ifstream(char const*, std::_Ios_Openmode) */

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

{
  type_2 *this_00;
  type_3 *this_01;
  int var_8;
  type_4 *var_10;
  int var_3;
  
  var_1();
  this_01 = (type_3 *)(var_2 + 0x90);
  ios_base::type_3(this_01);
  *(type_5 *)(var_2 + 0x100) = 0;
  *(type_6 *)(var_2 + 0x104) = 0;
  *(type_5 *)(var_2 + 0x108) = 0;
  *(type_5 *)(var_2 + 0x10c) = 0;
  *(type_5 *)(var_2 + 0x110) = 0;
  *(type_5 *)(var_2 + 0x114) = 0;
  *(int *)var_2 = var_3 + 0x14da3b;
  *(int *)(var_2 + 0x90) = var_3 + 0x14da4f;
  *(type_5 *)(var_2 + 4) = 0;
                    /* try { // try from 001b1eb8 to 001b1ebc has its CatchHandler @ 001b1f51 */
  ios::var_4((type_4 *)this_01,(type_7 *)0x0);
  this_00 = (type_2 *)(var_2 + 8);
  *(int *)var_2 = var_3 + 0x14da73;
  *(int *)(var_2 + 0x90) = var_3 + 0x14da87;
                    /* try { // try from 001b1eda to 001b1ede has its CatchHandler @ 001b1f4f */
  filebuf::type_2(this_00);
                    /* try { // try from 001b1ee7 to 001b1f41 has its CatchHandler @ 001b1f4d */
  ios::var_4((type_4 *)this_01,(type_7 *)this_00);
  var_8 = type_2::var_5(this_00,param_1,var_6 | var_7);
  var_10 = (type_4 *)(var_2 + *(int *)(*(int *)var_2 + -0xc));
  if (var_8 != 0) {
    ios::var_9(var_10,_S_goodbit);
    return;
  }
  ios::var_9(var_10,*(type_8 *)(var_10 + 0x14) | var_11);
  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: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (call_expression function: (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: (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)))) (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) (binary_expression left: (identifier) right: (number_literal)))))) (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,uint param_3)

{
  int *piVar1;
  int *piVar2;
  int iVar3;
  int iVar4;
  int unaff_EDI;
  
  FUN_0004fb7e();
  piVar2 = param_1 + 0x24;
  FUN_001c5690(piVar2);
  param_1[0x40] = 0;
  *(undefined2 *)(param_1 + 0x41) = 0;
  param_1[0x42] = 0;
  param_1[0x43] = 0;
  param_1[0x44] = 0;
  param_1[0x45] = 0;
  *param_1 = unaff_EDI + 0x14da3b;
  param_1[0x24] = unaff_EDI + 0x14da4f;
  param_1[1] = 0;
                    /* try { // try from 001b1eb8 to 001b1ebc has its CatchHandler @ 001b1f51 */
  FUN_001aae40(piVar2,0);
  piVar1 = param_1 + 2;
  *param_1 = unaff_EDI + 0x14da73;
  param_1[0x24] = unaff_EDI + 0x14da87;
                    /* try { // try from 001b1eda to 001b1ede has its CatchHandler @ 001b1f4f */
  FUN_001ad060(piVar1);
                    /* try { // try from 001b1ee7 to 001b1f41 has its CatchHandler @ 001b1f4d */
  FUN_001aae40(piVar2,piVar1);
  iVar3 = FUN_001b1340(piVar1,param_2,param_3 | 8);
  iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;
  if (iVar3 != 0) {
    FUN_001aa5f0(iVar4,0);
    return;
  }
  FUN_001aa5f0(iVar4,*(uint *)(iVar4 + 0x14) | 4);
  return;
}

