
/* std::wostream::put(wchar_t) */

wostream * __thiscall std::wostream::put(wostream *this,wchar_t param_1)

{
  int *piVar1;
  wchar_t *pwVar2;
  sentry local_24 [20];
  
  __x86_get_pc_thunk_di();
  sentry::sentry(local_24,this);
  if (local_24[0] != (sentry)0x0) {
    piVar1 = *(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c);
    pwVar2 = (wchar_t *)piVar1[5];
    if (pwVar2 < (wchar_t *)piVar1[6]) {
      *pwVar2 = param_1;
      piVar1[5] = (int)(pwVar2 + 1);
    }
    else {
                    /* try { // try from 00257ce9 to 00257ceb has its CatchHandler @ 00257cf5 */
      param_1 = (**(code **)(*piVar1 + 0x34))(piVar1,param_1);
    }
    if (param_1 == L'\xffffffff') {
                    /* try { // try from 00257cd4 to 00257cd8 has its CatchHandler @ 00257cf1 */
      wios::clear((_Ios_Iostate)(this + *(int *)(*(int *)this + -0xc)));
    }
  }
  sentry::~sentry(local_24);
  return this;
}



int * FUN_00257c50(int *param_1,int param_2)

{
  int *piVar1;
  int *piVar2;
  int iVar3;
  char local_24 [20];
  
  FUN_000b484e();
  FUN_00257a10(local_24,param_1);
  if (local_24[0] != '\0') {
    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);
    piVar2 = (int *)piVar1[5];
    if (piVar2 < (int *)piVar1[6]) {
      *piVar2 = param_2;
      piVar1[5] = (int)(piVar2 + 1);
    }
    else {
                    /* try { // try from 00257ce9 to 00257ceb has its CatchHandler @ 00257cf5 */
      param_2 = (**(code **)(*piVar1 + 0x34))(piVar1,param_2);
    }
    if (param_2 == -1) {
      iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;
                    /* try { // try from 00257cd4 to 00257cd8 has its CatchHandler @ 00257cf1 */
      FUN_00272b10(iVar3,*(uint *)(iVar3 + 0x14) | 1);
    }
  }
  FUN_00257a90(local_24);
  return param_1;
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
CALL 0x000b484e
ADD EDI,0x1bc3a7
PUSH ESI
LEA EAX,[EBP + -0x20]
PUSH EBX
SUB ESP,0x34
MOV ESI,dword ptr [EBP + 0x8]
MOV dword ptr [EBP + -0x2c],EAX
PUSH ESI
MOV EBX,EDI
PUSH EAX
CALL 0x00257a10
ADD ESP,0x10
CMP byte ptr [EBP + -0x20],0x0
JZ 0x00257ca0
MOV EAX,dword ptr [ESI]
MOV EAX,dword ptr [EAX + -0xc]
MOV ECX,dword ptr [ESI + EAX*0x1 + 0x7c]
MOV EAX,dword ptr [EBP + 0xc]
MOV EDX,dword ptr [ECX + 0x14]
CMP dword ptr [ECX + 0x18],EDX
JBE 0x00257ce0
MOV dword ptr [EDX],EAX
ADD EDX,0x4
MOV dword ptr [ECX + 0x14],EDX
CMP EAX,-0x1
JZ 0x00257cc0
SUB ESP,0xc
PUSH dword ptr [EBP + -0x2c]
MOV EBX,EDI
CALL 0x00257a90
ADD ESP,0x10
LEA ESP,[EBP + -0xc]
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESI]
SUB ESP,0x8
MOV EBX,EDI
MOV EDX,dword ptr [EAX + -0xc]
ADD EDX,ESI
MOV EAX,dword ptr [EDX + 0x14]
OR EAX,0x1
PUSH EAX
PUSH EDX
CALL 0x00272b10
ADD ESP,0x10
JMP 0x00257ca0
MOV EAX,dword ptr [ECX]
SUB ESP,0x8
PUSH dword ptr [EBP + 0xc]
PUSH ECX
CALL dword ptr [EAX + 0x34]
ADD ESP,0x10
JMP 0x00257c9b
(translation_unit "int * FUN_00257c50(int *param_1,int param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  char local_24 [20];\n  \n  FUN_000b484e();\n  FUN_00257a10(local_24,param_1);\n  if (local_24[0] != '\0') {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n    piVar2 = (int *)piVar1[5];\n    if (piVar2 < (int *)piVar1[6]) {\n      *piVar2 = param_2;\n      piVar1[5] = (int)(piVar2 + 1);\n    }\n    else {\n                    /* try { // try from 00257ce9 to 00257ceb has its CatchHandler @ 00257cf5 */\n      param_2 = (**(code **)(*piVar1 + 0x34))(piVar1,param_2);\n    }\n    if (param_2 == -1) {\n      iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n                    /* try { // try from 00257cd4 to 00257cd8 has its CatchHandler @ 00257cf1 */\n      FUN_00272b10(iVar3,*(uint *)(iVar3 + 0x14) | 1);\n    }\n  }\n  FUN_00257a90(local_24);\n  return param_1;\n}\n\n" (function_definition "int * FUN_00257c50(int *param_1,int param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  char local_24 [20];\n  \n  FUN_000b484e();\n  FUN_00257a10(local_24,param_1);\n  if (local_24[0] != '\0') {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n    piVar2 = (int *)piVar1[5];\n    if (piVar2 < (int *)piVar1[6]) {\n      *piVar2 = param_2;\n      piVar1[5] = (int)(piVar2 + 1);\n    }\n    else {\n                    /* try { // try from 00257ce9 to 00257ceb has its CatchHandler @ 00257cf5 */\n      param_2 = (**(code **)(*piVar1 + 0x34))(piVar1,param_2);\n    }\n    if (param_2 == -1) {\n      iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n                    /* try { // try from 00257cd4 to 00257cd8 has its CatchHandler @ 00257cf1 */\n      FUN_00272b10(iVar3,*(uint *)(iVar3 + 0x14) | 1);\n    }\n  }\n  FUN_00257a90(local_24);\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_00257c50(int *param_1,int param_2)" * (function_declarator "FUN_00257c50(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  char local_24 [20];\n  \n  FUN_000b484e();\n  FUN_00257a10(local_24,param_1);\n  if (local_24[0] != '\0') {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n    piVar2 = (int *)piVar1[5];\n    if (piVar2 < (int *)piVar1[6]) {\n      *piVar2 = param_2;\n      piVar1[5] = (int)(piVar2 + 1);\n    }\n    else {\n                    /* try { // try from 00257ce9 to 00257ceb has its CatchHandler @ 00257cf5 */\n      param_2 = (**(code **)(*piVar1 + 0x34))(piVar1,param_2);\n    }\n    if (param_2 == -1) {\n      iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n                    /* try { // try from 00257cd4 to 00257cd8 has its CatchHandler @ 00257cf1 */\n      FUN_00272b10(iVar3,*(uint *)(iVar3 + 0x14) | 1);\n    }\n  }\n  FUN_00257a90(local_24);\n  return param_1;\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 "char local_24 [20];" primitive_type (array_declarator "local_24 [20]" identifier [ number_literal ]) ;) (expression_statement "FUN_000b484e();" (call_expression "FUN_000b484e()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00257a10(local_24,param_1);" (call_expression "FUN_00257a10(local_24,param_1)" identifier (argument_list "(local_24,param_1)" ( identifier , identifier ))) ;) (if_statement "if (local_24[0] != '\0') {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n    piVar2 = (int *)piVar1[5];\n    if (piVar2 < (int *)piVar1[6]) {\n      *piVar2 = param_2;\n      piVar1[5] = (int)(piVar2 + 1);\n    }\n    else {\n                    /* try { // try from 00257ce9 to 00257ceb has its CatchHandler @ 00257cf5 */\n      param_2 = (**(code **)(*piVar1 + 0x34))(piVar1,param_2);\n    }\n    if (param_2 == -1) {\n      iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n                    /* try { // try from 00257cd4 to 00257cd8 has its CatchHandler @ 00257cf1 */\n      FUN_00272b10(iVar3,*(uint *)(iVar3 + 0x14) | 1);\n    }\n  }" if (parenthesized_expression "(local_24[0] != '\0')" ( (binary_expression "local_24[0] != '\0'" (subscript_expression "local_24[0]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n    piVar2 = (int *)piVar1[5];\n    if (piVar2 < (int *)piVar1[6]) {\n      *piVar2 = param_2;\n      piVar1[5] = (int)(piVar2 + 1);\n    }\n    else {\n                    /* try { // try from 00257ce9 to 00257ceb has its CatchHandler @ 00257cf5 */\n      param_2 = (**(code **)(*piVar1 + 0x34))(piVar1,param_2);\n    }\n    if (param_2 == -1) {\n      iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n                    /* try { // try from 00257cd4 to 00257cd8 has its CatchHandler @ 00257cf1 */\n      FUN_00272b10(iVar3,*(uint *)(iVar3 + 0x14) | 1);\n    }\n  }" { (expression_statement "piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);" (assignment_expression "piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" identifier = (pointer_expression "*(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" * (cast_expression "(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" ( (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c" (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) ))))) + number_literal) ))))) ;) (expression_statement "piVar2 = (int *)piVar1[5];" (assignment_expression "piVar2 = (int *)piVar1[5]" identifier = (cast_expression "(int *)piVar1[5]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[5]" identifier [ number_literal ]))) ;) (if_statement "if (piVar2 < (int *)piVar1[6]) {\n      *piVar2 = param_2;\n      piVar1[5] = (int)(piVar2 + 1);\n    }\n    else {\n                    /* try { // try from 00257ce9 to 00257ceb has its CatchHandler @ 00257cf5 */\n      param_2 = (**(code **)(*piVar1 + 0x34))(piVar1,param_2);\n    }" if (parenthesized_expression "(piVar2 < (int *)piVar1[6])" ( (binary_expression "piVar2 < (int *)piVar1[6]" identifier < (cast_expression "(int *)piVar1[6]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[6]" identifier [ number_literal ]))) )) (compound_statement "{\n      *piVar2 = param_2;\n      piVar1[5] = (int)(piVar2 + 1);\n    }" { (expression_statement "*piVar2 = param_2;" (assignment_expression "*piVar2 = param_2" (pointer_expression "*piVar2" * identifier) = identifier) ;) (expression_statement "piVar1[5] = (int)(piVar2 + 1);" (assignment_expression "piVar1[5] = (int)(piVar2 + 1)" (subscript_expression "piVar1[5]" identifier [ number_literal ]) = (cast_expression "(int)(piVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(piVar2 + 1)" ( (binary_expression "piVar2 + 1" identifier + number_literal) )))) ;) }) (else_clause "else {\n                    /* try { // try from 00257ce9 to 00257ceb has its CatchHandler @ 00257cf5 */\n      param_2 = (**(code **)(*piVar1 + 0x34))(piVar1,param_2);\n    }" else (compound_statement "{\n                    /* try { // try from 00257ce9 to 00257ceb has its CatchHandler @ 00257cf5 */\n      param_2 = (**(code **)(*piVar1 + 0x34))(piVar1,param_2);\n    }" { comment (expression_statement "param_2 = (**(code **)(*piVar1 + 0x34))(piVar1,param_2);" (assignment_expression "param_2 = (**(code **)(*piVar1 + 0x34))(piVar1,param_2)" identifier = (call_expression "(**(code **)(*piVar1 + 0x34))(piVar1,param_2)" (parenthesized_expression "(**(code **)(*piVar1 + 0x34))" ( (pointer_expression "**(code **)(*piVar1 + 0x34)" * (pointer_expression "*(code **)(*piVar1 + 0x34)" * (cast_expression "(code **)(*piVar1 + 0x34)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x34)" ( (binary_expression "*piVar1 + 0x34" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1,param_2)" ( identifier , identifier )))) ;) }))) (if_statement "if (param_2 == -1) {\n      iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n                    /* try { // try from 00257cd4 to 00257cd8 has its CatchHandler @ 00257cf1 */\n      FUN_00272b10(iVar3,*(uint *)(iVar3 + 0x14) | 1);\n    }" if (parenthesized_expression "(param_2 == -1)" ( (binary_expression "param_2 == -1" identifier == number_literal) )) (compound_statement "{\n      iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n                    /* try { // try from 00257cd4 to 00257cd8 has its CatchHandler @ 00257cf1 */\n      FUN_00272b10(iVar3,*(uint *)(iVar3 + 0x14) | 1);\n    }" { (expression_statement "iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar3 = *(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))) ;) comment (expression_statement "FUN_00272b10(iVar3,*(uint *)(iVar3 + 0x14) | 1);" (call_expression "FUN_00272b10(iVar3,*(uint *)(iVar3 + 0x14) | 1)" identifier (argument_list "(iVar3,*(uint *)(iVar3 + 0x14) | 1)" ( identifier , (binary_expression "*(uint *)(iVar3 + 0x14) | 1" (pointer_expression "*(uint *)(iVar3 + 0x14)" * (cast_expression "(uint *)(iVar3 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) )))) | number_literal) ))) ;) })) })) (expression_statement "FUN_00257a90(local_24);" (call_expression "FUN_00257a90(local_24)" identifier (argument_list "(local_24)" ( identifier ))) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* std::wostream::put(wchar_t) */\n\nwostream * __thiscall std::wostream::put(wostream *this,wchar_t param_1)\n\n{\n  int *piVar1;\n  wchar_t *pwVar2;\n  sentry local_24 [20];\n  \n  __x86_get_pc_thunk_di();\n  sentry::sentry(local_24,this);\n  if (local_24[0] != (sentry)0x0) {\n    piVar1 = *(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c);\n    pwVar2 = (wchar_t *)piVar1[5];\n    if (pwVar2 < (wchar_t *)piVar1[6]) {\n      *pwVar2 = param_1;\n      piVar1[5] = (int)(pwVar2 + 1);\n    }\n    else {\n                    /* try { // try from 00257ce9 to 00257ceb has its CatchHandler @ 00257cf5 */\n      param_1 = (**(code **)(*piVar1 + 0x34))(piVar1,param_1);\n    }\n    if (param_1 == L'\xffffffff') {\n                    /* try { // try from 00257cd4 to 00257cd8 has its CatchHandler @ 00257cf1 */\n      wios::clear((_Ios_Iostate)(this + *(int *)(*(int *)this + -0xc)));\n    }\n  }\n  sentry::~sentry(local_24);\n  return this;\n}\n\n" comment (ERROR "wostream * __thiscall std::wostream::put(wostream *this," (binary_expression "wostream * __thiscall std::wostream::put(wostream *this" (binary_expression "wostream * __thiscall" identifier * identifier) (ERROR "std::wostream::put(wostream" identifier : : identifier : : identifier ( identifier) * identifier) ,) (function_definition "wchar_t param_1)\n\n{\n  int *piVar1;\n  wchar_t *pwVar2;\n  sentry local_24 [20];\n  \n  __x86_get_pc_thunk_di();\n  sentry::sentry(local_24,this);\n  if (local_24[0] != (sentry)0x0) {\n    piVar1 = *(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c);\n    pwVar2 = (wchar_t *)piVar1[5];\n    if (pwVar2 < (wchar_t *)piVar1[6]) {\n      *pwVar2 = param_1;\n      piVar1[5] = (int)(pwVar2 + 1);\n    }\n    else {\n                    /* try { // try from 00257ce9 to 00257ceb has its CatchHandler @ 00257cf5 */\n      param_1 = (**(code **)(*piVar1 + 0x34))(piVar1,param_1);\n    }\n    if (param_1 == L'\xffffffff') {\n                    /* try { // try from 00257cd4 to 00257cd8 has its CatchHandler @ 00257cf1 */\n      wios::clear((_Ios_Iostate)(this + *(int *)(*(int *)this + -0xc)));\n    }\n  }\n  sentry::~sentry(local_24);\n  return this;\n}" type_identifier identifier (ERROR ")" )) (compound_statement "{\n  int *piVar1;\n  wchar_t *pwVar2;\n  sentry local_24 [20];\n  \n  __x86_get_pc_thunk_di();\n  sentry::sentry(local_24,this);\n  if (local_24[0] != (sentry)0x0) {\n    piVar1 = *(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c);\n    pwVar2 = (wchar_t *)piVar1[5];\n    if (pwVar2 < (wchar_t *)piVar1[6]) {\n      *pwVar2 = param_1;\n      piVar1[5] = (int)(pwVar2 + 1);\n    }\n    else {\n                    /* try { // try from 00257ce9 to 00257ceb has its CatchHandler @ 00257cf5 */\n      param_1 = (**(code **)(*piVar1 + 0x34))(piVar1,param_1);\n    }\n    if (param_1 == L'\xffffffff') {\n                    /* try { // try from 00257cd4 to 00257cd8 has its CatchHandler @ 00257cf1 */\n      wios::clear((_Ios_Iostate)(this + *(int *)(*(int *)this + -0xc)));\n    }\n  }\n  sentry::~sentry(local_24);\n  return this;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "wchar_t *pwVar2;" type_identifier (pointer_declarator "*pwVar2" * identifier) ;) (declaration "sentry local_24 [20];" type_identifier (array_declarator "local_24 [20]" identifier [ number_literal ]) ;) (expression_statement "__x86_get_pc_thunk_di();" (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( ))) ;) (labeled_statement "sentry::sentry(local_24,this);" statement_identifier : (ERROR ":" :) (expression_statement "sentry(local_24,this);" (call_expression "sentry(local_24,this)" identifier (argument_list "(local_24,this)" ( identifier , identifier ))) ;)) (if_statement "if (local_24[0] != (sentry)0x0) {\n    piVar1 = *(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c);\n    pwVar2 = (wchar_t *)piVar1[5];\n    if (pwVar2 < (wchar_t *)piVar1[6]) {\n      *pwVar2 = param_1;\n      piVar1[5] = (int)(pwVar2 + 1);\n    }\n    else {\n                    /* try { // try from 00257ce9 to 00257ceb has its CatchHandler @ 00257cf5 */\n      param_1 = (**(code **)(*piVar1 + 0x34))(piVar1,param_1);\n    }\n    if (param_1 == L'\xffffffff') {\n                    /* try { // try from 00257cd4 to 00257cd8 has its CatchHandler @ 00257cf1 */\n      wios::clear((_Ios_Iostate)(this + *(int *)(*(int *)this + -0xc)));\n    }\n  }" if (parenthesized_expression "(local_24[0] != (sentry)0x0)" ( (binary_expression "local_24[0] != (sentry)0x0" (subscript_expression "local_24[0]" identifier [ number_literal ]) != (cast_expression "(sentry)0x0" ( (type_descriptor "sentry" type_identifier) ) number_literal)) )) (compound_statement "{\n    piVar1 = *(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c);\n    pwVar2 = (wchar_t *)piVar1[5];\n    if (pwVar2 < (wchar_t *)piVar1[6]) {\n      *pwVar2 = param_1;\n      piVar1[5] = (int)(pwVar2 + 1);\n    }\n    else {\n                    /* try { // try from 00257ce9 to 00257ceb has its CatchHandler @ 00257cf5 */\n      param_1 = (**(code **)(*piVar1 + 0x34))(piVar1,param_1);\n    }\n    if (param_1 == L'\xffffffff') {\n                    /* try { // try from 00257cd4 to 00257cd8 has its CatchHandler @ 00257cf1 */\n      wios::clear((_Ios_Iostate)(this + *(int *)(*(int *)this + -0xc)));\n    }\n  }" { (expression_statement "piVar1 = *(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c);" (assignment_expression "piVar1 = *(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c)" identifier = (pointer_expression "*(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c)" * (cast_expression "(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + *(int *)(*(int *)this + -0xc) + 0x7c)" ( (binary_expression "this + *(int *)(*(int *)this + -0xc) + 0x7c" (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) ))))) + number_literal) ))))) ;) (expression_statement "pwVar2 = (wchar_t *)piVar1[5];" (assignment_expression "pwVar2 = (wchar_t *)piVar1[5]" identifier = (cast_expression "(wchar_t *)piVar1[5]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[5]" identifier [ number_literal ]))) ;) (if_statement "if (pwVar2 < (wchar_t *)piVar1[6]) {\n      *pwVar2 = param_1;\n      piVar1[5] = (int)(pwVar2 + 1);\n    }\n    else {\n                    /* try { // try from 00257ce9 to 00257ceb has its CatchHandler @ 00257cf5 */\n      param_1 = (**(code **)(*piVar1 + 0x34))(piVar1,param_1);\n    }" if (parenthesized_expression "(pwVar2 < (wchar_t *)piVar1[6])" ( (binary_expression "pwVar2 < (wchar_t *)piVar1[6]" identifier < (cast_expression "(wchar_t *)piVar1[6]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[6]" identifier [ number_literal ]))) )) (compound_statement "{\n      *pwVar2 = param_1;\n      piVar1[5] = (int)(pwVar2 + 1);\n    }" { (expression_statement "*pwVar2 = param_1;" (assignment_expression "*pwVar2 = param_1" (pointer_expression "*pwVar2" * identifier) = identifier) ;) (expression_statement "piVar1[5] = (int)(pwVar2 + 1);" (assignment_expression "piVar1[5] = (int)(pwVar2 + 1)" (subscript_expression "piVar1[5]" identifier [ number_literal ]) = (cast_expression "(int)(pwVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pwVar2 + 1)" ( (binary_expression "pwVar2 + 1" identifier + number_literal) )))) ;) }) (else_clause "else {\n                    /* try { // try from 00257ce9 to 00257ceb has its CatchHandler @ 00257cf5 */\n      param_1 = (**(code **)(*piVar1 + 0x34))(piVar1,param_1);\n    }" else (compound_statement "{\n                    /* try { // try from 00257ce9 to 00257ceb has its CatchHandler @ 00257cf5 */\n      param_1 = (**(code **)(*piVar1 + 0x34))(piVar1,param_1);\n    }" { comment (expression_statement "param_1 = (**(code **)(*piVar1 + 0x34))(piVar1,param_1);" (assignment_expression "param_1 = (**(code **)(*piVar1 + 0x34))(piVar1,param_1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x34))(piVar1,param_1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x34))" ( (pointer_expression "**(code **)(*piVar1 + 0x34)" * (pointer_expression "*(code **)(*piVar1 + 0x34)" * (cast_expression "(code **)(*piVar1 + 0x34)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x34)" ( (binary_expression "*piVar1 + 0x34" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1,param_1)" ( identifier , identifier )))) ;) }))) (if_statement "if (param_1 == L'\xffffffff') {\n                    /* try { // try from 00257cd4 to 00257cd8 has its CatchHandler @ 00257cf1 */\n      wios::clear((_Ios_Iostate)(this + *(int *)(*(int *)this + -0xc)));\n    }" if (parenthesized_expression "(param_1 == L'\xffffffff')" ( (binary_expression "param_1 == L'\xffffffff'" identifier == (char_literal "L'\xffffffff'" L' escape_sequence character character character character ')) )) (compound_statement "{\n                    /* try { // try from 00257cd4 to 00257cd8 has its CatchHandler @ 00257cf1 */\n      wios::clear((_Ios_Iostate)(this + *(int *)(*(int *)this + -0xc)));\n    }" { comment (labeled_statement "wios::clear((_Ios_Iostate)(this + *(int *)(*(int *)this + -0xc)));" statement_identifier : (ERROR ":" :) (expression_statement "clear((_Ios_Iostate)(this + *(int *)(*(int *)this + -0xc)));" (call_expression "clear((_Ios_Iostate)(this + *(int *)(*(int *)this + -0xc)))" identifier (argument_list "((_Ios_Iostate)(this + *(int *)(*(int *)this + -0xc)))" ( (call_expression "(_Ios_Iostate)(this + *(int *)(*(int *)this + -0xc))" (parenthesized_expression "(_Ios_Iostate)" ( identifier )) (argument_list "(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) ))))) ))) ))) ;)) })) })) (labeled_statement "sentry::~sentry(local_24);" statement_identifier : (ERROR ":" :) (expression_statement "~sentry(local_24);" (unary_expression "~sentry(local_24)" ~ (call_expression "sentry(local_24)" identifier (argument_list "(local_24)" ( identifier )))) ;)) (return_statement "return this;" return identifier ;) })))
(translation_unit "int * FUN_00257c50(int *param_1,int param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  char local_24 [20];\n  \n  FUN_000b484e();\n  FUN_00257a10(local_24,param_1);\n  if (local_24[0] != '\0') {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n    piVar2 = (int *)piVar1[5];\n    if (piVar2 < (int *)piVar1[6]) {\n      *piVar2 = param_2;\n      piVar1[5] = (int)(piVar2 + 1);\n    }\n    else {\n                    \n      param_2 = (**(code **)(*piVar1 + 0x34))(piVar1,param_2);\n    }\n    if (param_2 == -1) {\n      iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n                    \n      FUN_00272b10(iVar3,*(uint *)(iVar3 + 0x14) | 1);\n    }\n  }\n  FUN_00257a90(local_24);\n  return param_1;\n}\n\n" (function_definition "int * FUN_00257c50(int *param_1,int param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  char local_24 [20];\n  \n  FUN_000b484e();\n  FUN_00257a10(local_24,param_1);\n  if (local_24[0] != '\0') {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n    piVar2 = (int *)piVar1[5];\n    if (piVar2 < (int *)piVar1[6]) {\n      *piVar2 = param_2;\n      piVar1[5] = (int)(piVar2 + 1);\n    }\n    else {\n                    \n      param_2 = (**(code **)(*piVar1 + 0x34))(piVar1,param_2);\n    }\n    if (param_2 == -1) {\n      iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n                    \n      FUN_00272b10(iVar3,*(uint *)(iVar3 + 0x14) | 1);\n    }\n  }\n  FUN_00257a90(local_24);\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_00257c50(int *param_1,int param_2)" * (function_declarator "FUN_00257c50(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  char local_24 [20];\n  \n  FUN_000b484e();\n  FUN_00257a10(local_24,param_1);\n  if (local_24[0] != '\0') {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n    piVar2 = (int *)piVar1[5];\n    if (piVar2 < (int *)piVar1[6]) {\n      *piVar2 = param_2;\n      piVar1[5] = (int)(piVar2 + 1);\n    }\n    else {\n                    \n      param_2 = (**(code **)(*piVar1 + 0x34))(piVar1,param_2);\n    }\n    if (param_2 == -1) {\n      iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n                    \n      FUN_00272b10(iVar3,*(uint *)(iVar3 + 0x14) | 1);\n    }\n  }\n  FUN_00257a90(local_24);\n  return param_1;\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 "char local_24 [20];" primitive_type (array_declarator "local_24 [20]" identifier [ number_literal ]) ;) (expression_statement "FUN_000b484e();" (call_expression "FUN_000b484e()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00257a10(local_24,param_1);" (call_expression "FUN_00257a10(local_24,param_1)" identifier (argument_list "(local_24,param_1)" ( identifier , identifier ))) ;) (if_statement "if (local_24[0] != '\0') {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n    piVar2 = (int *)piVar1[5];\n    if (piVar2 < (int *)piVar1[6]) {\n      *piVar2 = param_2;\n      piVar1[5] = (int)(piVar2 + 1);\n    }\n    else {\n                    \n      param_2 = (**(code **)(*piVar1 + 0x34))(piVar1,param_2);\n    }\n    if (param_2 == -1) {\n      iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n                    \n      FUN_00272b10(iVar3,*(uint *)(iVar3 + 0x14) | 1);\n    }\n  }" if (parenthesized_expression "(local_24[0] != '\0')" ( (binary_expression "local_24[0] != '\0'" (subscript_expression "local_24[0]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n    piVar2 = (int *)piVar1[5];\n    if (piVar2 < (int *)piVar1[6]) {\n      *piVar2 = param_2;\n      piVar1[5] = (int)(piVar2 + 1);\n    }\n    else {\n                    \n      param_2 = (**(code **)(*piVar1 + 0x34))(piVar1,param_2);\n    }\n    if (param_2 == -1) {\n      iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n                    \n      FUN_00272b10(iVar3,*(uint *)(iVar3 + 0x14) | 1);\n    }\n  }" { (expression_statement "piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);" (assignment_expression "piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" identifier = (pointer_expression "*(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" * (cast_expression "(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" ( (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c" (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) ))))) + number_literal) ))))) ;) (expression_statement "piVar2 = (int *)piVar1[5];" (assignment_expression "piVar2 = (int *)piVar1[5]" identifier = (cast_expression "(int *)piVar1[5]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[5]" identifier [ number_literal ]))) ;) (if_statement "if (piVar2 < (int *)piVar1[6]) {\n      *piVar2 = param_2;\n      piVar1[5] = (int)(piVar2 + 1);\n    }\n    else {\n                    \n      param_2 = (**(code **)(*piVar1 + 0x34))(piVar1,param_2);\n    }" if (parenthesized_expression "(piVar2 < (int *)piVar1[6])" ( (binary_expression "piVar2 < (int *)piVar1[6]" identifier < (cast_expression "(int *)piVar1[6]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[6]" identifier [ number_literal ]))) )) (compound_statement "{\n      *piVar2 = param_2;\n      piVar1[5] = (int)(piVar2 + 1);\n    }" { (expression_statement "*piVar2 = param_2;" (assignment_expression "*piVar2 = param_2" (pointer_expression "*piVar2" * identifier) = identifier) ;) (expression_statement "piVar1[5] = (int)(piVar2 + 1);" (assignment_expression "piVar1[5] = (int)(piVar2 + 1)" (subscript_expression "piVar1[5]" identifier [ number_literal ]) = (cast_expression "(int)(piVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(piVar2 + 1)" ( (binary_expression "piVar2 + 1" identifier + number_literal) )))) ;) }) (else_clause "else {\n                    \n      param_2 = (**(code **)(*piVar1 + 0x34))(piVar1,param_2);\n    }" else (compound_statement "{\n                    \n      param_2 = (**(code **)(*piVar1 + 0x34))(piVar1,param_2);\n    }" { (expression_statement "param_2 = (**(code **)(*piVar1 + 0x34))(piVar1,param_2);" (assignment_expression "param_2 = (**(code **)(*piVar1 + 0x34))(piVar1,param_2)" identifier = (call_expression "(**(code **)(*piVar1 + 0x34))(piVar1,param_2)" (parenthesized_expression "(**(code **)(*piVar1 + 0x34))" ( (pointer_expression "**(code **)(*piVar1 + 0x34)" * (pointer_expression "*(code **)(*piVar1 + 0x34)" * (cast_expression "(code **)(*piVar1 + 0x34)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x34)" ( (binary_expression "*piVar1 + 0x34" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1,param_2)" ( identifier , identifier )))) ;) }))) (if_statement "if (param_2 == -1) {\n      iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n                    \n      FUN_00272b10(iVar3,*(uint *)(iVar3 + 0x14) | 1);\n    }" if (parenthesized_expression "(param_2 == -1)" ( (binary_expression "param_2 == -1" identifier == number_literal) )) (compound_statement "{\n      iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n                    \n      FUN_00272b10(iVar3,*(uint *)(iVar3 + 0x14) | 1);\n    }" { (expression_statement "iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar3 = *(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))) ;) (expression_statement "FUN_00272b10(iVar3,*(uint *)(iVar3 + 0x14) | 1);" (call_expression "FUN_00272b10(iVar3,*(uint *)(iVar3 + 0x14) | 1)" identifier (argument_list "(iVar3,*(uint *)(iVar3 + 0x14) | 1)" ( identifier , (binary_expression "*(uint *)(iVar3 + 0x14) | 1" (pointer_expression "*(uint *)(iVar3 + 0x14)" * (cast_expression "(uint *)(iVar3 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) )))) | number_literal) ))) ;) })) })) (expression_statement "FUN_00257a90(local_24);" (call_expression "FUN_00257a90(local_24)" identifier (argument_list "(local_24)" ( identifier ))) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (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 TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + 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 TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) + (cast_expression ( (type_descriptor TYPE) ) 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 "int * FUN_00257c50(int *param_1,int param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  char local_24 [20];\n  \n  FUN_000b484e();\n  FUN_00257a10(local_24,param_1);\n  if (local_24[0] != '\0') {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n    piVar2 = (int *)piVar1[5];\n    if (piVar2 < (int *)piVar1[6]) {\n      *piVar2 = param_2;\n      piVar1[5] = (int)(piVar2 + 1);\n    }\n    else {\n                    \n      param_2 = (**(code **)(*piVar1 + 0x34))(piVar1,param_2);\n    }\n    if (param_2 == -1) {\n      iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n                    \n      FUN_00272b10(iVar3,*(uint *)(iVar3 + 0x14) | 1);\n    }\n  }\n  FUN_00257a90(local_24);\n  return param_1;\n}" (primitive_type "int") (pointer_declarator "* FUN_00257c50(int *param_1,int param_2)" (* "*") (function_declarator "FUN_00257c50(int *param_1,int param_2)" (identifier "FUN_00257c50") (parameter_list "(int *param_1,int param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")")))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  char local_24 [20];\n  \n  FUN_000b484e();\n  FUN_00257a10(local_24,param_1);\n  if (local_24[0] != '\0') {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n    piVar2 = (int *)piVar1[5];\n    if (piVar2 < (int *)piVar1[6]) {\n      *piVar2 = param_2;\n      piVar1[5] = (int)(piVar2 + 1);\n    }\n    else {\n                    \n      param_2 = (**(code **)(*piVar1 + 0x34))(piVar1,param_2);\n    }\n    if (param_2 == -1) {\n      iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n                    \n      FUN_00272b10(iVar3,*(uint *)(iVar3 + 0x14) | 1);\n    }\n  }\n  FUN_00257a90(local_24);\n  return param_1;\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 "char local_24 [20];" (primitive_type "char") (array_declarator "local_24 [20]" (identifier "local_24") ([ "[") (number_literal "20") (] "]")) (; ";")) (expression_statement "FUN_000b484e();" (call_expression "FUN_000b484e()" (identifier "FUN_000b484e") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_00257a10(local_24,param_1);" (call_expression "FUN_00257a10(local_24,param_1)" (identifier "FUN_00257a10") (argument_list "(local_24,param_1)" (( "(") (identifier "local_24") (, ",") (identifier "param_1") () ")"))) (; ";")) (if_statement "if (local_24[0] != '\0') {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n    piVar2 = (int *)piVar1[5];\n    if (piVar2 < (int *)piVar1[6]) {\n      *piVar2 = param_2;\n      piVar1[5] = (int)(piVar2 + 1);\n    }\n    else {\n                    \n      param_2 = (**(code **)(*piVar1 + 0x34))(piVar1,param_2);\n    }\n    if (param_2 == -1) {\n      iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n                    \n      FUN_00272b10(iVar3,*(uint *)(iVar3 + 0x14) | 1);\n    }\n  }" (if "if") (parenthesized_expression "(local_24[0] != '\0')" (( "(") (binary_expression "local_24[0] != '\0'" (subscript_expression "local_24[0]" (identifier "local_24") ([ "[") (number_literal "0") (] "]")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n    piVar2 = (int *)piVar1[5];\n    if (piVar2 < (int *)piVar1[6]) {\n      *piVar2 = param_2;\n      piVar1[5] = (int)(piVar2 + 1);\n    }\n    else {\n                    \n      param_2 = (**(code **)(*piVar1 + 0x34))(piVar1,param_2);\n    }\n    if (param_2 == -1) {\n      iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n                    \n      FUN_00272b10(iVar3,*(uint *)(iVar3 + 0x14) | 1);\n    }\n  }" ({ "{") (expression_statement "piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);" (assignment_expression "piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" (identifier "piVar1") (= "=") (pointer_expression "*(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" (* "*") (cast_expression "(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" (( "(") (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c" (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(int *)(*param_1 + -0xc)" (* "*") (cast_expression "(int *)(*param_1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0xc)" (( "(") (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0xc")) () ")"))))) (+ "+") (number_literal "0x7c")) () ")"))))) (; ";")) (expression_statement "piVar2 = (int *)piVar1[5];" (assignment_expression "piVar2 = (int *)piVar1[5]" (identifier "piVar2") (= "=") (cast_expression "(int *)piVar1[5]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[5]" (identifier "piVar1") ([ "[") (number_literal "5") (] "]")))) (; ";")) (if_statement "if (piVar2 < (int *)piVar1[6]) {\n      *piVar2 = param_2;\n      piVar1[5] = (int)(piVar2 + 1);\n    }\n    else {\n                    \n      param_2 = (**(code **)(*piVar1 + 0x34))(piVar1,param_2);\n    }" (if "if") (parenthesized_expression "(piVar2 < (int *)piVar1[6])" (( "(") (binary_expression "piVar2 < (int *)piVar1[6]" (identifier "piVar2") (< "<") (cast_expression "(int *)piVar1[6]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[6]" (identifier "piVar1") ([ "[") (number_literal "6") (] "]")))) () ")")) (compound_statement "{\n      *piVar2 = param_2;\n      piVar1[5] = (int)(piVar2 + 1);\n    }" ({ "{") (expression_statement "*piVar2 = param_2;" (assignment_expression "*piVar2 = param_2" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "piVar1[5] = (int)(piVar2 + 1);" (assignment_expression "piVar1[5] = (int)(piVar2 + 1)" (subscript_expression "piVar1[5]" (identifier "piVar1") ([ "[") (number_literal "5") (] "]")) (= "=") (cast_expression "(int)(piVar2 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(piVar2 + 1)" (( "(") (binary_expression "piVar2 + 1" (identifier "piVar2") (+ "+") (number_literal "1")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n                    \n      param_2 = (**(code **)(*piVar1 + 0x34))(piVar1,param_2);\n    }" (else "else") (compound_statement "{\n                    \n      param_2 = (**(code **)(*piVar1 + 0x34))(piVar1,param_2);\n    }" ({ "{") (expression_statement "param_2 = (**(code **)(*piVar1 + 0x34))(piVar1,param_2);" (assignment_expression "param_2 = (**(code **)(*piVar1 + 0x34))(piVar1,param_2)" (identifier "param_2") (= "=") (call_expression "(**(code **)(*piVar1 + 0x34))(piVar1,param_2)" (parenthesized_expression "(**(code **)(*piVar1 + 0x34))" (( "(") (pointer_expression "**(code **)(*piVar1 + 0x34)" (* "*") (pointer_expression "*(code **)(*piVar1 + 0x34)" (* "*") (cast_expression "(code **)(*piVar1 + 0x34)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar1 + 0x34)" (( "(") (binary_expression "*piVar1 + 0x34" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "0x34")) () ")"))))) () ")")) (argument_list "(piVar1,param_2)" (( "(") (identifier "piVar1") (, ",") (identifier "param_2") () ")")))) (; ";")) (} "}")))) (if_statement "if (param_2 == -1) {\n      iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n                    \n      FUN_00272b10(iVar3,*(uint *)(iVar3 + 0x14) | 1);\n    }" (if "if") (parenthesized_expression "(param_2 == -1)" (( "(") (binary_expression "param_2 == -1" (identifier "param_2") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n      iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n                    \n      FUN_00272b10(iVar3,*(uint *)(iVar3 + 0x14) | 1);\n    }" ({ "{") (expression_statement "iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1" (identifier "iVar3") (= "=") (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")))) (; ";")) (expression_statement "FUN_00272b10(iVar3,*(uint *)(iVar3 + 0x14) | 1);" (call_expression "FUN_00272b10(iVar3,*(uint *)(iVar3 + 0x14) | 1)" (identifier "FUN_00272b10") (argument_list "(iVar3,*(uint *)(iVar3 + 0x14) | 1)" (( "(") (identifier "iVar3") (, ",") (binary_expression "*(uint *)(iVar3 + 0x14) | 1" (pointer_expression "*(uint *)(iVar3 + 0x14)" (* "*") (cast_expression "(uint *)(iVar3 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x14)" (( "(") (binary_expression "iVar3 + 0x14" (identifier "iVar3") (+ "+") (number_literal "0x14")) () ")")))) (| "|") (number_literal "1")) () ")"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "FUN_00257a90(local_24);" (call_expression "FUN_00257a90(local_24)" (identifier "FUN_00257a90") (argument_list "(local_24)" (( "(") (identifier "local_24") () ")"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

/* std::wostream::put(wchar_t) */

wostream * __thiscall std::wostream::put(wostream *var_2,type_1 function_1)

{
  int *piVar1;
  type_1 *var_3;
  type_2 local_24 [20];
  
  var_1();
  sentry::type_2(local_24,var_2);
  if (local_24[0] != (type_2)0x0) {
    piVar1 = *(int **)(var_2 + *(int *)(*(int *)var_2 + -0xc) + 0x7c);
    var_3 = (type_1 *)piVar1[5];
    if (var_3 < (type_1 *)piVar1[6]) {
      *var_3 = function_1;
      piVar1[5] = (int)(var_3 + 1);
    }
    else {
                    /* try { // try from 00257ce9 to 00257ceb has its CatchHandler @ 00257cf5 */
      function_1 = (**(type_3 **)(*piVar1 + 0x34))(piVar1,function_1);
    }
    if (function_1 == L'\xffffffff') {
                    /* try { // try from 00257cd4 to 00257cd8 has its CatchHandler @ 00257cf1 */
      wios::var_4((_Ios_Iostate)(var_2 + *(int *)(*(int *)var_2 + -0xc)));
    }
  }
  sentry::~type_2(local_24);
  return var_2;
}


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

int * MASKED(int *param_1,int param_2)

{
  int *piVar1;
  int *piVar2;
  int iVar3;
  char local_24 [20];
  
  FUN_000b484e();
  FUN_00257a10(local_24,param_1);
  if (local_24[0] != '\0') {
    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);
    piVar2 = (int *)piVar1[5];
    if (piVar2 < (int *)piVar1[6]) {
      *piVar2 = param_2;
      piVar1[5] = (int)(piVar2 + 1);
    }
    else {
                    /* try { // try from 00257ce9 to 00257ceb has its CatchHandler @ 00257cf5 */
      param_2 = (**(code **)(*piVar1 + 0x34))(piVar1,param_2);
    }
    if (param_2 == -1) {
      iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;
                    /* try { // try from 00257cd4 to 00257cd8 has its CatchHandler @ 00257cf1 */
      FUN_00272b10(iVar3,*(uint *)(iVar3 + 0x14) | 1);
    }
  }
  FUN_00257a90(local_24);
  return param_1;
}

