
/* std::ostream::put(char) */

ostream * __thiscall std::ostream::put(ostream *this,char param_1)

{
  long *plVar1;
  int iVar2;
  sentry local_28 [16];
  
  sentry::sentry(local_28,this);
  if (local_28[0] != (sentry)0x0) {
    plVar1 = *(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8);
    if ((char *)plVar1[5] < (char *)plVar1[6]) {
      *(char *)plVar1[5] = param_1;
      plVar1[5] = plVar1[5] + 1;
    }
    else {
                    /* try { // try from 002e6007 to 002e6009 has its CatchHandler @ 002e6026 */
      iVar2 = (**(code **)(*plVar1 + 0x68))(plVar1,param_1);
      if (iVar2 == -1) {
                    /* try { // try from 002e601f to 002e6023 has its CatchHandler @ 002e602b */
        ios::clear((ios *)(this + *(long *)(*(long *)this + -0x18)),
                   *(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20) |
                   _S_badbit);
      }
    }
  }
  sentry::~sentry(local_28);
  return this;
}



long * FUN_002e5fa0(long *param_1,undefined1 param_2)

{
  long *plVar1;
  int iVar2;
  long lVar3;
  char local_28 [16];
  
  FUN_002e5da0(local_28,param_1);
  if (local_28[0] != '\0') {
    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);
    if ((undefined1 *)plVar1[5] < (undefined1 *)plVar1[6]) {
      *(undefined1 *)plVar1[5] = param_2;
      plVar1[5] = plVar1[5] + 1;
    }
    else {
                    /* try { // try from 002e6007 to 002e6009 has its CatchHandler @ 002e6026 */
      iVar2 = (**(code **)(*plVar1 + 0x68))(plVar1,param_2);
      if (iVar2 == -1) {
        lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;
                    /* try { // try from 002e601f to 002e6023 has its CatchHandler @ 002e602b */
        FUN_00300860(lVar3,*(uint *)(lVar3 + 0x20) | 1);
      }
    }
  }
  FUN_002e5e10(local_28);
  return param_1;
}


PUSH R12
MOV R12D,ESI
MOV RSI,RDI
PUSH RBP
PUSH RBX
MOV RBX,RDI
SUB RSP,0x10
MOV RBP,RSP
MOV RDI,RBP
CALL 0x002e5da0
CMP byte ptr [RSP],0x0
JZ 0x002e5fe3
MOV RAX,qword ptr [RBX]
MOV RAX,qword ptr [RAX + -0x18]
MOV RDI,qword ptr [RBX + RAX*0x1 + 0xe8]
MOV RAX,qword ptr [RDI + 0x28]
CMP RAX,qword ptr [RDI + 0x30]
JNC 0x002e6000
MOV byte ptr [RAX],R12B
ADD qword ptr [RDI + 0x28],0x1
MOV RDI,RBP
CALL 0x002e5e10
ADD RSP,0x10
MOV RAX,RBX
POP RBX
POP RBP
POP R12
RET
MOV RAX,qword ptr [RDI]
MOVZX ESI,R12B
CALL qword ptr [RAX + 0x68]
CMP EAX,-0x1
JNZ 0x002e5fe3
MOV RAX,qword ptr [RBX]
MOV RDI,qword ptr [RAX + -0x18]
ADD RDI,RBX
MOV ESI,dword ptr [RDI + 0x20]
OR ESI,0x1
CALL 0x00300860
JMP 0x002e5fe3
(translation_unit "long * FUN_002e5fa0(long *param_1,undefined1 param_2)\n\n{\n  long *plVar1;\n  int iVar2;\n  long lVar3;\n  char local_28 [16];\n  \n  FUN_002e5da0(local_28,param_1);\n  if (local_28[0] != '\0') {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n    if ((undefined1 *)plVar1[5] < (undefined1 *)plVar1[6]) {\n      *(undefined1 *)plVar1[5] = param_2;\n      plVar1[5] = plVar1[5] + 1;\n    }\n    else {\n                    /* try { // try from 002e6007 to 002e6009 has its CatchHandler @ 002e6026 */\n      iVar2 = (**(code **)(*plVar1 + 0x68))(plVar1,param_2);\n      if (iVar2 == -1) {\n        lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;\n                    /* try { // try from 002e601f to 002e6023 has its CatchHandler @ 002e602b */\n        FUN_00300860(lVar3,*(uint *)(lVar3 + 0x20) | 1);\n      }\n    }\n  }\n  FUN_002e5e10(local_28);\n  return param_1;\n}\n\n" (function_definition "long * FUN_002e5fa0(long *param_1,undefined1 param_2)\n\n{\n  long *plVar1;\n  int iVar2;\n  long lVar3;\n  char local_28 [16];\n  \n  FUN_002e5da0(local_28,param_1);\n  if (local_28[0] != '\0') {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n    if ((undefined1 *)plVar1[5] < (undefined1 *)plVar1[6]) {\n      *(undefined1 *)plVar1[5] = param_2;\n      plVar1[5] = plVar1[5] + 1;\n    }\n    else {\n                    /* try { // try from 002e6007 to 002e6009 has its CatchHandler @ 002e6026 */\n      iVar2 = (**(code **)(*plVar1 + 0x68))(plVar1,param_2);\n      if (iVar2 == -1) {\n        lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;\n                    /* try { // try from 002e601f to 002e6023 has its CatchHandler @ 002e602b */\n        FUN_00300860(lVar3,*(uint *)(lVar3 + 0x20) | 1);\n      }\n    }\n  }\n  FUN_002e5e10(local_28);\n  return param_1;\n}" (sized_type_specifier "long" long) (pointer_declarator "* FUN_002e5fa0(long *param_1,undefined1 param_2)" * (function_declarator "FUN_002e5fa0(long *param_1,undefined1 param_2)" identifier (parameter_list "(long *param_1,undefined1 param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined1 param_2" type_identifier identifier) )))) (compound_statement "{\n  long *plVar1;\n  int iVar2;\n  long lVar3;\n  char local_28 [16];\n  \n  FUN_002e5da0(local_28,param_1);\n  if (local_28[0] != '\0') {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n    if ((undefined1 *)plVar1[5] < (undefined1 *)plVar1[6]) {\n      *(undefined1 *)plVar1[5] = param_2;\n      plVar1[5] = plVar1[5] + 1;\n    }\n    else {\n                    /* try { // try from 002e6007 to 002e6009 has its CatchHandler @ 002e6026 */\n      iVar2 = (**(code **)(*plVar1 + 0x68))(plVar1,param_2);\n      if (iVar2 == -1) {\n        lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;\n                    /* try { // try from 002e601f to 002e6023 has its CatchHandler @ 002e602b */\n        FUN_00300860(lVar3,*(uint *)(lVar3 + 0x20) | 1);\n      }\n    }\n  }\n  FUN_002e5e10(local_28);\n  return param_1;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "char local_28 [16];" primitive_type (array_declarator "local_28 [16]" identifier [ number_literal ]) ;) (expression_statement "FUN_002e5da0(local_28,param_1);" (call_expression "FUN_002e5da0(local_28,param_1)" identifier (argument_list "(local_28,param_1)" ( identifier , identifier ))) ;) (if_statement "if (local_28[0] != '\0') {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n    if ((undefined1 *)plVar1[5] < (undefined1 *)plVar1[6]) {\n      *(undefined1 *)plVar1[5] = param_2;\n      plVar1[5] = plVar1[5] + 1;\n    }\n    else {\n                    /* try { // try from 002e6007 to 002e6009 has its CatchHandler @ 002e6026 */\n      iVar2 = (**(code **)(*plVar1 + 0x68))(plVar1,param_2);\n      if (iVar2 == -1) {\n        lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;\n                    /* try { // try from 002e601f to 002e6023 has its CatchHandler @ 002e602b */\n        FUN_00300860(lVar3,*(uint *)(lVar3 + 0x20) | 1);\n      }\n    }\n  }" if (parenthesized_expression "(local_28[0] != '\0')" ( (binary_expression "local_28[0] != '\0'" (subscript_expression "local_28[0]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n    if ((undefined1 *)plVar1[5] < (undefined1 *)plVar1[6]) {\n      *(undefined1 *)plVar1[5] = param_2;\n      plVar1[5] = plVar1[5] + 1;\n    }\n    else {\n                    /* try { // try from 002e6007 to 002e6009 has its CatchHandler @ 002e6026 */\n      iVar2 = (**(code **)(*plVar1 + 0x68))(plVar1,param_2);\n      if (iVar2 == -1) {\n        lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;\n                    /* try { // try from 002e601f to 002e6023 has its CatchHandler @ 002e602b */\n        FUN_00300860(lVar3,*(uint *)(lVar3 + 0x20) | 1);\n      }\n    }\n  }" { (expression_statement "plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);" (assignment_expression "plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" identifier = (pointer_expression "*(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" * (cast_expression "(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" ( (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8" (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18)" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) ))))) + number_literal) ))))) ;) (if_statement "if ((undefined1 *)plVar1[5] < (undefined1 *)plVar1[6]) {\n      *(undefined1 *)plVar1[5] = param_2;\n      plVar1[5] = plVar1[5] + 1;\n    }\n    else {\n                    /* try { // try from 002e6007 to 002e6009 has its CatchHandler @ 002e6026 */\n      iVar2 = (**(code **)(*plVar1 + 0x68))(plVar1,param_2);\n      if (iVar2 == -1) {\n        lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;\n                    /* try { // try from 002e601f to 002e6023 has its CatchHandler @ 002e602b */\n        FUN_00300860(lVar3,*(uint *)(lVar3 + 0x20) | 1);\n      }\n    }" if (parenthesized_expression "((undefined1 *)plVar1[5] < (undefined1 *)plVar1[6])" ( (binary_expression "(undefined1 *)plVar1[5] < (undefined1 *)plVar1[6]" (cast_expression "(undefined1 *)plVar1[5]" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[5]" identifier [ number_literal ])) < (cast_expression "(undefined1 *)plVar1[6]" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[6]" identifier [ number_literal ]))) )) (compound_statement "{\n      *(undefined1 *)plVar1[5] = param_2;\n      plVar1[5] = plVar1[5] + 1;\n    }" { (expression_statement "*(undefined1 *)plVar1[5] = param_2;" (assignment_expression "*(undefined1 *)plVar1[5] = param_2" (pointer_expression "*(undefined1 *)plVar1[5]" * (cast_expression "(undefined1 *)plVar1[5]" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[5]" identifier [ number_literal ]))) = identifier) ;) (expression_statement "plVar1[5] = plVar1[5] + 1;" (assignment_expression "plVar1[5] = plVar1[5] + 1" (subscript_expression "plVar1[5]" identifier [ number_literal ]) = (binary_expression "plVar1[5] + 1" (subscript_expression "plVar1[5]" identifier [ number_literal ]) + number_literal)) ;) }) (else_clause "else {\n                    /* try { // try from 002e6007 to 002e6009 has its CatchHandler @ 002e6026 */\n      iVar2 = (**(code **)(*plVar1 + 0x68))(plVar1,param_2);\n      if (iVar2 == -1) {\n        lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;\n                    /* try { // try from 002e601f to 002e6023 has its CatchHandler @ 002e602b */\n        FUN_00300860(lVar3,*(uint *)(lVar3 + 0x20) | 1);\n      }\n    }" else (compound_statement "{\n                    /* try { // try from 002e6007 to 002e6009 has its CatchHandler @ 002e6026 */\n      iVar2 = (**(code **)(*plVar1 + 0x68))(plVar1,param_2);\n      if (iVar2 == -1) {\n        lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;\n                    /* try { // try from 002e601f to 002e6023 has its CatchHandler @ 002e602b */\n        FUN_00300860(lVar3,*(uint *)(lVar3 + 0x20) | 1);\n      }\n    }" { comment (expression_statement "iVar2 = (**(code **)(*plVar1 + 0x68))(plVar1,param_2);" (assignment_expression "iVar2 = (**(code **)(*plVar1 + 0x68))(plVar1,param_2)" identifier = (call_expression "(**(code **)(*plVar1 + 0x68))(plVar1,param_2)" (parenthesized_expression "(**(code **)(*plVar1 + 0x68))" ( (pointer_expression "**(code **)(*plVar1 + 0x68)" * (pointer_expression "*(code **)(*plVar1 + 0x68)" * (cast_expression "(code **)(*plVar1 + 0x68)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x68)" ( (binary_expression "*plVar1 + 0x68" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "(plVar1,param_2)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 == -1) {\n        lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;\n                    /* try { // try from 002e601f to 002e6023 has its CatchHandler @ 002e602b */\n        FUN_00300860(lVar3,*(uint *)(lVar3 + 0x20) | 1);\n      }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\n        lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;\n                    /* try { // try from 002e601f to 002e6023 has its CatchHandler @ 002e602b */\n        FUN_00300860(lVar3,*(uint *)(lVar3 + 0x20) | 1);\n      }" { (expression_statement "lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;" (assignment_expression "lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1" identifier = (binary_expression "*(long *)(*param_1 + -0x18) + (long)param_1" (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) comment (expression_statement "FUN_00300860(lVar3,*(uint *)(lVar3 + 0x20) | 1);" (call_expression "FUN_00300860(lVar3,*(uint *)(lVar3 + 0x20) | 1)" identifier (argument_list "(lVar3,*(uint *)(lVar3 + 0x20) | 1)" ( identifier , (binary_expression "*(uint *)(lVar3 + 0x20) | 1" (pointer_expression "*(uint *)(lVar3 + 0x20)" * (cast_expression "(uint *)(lVar3 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x20)" ( (binary_expression "lVar3 + 0x20" identifier + number_literal) )))) | number_literal) ))) ;) })) }))) })) (expression_statement "FUN_002e5e10(local_28);" (call_expression "FUN_002e5e10(local_28)" identifier (argument_list "(local_28)" ( identifier ))) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* std::ostream::put(char) */\n\nostream * __thiscall std::ostream::put(ostream *this,char param_1)\n\n{\n  long *plVar1;\n  int iVar2;\n  sentry local_28 [16];\n  \n  sentry::sentry(local_28,this);\n  if (local_28[0] != (sentry)0x0) {\n    plVar1 = *(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8);\n    if ((char *)plVar1[5] < (char *)plVar1[6]) {\n      *(char *)plVar1[5] = param_1;\n      plVar1[5] = plVar1[5] + 1;\n    }\n    else {\n                    /* try { // try from 002e6007 to 002e6009 has its CatchHandler @ 002e6026 */\n      iVar2 = (**(code **)(*plVar1 + 0x68))(plVar1,param_1);\n      if (iVar2 == -1) {\n                    /* try { // try from 002e601f to 002e6023 has its CatchHandler @ 002e602b */\n        ios::clear((ios *)(this + *(long *)(*(long *)this + -0x18)),\n                   *(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20) |\n                   _S_badbit);\n      }\n    }\n  }\n  sentry::~sentry(local_28);\n  return this;\n}\n\n" comment (ERROR "ostream * __thiscall std::ostream::put(ostream *this," (binary_expression "ostream * __thiscall std::ostream::put(ostream *this" (binary_expression "ostream * __thiscall" identifier * identifier) (ERROR "std::ostream::put(ostream" identifier : : identifier : : identifier ( identifier) * identifier) ,) (function_definition "char param_1)\n\n{\n  long *plVar1;\n  int iVar2;\n  sentry local_28 [16];\n  \n  sentry::sentry(local_28,this);\n  if (local_28[0] != (sentry)0x0) {\n    plVar1 = *(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8);\n    if ((char *)plVar1[5] < (char *)plVar1[6]) {\n      *(char *)plVar1[5] = param_1;\n      plVar1[5] = plVar1[5] + 1;\n    }\n    else {\n                    /* try { // try from 002e6007 to 002e6009 has its CatchHandler @ 002e6026 */\n      iVar2 = (**(code **)(*plVar1 + 0x68))(plVar1,param_1);\n      if (iVar2 == -1) {\n                    /* try { // try from 002e601f to 002e6023 has its CatchHandler @ 002e602b */\n        ios::clear((ios *)(this + *(long *)(*(long *)this + -0x18)),\n                   *(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20) |\n                   _S_badbit);\n      }\n    }\n  }\n  sentry::~sentry(local_28);\n  return this;\n}" primitive_type identifier (ERROR ")" )) (compound_statement "{\n  long *plVar1;\n  int iVar2;\n  sentry local_28 [16];\n  \n  sentry::sentry(local_28,this);\n  if (local_28[0] != (sentry)0x0) {\n    plVar1 = *(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8);\n    if ((char *)plVar1[5] < (char *)plVar1[6]) {\n      *(char *)plVar1[5] = param_1;\n      plVar1[5] = plVar1[5] + 1;\n    }\n    else {\n                    /* try { // try from 002e6007 to 002e6009 has its CatchHandler @ 002e6026 */\n      iVar2 = (**(code **)(*plVar1 + 0x68))(plVar1,param_1);\n      if (iVar2 == -1) {\n                    /* try { // try from 002e601f to 002e6023 has its CatchHandler @ 002e602b */\n        ios::clear((ios *)(this + *(long *)(*(long *)this + -0x18)),\n                   *(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20) |\n                   _S_badbit);\n      }\n    }\n  }\n  sentry::~sentry(local_28);\n  return this;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "sentry local_28 [16];" type_identifier (array_declarator "local_28 [16]" identifier [ number_literal ]) ;) (labeled_statement "sentry::sentry(local_28,this);" statement_identifier : (ERROR ":" :) (expression_statement "sentry(local_28,this);" (call_expression "sentry(local_28,this)" identifier (argument_list "(local_28,this)" ( identifier , identifier ))) ;)) (if_statement "if (local_28[0] != (sentry)0x0) {\n    plVar1 = *(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8);\n    if ((char *)plVar1[5] < (char *)plVar1[6]) {\n      *(char *)plVar1[5] = param_1;\n      plVar1[5] = plVar1[5] + 1;\n    }\n    else {\n                    /* try { // try from 002e6007 to 002e6009 has its CatchHandler @ 002e6026 */\n      iVar2 = (**(code **)(*plVar1 + 0x68))(plVar1,param_1);\n      if (iVar2 == -1) {\n                    /* try { // try from 002e601f to 002e6023 has its CatchHandler @ 002e602b */\n        ios::clear((ios *)(this + *(long *)(*(long *)this + -0x18)),\n                   *(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20) |\n                   _S_badbit);\n      }\n    }\n  }" if (parenthesized_expression "(local_28[0] != (sentry)0x0)" ( (binary_expression "local_28[0] != (sentry)0x0" (subscript_expression "local_28[0]" identifier [ number_literal ]) != (cast_expression "(sentry)0x0" ( (type_descriptor "sentry" type_identifier) ) number_literal)) )) (compound_statement "{\n    plVar1 = *(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8);\n    if ((char *)plVar1[5] < (char *)plVar1[6]) {\n      *(char *)plVar1[5] = param_1;\n      plVar1[5] = plVar1[5] + 1;\n    }\n    else {\n                    /* try { // try from 002e6007 to 002e6009 has its CatchHandler @ 002e6026 */\n      iVar2 = (**(code **)(*plVar1 + 0x68))(plVar1,param_1);\n      if (iVar2 == -1) {\n                    /* try { // try from 002e601f to 002e6023 has its CatchHandler @ 002e602b */\n        ios::clear((ios *)(this + *(long *)(*(long *)this + -0x18)),\n                   *(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20) |\n                   _S_badbit);\n      }\n    }\n  }" { (expression_statement "plVar1 = *(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8);" (assignment_expression "plVar1 = *(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8)" identifier = (pointer_expression "*(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8)" * (cast_expression "(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + *(long *)(*(long *)this + -0x18) + 0xe8)" ( (binary_expression "this + *(long *)(*(long *)this + -0x18) + 0xe8" (binary_expression "this + *(long *)(*(long *)this + -0x18)" identifier + (pointer_expression "*(long *)(*(long *)this + -0x18)" * (cast_expression "(long *)(*(long *)this + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)this + -0x18)" ( (binary_expression "*(long *)this + -0x18" (pointer_expression "*(long *)this" * (cast_expression "(long *)this" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + number_literal) ))))) ;) (if_statement "if ((char *)plVar1[5] < (char *)plVar1[6]) {\n      *(char *)plVar1[5] = param_1;\n      plVar1[5] = plVar1[5] + 1;\n    }\n    else {\n                    /* try { // try from 002e6007 to 002e6009 has its CatchHandler @ 002e6026 */\n      iVar2 = (**(code **)(*plVar1 + 0x68))(plVar1,param_1);\n      if (iVar2 == -1) {\n                    /* try { // try from 002e601f to 002e6023 has its CatchHandler @ 002e602b */\n        ios::clear((ios *)(this + *(long *)(*(long *)this + -0x18)),\n                   *(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20) |\n                   _S_badbit);\n      }\n    }" if (parenthesized_expression "((char *)plVar1[5] < (char *)plVar1[6])" ( (binary_expression "(char *)plVar1[5] < (char *)plVar1[6]" (cast_expression "(char *)plVar1[5]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[5]" identifier [ number_literal ])) < (cast_expression "(char *)plVar1[6]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[6]" identifier [ number_literal ]))) )) (compound_statement "{\n      *(char *)plVar1[5] = param_1;\n      plVar1[5] = plVar1[5] + 1;\n    }" { (expression_statement "*(char *)plVar1[5] = param_1;" (assignment_expression "*(char *)plVar1[5] = param_1" (pointer_expression "*(char *)plVar1[5]" * (cast_expression "(char *)plVar1[5]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[5]" identifier [ number_literal ]))) = identifier) ;) (expression_statement "plVar1[5] = plVar1[5] + 1;" (assignment_expression "plVar1[5] = plVar1[5] + 1" (subscript_expression "plVar1[5]" identifier [ number_literal ]) = (binary_expression "plVar1[5] + 1" (subscript_expression "plVar1[5]" identifier [ number_literal ]) + number_literal)) ;) }) (else_clause "else {\n                    /* try { // try from 002e6007 to 002e6009 has its CatchHandler @ 002e6026 */\n      iVar2 = (**(code **)(*plVar1 + 0x68))(plVar1,param_1);\n      if (iVar2 == -1) {\n                    /* try { // try from 002e601f to 002e6023 has its CatchHandler @ 002e602b */\n        ios::clear((ios *)(this + *(long *)(*(long *)this + -0x18)),\n                   *(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20) |\n                   _S_badbit);\n      }\n    }" else (compound_statement "{\n                    /* try { // try from 002e6007 to 002e6009 has its CatchHandler @ 002e6026 */\n      iVar2 = (**(code **)(*plVar1 + 0x68))(plVar1,param_1);\n      if (iVar2 == -1) {\n                    /* try { // try from 002e601f to 002e6023 has its CatchHandler @ 002e602b */\n        ios::clear((ios *)(this + *(long *)(*(long *)this + -0x18)),\n                   *(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20) |\n                   _S_badbit);\n      }\n    }" { comment (expression_statement "iVar2 = (**(code **)(*plVar1 + 0x68))(plVar1,param_1);" (assignment_expression "iVar2 = (**(code **)(*plVar1 + 0x68))(plVar1,param_1)" identifier = (call_expression "(**(code **)(*plVar1 + 0x68))(plVar1,param_1)" (parenthesized_expression "(**(code **)(*plVar1 + 0x68))" ( (pointer_expression "**(code **)(*plVar1 + 0x68)" * (pointer_expression "*(code **)(*plVar1 + 0x68)" * (cast_expression "(code **)(*plVar1 + 0x68)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x68)" ( (binary_expression "*plVar1 + 0x68" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "(plVar1,param_1)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 == -1) {\n                    /* try { // try from 002e601f to 002e6023 has its CatchHandler @ 002e602b */\n        ios::clear((ios *)(this + *(long *)(*(long *)this + -0x18)),\n                   *(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20) |\n                   _S_badbit);\n      }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\n                    /* try { // try from 002e601f to 002e6023 has its CatchHandler @ 002e602b */\n        ios::clear((ios *)(this + *(long *)(*(long *)this + -0x18)),\n                   *(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20) |\n                   _S_badbit);\n      }" { comment (labeled_statement "ios::clear((ios *)(this + *(long *)(*(long *)this + -0x18)),\n                   *(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20) |\n                   _S_badbit);" statement_identifier : (ERROR ":" :) (expression_statement "clear((ios *)(this + *(long *)(*(long *)this + -0x18)),\n                   *(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20) |\n                   _S_badbit);" (call_expression "clear((ios *)(this + *(long *)(*(long *)this + -0x18)),\n                   *(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20) |\n                   _S_badbit)" identifier (argument_list "((ios *)(this + *(long *)(*(long *)this + -0x18)),\n                   *(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20) |\n                   _S_badbit)" ( (cast_expression "(ios *)(this + *(long *)(*(long *)this + -0x18))" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(long *)(*(long *)this + -0x18))" ( (binary_expression "this + *(long *)(*(long *)this + -0x18)" identifier + (pointer_expression "*(long *)(*(long *)this + -0x18)" * (cast_expression "(long *)(*(long *)this + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)this + -0x18)" ( (binary_expression "*(long *)this + -0x18" (pointer_expression "*(long *)this" * (cast_expression "(long *)this" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) , (binary_expression "*(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20) |\n                   _S_badbit" (pointer_expression "*(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20)" * (cast_expression "(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20)" ( (type_descriptor "_Ios_Iostate *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20)" ( (binary_expression "(ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20" (cast_expression "(ios *)(this + *(long *)(*(long *)this + -0x18))" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(long *)(*(long *)this + -0x18))" ( (binary_expression "this + *(long *)(*(long *)this + -0x18)" identifier + (pointer_expression "*(long *)(*(long *)this + -0x18)" * (cast_expression "(long *)(*(long *)this + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)this + -0x18)" ( (binary_expression "*(long *)this + -0x18" (pointer_expression "*(long *)this" * (cast_expression "(long *)this" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) + number_literal) )))) | identifier) ))) ;)) })) }))) })) (labeled_statement "sentry::~sentry(local_28);" statement_identifier : (ERROR ":" :) (expression_statement "~sentry(local_28);" (unary_expression "~sentry(local_28)" ~ (call_expression "sentry(local_28)" identifier (argument_list "(local_28)" ( identifier )))) ;)) (return_statement "return this;" return identifier ;) })))
(translation_unit "long * FUN_002e5fa0(long *param_1,undefined1 param_2)\n\n{\n  long *plVar1;\n  int iVar2;\n  long lVar3;\n  char local_28 [16];\n  \n  FUN_002e5da0(local_28,param_1);\n  if (local_28[0] != '\0') {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n    if ((undefined1 *)plVar1[5] < (undefined1 *)plVar1[6]) {\n      *(undefined1 *)plVar1[5] = param_2;\n      plVar1[5] = plVar1[5] + 1;\n    }\n    else {\n                    \n      iVar2 = (**(code **)(*plVar1 + 0x68))(plVar1,param_2);\n      if (iVar2 == -1) {\n        lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;\n                    \n        FUN_00300860(lVar3,*(uint *)(lVar3 + 0x20) | 1);\n      }\n    }\n  }\n  FUN_002e5e10(local_28);\n  return param_1;\n}\n\n" (function_definition "long * FUN_002e5fa0(long *param_1,undefined1 param_2)\n\n{\n  long *plVar1;\n  int iVar2;\n  long lVar3;\n  char local_28 [16];\n  \n  FUN_002e5da0(local_28,param_1);\n  if (local_28[0] != '\0') {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n    if ((undefined1 *)plVar1[5] < (undefined1 *)plVar1[6]) {\n      *(undefined1 *)plVar1[5] = param_2;\n      plVar1[5] = plVar1[5] + 1;\n    }\n    else {\n                    \n      iVar2 = (**(code **)(*plVar1 + 0x68))(plVar1,param_2);\n      if (iVar2 == -1) {\n        lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;\n                    \n        FUN_00300860(lVar3,*(uint *)(lVar3 + 0x20) | 1);\n      }\n    }\n  }\n  FUN_002e5e10(local_28);\n  return param_1;\n}" (sized_type_specifier "long" long) (pointer_declarator "* FUN_002e5fa0(long *param_1,undefined1 param_2)" * (function_declarator "FUN_002e5fa0(long *param_1,undefined1 param_2)" identifier (parameter_list "(long *param_1,undefined1 param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined1 param_2" type_identifier identifier) )))) (compound_statement "{\n  long *plVar1;\n  int iVar2;\n  long lVar3;\n  char local_28 [16];\n  \n  FUN_002e5da0(local_28,param_1);\n  if (local_28[0] != '\0') {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n    if ((undefined1 *)plVar1[5] < (undefined1 *)plVar1[6]) {\n      *(undefined1 *)plVar1[5] = param_2;\n      plVar1[5] = plVar1[5] + 1;\n    }\n    else {\n                    \n      iVar2 = (**(code **)(*plVar1 + 0x68))(plVar1,param_2);\n      if (iVar2 == -1) {\n        lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;\n                    \n        FUN_00300860(lVar3,*(uint *)(lVar3 + 0x20) | 1);\n      }\n    }\n  }\n  FUN_002e5e10(local_28);\n  return param_1;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "char local_28 [16];" primitive_type (array_declarator "local_28 [16]" identifier [ number_literal ]) ;) (expression_statement "FUN_002e5da0(local_28,param_1);" (call_expression "FUN_002e5da0(local_28,param_1)" identifier (argument_list "(local_28,param_1)" ( identifier , identifier ))) ;) (if_statement "if (local_28[0] != '\0') {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n    if ((undefined1 *)plVar1[5] < (undefined1 *)plVar1[6]) {\n      *(undefined1 *)plVar1[5] = param_2;\n      plVar1[5] = plVar1[5] + 1;\n    }\n    else {\n                    \n      iVar2 = (**(code **)(*plVar1 + 0x68))(plVar1,param_2);\n      if (iVar2 == -1) {\n        lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;\n                    \n        FUN_00300860(lVar3,*(uint *)(lVar3 + 0x20) | 1);\n      }\n    }\n  }" if (parenthesized_expression "(local_28[0] != '\0')" ( (binary_expression "local_28[0] != '\0'" (subscript_expression "local_28[0]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n    if ((undefined1 *)plVar1[5] < (undefined1 *)plVar1[6]) {\n      *(undefined1 *)plVar1[5] = param_2;\n      plVar1[5] = plVar1[5] + 1;\n    }\n    else {\n                    \n      iVar2 = (**(code **)(*plVar1 + 0x68))(plVar1,param_2);\n      if (iVar2 == -1) {\n        lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;\n                    \n        FUN_00300860(lVar3,*(uint *)(lVar3 + 0x20) | 1);\n      }\n    }\n  }" { (expression_statement "plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);" (assignment_expression "plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" identifier = (pointer_expression "*(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" * (cast_expression "(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" ( (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8" (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18)" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) ))))) + number_literal) ))))) ;) (if_statement "if ((undefined1 *)plVar1[5] < (undefined1 *)plVar1[6]) {\n      *(undefined1 *)plVar1[5] = param_2;\n      plVar1[5] = plVar1[5] + 1;\n    }\n    else {\n                    \n      iVar2 = (**(code **)(*plVar1 + 0x68))(plVar1,param_2);\n      if (iVar2 == -1) {\n        lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;\n                    \n        FUN_00300860(lVar3,*(uint *)(lVar3 + 0x20) | 1);\n      }\n    }" if (parenthesized_expression "((undefined1 *)plVar1[5] < (undefined1 *)plVar1[6])" ( (binary_expression "(undefined1 *)plVar1[5] < (undefined1 *)plVar1[6]" (cast_expression "(undefined1 *)plVar1[5]" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[5]" identifier [ number_literal ])) < (cast_expression "(undefined1 *)plVar1[6]" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[6]" identifier [ number_literal ]))) )) (compound_statement "{\n      *(undefined1 *)plVar1[5] = param_2;\n      plVar1[5] = plVar1[5] + 1;\n    }" { (expression_statement "*(undefined1 *)plVar1[5] = param_2;" (assignment_expression "*(undefined1 *)plVar1[5] = param_2" (pointer_expression "*(undefined1 *)plVar1[5]" * (cast_expression "(undefined1 *)plVar1[5]" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[5]" identifier [ number_literal ]))) = identifier) ;) (expression_statement "plVar1[5] = plVar1[5] + 1;" (assignment_expression "plVar1[5] = plVar1[5] + 1" (subscript_expression "plVar1[5]" identifier [ number_literal ]) = (binary_expression "plVar1[5] + 1" (subscript_expression "plVar1[5]" identifier [ number_literal ]) + number_literal)) ;) }) (else_clause "else {\n                    \n      iVar2 = (**(code **)(*plVar1 + 0x68))(plVar1,param_2);\n      if (iVar2 == -1) {\n        lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;\n                    \n        FUN_00300860(lVar3,*(uint *)(lVar3 + 0x20) | 1);\n      }\n    }" else (compound_statement "{\n                    \n      iVar2 = (**(code **)(*plVar1 + 0x68))(plVar1,param_2);\n      if (iVar2 == -1) {\n        lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;\n                    \n        FUN_00300860(lVar3,*(uint *)(lVar3 + 0x20) | 1);\n      }\n    }" { (expression_statement "iVar2 = (**(code **)(*plVar1 + 0x68))(plVar1,param_2);" (assignment_expression "iVar2 = (**(code **)(*plVar1 + 0x68))(plVar1,param_2)" identifier = (call_expression "(**(code **)(*plVar1 + 0x68))(plVar1,param_2)" (parenthesized_expression "(**(code **)(*plVar1 + 0x68))" ( (pointer_expression "**(code **)(*plVar1 + 0x68)" * (pointer_expression "*(code **)(*plVar1 + 0x68)" * (cast_expression "(code **)(*plVar1 + 0x68)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x68)" ( (binary_expression "*plVar1 + 0x68" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "(plVar1,param_2)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 == -1) {\n        lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;\n                    \n        FUN_00300860(lVar3,*(uint *)(lVar3 + 0x20) | 1);\n      }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\n        lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;\n                    \n        FUN_00300860(lVar3,*(uint *)(lVar3 + 0x20) | 1);\n      }" { (expression_statement "lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;" (assignment_expression "lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1" identifier = (binary_expression "*(long *)(*param_1 + -0x18) + (long)param_1" (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (expression_statement "FUN_00300860(lVar3,*(uint *)(lVar3 + 0x20) | 1);" (call_expression "FUN_00300860(lVar3,*(uint *)(lVar3 + 0x20) | 1)" identifier (argument_list "(lVar3,*(uint *)(lVar3 + 0x20) | 1)" ( identifier , (binary_expression "*(uint *)(lVar3 + 0x20) | 1" (pointer_expression "*(uint *)(lVar3 + 0x20)" * (cast_expression "(uint *)(lVar3 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x20)" ( (binary_expression "lVar3 + 0x20" identifier + number_literal) )))) | number_literal) ))) ;) })) }))) })) (expression_statement "FUN_002e5e10(local_28);" (call_expression "FUN_002e5e10(local_28)" identifier (argument_list "(local_28)" ( identifier ))) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition (sized_type_specifier long) (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) < (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) + (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT))) ;) (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) ))) ;) })) }))) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return IDENT ;) })))
(function_definition "long * FUN_002e5fa0(long *param_1,undefined1 param_2)\n\n{\n  long *plVar1;\n  int iVar2;\n  long lVar3;\n  char local_28 [16];\n  \n  FUN_002e5da0(local_28,param_1);\n  if (local_28[0] != '\0') {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n    if ((undefined1 *)plVar1[5] < (undefined1 *)plVar1[6]) {\n      *(undefined1 *)plVar1[5] = param_2;\n      plVar1[5] = plVar1[5] + 1;\n    }\n    else {\n                    \n      iVar2 = (**(code **)(*plVar1 + 0x68))(plVar1,param_2);\n      if (iVar2 == -1) {\n        lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;\n                    \n        FUN_00300860(lVar3,*(uint *)(lVar3 + 0x20) | 1);\n      }\n    }\n  }\n  FUN_002e5e10(local_28);\n  return param_1;\n}" (sized_type_specifier "long" (long "long")) (pointer_declarator "* FUN_002e5fa0(long *param_1,undefined1 param_2)" (* "*") (function_declarator "FUN_002e5fa0(long *param_1,undefined1 param_2)" (identifier "FUN_002e5fa0") (parameter_list "(long *param_1,undefined1 param_2)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined1 param_2" (type_identifier "undefined1") (identifier "param_2")) () ")")))) (compound_statement "{\n  long *plVar1;\n  int iVar2;\n  long lVar3;\n  char local_28 [16];\n  \n  FUN_002e5da0(local_28,param_1);\n  if (local_28[0] != '\0') {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n    if ((undefined1 *)plVar1[5] < (undefined1 *)plVar1[6]) {\n      *(undefined1 *)plVar1[5] = param_2;\n      plVar1[5] = plVar1[5] + 1;\n    }\n    else {\n                    \n      iVar2 = (**(code **)(*plVar1 + 0x68))(plVar1,param_2);\n      if (iVar2 == -1) {\n        lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;\n                    \n        FUN_00300860(lVar3,*(uint *)(lVar3 + 0x20) | 1);\n      }\n    }\n  }\n  FUN_002e5e10(local_28);\n  return param_1;\n}" ({ "{") (declaration "long *plVar1;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar1" (* "*") (identifier "plVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (declaration "char local_28 [16];" (primitive_type "char") (array_declarator "local_28 [16]" (identifier "local_28") ([ "[") (number_literal "16") (] "]")) (; ";")) (expression_statement "FUN_002e5da0(local_28,param_1);" (call_expression "FUN_002e5da0(local_28,param_1)" (identifier "FUN_002e5da0") (argument_list "(local_28,param_1)" (( "(") (identifier "local_28") (, ",") (identifier "param_1") () ")"))) (; ";")) (if_statement "if (local_28[0] != '\0') {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n    if ((undefined1 *)plVar1[5] < (undefined1 *)plVar1[6]) {\n      *(undefined1 *)plVar1[5] = param_2;\n      plVar1[5] = plVar1[5] + 1;\n    }\n    else {\n                    \n      iVar2 = (**(code **)(*plVar1 + 0x68))(plVar1,param_2);\n      if (iVar2 == -1) {\n        lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;\n                    \n        FUN_00300860(lVar3,*(uint *)(lVar3 + 0x20) | 1);\n      }\n    }\n  }" (if "if") (parenthesized_expression "(local_28[0] != '\0')" (( "(") (binary_expression "local_28[0] != '\0'" (subscript_expression "local_28[0]" (identifier "local_28") ([ "[") (number_literal "0") (] "]")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n    if ((undefined1 *)plVar1[5] < (undefined1 *)plVar1[6]) {\n      *(undefined1 *)plVar1[5] = param_2;\n      plVar1[5] = plVar1[5] + 1;\n    }\n    else {\n                    \n      iVar2 = (**(code **)(*plVar1 + 0x68))(plVar1,param_2);\n      if (iVar2 == -1) {\n        lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;\n                    \n        FUN_00300860(lVar3,*(uint *)(lVar3 + 0x20) | 1);\n      }\n    }\n  }" ({ "{") (expression_statement "plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);" (assignment_expression "plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" (identifier "plVar1") (= "=") (pointer_expression "*(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" (* "*") (cast_expression "(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" (( "(") (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8" (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18)" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(long *)(*param_1 + -0x18)" (* "*") (cast_expression "(long *)(*param_1 + -0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0x18)" (( "(") (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0x18")) () ")"))))) (+ "+") (number_literal "0xe8")) () ")"))))) (; ";")) (if_statement "if ((undefined1 *)plVar1[5] < (undefined1 *)plVar1[6]) {\n      *(undefined1 *)plVar1[5] = param_2;\n      plVar1[5] = plVar1[5] + 1;\n    }\n    else {\n                    \n      iVar2 = (**(code **)(*plVar1 + 0x68))(plVar1,param_2);\n      if (iVar2 == -1) {\n        lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;\n                    \n        FUN_00300860(lVar3,*(uint *)(lVar3 + 0x20) | 1);\n      }\n    }" (if "if") (parenthesized_expression "((undefined1 *)plVar1[5] < (undefined1 *)plVar1[6])" (( "(") (binary_expression "(undefined1 *)plVar1[5] < (undefined1 *)plVar1[6]" (cast_expression "(undefined1 *)plVar1[5]" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "plVar1[5]" (identifier "plVar1") ([ "[") (number_literal "5") (] "]"))) (< "<") (cast_expression "(undefined1 *)plVar1[6]" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "plVar1[6]" (identifier "plVar1") ([ "[") (number_literal "6") (] "]")))) () ")")) (compound_statement "{\n      *(undefined1 *)plVar1[5] = param_2;\n      plVar1[5] = plVar1[5] + 1;\n    }" ({ "{") (expression_statement "*(undefined1 *)plVar1[5] = param_2;" (assignment_expression "*(undefined1 *)plVar1[5] = param_2" (pointer_expression "*(undefined1 *)plVar1[5]" (* "*") (cast_expression "(undefined1 *)plVar1[5]" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "plVar1[5]" (identifier "plVar1") ([ "[") (number_literal "5") (] "]")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "plVar1[5] = plVar1[5] + 1;" (assignment_expression "plVar1[5] = plVar1[5] + 1" (subscript_expression "plVar1[5]" (identifier "plVar1") ([ "[") (number_literal "5") (] "]")) (= "=") (binary_expression "plVar1[5] + 1" (subscript_expression "plVar1[5]" (identifier "plVar1") ([ "[") (number_literal "5") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\n                    \n      iVar2 = (**(code **)(*plVar1 + 0x68))(plVar1,param_2);\n      if (iVar2 == -1) {\n        lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;\n                    \n        FUN_00300860(lVar3,*(uint *)(lVar3 + 0x20) | 1);\n      }\n    }" (else "else") (compound_statement "{\n                    \n      iVar2 = (**(code **)(*plVar1 + 0x68))(plVar1,param_2);\n      if (iVar2 == -1) {\n        lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;\n                    \n        FUN_00300860(lVar3,*(uint *)(lVar3 + 0x20) | 1);\n      }\n    }" ({ "{") (expression_statement "iVar2 = (**(code **)(*plVar1 + 0x68))(plVar1,param_2);" (assignment_expression "iVar2 = (**(code **)(*plVar1 + 0x68))(plVar1,param_2)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(*plVar1 + 0x68))(plVar1,param_2)" (parenthesized_expression "(**(code **)(*plVar1 + 0x68))" (( "(") (pointer_expression "**(code **)(*plVar1 + 0x68)" (* "*") (pointer_expression "*(code **)(*plVar1 + 0x68)" (* "*") (cast_expression "(code **)(*plVar1 + 0x68)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*plVar1 + 0x68)" (( "(") (binary_expression "*plVar1 + 0x68" (pointer_expression "*plVar1" (* "*") (identifier "plVar1")) (+ "+") (number_literal "0x68")) () ")"))))) () ")")) (argument_list "(plVar1,param_2)" (( "(") (identifier "plVar1") (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar2 == -1) {\n        lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;\n                    \n        FUN_00300860(lVar3,*(uint *)(lVar3 + 0x20) | 1);\n      }" (if "if") (parenthesized_expression "(iVar2 == -1)" (( "(") (binary_expression "iVar2 == -1" (identifier "iVar2") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n        lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;\n                    \n        FUN_00300860(lVar3,*(uint *)(lVar3 + 0x20) | 1);\n      }" ({ "{") (expression_statement "lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;" (assignment_expression "lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1" (identifier "lVar3") (= "=") (binary_expression "*(long *)(*param_1 + -0x18) + (long)param_1" (pointer_expression "*(long *)(*param_1 + -0x18)" (* "*") (cast_expression "(long *)(*param_1 + -0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0x18)" (( "(") (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0x18")) () ")")))) (+ "+") (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")))) (; ";")) (expression_statement "FUN_00300860(lVar3,*(uint *)(lVar3 + 0x20) | 1);" (call_expression "FUN_00300860(lVar3,*(uint *)(lVar3 + 0x20) | 1)" (identifier "FUN_00300860") (argument_list "(lVar3,*(uint *)(lVar3 + 0x20) | 1)" (( "(") (identifier "lVar3") (, ",") (binary_expression "*(uint *)(lVar3 + 0x20) | 1" (pointer_expression "*(uint *)(lVar3 + 0x20)" (* "*") (cast_expression "(uint *)(lVar3 + 0x20)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x20)" (( "(") (binary_expression "lVar3 + 0x20" (identifier "lVar3") (+ "+") (number_literal "0x20")) () ")")))) (| "|") (number_literal "1")) () ")"))) (; ";")) (} "}"))) (} "}")))) (} "}"))) (expression_statement "FUN_002e5e10(local_28);" (call_expression "FUN_002e5e10(local_28)" (identifier "FUN_002e5e10") (argument_list "(local_28)" (( "(") (identifier "local_28") () ")"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

/* std::ostream::put(char) */

ostream * __thiscall std::ostream::put(ostream *var_1,char function_1)

{
  long *plVar1;
  int var_2;
  type_1 local_28 [16];
  
  sentry::type_1(local_28,var_1);
  if (local_28[0] != (type_1)0x0) {
    plVar1 = *(long **)(var_1 + *(long *)(*(long *)var_1 + -0x18) + 0xe8);
    if ((char *)plVar1[5] < (char *)plVar1[6]) {
      *(char *)plVar1[5] = function_1;
      plVar1[5] = plVar1[5] + 1;
    }
    else {
                    /* try { // try from 002e6007 to 002e6009 has its CatchHandler @ 002e6026 */
      var_2 = (**(type_2 **)(*plVar1 + 0x68))(plVar1,function_1);
      if (var_2 == -1) {
                    /* try { // try from 002e601f to 002e6023 has its CatchHandler @ 002e602b */
        ios::var_3((type_3 *)(var_1 + *(long *)(*(long *)var_1 + -0x18)),
                   *(type_4 *)((type_3 *)(var_1 + *(long *)(*(long *)var_1 + -0x18)) + 0x20) |
                   var_4);
      }
    }
  }
  sentry::~type_1(local_28);
  return var_1;
}


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

long * MASKED(long *param_1,undefined1 param_2)

{
  long *plVar1;
  int iVar2;
  long lVar3;
  char local_28 [16];
  
  FUN_002e5da0(local_28,param_1);
  if (local_28[0] != '\0') {
    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);
    if ((undefined1 *)plVar1[5] < (undefined1 *)plVar1[6]) {
      *(undefined1 *)plVar1[5] = param_2;
      plVar1[5] = plVar1[5] + 1;
    }
    else {
                    /* try { // try from 002e6007 to 002e6009 has its CatchHandler @ 002e6026 */
      iVar2 = (**(code **)(*plVar1 + 0x68))(plVar1,param_2);
      if (iVar2 == -1) {
        lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;
                    /* try { // try from 002e601f to 002e6023 has its CatchHandler @ 002e602b */
        FUN_00300860(lVar3,*(uint *)(lVar3 + 0x20) | 1);
      }
    }
  }
  FUN_002e5e10(local_28);
  return param_1;
}

