
/* std::filebuf::close() */

filebuf * __thiscall std::filebuf::close(filebuf *this)

{
  undefined8 uVar1;
  char cVar2;
  long lVar3;
  
  cVar2 = __basic_file<char>::is_open((__basic_file<char> *)(this + 0x68));
  if (cVar2 != '\0') {
                    /* try { // try from 004ca359 to 004ca35d has its CatchHandler @ 004ca3f3 */
    cVar2 = _M_terminate_output(this);
    *(undefined4 *)(this + 0x78) = 0;
    this[0xc0] = (filebuf)0x0;
    _M_destroy_internal_buffer(this);
    *(undefined2 *)(this + 0xa9) = 0;
    uVar1 = *(undefined8 *)(this + 0x98);
    *(undefined8 *)(this + 0x28) = 0;
    *(undefined8 *)(this + 8) = uVar1;
    *(undefined8 *)(this + 0x10) = uVar1;
    *(undefined8 *)(this + 0x18) = uVar1;
    *(undefined8 *)(this + 0x20) = 0;
    *(undefined8 *)(this + 0x30) = 0;
    *(undefined8 *)(this + 0x84) = *(undefined8 *)(this + 0x7c);
    *(undefined8 *)(this + 0x8c) = *(undefined8 *)(this + 0x7c);
    lVar3 = __basic_file<char>::close((__basic_file<char> *)(this + 0x68));
    if ((lVar3 != 0) && (cVar2 == '\x01')) {
      return this;
    }
  }
  return (filebuf *)0x0;
}



long FUN_004ca330(long param_1)

{
  undefined8 uVar1;
  char cVar2;
  long lVar3;
  
  cVar2 = FUN_0049e830(param_1 + 0x68);
  if (cVar2 != '\0') {
                    /* try { // try from 004ca359 to 004ca35d has its CatchHandler @ 004ca3f3 */
    cVar2 = FUN_004c7220(param_1);
    *(undefined4 *)(param_1 + 0x78) = 0;
    *(undefined1 *)(param_1 + 0xc0) = 0;
    FUN_004c6fe0();
    *(undefined2 *)(param_1 + 0xa9) = 0;
    uVar1 = *(undefined8 *)(param_1 + 0x98);
    *(undefined8 *)(param_1 + 0x28) = 0;
    *(undefined8 *)(param_1 + 8) = uVar1;
    *(undefined8 *)(param_1 + 0x10) = uVar1;
    *(undefined8 *)(param_1 + 0x18) = uVar1;
    *(undefined8 *)(param_1 + 0x20) = 0;
    *(undefined8 *)(param_1 + 0x30) = 0;
    *(undefined8 *)(param_1 + 0x84) = *(undefined8 *)(param_1 + 0x7c);
    *(undefined8 *)(param_1 + 0x8c) = *(undefined8 *)(param_1 + 0x7c);
    lVar3 = FUN_0049e9b0(param_1 + 0x68);
    if ((lVar3 != 0) && (cVar2 == '\x01')) {
      return param_1;
    }
  }
  return 0;
}


PUSH R12
LEA R12,[RDI + 0x68]
PUSH RBP
PUSH RBX
MOV RBX,RDI
MOV RDI,R12
SUB RSP,0x10
CALL 0x0049e830
TEST AL,AL
JZ 0x004ca3e8
MOV RDI,RBX
MOV EBP,EAX
MOV qword ptr [RSP + 0x8],RBX
CALL 0x004c7220
XOR EAX,0x1
MOV EBP,EAX
MOV RDI,qword ptr [RSP + 0x8]
MOV dword ptr [RDI + 0x78],0x0
MOV byte ptr [RDI + 0xc0],0x0
CALL 0x004c6fe0
MOV RDX,qword ptr [RSP + 0x8]
XOR EAX,EAX
MOV RDI,R12
MOV word ptr [RDX + 0xa9],AX
MOV RAX,qword ptr [RDX + 0x98]
MOV qword ptr [RDX + 0x28],0x0
MOV qword ptr [RDX + 0x8],RAX
MOV qword ptr [RDX + 0x10],RAX
MOV qword ptr [RDX + 0x18],RAX
MOV RAX,qword ptr [RDX + 0x7c]
MOV qword ptr [RDX + 0x20],0x0
MOV qword ptr [RDX + 0x30],0x0
MOV qword ptr [RDX + 0x84],RAX
MOV qword ptr [RDX + 0x8c],RAX
CALL 0x0049e9b0
TEST RAX,RAX
JZ 0x004ca3e8
MOV RAX,RBX
TEST BPL,BPL
JNZ 0x004ca3e8
ADD RSP,0x10
POP RBX
POP RBP
POP R12
RET
ADD RSP,0x10
XOR EAX,EAX
POP RBX
POP RBP
POP R12
RET
(translation_unit "long FUN_004ca330(long param_1)\n\n{\n  undefined8 uVar1;\n  char cVar2;\n  long lVar3;\n  \n  cVar2 = FUN_0049e830(param_1 + 0x68);\n  if (cVar2 != '\0') {\n                    /* try { // try from 004ca359 to 004ca35d has its CatchHandler @ 004ca3f3 */\n    cVar2 = FUN_004c7220(param_1);\n    *(undefined4 *)(param_1 + 0x78) = 0;\n    *(undefined1 *)(param_1 + 0xc0) = 0;\n    FUN_004c6fe0();\n    *(undefined2 *)(param_1 + 0xa9) = 0;\n    uVar1 = *(undefined8 *)(param_1 + 0x98);\n    *(undefined8 *)(param_1 + 0x28) = 0;\n    *(undefined8 *)(param_1 + 8) = uVar1;\n    *(undefined8 *)(param_1 + 0x10) = uVar1;\n    *(undefined8 *)(param_1 + 0x18) = uVar1;\n    *(undefined8 *)(param_1 + 0x20) = 0;\n    *(undefined8 *)(param_1 + 0x30) = 0;\n    *(undefined8 *)(param_1 + 0x84) = *(undefined8 *)(param_1 + 0x7c);\n    *(undefined8 *)(param_1 + 0x8c) = *(undefined8 *)(param_1 + 0x7c);\n    lVar3 = FUN_0049e9b0(param_1 + 0x68);\n    if ((lVar3 != 0) && (cVar2 == '\x01')) {\n      return param_1;\n    }\n  }\n  return 0;\n}\n\n" (function_definition "long FUN_004ca330(long param_1)\n\n{\n  undefined8 uVar1;\n  char cVar2;\n  long lVar3;\n  \n  cVar2 = FUN_0049e830(param_1 + 0x68);\n  if (cVar2 != '\0') {\n                    /* try { // try from 004ca359 to 004ca35d has its CatchHandler @ 004ca3f3 */\n    cVar2 = FUN_004c7220(param_1);\n    *(undefined4 *)(param_1 + 0x78) = 0;\n    *(undefined1 *)(param_1 + 0xc0) = 0;\n    FUN_004c6fe0();\n    *(undefined2 *)(param_1 + 0xa9) = 0;\n    uVar1 = *(undefined8 *)(param_1 + 0x98);\n    *(undefined8 *)(param_1 + 0x28) = 0;\n    *(undefined8 *)(param_1 + 8) = uVar1;\n    *(undefined8 *)(param_1 + 0x10) = uVar1;\n    *(undefined8 *)(param_1 + 0x18) = uVar1;\n    *(undefined8 *)(param_1 + 0x20) = 0;\n    *(undefined8 *)(param_1 + 0x30) = 0;\n    *(undefined8 *)(param_1 + 0x84) = *(undefined8 *)(param_1 + 0x7c);\n    *(undefined8 *)(param_1 + 0x8c) = *(undefined8 *)(param_1 + 0x7c);\n    lVar3 = FUN_0049e9b0(param_1 + 0x68);\n    if ((lVar3 != 0) && (cVar2 == '\x01')) {\n      return param_1;\n    }\n  }\n  return 0;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_004ca330(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  undefined8 uVar1;\n  char cVar2;\n  long lVar3;\n  \n  cVar2 = FUN_0049e830(param_1 + 0x68);\n  if (cVar2 != '\0') {\n                    /* try { // try from 004ca359 to 004ca35d has its CatchHandler @ 004ca3f3 */\n    cVar2 = FUN_004c7220(param_1);\n    *(undefined4 *)(param_1 + 0x78) = 0;\n    *(undefined1 *)(param_1 + 0xc0) = 0;\n    FUN_004c6fe0();\n    *(undefined2 *)(param_1 + 0xa9) = 0;\n    uVar1 = *(undefined8 *)(param_1 + 0x98);\n    *(undefined8 *)(param_1 + 0x28) = 0;\n    *(undefined8 *)(param_1 + 8) = uVar1;\n    *(undefined8 *)(param_1 + 0x10) = uVar1;\n    *(undefined8 *)(param_1 + 0x18) = uVar1;\n    *(undefined8 *)(param_1 + 0x20) = 0;\n    *(undefined8 *)(param_1 + 0x30) = 0;\n    *(undefined8 *)(param_1 + 0x84) = *(undefined8 *)(param_1 + 0x7c);\n    *(undefined8 *)(param_1 + 0x8c) = *(undefined8 *)(param_1 + 0x7c);\n    lVar3 = FUN_0049e9b0(param_1 + 0x68);\n    if ((lVar3 != 0) && (cVar2 == '\x01')) {\n      return param_1;\n    }\n  }\n  return 0;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (expression_statement "cVar2 = FUN_0049e830(param_1 + 0x68);" (assignment_expression "cVar2 = FUN_0049e830(param_1 + 0x68)" identifier = (call_expression "FUN_0049e830(param_1 + 0x68)" identifier (argument_list "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) ;) (if_statement "if (cVar2 != '\0') {\n                    /* try { // try from 004ca359 to 004ca35d has its CatchHandler @ 004ca3f3 */\n    cVar2 = FUN_004c7220(param_1);\n    *(undefined4 *)(param_1 + 0x78) = 0;\n    *(undefined1 *)(param_1 + 0xc0) = 0;\n    FUN_004c6fe0();\n    *(undefined2 *)(param_1 + 0xa9) = 0;\n    uVar1 = *(undefined8 *)(param_1 + 0x98);\n    *(undefined8 *)(param_1 + 0x28) = 0;\n    *(undefined8 *)(param_1 + 8) = uVar1;\n    *(undefined8 *)(param_1 + 0x10) = uVar1;\n    *(undefined8 *)(param_1 + 0x18) = uVar1;\n    *(undefined8 *)(param_1 + 0x20) = 0;\n    *(undefined8 *)(param_1 + 0x30) = 0;\n    *(undefined8 *)(param_1 + 0x84) = *(undefined8 *)(param_1 + 0x7c);\n    *(undefined8 *)(param_1 + 0x8c) = *(undefined8 *)(param_1 + 0x7c);\n    lVar3 = FUN_0049e9b0(param_1 + 0x68);\n    if ((lVar3 != 0) && (cVar2 == '\x01')) {\n      return param_1;\n    }\n  }" if (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n                    /* try { // try from 004ca359 to 004ca35d has its CatchHandler @ 004ca3f3 */\n    cVar2 = FUN_004c7220(param_1);\n    *(undefined4 *)(param_1 + 0x78) = 0;\n    *(undefined1 *)(param_1 + 0xc0) = 0;\n    FUN_004c6fe0();\n    *(undefined2 *)(param_1 + 0xa9) = 0;\n    uVar1 = *(undefined8 *)(param_1 + 0x98);\n    *(undefined8 *)(param_1 + 0x28) = 0;\n    *(undefined8 *)(param_1 + 8) = uVar1;\n    *(undefined8 *)(param_1 + 0x10) = uVar1;\n    *(undefined8 *)(param_1 + 0x18) = uVar1;\n    *(undefined8 *)(param_1 + 0x20) = 0;\n    *(undefined8 *)(param_1 + 0x30) = 0;\n    *(undefined8 *)(param_1 + 0x84) = *(undefined8 *)(param_1 + 0x7c);\n    *(undefined8 *)(param_1 + 0x8c) = *(undefined8 *)(param_1 + 0x7c);\n    lVar3 = FUN_0049e9b0(param_1 + 0x68);\n    if ((lVar3 != 0) && (cVar2 == '\x01')) {\n      return param_1;\n    }\n  }" { comment (expression_statement "cVar2 = FUN_004c7220(param_1);" (assignment_expression "cVar2 = FUN_004c7220(param_1)" identifier = (call_expression "FUN_004c7220(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x78) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x78) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x78)" * (cast_expression "(undefined4 *)(param_1 + 0x78)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x78)" ( (binary_expression "param_1 + 0x78" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)(param_1 + 0xc0) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0xc0) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0xc0)" * (cast_expression "(undefined1 *)(param_1 + 0xc0)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc0)" ( (binary_expression "param_1 + 0xc0" identifier + number_literal) )))) = number_literal) ;) (expression_statement "FUN_004c6fe0();" (call_expression "FUN_004c6fe0()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(undefined2 *)(param_1 + 0xa9) = 0;" (assignment_expression "*(undefined2 *)(param_1 + 0xa9) = 0" (pointer_expression "*(undefined2 *)(param_1 + 0xa9)" * (cast_expression "(undefined2 *)(param_1 + 0xa9)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa9)" ( (binary_expression "param_1 + 0xa9" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar1 = *(undefined8 *)(param_1 + 0x98);" (assignment_expression "uVar1 = *(undefined8 *)(param_1 + 0x98)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x98)" * (cast_expression "(undefined8 *)(param_1 + 0x98)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x98)" ( (binary_expression "param_1 + 0x98" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)(param_1 + 0x28) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0x28) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0x28)" * (cast_expression "(undefined8 *)(param_1 + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)(param_1 + 8) = uVar1;" (assignment_expression "*(undefined8 *)(param_1 + 8) = uVar1" (pointer_expression "*(undefined8 *)(param_1 + 8)" * (cast_expression "(undefined8 *)(param_1 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(param_1 + 0x10) = uVar1;" (assignment_expression "*(undefined8 *)(param_1 + 0x10) = uVar1" (pointer_expression "*(undefined8 *)(param_1 + 0x10)" * (cast_expression "(undefined8 *)(param_1 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(param_1 + 0x18) = uVar1;" (assignment_expression "*(undefined8 *)(param_1 + 0x18) = uVar1" (pointer_expression "*(undefined8 *)(param_1 + 0x18)" * (cast_expression "(undefined8 *)(param_1 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(param_1 + 0x20) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0x20) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0x20)" * (cast_expression "(undefined8 *)(param_1 + 0x20)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)(param_1 + 0x30) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0x30) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0x30)" * (cast_expression "(undefined8 *)(param_1 + 0x30)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)(param_1 + 0x84) = *(undefined8 *)(param_1 + 0x7c);" (assignment_expression "*(undefined8 *)(param_1 + 0x84) = *(undefined8 *)(param_1 + 0x7c)" (pointer_expression "*(undefined8 *)(param_1 + 0x84)" * (cast_expression "(undefined8 *)(param_1 + 0x84)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x84)" ( (binary_expression "param_1 + 0x84" identifier + number_literal) )))) = (pointer_expression "*(undefined8 *)(param_1 + 0x7c)" * (cast_expression "(undefined8 *)(param_1 + 0x7c)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x7c)" ( (binary_expression "param_1 + 0x7c" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)(param_1 + 0x8c) = *(undefined8 *)(param_1 + 0x7c);" (assignment_expression "*(undefined8 *)(param_1 + 0x8c) = *(undefined8 *)(param_1 + 0x7c)" (pointer_expression "*(undefined8 *)(param_1 + 0x8c)" * (cast_expression "(undefined8 *)(param_1 + 0x8c)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x8c)" ( (binary_expression "param_1 + 0x8c" identifier + number_literal) )))) = (pointer_expression "*(undefined8 *)(param_1 + 0x7c)" * (cast_expression "(undefined8 *)(param_1 + 0x7c)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x7c)" ( (binary_expression "param_1 + 0x7c" identifier + number_literal) ))))) ;) (expression_statement "lVar3 = FUN_0049e9b0(param_1 + 0x68);" (assignment_expression "lVar3 = FUN_0049e9b0(param_1 + 0x68)" identifier = (call_expression "FUN_0049e9b0(param_1 + 0x68)" identifier (argument_list "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) ;) (if_statement "if ((lVar3 != 0) && (cVar2 == '\x01')) {\n      return param_1;\n    }" if (parenthesized_expression "((lVar3 != 0) && (cVar2 == '\x01'))" ( (binary_expression "(lVar3 != 0) && (cVar2 == '\x01')" (parenthesized_expression "(lVar3 != 0)" ( (binary_expression "lVar3 != 0" identifier != number_literal) )) && (parenthesized_expression "(cVar2 == '\x01')" ( (binary_expression "cVar2 == '\x01'" identifier == (char_literal "'\x01'" ' escape_sequence ')) ))) )) (compound_statement "{\n      return param_1;\n    }" { (return_statement "return param_1;" return identifier ;) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* std::filebuf::close() */\n\nfilebuf * __thiscall std::filebuf::close(filebuf *this)\n\n{\n  undefined8 uVar1;\n  char cVar2;\n  long lVar3;\n  \n  cVar2 = __basic_file<char>::is_open((__basic_file<char> *)(this + 0x68));\n  if (cVar2 != '\0') {\n                    /* try { // try from 004ca359 to 004ca35d has its CatchHandler @ 004ca3f3 */\n    cVar2 = _M_terminate_output(this);\n    *(undefined4 *)(this + 0x78) = 0;\n    this[0xc0] = (filebuf)0x0;\n    _M_destroy_internal_buffer(this);\n    *(undefined2 *)(this + 0xa9) = 0;\n    uVar1 = *(undefined8 *)(this + 0x98);\n    *(undefined8 *)(this + 0x28) = 0;\n    *(undefined8 *)(this + 8) = uVar1;\n    *(undefined8 *)(this + 0x10) = uVar1;\n    *(undefined8 *)(this + 0x18) = uVar1;\n    *(undefined8 *)(this + 0x20) = 0;\n    *(undefined8 *)(this + 0x30) = 0;\n    *(undefined8 *)(this + 0x84) = *(undefined8 *)(this + 0x7c);\n    *(undefined8 *)(this + 0x8c) = *(undefined8 *)(this + 0x7c);\n    lVar3 = __basic_file<char>::close((__basic_file<char> *)(this + 0x68));\n    if ((lVar3 != 0) && (cVar2 == '\x01')) {\n      return this;\n    }\n  }\n  return (filebuf *)0x0;\n}\n\n" comment (ERROR "filebuf * __thiscall std::filebuf::close(filebuf *this)" (binary_expression "filebuf * __thiscall std::filebuf::close(filebuf *this" (binary_expression "filebuf * __thiscall" identifier * identifier) (ERROR "std::filebuf::close(filebuf" identifier : : identifier : : identifier ( identifier) * identifier) )) (compound_statement "{\n  undefined8 uVar1;\n  char cVar2;\n  long lVar3;\n  \n  cVar2 = __basic_file<char>::is_open((__basic_file<char> *)(this + 0x68));\n  if (cVar2 != '\0') {\n                    /* try { // try from 004ca359 to 004ca35d has its CatchHandler @ 004ca3f3 */\n    cVar2 = _M_terminate_output(this);\n    *(undefined4 *)(this + 0x78) = 0;\n    this[0xc0] = (filebuf)0x0;\n    _M_destroy_internal_buffer(this);\n    *(undefined2 *)(this + 0xa9) = 0;\n    uVar1 = *(undefined8 *)(this + 0x98);\n    *(undefined8 *)(this + 0x28) = 0;\n    *(undefined8 *)(this + 8) = uVar1;\n    *(undefined8 *)(this + 0x10) = uVar1;\n    *(undefined8 *)(this + 0x18) = uVar1;\n    *(undefined8 *)(this + 0x20) = 0;\n    *(undefined8 *)(this + 0x30) = 0;\n    *(undefined8 *)(this + 0x84) = *(undefined8 *)(this + 0x7c);\n    *(undefined8 *)(this + 0x8c) = *(undefined8 *)(this + 0x7c);\n    lVar3 = __basic_file<char>::close((__basic_file<char> *)(this + 0x68));\n    if ((lVar3 != 0) && (cVar2 == '\x01')) {\n      return this;\n    }\n  }\n  return (filebuf *)0x0;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (expression_statement "cVar2 = __basic_file<char>::is_open((__basic_file<char> *)(this + 0x68));" (assignment_expression "cVar2 = __basic_file<char>::is_open((__basic_file<char> *)(this + 0x68))" identifier = (binary_expression "__basic_file<char>::is_open((__basic_file<char> *)(this + 0x68))" (binary_expression "__basic_file<char" identifier < identifier) > (ERROR "::" : :) (call_expression "is_open((__basic_file<char> *)(this + 0x68))" identifier (argument_list "((__basic_file<char> *)(this + 0x68))" ( (call_expression "(__basic_file<char> *)(this + 0x68)" (parenthesized_expression "(__basic_file<char> *)" ( (binary_expression "__basic_file<char> *" (binary_expression "__basic_file<char" identifier < identifier) > (pointer_expression "*" * identifier)) )) (argument_list "(this + 0x68)" ( (binary_expression "this + 0x68" identifier + number_literal) ))) ))))) ;) (if_statement "if (cVar2 != '\0') {\n                    /* try { // try from 004ca359 to 004ca35d has its CatchHandler @ 004ca3f3 */\n    cVar2 = _M_terminate_output(this);\n    *(undefined4 *)(this + 0x78) = 0;\n    this[0xc0] = (filebuf)0x0;\n    _M_destroy_internal_buffer(this);\n    *(undefined2 *)(this + 0xa9) = 0;\n    uVar1 = *(undefined8 *)(this + 0x98);\n    *(undefined8 *)(this + 0x28) = 0;\n    *(undefined8 *)(this + 8) = uVar1;\n    *(undefined8 *)(this + 0x10) = uVar1;\n    *(undefined8 *)(this + 0x18) = uVar1;\n    *(undefined8 *)(this + 0x20) = 0;\n    *(undefined8 *)(this + 0x30) = 0;\n    *(undefined8 *)(this + 0x84) = *(undefined8 *)(this + 0x7c);\n    *(undefined8 *)(this + 0x8c) = *(undefined8 *)(this + 0x7c);\n    lVar3 = __basic_file<char>::close((__basic_file<char> *)(this + 0x68));\n    if ((lVar3 != 0) && (cVar2 == '\x01')) {\n      return this;\n    }\n  }" if (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n                    /* try { // try from 004ca359 to 004ca35d has its CatchHandler @ 004ca3f3 */\n    cVar2 = _M_terminate_output(this);\n    *(undefined4 *)(this + 0x78) = 0;\n    this[0xc0] = (filebuf)0x0;\n    _M_destroy_internal_buffer(this);\n    *(undefined2 *)(this + 0xa9) = 0;\n    uVar1 = *(undefined8 *)(this + 0x98);\n    *(undefined8 *)(this + 0x28) = 0;\n    *(undefined8 *)(this + 8) = uVar1;\n    *(undefined8 *)(this + 0x10) = uVar1;\n    *(undefined8 *)(this + 0x18) = uVar1;\n    *(undefined8 *)(this + 0x20) = 0;\n    *(undefined8 *)(this + 0x30) = 0;\n    *(undefined8 *)(this + 0x84) = *(undefined8 *)(this + 0x7c);\n    *(undefined8 *)(this + 0x8c) = *(undefined8 *)(this + 0x7c);\n    lVar3 = __basic_file<char>::close((__basic_file<char> *)(this + 0x68));\n    if ((lVar3 != 0) && (cVar2 == '\x01')) {\n      return this;\n    }\n  }" { comment (expression_statement "cVar2 = _M_terminate_output(this);" (assignment_expression "cVar2 = _M_terminate_output(this)" identifier = (call_expression "_M_terminate_output(this)" identifier (argument_list "(this)" ( identifier )))) ;) (expression_statement "*(undefined4 *)(this + 0x78) = 0;" (assignment_expression "*(undefined4 *)(this + 0x78) = 0" (pointer_expression "*(undefined4 *)(this + 0x78)" * (cast_expression "(undefined4 *)(this + 0x78)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x78)" ( (binary_expression "this + 0x78" identifier + number_literal) )))) = number_literal) ;) (expression_statement "this[0xc0] = (filebuf)0x0;" (assignment_expression "this[0xc0] = (filebuf)0x0" (subscript_expression "this[0xc0]" identifier [ number_literal ]) = (cast_expression "(filebuf)0x0" ( (type_descriptor "filebuf" type_identifier) ) number_literal)) ;) (expression_statement "_M_destroy_internal_buffer(this);" (call_expression "_M_destroy_internal_buffer(this)" identifier (argument_list "(this)" ( identifier ))) ;) (expression_statement "*(undefined2 *)(this + 0xa9) = 0;" (assignment_expression "*(undefined2 *)(this + 0xa9) = 0" (pointer_expression "*(undefined2 *)(this + 0xa9)" * (cast_expression "(undefined2 *)(this + 0xa9)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xa9)" ( (binary_expression "this + 0xa9" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar1 = *(undefined8 *)(this + 0x98);" (assignment_expression "uVar1 = *(undefined8 *)(this + 0x98)" identifier = (pointer_expression "*(undefined8 *)(this + 0x98)" * (cast_expression "(undefined8 *)(this + 0x98)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x98)" ( (binary_expression "this + 0x98" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)(this + 0x28) = 0;" (assignment_expression "*(undefined8 *)(this + 0x28) = 0" (pointer_expression "*(undefined8 *)(this + 0x28)" * (cast_expression "(undefined8 *)(this + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x28)" ( (binary_expression "this + 0x28" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)(this + 8) = uVar1;" (assignment_expression "*(undefined8 *)(this + 8) = uVar1" (pointer_expression "*(undefined8 *)(this + 8)" * (cast_expression "(undefined8 *)(this + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(this + 0x10) = uVar1;" (assignment_expression "*(undefined8 *)(this + 0x10) = uVar1" (pointer_expression "*(undefined8 *)(this + 0x10)" * (cast_expression "(undefined8 *)(this + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(this + 0x18) = uVar1;" (assignment_expression "*(undefined8 *)(this + 0x18) = uVar1" (pointer_expression "*(undefined8 *)(this + 0x18)" * (cast_expression "(undefined8 *)(this + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x18)" ( (binary_expression "this + 0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(this + 0x20) = 0;" (assignment_expression "*(undefined8 *)(this + 0x20) = 0" (pointer_expression "*(undefined8 *)(this + 0x20)" * (cast_expression "(undefined8 *)(this + 0x20)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x20)" ( (binary_expression "this + 0x20" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)(this + 0x30) = 0;" (assignment_expression "*(undefined8 *)(this + 0x30) = 0" (pointer_expression "*(undefined8 *)(this + 0x30)" * (cast_expression "(undefined8 *)(this + 0x30)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x30)" ( (binary_expression "this + 0x30" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)(this + 0x84) = *(undefined8 *)(this + 0x7c);" (assignment_expression "*(undefined8 *)(this + 0x84) = *(undefined8 *)(this + 0x7c)" (pointer_expression "*(undefined8 *)(this + 0x84)" * (cast_expression "(undefined8 *)(this + 0x84)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x84)" ( (binary_expression "this + 0x84" identifier + number_literal) )))) = (pointer_expression "*(undefined8 *)(this + 0x7c)" * (cast_expression "(undefined8 *)(this + 0x7c)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x7c)" ( (binary_expression "this + 0x7c" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)(this + 0x8c) = *(undefined8 *)(this + 0x7c);" (assignment_expression "*(undefined8 *)(this + 0x8c) = *(undefined8 *)(this + 0x7c)" (pointer_expression "*(undefined8 *)(this + 0x8c)" * (cast_expression "(undefined8 *)(this + 0x8c)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x8c)" ( (binary_expression "this + 0x8c" identifier + number_literal) )))) = (pointer_expression "*(undefined8 *)(this + 0x7c)" * (cast_expression "(undefined8 *)(this + 0x7c)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x7c)" ( (binary_expression "this + 0x7c" identifier + number_literal) ))))) ;) (expression_statement "lVar3 = __basic_file<char>::close((__basic_file<char> *)(this + 0x68));" (assignment_expression "lVar3 = __basic_file<char>::close((__basic_file<char> *)(this + 0x68))" identifier = (binary_expression "__basic_file<char>::close((__basic_file<char> *)(this + 0x68))" (binary_expression "__basic_file<char" identifier < identifier) > (ERROR "::" : :) (call_expression "close((__basic_file<char> *)(this + 0x68))" identifier (argument_list "((__basic_file<char> *)(this + 0x68))" ( (call_expression "(__basic_file<char> *)(this + 0x68)" (parenthesized_expression "(__basic_file<char> *)" ( (binary_expression "__basic_file<char> *" (binary_expression "__basic_file<char" identifier < identifier) > (pointer_expression "*" * identifier)) )) (argument_list "(this + 0x68)" ( (binary_expression "this + 0x68" identifier + number_literal) ))) ))))) ;) (if_statement "if ((lVar3 != 0) && (cVar2 == '\x01')) {\n      return this;\n    }" if (parenthesized_expression "((lVar3 != 0) && (cVar2 == '\x01'))" ( (binary_expression "(lVar3 != 0) && (cVar2 == '\x01')" (parenthesized_expression "(lVar3 != 0)" ( (binary_expression "lVar3 != 0" identifier != number_literal) )) && (parenthesized_expression "(cVar2 == '\x01')" ( (binary_expression "cVar2 == '\x01'" identifier == (char_literal "'\x01'" ' escape_sequence ')) ))) )) (compound_statement "{\n      return this;\n    }" { (return_statement "return this;" return identifier ;) })) })) (return_statement "return (filebuf *)0x0;" return (cast_expression "(filebuf *)0x0" ( (type_descriptor "filebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) }))
(translation_unit "long FUN_004ca330(long param_1)\n\n{\n  undefined8 uVar1;\n  char cVar2;\n  long lVar3;\n  \n  cVar2 = FUN_0049e830(param_1 + 0x68);\n  if (cVar2 != '\0') {\n                    \n    cVar2 = FUN_004c7220(param_1);\n    *(undefined4 *)(param_1 + 0x78) = 0;\n    *(undefined1 *)(param_1 + 0xc0) = 0;\n    FUN_004c6fe0();\n    *(undefined2 *)(param_1 + 0xa9) = 0;\n    uVar1 = *(undefined8 *)(param_1 + 0x98);\n    *(undefined8 *)(param_1 + 0x28) = 0;\n    *(undefined8 *)(param_1 + 8) = uVar1;\n    *(undefined8 *)(param_1 + 0x10) = uVar1;\n    *(undefined8 *)(param_1 + 0x18) = uVar1;\n    *(undefined8 *)(param_1 + 0x20) = 0;\n    *(undefined8 *)(param_1 + 0x30) = 0;\n    *(undefined8 *)(param_1 + 0x84) = *(undefined8 *)(param_1 + 0x7c);\n    *(undefined8 *)(param_1 + 0x8c) = *(undefined8 *)(param_1 + 0x7c);\n    lVar3 = FUN_0049e9b0(param_1 + 0x68);\n    if ((lVar3 != 0) && (cVar2 == '\x01')) {\n      return param_1;\n    }\n  }\n  return 0;\n}\n\n" (function_definition "long FUN_004ca330(long param_1)\n\n{\n  undefined8 uVar1;\n  char cVar2;\n  long lVar3;\n  \n  cVar2 = FUN_0049e830(param_1 + 0x68);\n  if (cVar2 != '\0') {\n                    \n    cVar2 = FUN_004c7220(param_1);\n    *(undefined4 *)(param_1 + 0x78) = 0;\n    *(undefined1 *)(param_1 + 0xc0) = 0;\n    FUN_004c6fe0();\n    *(undefined2 *)(param_1 + 0xa9) = 0;\n    uVar1 = *(undefined8 *)(param_1 + 0x98);\n    *(undefined8 *)(param_1 + 0x28) = 0;\n    *(undefined8 *)(param_1 + 8) = uVar1;\n    *(undefined8 *)(param_1 + 0x10) = uVar1;\n    *(undefined8 *)(param_1 + 0x18) = uVar1;\n    *(undefined8 *)(param_1 + 0x20) = 0;\n    *(undefined8 *)(param_1 + 0x30) = 0;\n    *(undefined8 *)(param_1 + 0x84) = *(undefined8 *)(param_1 + 0x7c);\n    *(undefined8 *)(param_1 + 0x8c) = *(undefined8 *)(param_1 + 0x7c);\n    lVar3 = FUN_0049e9b0(param_1 + 0x68);\n    if ((lVar3 != 0) && (cVar2 == '\x01')) {\n      return param_1;\n    }\n  }\n  return 0;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_004ca330(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  undefined8 uVar1;\n  char cVar2;\n  long lVar3;\n  \n  cVar2 = FUN_0049e830(param_1 + 0x68);\n  if (cVar2 != '\0') {\n                    \n    cVar2 = FUN_004c7220(param_1);\n    *(undefined4 *)(param_1 + 0x78) = 0;\n    *(undefined1 *)(param_1 + 0xc0) = 0;\n    FUN_004c6fe0();\n    *(undefined2 *)(param_1 + 0xa9) = 0;\n    uVar1 = *(undefined8 *)(param_1 + 0x98);\n    *(undefined8 *)(param_1 + 0x28) = 0;\n    *(undefined8 *)(param_1 + 8) = uVar1;\n    *(undefined8 *)(param_1 + 0x10) = uVar1;\n    *(undefined8 *)(param_1 + 0x18) = uVar1;\n    *(undefined8 *)(param_1 + 0x20) = 0;\n    *(undefined8 *)(param_1 + 0x30) = 0;\n    *(undefined8 *)(param_1 + 0x84) = *(undefined8 *)(param_1 + 0x7c);\n    *(undefined8 *)(param_1 + 0x8c) = *(undefined8 *)(param_1 + 0x7c);\n    lVar3 = FUN_0049e9b0(param_1 + 0x68);\n    if ((lVar3 != 0) && (cVar2 == '\x01')) {\n      return param_1;\n    }\n  }\n  return 0;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (expression_statement "cVar2 = FUN_0049e830(param_1 + 0x68);" (assignment_expression "cVar2 = FUN_0049e830(param_1 + 0x68)" identifier = (call_expression "FUN_0049e830(param_1 + 0x68)" identifier (argument_list "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) ;) (if_statement "if (cVar2 != '\0') {\n                    \n    cVar2 = FUN_004c7220(param_1);\n    *(undefined4 *)(param_1 + 0x78) = 0;\n    *(undefined1 *)(param_1 + 0xc0) = 0;\n    FUN_004c6fe0();\n    *(undefined2 *)(param_1 + 0xa9) = 0;\n    uVar1 = *(undefined8 *)(param_1 + 0x98);\n    *(undefined8 *)(param_1 + 0x28) = 0;\n    *(undefined8 *)(param_1 + 8) = uVar1;\n    *(undefined8 *)(param_1 + 0x10) = uVar1;\n    *(undefined8 *)(param_1 + 0x18) = uVar1;\n    *(undefined8 *)(param_1 + 0x20) = 0;\n    *(undefined8 *)(param_1 + 0x30) = 0;\n    *(undefined8 *)(param_1 + 0x84) = *(undefined8 *)(param_1 + 0x7c);\n    *(undefined8 *)(param_1 + 0x8c) = *(undefined8 *)(param_1 + 0x7c);\n    lVar3 = FUN_0049e9b0(param_1 + 0x68);\n    if ((lVar3 != 0) && (cVar2 == '\x01')) {\n      return param_1;\n    }\n  }" if (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n                    \n    cVar2 = FUN_004c7220(param_1);\n    *(undefined4 *)(param_1 + 0x78) = 0;\n    *(undefined1 *)(param_1 + 0xc0) = 0;\n    FUN_004c6fe0();\n    *(undefined2 *)(param_1 + 0xa9) = 0;\n    uVar1 = *(undefined8 *)(param_1 + 0x98);\n    *(undefined8 *)(param_1 + 0x28) = 0;\n    *(undefined8 *)(param_1 + 8) = uVar1;\n    *(undefined8 *)(param_1 + 0x10) = uVar1;\n    *(undefined8 *)(param_1 + 0x18) = uVar1;\n    *(undefined8 *)(param_1 + 0x20) = 0;\n    *(undefined8 *)(param_1 + 0x30) = 0;\n    *(undefined8 *)(param_1 + 0x84) = *(undefined8 *)(param_1 + 0x7c);\n    *(undefined8 *)(param_1 + 0x8c) = *(undefined8 *)(param_1 + 0x7c);\n    lVar3 = FUN_0049e9b0(param_1 + 0x68);\n    if ((lVar3 != 0) && (cVar2 == '\x01')) {\n      return param_1;\n    }\n  }" { (expression_statement "cVar2 = FUN_004c7220(param_1);" (assignment_expression "cVar2 = FUN_004c7220(param_1)" identifier = (call_expression "FUN_004c7220(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x78) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x78) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x78)" * (cast_expression "(undefined4 *)(param_1 + 0x78)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x78)" ( (binary_expression "param_1 + 0x78" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)(param_1 + 0xc0) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0xc0) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0xc0)" * (cast_expression "(undefined1 *)(param_1 + 0xc0)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc0)" ( (binary_expression "param_1 + 0xc0" identifier + number_literal) )))) = number_literal) ;) (expression_statement "FUN_004c6fe0();" (call_expression "FUN_004c6fe0()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(undefined2 *)(param_1 + 0xa9) = 0;" (assignment_expression "*(undefined2 *)(param_1 + 0xa9) = 0" (pointer_expression "*(undefined2 *)(param_1 + 0xa9)" * (cast_expression "(undefined2 *)(param_1 + 0xa9)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa9)" ( (binary_expression "param_1 + 0xa9" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar1 = *(undefined8 *)(param_1 + 0x98);" (assignment_expression "uVar1 = *(undefined8 *)(param_1 + 0x98)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x98)" * (cast_expression "(undefined8 *)(param_1 + 0x98)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x98)" ( (binary_expression "param_1 + 0x98" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)(param_1 + 0x28) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0x28) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0x28)" * (cast_expression "(undefined8 *)(param_1 + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)(param_1 + 8) = uVar1;" (assignment_expression "*(undefined8 *)(param_1 + 8) = uVar1" (pointer_expression "*(undefined8 *)(param_1 + 8)" * (cast_expression "(undefined8 *)(param_1 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(param_1 + 0x10) = uVar1;" (assignment_expression "*(undefined8 *)(param_1 + 0x10) = uVar1" (pointer_expression "*(undefined8 *)(param_1 + 0x10)" * (cast_expression "(undefined8 *)(param_1 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(param_1 + 0x18) = uVar1;" (assignment_expression "*(undefined8 *)(param_1 + 0x18) = uVar1" (pointer_expression "*(undefined8 *)(param_1 + 0x18)" * (cast_expression "(undefined8 *)(param_1 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(param_1 + 0x20) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0x20) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0x20)" * (cast_expression "(undefined8 *)(param_1 + 0x20)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)(param_1 + 0x30) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0x30) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0x30)" * (cast_expression "(undefined8 *)(param_1 + 0x30)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)(param_1 + 0x84) = *(undefined8 *)(param_1 + 0x7c);" (assignment_expression "*(undefined8 *)(param_1 + 0x84) = *(undefined8 *)(param_1 + 0x7c)" (pointer_expression "*(undefined8 *)(param_1 + 0x84)" * (cast_expression "(undefined8 *)(param_1 + 0x84)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x84)" ( (binary_expression "param_1 + 0x84" identifier + number_literal) )))) = (pointer_expression "*(undefined8 *)(param_1 + 0x7c)" * (cast_expression "(undefined8 *)(param_1 + 0x7c)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x7c)" ( (binary_expression "param_1 + 0x7c" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)(param_1 + 0x8c) = *(undefined8 *)(param_1 + 0x7c);" (assignment_expression "*(undefined8 *)(param_1 + 0x8c) = *(undefined8 *)(param_1 + 0x7c)" (pointer_expression "*(undefined8 *)(param_1 + 0x8c)" * (cast_expression "(undefined8 *)(param_1 + 0x8c)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x8c)" ( (binary_expression "param_1 + 0x8c" identifier + number_literal) )))) = (pointer_expression "*(undefined8 *)(param_1 + 0x7c)" * (cast_expression "(undefined8 *)(param_1 + 0x7c)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x7c)" ( (binary_expression "param_1 + 0x7c" identifier + number_literal) ))))) ;) (expression_statement "lVar3 = FUN_0049e9b0(param_1 + 0x68);" (assignment_expression "lVar3 = FUN_0049e9b0(param_1 + 0x68)" identifier = (call_expression "FUN_0049e9b0(param_1 + 0x68)" identifier (argument_list "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) ;) (if_statement "if ((lVar3 != 0) && (cVar2 == '\x01')) {\n      return param_1;\n    }" if (parenthesized_expression "((lVar3 != 0) && (cVar2 == '\x01'))" ( (binary_expression "(lVar3 != 0) && (cVar2 == '\x01')" (parenthesized_expression "(lVar3 != 0)" ( (binary_expression "lVar3 != 0" identifier != number_literal) )) && (parenthesized_expression "(cVar2 == '\x01')" ( (binary_expression "cVar2 == '\x01'" identifier == (char_literal "'\x01'" ' escape_sequence ')) ))) )) (compound_statement "{\n      return param_1;\n    }" { (return_statement "return param_1;" return identifier ;) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition (sized_type_specifier long) (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) ))) )) (compound_statement { (return_statement return IDENT ;) })) })) (return_statement return LIT ;) })))
(function_definition "long FUN_004ca330(long param_1)\n\n{\n  undefined8 uVar1;\n  char cVar2;\n  long lVar3;\n  \n  cVar2 = FUN_0049e830(param_1 + 0x68);\n  if (cVar2 != '\0') {\n                    \n    cVar2 = FUN_004c7220(param_1);\n    *(undefined4 *)(param_1 + 0x78) = 0;\n    *(undefined1 *)(param_1 + 0xc0) = 0;\n    FUN_004c6fe0();\n    *(undefined2 *)(param_1 + 0xa9) = 0;\n    uVar1 = *(undefined8 *)(param_1 + 0x98);\n    *(undefined8 *)(param_1 + 0x28) = 0;\n    *(undefined8 *)(param_1 + 8) = uVar1;\n    *(undefined8 *)(param_1 + 0x10) = uVar1;\n    *(undefined8 *)(param_1 + 0x18) = uVar1;\n    *(undefined8 *)(param_1 + 0x20) = 0;\n    *(undefined8 *)(param_1 + 0x30) = 0;\n    *(undefined8 *)(param_1 + 0x84) = *(undefined8 *)(param_1 + 0x7c);\n    *(undefined8 *)(param_1 + 0x8c) = *(undefined8 *)(param_1 + 0x7c);\n    lVar3 = FUN_0049e9b0(param_1 + 0x68);\n    if ((lVar3 != 0) && (cVar2 == '\x01')) {\n      return param_1;\n    }\n  }\n  return 0;\n}" (sized_type_specifier "long" (long "long")) (function_declarator "FUN_004ca330(long param_1)" (identifier "FUN_004ca330") (parameter_list "(long param_1)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined8 uVar1;\n  char cVar2;\n  long lVar3;\n  \n  cVar2 = FUN_0049e830(param_1 + 0x68);\n  if (cVar2 != '\0') {\n                    \n    cVar2 = FUN_004c7220(param_1);\n    *(undefined4 *)(param_1 + 0x78) = 0;\n    *(undefined1 *)(param_1 + 0xc0) = 0;\n    FUN_004c6fe0();\n    *(undefined2 *)(param_1 + 0xa9) = 0;\n    uVar1 = *(undefined8 *)(param_1 + 0x98);\n    *(undefined8 *)(param_1 + 0x28) = 0;\n    *(undefined8 *)(param_1 + 8) = uVar1;\n    *(undefined8 *)(param_1 + 0x10) = uVar1;\n    *(undefined8 *)(param_1 + 0x18) = uVar1;\n    *(undefined8 *)(param_1 + 0x20) = 0;\n    *(undefined8 *)(param_1 + 0x30) = 0;\n    *(undefined8 *)(param_1 + 0x84) = *(undefined8 *)(param_1 + 0x7c);\n    *(undefined8 *)(param_1 + 0x8c) = *(undefined8 *)(param_1 + 0x7c);\n    lVar3 = FUN_0049e9b0(param_1 + 0x68);\n    if ((lVar3 != 0) && (cVar2 == '\x01')) {\n      return param_1;\n    }\n  }\n  return 0;\n}" ({ "{") (declaration "undefined8 uVar1;" (type_identifier "undefined8") (identifier "uVar1") (; ";")) (declaration "char cVar2;" (primitive_type "char") (identifier "cVar2") (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (expression_statement "cVar2 = FUN_0049e830(param_1 + 0x68);" (assignment_expression "cVar2 = FUN_0049e830(param_1 + 0x68)" (identifier "cVar2") (= "=") (call_expression "FUN_0049e830(param_1 + 0x68)" (identifier "FUN_0049e830") (argument_list "(param_1 + 0x68)" (( "(") (binary_expression "param_1 + 0x68" (identifier "param_1") (+ "+") (number_literal "0x68")) () ")")))) (; ";")) (if_statement "if (cVar2 != '\0') {\n                    \n    cVar2 = FUN_004c7220(param_1);\n    *(undefined4 *)(param_1 + 0x78) = 0;\n    *(undefined1 *)(param_1 + 0xc0) = 0;\n    FUN_004c6fe0();\n    *(undefined2 *)(param_1 + 0xa9) = 0;\n    uVar1 = *(undefined8 *)(param_1 + 0x98);\n    *(undefined8 *)(param_1 + 0x28) = 0;\n    *(undefined8 *)(param_1 + 8) = uVar1;\n    *(undefined8 *)(param_1 + 0x10) = uVar1;\n    *(undefined8 *)(param_1 + 0x18) = uVar1;\n    *(undefined8 *)(param_1 + 0x20) = 0;\n    *(undefined8 *)(param_1 + 0x30) = 0;\n    *(undefined8 *)(param_1 + 0x84) = *(undefined8 *)(param_1 + 0x7c);\n    *(undefined8 *)(param_1 + 0x8c) = *(undefined8 *)(param_1 + 0x7c);\n    lVar3 = FUN_0049e9b0(param_1 + 0x68);\n    if ((lVar3 != 0) && (cVar2 == '\x01')) {\n      return param_1;\n    }\n  }" (if "if") (parenthesized_expression "(cVar2 != '\0')" (( "(") (binary_expression "cVar2 != '\0'" (identifier "cVar2") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n                    \n    cVar2 = FUN_004c7220(param_1);\n    *(undefined4 *)(param_1 + 0x78) = 0;\n    *(undefined1 *)(param_1 + 0xc0) = 0;\n    FUN_004c6fe0();\n    *(undefined2 *)(param_1 + 0xa9) = 0;\n    uVar1 = *(undefined8 *)(param_1 + 0x98);\n    *(undefined8 *)(param_1 + 0x28) = 0;\n    *(undefined8 *)(param_1 + 8) = uVar1;\n    *(undefined8 *)(param_1 + 0x10) = uVar1;\n    *(undefined8 *)(param_1 + 0x18) = uVar1;\n    *(undefined8 *)(param_1 + 0x20) = 0;\n    *(undefined8 *)(param_1 + 0x30) = 0;\n    *(undefined8 *)(param_1 + 0x84) = *(undefined8 *)(param_1 + 0x7c);\n    *(undefined8 *)(param_1 + 0x8c) = *(undefined8 *)(param_1 + 0x7c);\n    lVar3 = FUN_0049e9b0(param_1 + 0x68);\n    if ((lVar3 != 0) && (cVar2 == '\x01')) {\n      return param_1;\n    }\n  }" ({ "{") (expression_statement "cVar2 = FUN_004c7220(param_1);" (assignment_expression "cVar2 = FUN_004c7220(param_1)" (identifier "cVar2") (= "=") (call_expression "FUN_004c7220(param_1)" (identifier "FUN_004c7220") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x78) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x78) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x78)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x78)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x78)" (( "(") (binary_expression "param_1 + 0x78" (identifier "param_1") (+ "+") (number_literal "0x78")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined1 *)(param_1 + 0xc0) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0xc0) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0xc0)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0xc0)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc0)" (( "(") (binary_expression "param_1 + 0xc0" (identifier "param_1") (+ "+") (number_literal "0xc0")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_004c6fe0();" (call_expression "FUN_004c6fe0()" (identifier "FUN_004c6fe0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "*(undefined2 *)(param_1 + 0xa9) = 0;" (assignment_expression "*(undefined2 *)(param_1 + 0xa9) = 0" (pointer_expression "*(undefined2 *)(param_1 + 0xa9)" (* "*") (cast_expression "(undefined2 *)(param_1 + 0xa9)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xa9)" (( "(") (binary_expression "param_1 + 0xa9" (identifier "param_1") (+ "+") (number_literal "0xa9")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar1 = *(undefined8 *)(param_1 + 0x98);" (assignment_expression "uVar1 = *(undefined8 *)(param_1 + 0x98)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined8 *)(param_1 + 0x98)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x98)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x98)" (( "(") (binary_expression "param_1 + 0x98" (identifier "param_1") (+ "+") (number_literal "0x98")) () ")"))))) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 0x28) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0x28) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0x28)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x28)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 8) = uVar1;" (assignment_expression "*(undefined8 *)(param_1 + 8) = uVar1" (pointer_expression "*(undefined8 *)(param_1 + 8)" (* "*") (cast_expression "(undefined8 *)(param_1 + 8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 0x10) = uVar1;" (assignment_expression "*(undefined8 *)(param_1 + 0x10) = uVar1" (pointer_expression "*(undefined8 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 0x18) = uVar1;" (assignment_expression "*(undefined8 *)(param_1 + 0x18) = uVar1" (pointer_expression "*(undefined8 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 0x20) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0x20) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0x20)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x20)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 0x30) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0x30) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0x30)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x30)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x30)" (( "(") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 0x84) = *(undefined8 *)(param_1 + 0x7c);" (assignment_expression "*(undefined8 *)(param_1 + 0x84) = *(undefined8 *)(param_1 + 0x7c)" (pointer_expression "*(undefined8 *)(param_1 + 0x84)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x84)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x84)" (( "(") (binary_expression "param_1 + 0x84" (identifier "param_1") (+ "+") (number_literal "0x84")) () ")")))) (= "=") (pointer_expression "*(undefined8 *)(param_1 + 0x7c)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x7c)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x7c)" (( "(") (binary_expression "param_1 + 0x7c" (identifier "param_1") (+ "+") (number_literal "0x7c")) () ")"))))) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 0x8c) = *(undefined8 *)(param_1 + 0x7c);" (assignment_expression "*(undefined8 *)(param_1 + 0x8c) = *(undefined8 *)(param_1 + 0x7c)" (pointer_expression "*(undefined8 *)(param_1 + 0x8c)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x8c)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x8c)" (( "(") (binary_expression "param_1 + 0x8c" (identifier "param_1") (+ "+") (number_literal "0x8c")) () ")")))) (= "=") (pointer_expression "*(undefined8 *)(param_1 + 0x7c)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x7c)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x7c)" (( "(") (binary_expression "param_1 + 0x7c" (identifier "param_1") (+ "+") (number_literal "0x7c")) () ")"))))) (; ";")) (expression_statement "lVar3 = FUN_0049e9b0(param_1 + 0x68);" (assignment_expression "lVar3 = FUN_0049e9b0(param_1 + 0x68)" (identifier "lVar3") (= "=") (call_expression "FUN_0049e9b0(param_1 + 0x68)" (identifier "FUN_0049e9b0") (argument_list "(param_1 + 0x68)" (( "(") (binary_expression "param_1 + 0x68" (identifier "param_1") (+ "+") (number_literal "0x68")) () ")")))) (; ";")) (if_statement "if ((lVar3 != 0) && (cVar2 == '\x01')) {\n      return param_1;\n    }" (if "if") (parenthesized_expression "((lVar3 != 0) && (cVar2 == '\x01'))" (( "(") (binary_expression "(lVar3 != 0) && (cVar2 == '\x01')" (parenthesized_expression "(lVar3 != 0)" (( "(") (binary_expression "lVar3 != 0" (identifier "lVar3") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(cVar2 == '\x01')" (( "(") (binary_expression "cVar2 == '\x01'" (identifier "cVar2") (== "==") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) () ")"))) () ")")) (compound_statement "{\n      return param_1;\n    }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* std::filebuf::close() */

type_3 * __thiscall std::type_3::var_8(type_3 *var_4)

{
  type_1 uVar1;
  char var_5;
  long var_9;
  
  var_5 = var_1<var_2>::var_3((var_1<var_2> *)(var_4 + 0x68));
  if (var_5 != '\0') {
                    /* try { // try from 004ca359 to 004ca35d has its CatchHandler @ 004ca3f3 */
    var_5 = var_6(var_4);
    *(type_2 *)(var_4 + 0x78) = 0;
    var_4[0xc0] = (type_3)0x0;
    var_7(var_4);
    *(type_4 *)(var_4 + 0xa9) = 0;
    uVar1 = *(type_1 *)(var_4 + 0x98);
    *(type_1 *)(var_4 + 0x28) = 0;
    *(type_1 *)(var_4 + 8) = uVar1;
    *(type_1 *)(var_4 + 0x10) = uVar1;
    *(type_1 *)(var_4 + 0x18) = uVar1;
    *(type_1 *)(var_4 + 0x20) = 0;
    *(type_1 *)(var_4 + 0x30) = 0;
    *(type_1 *)(var_4 + 0x84) = *(type_1 *)(var_4 + 0x7c);
    *(type_1 *)(var_4 + 0x8c) = *(type_1 *)(var_4 + 0x7c);
    var_9 = var_1<var_2>::var_8((var_1<var_2> *)(var_4 + 0x68));
    if ((var_9 != 0) && (var_5 == '\x01')) {
      return var_4;
    }
  }
  return (type_3 *)0x0;
}


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

long MASKED(long param_1)

{
  undefined8 uVar1;
  char cVar2;
  long lVar3;
  
  cVar2 = FUN_0049e830(param_1 + 0x68);
  if (cVar2 != '\0') {
                    /* try { // try from 004ca359 to 004ca35d has its CatchHandler @ 004ca3f3 */
    cVar2 = FUN_004c7220(param_1);
    *(undefined4 *)(param_1 + 0x78) = 0;
    *(undefined1 *)(param_1 + 0xc0) = 0;
    FUN_004c6fe0();
    *(undefined2 *)(param_1 + 0xa9) = 0;
    uVar1 = *(undefined8 *)(param_1 + 0x98);
    *(undefined8 *)(param_1 + 0x28) = 0;
    *(undefined8 *)(param_1 + 8) = uVar1;
    *(undefined8 *)(param_1 + 0x10) = uVar1;
    *(undefined8 *)(param_1 + 0x18) = uVar1;
    *(undefined8 *)(param_1 + 0x20) = 0;
    *(undefined8 *)(param_1 + 0x30) = 0;
    *(undefined8 *)(param_1 + 0x84) = *(undefined8 *)(param_1 + 0x7c);
    *(undefined8 *)(param_1 + 0x8c) = *(undefined8 *)(param_1 + 0x7c);
    lVar3 = FUN_0049e9b0(param_1 + 0x68);
    if ((lVar3 != 0) && (cVar2 == '\x01')) {
      return param_1;
    }
  }
  return 0;
}

