
/* std::ostream::tellp() */

undefined1  [16] __thiscall std::ostream::tellp(ostream *this)

{
  undefined1 auVar1 [16];
  
  if (((byte)this[*(long *)(*(long *)this + -0x18) + 0x20] & 5) == 0) {
                    /* try { // try from 002e574a to 002e574c has its CatchHandler @ 002e5781 */
    auVar1 = (**(code **)(**(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8) + 0x20))
                       (*(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8),0,1,0x10);
    return auVar1;
  }
  return ZEXT816(0xffffffffffffffff);
}



undefined1  [16] FUN_002e5720(long *param_1)

{
  long *plVar1;
  undefined1 auVar2 [16];
  
  if ((*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5) == 0) {
    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);
                    /* try { // try from 002e574a to 002e574c has its CatchHandler @ 002e5781 */
    auVar2 = (**(code **)(*plVar1 + 0x20))(plVar1,0,1,0x10);
    return auVar2;
  }
  return ZEXT816(0xffffffffffffffff);
}


PUSH RBX
MOV RAX,qword ptr [RDI]
MOV RSI,qword ptr [RAX + -0x18]
ADD RSI,RDI
TEST byte ptr [RSI + 0x20],0x5
JNZ 0x002e5768
MOV RBX,RDI
MOV RDI,qword ptr [RSI + 0xe8]
MOV ECX,0x10
XOR ESI,ESI
MOV EDX,0x1
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x20]
MOV EBX,EDX
SHR RDX,0x20
MOV RCX,RDX
MOV EDX,EBX
POP RBX
SHL RCX,0x20
OR RDX,RCX
RET
XOR EDX,EDX
XOR EBX,EBX
MOV RAX,-0x1
MOV RCX,RDX
MOV EDX,EBX
POP RBX
SHL RCX,0x20
OR RDX,RCX
RET
(translation_unit "undefined1  [16] FUN_002e5720(long *param_1)\n\n{\n  long *plVar1;\n  undefined1 auVar2 [16];\n  \n  if ((*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5) == 0) {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n                    /* try { // try from 002e574a to 002e574c has its CatchHandler @ 002e5781 */\n    auVar2 = (**(code **)(*plVar1 + 0x20))(plVar1,0,1,0x10);\n    return auVar2;\n  }\n  return ZEXT816(0xffffffffffffffff);\n}\n\n" (expression_statement "undefined1  [16]" (subscript_expression "undefined1  [16]" identifier [ number_literal ]) ;) (expression_statement "FUN_002e5720(long *param_1)" (call_expression "FUN_002e5720(long *param_1)" identifier (argument_list "(long *param_1)" ( (binary_expression "long *param_1" identifier * identifier) ))) ;) (compound_statement "{\n  long *plVar1;\n  undefined1 auVar2 [16];\n  \n  if ((*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5) == 0) {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n                    /* try { // try from 002e574a to 002e574c has its CatchHandler @ 002e5781 */\n    auVar2 = (**(code **)(*plVar1 + 0x20))(plVar1,0,1,0x10);\n    return auVar2;\n  }\n  return ZEXT816(0xffffffffffffffff);\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "undefined1 auVar2 [16];" type_identifier (array_declarator "auVar2 [16]" identifier [ number_literal ]) ;) (if_statement "if ((*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5) == 0) {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n                    /* try { // try from 002e574a to 002e574c has its CatchHandler @ 002e5781 */\n    auVar2 = (**(code **)(*plVar1 + 0x20))(plVar1,0,1,0x10);\n    return auVar2;\n  }" if (parenthesized_expression "((*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5) == 0)" ( (binary_expression "(*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5) == 0" (parenthesized_expression "(*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5)" ( (binary_expression "*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5" (pointer_expression "*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20)" * (cast_expression "(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20)" ( (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18) + 0x20" (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) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n                    /* try { // try from 002e574a to 002e574c has its CatchHandler @ 002e5781 */\n    auVar2 = (**(code **)(*plVar1 + 0x20))(plVar1,0,1,0x10);\n    return auVar2;\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) ))))) ;) comment (expression_statement "auVar2 = (**(code **)(*plVar1 + 0x20))(plVar1,0,1,0x10);" (assignment_expression "auVar2 = (**(code **)(*plVar1 + 0x20))(plVar1,0,1,0x10)" identifier = (call_expression "(**(code **)(*plVar1 + 0x20))(plVar1,0,1,0x10)" (parenthesized_expression "(**(code **)(*plVar1 + 0x20))" ( (pointer_expression "**(code **)(*plVar1 + 0x20)" * (pointer_expression "*(code **)(*plVar1 + 0x20)" * (cast_expression "(code **)(*plVar1 + 0x20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x20)" ( (binary_expression "*plVar1 + 0x20" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "(plVar1,0,1,0x10)" ( identifier , number_literal , number_literal , number_literal )))) ;) (return_statement "return auVar2;" return identifier ;) })) (return_statement "return ZEXT816(0xffffffffffffffff);" return (call_expression "ZEXT816(0xffffffffffffffff)" identifier (argument_list "(0xffffffffffffffff)" ( number_literal ))) ;) }))
(translation_unit "/* std::ostream::tellp() */\n\nundefined1  [16] __thiscall std::ostream::tellp(ostream *this)\n\n{\n  undefined1 auVar1 [16];\n  \n  if (((byte)this[*(long *)(*(long *)this + -0x18) + 0x20] & 5) == 0) {\n                    /* try { // try from 002e574a to 002e574c has its CatchHandler @ 002e5781 */\n    auVar1 = (**(code **)(**(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8) + 0x20))\n                       (*(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8),0,1,0x10);\n    return auVar1;\n  }\n  return ZEXT816(0xffffffffffffffff);\n}\n\n" comment (ERROR "undefined1  [16] __thiscall" (subscript_expression "undefined1  [16]" identifier [ number_literal ]) identifier) (labeled_statement "std::ostream::tellp(ostream *this)\n\n{\n  undefined1 auVar1 [16];\n  \n  if (((byte)this[*(long *)(*(long *)this + -0x18) + 0x20] & 5) == 0) {\n                    /* try { // try from 002e574a to 002e574c has its CatchHandler @ 002e5781 */\n    auVar1 = (**(code **)(**(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8) + 0x20))\n                       (*(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8),0,1,0x10);\n    return auVar1;\n  }\n  return ZEXT816(0xffffffffffffffff);\n}" statement_identifier : (ERROR ":" :) (labeled_statement "ostream::tellp(ostream *this)\n\n{\n  undefined1 auVar1 [16];\n  \n  if (((byte)this[*(long *)(*(long *)this + -0x18) + 0x20] & 5) == 0) {\n                    /* try { // try from 002e574a to 002e574c has its CatchHandler @ 002e5781 */\n    auVar1 = (**(code **)(**(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8) + 0x20))\n                       (*(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8),0,1,0x10);\n    return auVar1;\n  }\n  return ZEXT816(0xffffffffffffffff);\n}" statement_identifier : (ERROR ":tellp(ostream *this)" : (call_expression "tellp(ostream *this)" identifier (argument_list "(ostream *this)" ( (binary_expression "ostream *this" identifier * identifier) )))) (compound_statement "{\n  undefined1 auVar1 [16];\n  \n  if (((byte)this[*(long *)(*(long *)this + -0x18) + 0x20] & 5) == 0) {\n                    /* try { // try from 002e574a to 002e574c has its CatchHandler @ 002e5781 */\n    auVar1 = (**(code **)(**(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8) + 0x20))\n                       (*(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8),0,1,0x10);\n    return auVar1;\n  }\n  return ZEXT816(0xffffffffffffffff);\n}" { (declaration "undefined1 auVar1 [16];" type_identifier (array_declarator "auVar1 [16]" identifier [ number_literal ]) ;) (if_statement "if (((byte)this[*(long *)(*(long *)this + -0x18) + 0x20] & 5) == 0) {\n                    /* try { // try from 002e574a to 002e574c has its CatchHandler @ 002e5781 */\n    auVar1 = (**(code **)(**(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8) + 0x20))\n                       (*(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8),0,1,0x10);\n    return auVar1;\n  }" if (parenthesized_expression "(((byte)this[*(long *)(*(long *)this + -0x18) + 0x20] & 5) == 0)" ( (binary_expression "((byte)this[*(long *)(*(long *)this + -0x18) + 0x20] & 5) == 0" (parenthesized_expression "((byte)this[*(long *)(*(long *)this + -0x18) + 0x20] & 5)" ( (binary_expression "(byte)this[*(long *)(*(long *)this + -0x18) + 0x20] & 5" (cast_expression "(byte)this[*(long *)(*(long *)this + -0x18) + 0x20]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "this[*(long *)(*(long *)this + -0x18) + 0x20]" identifier [ (binary_expression "*(long *)(*(long *)this + -0x18) + 0x20" (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) ])) & number_literal) )) == number_literal) )) (compound_statement "{\n                    /* try { // try from 002e574a to 002e574c has its CatchHandler @ 002e5781 */\n    auVar1 = (**(code **)(**(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8) + 0x20))\n                       (*(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8),0,1,0x10);\n    return auVar1;\n  }" { comment (expression_statement "auVar1 = (**(code **)(**(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8) + 0x20))\n                       (*(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8),0,1,0x10);" (assignment_expression "auVar1 = (**(code **)(**(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8) + 0x20))\n                       (*(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8),0,1,0x10)" identifier = (call_expression "(**(code **)(**(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8) + 0x20))\n                       (*(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8),0,1,0x10)" (parenthesized_expression "(**(code **)(**(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8) + 0x20))" ( (pointer_expression "**(code **)(**(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8) + 0x20)" * (pointer_expression "*(code **)(**(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8) + 0x20)" * (cast_expression "(code **)(**(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8) + 0x20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8) + 0x20)" ( (binary_expression "**(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8) + 0x20" (pointer_expression "**(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8)" * (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) ))))) + number_literal) ))))) )) (argument_list "(*(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8),0,1,0x10)" ( (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) )))) , number_literal , number_literal , number_literal )))) ;) (return_statement "return auVar1;" return identifier ;) })) (return_statement "return ZEXT816(0xffffffffffffffff);" return (call_expression "ZEXT816(0xffffffffffffffff)" identifier (argument_list "(0xffffffffffffffff)" ( number_literal ))) ;) }))))
(translation_unit "undefined1  [16] FUN_002e5720(long *param_1)\n\n{\n  long *plVar1;\n  undefined1 auVar2 [16];\n  \n  if ((*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5) == 0) {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n                    \n    auVar2 = (**(code **)(*plVar1 + 0x20))(plVar1,0,1,0x10);\n    return auVar2;\n  }\n  return ZEXT816(0xffffffffffffffff);\n}\n\n" (expression_statement "undefined1  [16]" (subscript_expression "undefined1  [16]" identifier [ number_literal ]) ;) (expression_statement "FUN_002e5720(long *param_1)" (call_expression "FUN_002e5720(long *param_1)" identifier (argument_list "(long *param_1)" ( (binary_expression "long *param_1" identifier * identifier) ))) ;) (compound_statement "{\n  long *plVar1;\n  undefined1 auVar2 [16];\n  \n  if ((*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5) == 0) {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n                    \n    auVar2 = (**(code **)(*plVar1 + 0x20))(plVar1,0,1,0x10);\n    return auVar2;\n  }\n  return ZEXT816(0xffffffffffffffff);\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "undefined1 auVar2 [16];" type_identifier (array_declarator "auVar2 [16]" identifier [ number_literal ]) ;) (if_statement "if ((*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5) == 0) {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n                    \n    auVar2 = (**(code **)(*plVar1 + 0x20))(plVar1,0,1,0x10);\n    return auVar2;\n  }" if (parenthesized_expression "((*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5) == 0)" ( (binary_expression "(*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5) == 0" (parenthesized_expression "(*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5)" ( (binary_expression "*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5" (pointer_expression "*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20)" * (cast_expression "(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20)" ( (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18) + 0x20" (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) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n                    \n    auVar2 = (**(code **)(*plVar1 + 0x20))(plVar1,0,1,0x10);\n    return auVar2;\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) ))))) ;) (expression_statement "auVar2 = (**(code **)(*plVar1 + 0x20))(plVar1,0,1,0x10);" (assignment_expression "auVar2 = (**(code **)(*plVar1 + 0x20))(plVar1,0,1,0x10)" identifier = (call_expression "(**(code **)(*plVar1 + 0x20))(plVar1,0,1,0x10)" (parenthesized_expression "(**(code **)(*plVar1 + 0x20))" ( (pointer_expression "**(code **)(*plVar1 + 0x20)" * (pointer_expression "*(code **)(*plVar1 + 0x20)" * (cast_expression "(code **)(*plVar1 + 0x20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x20)" ( (binary_expression "*plVar1 + 0x20" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "(plVar1,0,1,0x10)" ( identifier , number_literal , number_literal , number_literal )))) ;) (return_statement "return auVar2;" return identifier ;) })) (return_statement "return ZEXT816(0xffffffffffffffff);" return (call_expression "ZEXT816(0xffffffffffffffff)" identifier (argument_list "(0xffffffffffffffff)" ( number_literal ))) ;) }))
(translation_unit (expression_statement (subscript_expression IDENT [ LIT ]) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT * IDENT) ))) ;) (compound_statement { (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (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) )))) & LIT) )) == LIT) )) (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) ))))) ;) (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 , LIT , LIT , LIT )))) ;) (return_statement return IDENT ;) })) (return_statement return (call_expression IDENT (argument_list ( LIT ))) ;) }))
(expression_statement "undefined1  [16]" (subscript_expression "undefined1  [16]" (identifier "undefined1") ([ "[") (number_literal "16") (] "]")) (; "")) (expression_statement "FUN_002e5720(long *param_1)" (call_expression "FUN_002e5720(long *param_1)" (identifier "FUN_002e5720") (argument_list "(long *param_1)" (( "(") (binary_expression "long *param_1" (identifier "long") (* "*") (identifier "param_1")) () ")"))) (; "")) (compound_statement "{\n  long *plVar1;\n  undefined1 auVar2 [16];\n  \n  if ((*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5) == 0) {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n                    \n    auVar2 = (**(code **)(*plVar1 + 0x20))(plVar1,0,1,0x10);\n    return auVar2;\n  }\n  return ZEXT816(0xffffffffffffffff);\n}" ({ "{") (declaration "long *plVar1;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar1" (* "*") (identifier "plVar1")) (; ";")) (declaration "undefined1 auVar2 [16];" (type_identifier "undefined1") (array_declarator "auVar2 [16]" (identifier "auVar2") ([ "[") (number_literal "16") (] "]")) (; ";")) (if_statement "if ((*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5) == 0) {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n                    \n    auVar2 = (**(code **)(*plVar1 + 0x20))(plVar1,0,1,0x10);\n    return auVar2;\n  }" (if "if") (parenthesized_expression "((*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5) == 0)" (( "(") (binary_expression "(*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5) == 0" (parenthesized_expression "(*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5)" (( "(") (binary_expression "*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5" (pointer_expression "*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20)" (* "*") (cast_expression "(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20)" (( "(") (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18) + 0x20" (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 "0x20")) () ")")))) (& "&") (number_literal "5")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n                    \n    auVar2 = (**(code **)(*plVar1 + 0x20))(plVar1,0,1,0x10);\n    return auVar2;\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")) () ")"))))) (; ";")) (expression_statement "auVar2 = (**(code **)(*plVar1 + 0x20))(plVar1,0,1,0x10);" (assignment_expression "auVar2 = (**(code **)(*plVar1 + 0x20))(plVar1,0,1,0x10)" (identifier "auVar2") (= "=") (call_expression "(**(code **)(*plVar1 + 0x20))(plVar1,0,1,0x10)" (parenthesized_expression "(**(code **)(*plVar1 + 0x20))" (( "(") (pointer_expression "**(code **)(*plVar1 + 0x20)" (* "*") (pointer_expression "*(code **)(*plVar1 + 0x20)" (* "*") (cast_expression "(code **)(*plVar1 + 0x20)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*plVar1 + 0x20)" (( "(") (binary_expression "*plVar1 + 0x20" (pointer_expression "*plVar1" (* "*") (identifier "plVar1")) (+ "+") (number_literal "0x20")) () ")"))))) () ")")) (argument_list "(plVar1,0,1,0x10)" (( "(") (identifier "plVar1") (, ",") (number_literal "0") (, ",") (number_literal "1") (, ",") (number_literal "0x10") () ")")))) (; ";")) (return_statement "return auVar2;" (return "return") (identifier "auVar2") (; ";")) (} "}"))) (return_statement "return ZEXT816(0xffffffffffffffff);" (return "return") (call_expression "ZEXT816(0xffffffffffffffff)" (identifier "ZEXT816") (argument_list "(0xffffffffffffffff)" (( "(") (number_literal "0xffffffffffffffff") () ")"))) (; ";")) (} "}"))

/* std::ostream::tellp() */

type_1  [16] __thiscall std::ostream::tellp(ostream *var_1)

{
  type_1 auVar1 [16];
  
  if (((type_2)var_1[*(long *)(*(long *)var_1 + -0x18) + 0x20] & 5) == 0) {
                    /* try { // try from 002e574a to 002e574c has its CatchHandler @ 002e5781 */
    auVar1 = (**(type_3 **)(**(long **)(var_1 + *(long *)(*(long *)var_1 + -0x18) + 0xe8) + 0x20))
                       (*(long **)(var_1 + *(long *)(*(long *)var_1 + -0x18) + 0xe8),0,1,0x10);
    return auVar1;
  }
  return var_2(0xffffffffffffffff);
}


(translation_unit (expression_statement (subscript_expression argument: (identifier) index: (number_literal)) (MISSING ";")) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)))) (MISSING ";")) (compound_statement (declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) 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))))) right: (number_literal))) right: (number_literal))) 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))))))) (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) (number_literal) (number_literal) (number_literal))))) (return_statement (identifier)))) (return_statement (call_expression function: (identifier) arguments: (argument_list (number_literal))))))

undefined1  [16] MASKED(long *param_1)

{
  long *plVar1;
  undefined1 auVar2 [16];
  
  if ((*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5) == 0) {
    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);
                    /* try { // try from 002e574a to 002e574c has its CatchHandler @ 002e5781 */
    auVar2 = (**(code **)(*plVar1 + 0x20))(plVar1,0,1,0x10);
    return auVar2;
  }
  return ZEXT816(0xffffffffffffffff);
}

