
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::wios::fill() const */

undefined4 __thiscall std::wios::fill(wios *this)

{
  int *piVar1;
  undefined4 uVar2;
  
  if (this[0x78] != (wios)0x0) {
    return *(undefined4 *)(this + 0x74);
  }
  piVar1 = *(int **)(this + 0x80);
  if (piVar1 != (int *)0x0) {
    uVar2 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);
    this[0x78] = (wios)0x1;
    *(undefined4 *)(this + 0x74) = uVar2;
    return uVar2;
  }
                    /* WARNING: Subroutine does not return */
  __throw_bad_cast();
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

undefined4 FUN_00227aa0(int param_1)

{
  int *piVar1;
  undefined4 uVar2;
  
  if (*(char *)(param_1 + 0x78) != '\0') {
    return *(undefined4 *)(param_1 + 0x74);
  }
  piVar1 = *(int **)(param_1 + 0x80);
  if (piVar1 != (int *)0x0) {
    uVar2 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);
    *(undefined1 *)(param_1 + 0x78) = 1;
    *(undefined4 *)(param_1 + 0x74) = uVar2;
    return uVar2;
  }
                    /* WARNING: Subroutine does not return */
  FUN_002428a0(0x227aa7);
}


PUSH ESI
PUSH EBX
CALL 0x00036db0
ADD EBX,0x182559
SUB ESP,0x4
MOV ESI,dword ptr [ESP + 0x10]
CMP byte ptr [ESI + 0x78],0x0
JZ 0x00227ac8
MOV EAX,dword ptr [ESI + 0x74]
ADD ESP,0x4
POP EBX
POP ESI
RET
MOV EAX,dword ptr [ESI + 0x80]
TEST EAX,EAX
JZ 0x00227aed
SUB ESP,0x8
MOV EDX,dword ptr [EAX]
PUSH 0x20
PUSH EAX
CALL dword ptr [EDX + 0x28]
MOV byte ptr [ESI + 0x78],0x1
MOV dword ptr [ESI + 0x74],EAX
ADD ESP,0x10
ADD ESP,0x4
POP EBX
POP ESI
RET
CALL 0x002428a0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_00227aa0(int param_1)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  \n  if (*(char *)(param_1 + 0x78) != '\0') {\n    return *(undefined4 *)(param_1 + 0x74);\n  }\n  piVar1 = *(int **)(param_1 + 0x80);\n  if (piVar1 != (int *)0x0) {\n    uVar2 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);\n    *(undefined1 *)(param_1 + 0x78) = 1;\n    *(undefined4 *)(param_1 + 0x74) = uVar2;\n    return uVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_002428a0(0x227aa7);\n}\n\n" comment (function_definition "undefined4 FUN_00227aa0(int param_1)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  \n  if (*(char *)(param_1 + 0x78) != '\0') {\n    return *(undefined4 *)(param_1 + 0x74);\n  }\n  piVar1 = *(int **)(param_1 + 0x80);\n  if (piVar1 != (int *)0x0) {\n    uVar2 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);\n    *(undefined1 *)(param_1 + 0x78) = 1;\n    *(undefined4 *)(param_1 + 0x74) = uVar2;\n    return uVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_002428a0(0x227aa7);\n}" type_identifier (function_declarator "FUN_00227aa0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  undefined4 uVar2;\n  \n  if (*(char *)(param_1 + 0x78) != '\0') {\n    return *(undefined4 *)(param_1 + 0x74);\n  }\n  piVar1 = *(int **)(param_1 + 0x80);\n  if (piVar1 != (int *)0x0) {\n    uVar2 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);\n    *(undefined1 *)(param_1 + 0x78) = 1;\n    *(undefined4 *)(param_1 + 0x74) = uVar2;\n    return uVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_002428a0(0x227aa7);\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if (*(char *)(param_1 + 0x78) != '\0') {\n    return *(undefined4 *)(param_1 + 0x74);\n  }" if (parenthesized_expression "(*(char *)(param_1 + 0x78) != '\0')" ( (binary_expression "*(char *)(param_1 + 0x78) != '\0'" (pointer_expression "*(char *)(param_1 + 0x78)" * (cast_expression "(char *)(param_1 + 0x78)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x78)" ( (binary_expression "param_1 + 0x78" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    return *(undefined4 *)(param_1 + 0x74);\n  }" { (return_statement "return *(undefined4 *)(param_1 + 0x74);" return (pointer_expression "*(undefined4 *)(param_1 + 0x74)" * (cast_expression "(undefined4 *)(param_1 + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) )))) ;) })) (expression_statement "piVar1 = *(int **)(param_1 + 0x80);" (assignment_expression "piVar1 = *(int **)(param_1 + 0x80)" identifier = (pointer_expression "*(int **)(param_1 + 0x80)" * (cast_expression "(int **)(param_1 + 0x80)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x80)" ( (binary_expression "param_1 + 0x80" identifier + number_literal) ))))) ;) (if_statement "if (piVar1 != (int *)0x0) {\n    uVar2 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);\n    *(undefined1 *)(param_1 + 0x78) = 1;\n    *(undefined4 *)(param_1 + 0x74) = uVar2;\n    return uVar2;\n  }" if (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar2 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);\n    *(undefined1 *)(param_1 + 0x78) = 1;\n    *(undefined4 *)(param_1 + 0x74) = uVar2;\n    return uVar2;\n  }" { (expression_statement "uVar2 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);" (assignment_expression "uVar2 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20)" identifier = (call_expression "(**(code **)(*piVar1 + 0x28))(piVar1,0x20)" (parenthesized_expression "(**(code **)(*piVar1 + 0x28))" ( (pointer_expression "**(code **)(*piVar1 + 0x28)" * (pointer_expression "*(code **)(*piVar1 + 0x28)" * (cast_expression "(code **)(*piVar1 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x28)" ( (binary_expression "*piVar1 + 0x28" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1,0x20)" ( identifier , number_literal )))) ;) (expression_statement "*(undefined1 *)(param_1 + 0x78) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 0x78) = 1" (pointer_expression "*(undefined1 *)(param_1 + 0x78)" * (cast_expression "(undefined1 *)(param_1 + 0x78)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x78)" ( (binary_expression "param_1 + 0x78" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x74) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 0x74) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 0x74)" * (cast_expression "(undefined4 *)(param_1 + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) )))) = identifier) ;) (return_statement "return uVar2;" return identifier ;) })) comment (expression_statement "FUN_002428a0(0x227aa7);" (call_expression "FUN_002428a0(0x227aa7)" identifier (argument_list "(0x227aa7)" ( number_literal ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::wios::fill() const */\n\nundefined4 __thiscall std::wios::fill(wios *this)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  \n  if (this[0x78] != (wios)0x0) {\n    return *(undefined4 *)(this + 0x74);\n  }\n  piVar1 = *(int **)(this + 0x80);\n  if (piVar1 != (int *)0x0) {\n    uVar2 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);\n    this[0x78] = (wios)0x1;\n    *(undefined4 *)(this + 0x74) = uVar2;\n    return uVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_bad_cast();\n}\n\n" comment comment (function_definition "undefined4 __thiscall std::wios::fill(wios *this)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  \n  if (this[0x78] != (wios)0x0) {\n    return *(undefined4 *)(this + 0x74);\n  }\n  piVar1 = *(int **)(this + 0x80);\n  if (piVar1 != (int *)0x0) {\n    uVar2 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);\n    this[0x78] = (wios)0x1;\n    *(undefined4 *)(this + 0x74) = uVar2;\n    return uVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_bad_cast();\n}" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::wios::" identifier : : identifier : :) (function_declarator "fill(wios *this)" identifier (parameter_list "(wios *this)" ( (parameter_declaration "wios *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  undefined4 uVar2;\n  \n  if (this[0x78] != (wios)0x0) {\n    return *(undefined4 *)(this + 0x74);\n  }\n  piVar1 = *(int **)(this + 0x80);\n  if (piVar1 != (int *)0x0) {\n    uVar2 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);\n    this[0x78] = (wios)0x1;\n    *(undefined4 *)(this + 0x74) = uVar2;\n    return uVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_bad_cast();\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if (this[0x78] != (wios)0x0) {\n    return *(undefined4 *)(this + 0x74);\n  }" if (parenthesized_expression "(this[0x78] != (wios)0x0)" ( (binary_expression "this[0x78] != (wios)0x0" (subscript_expression "this[0x78]" identifier [ number_literal ]) != (cast_expression "(wios)0x0" ( (type_descriptor "wios" type_identifier) ) number_literal)) )) (compound_statement "{\n    return *(undefined4 *)(this + 0x74);\n  }" { (return_statement "return *(undefined4 *)(this + 0x74);" return (pointer_expression "*(undefined4 *)(this + 0x74)" * (cast_expression "(undefined4 *)(this + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x74)" ( (binary_expression "this + 0x74" identifier + number_literal) )))) ;) })) (expression_statement "piVar1 = *(int **)(this + 0x80);" (assignment_expression "piVar1 = *(int **)(this + 0x80)" identifier = (pointer_expression "*(int **)(this + 0x80)" * (cast_expression "(int **)(this + 0x80)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x80)" ( (binary_expression "this + 0x80" identifier + number_literal) ))))) ;) (if_statement "if (piVar1 != (int *)0x0) {\n    uVar2 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);\n    this[0x78] = (wios)0x1;\n    *(undefined4 *)(this + 0x74) = uVar2;\n    return uVar2;\n  }" if (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar2 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);\n    this[0x78] = (wios)0x1;\n    *(undefined4 *)(this + 0x74) = uVar2;\n    return uVar2;\n  }" { (expression_statement "uVar2 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);" (assignment_expression "uVar2 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20)" identifier = (call_expression "(**(code **)(*piVar1 + 0x28))(piVar1,0x20)" (parenthesized_expression "(**(code **)(*piVar1 + 0x28))" ( (pointer_expression "**(code **)(*piVar1 + 0x28)" * (pointer_expression "*(code **)(*piVar1 + 0x28)" * (cast_expression "(code **)(*piVar1 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x28)" ( (binary_expression "*piVar1 + 0x28" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1,0x20)" ( identifier , number_literal )))) ;) (expression_statement "this[0x78] = (wios)0x1;" (assignment_expression "this[0x78] = (wios)0x1" (subscript_expression "this[0x78]" identifier [ number_literal ]) = (cast_expression "(wios)0x1" ( (type_descriptor "wios" type_identifier) ) number_literal)) ;) (expression_statement "*(undefined4 *)(this + 0x74) = uVar2;" (assignment_expression "*(undefined4 *)(this + 0x74) = uVar2" (pointer_expression "*(undefined4 *)(this + 0x74)" * (cast_expression "(undefined4 *)(this + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x74)" ( (binary_expression "this + 0x74" identifier + number_literal) )))) = identifier) ;) (return_statement "return uVar2;" return identifier ;) })) comment (expression_statement "__throw_bad_cast();" (call_expression "__throw_bad_cast()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "undefined4 FUN_00227aa0(int param_1)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  \n  if (*(char *)(param_1 + 0x78) != '\0') {\n    return *(undefined4 *)(param_1 + 0x74);\n  }\n  piVar1 = *(int **)(param_1 + 0x80);\n  if (piVar1 != (int *)0x0) {\n    uVar2 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);\n    *(undefined1 *)(param_1 + 0x78) = 1;\n    *(undefined4 *)(param_1 + 0x74) = uVar2;\n    return uVar2;\n  }\n                    \n  FUN_002428a0(0x227aa7);\n}\n\n" (function_definition "undefined4 FUN_00227aa0(int param_1)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  \n  if (*(char *)(param_1 + 0x78) != '\0') {\n    return *(undefined4 *)(param_1 + 0x74);\n  }\n  piVar1 = *(int **)(param_1 + 0x80);\n  if (piVar1 != (int *)0x0) {\n    uVar2 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);\n    *(undefined1 *)(param_1 + 0x78) = 1;\n    *(undefined4 *)(param_1 + 0x74) = uVar2;\n    return uVar2;\n  }\n                    \n  FUN_002428a0(0x227aa7);\n}" type_identifier (function_declarator "FUN_00227aa0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  undefined4 uVar2;\n  \n  if (*(char *)(param_1 + 0x78) != '\0') {\n    return *(undefined4 *)(param_1 + 0x74);\n  }\n  piVar1 = *(int **)(param_1 + 0x80);\n  if (piVar1 != (int *)0x0) {\n    uVar2 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);\n    *(undefined1 *)(param_1 + 0x78) = 1;\n    *(undefined4 *)(param_1 + 0x74) = uVar2;\n    return uVar2;\n  }\n                    \n  FUN_002428a0(0x227aa7);\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if (*(char *)(param_1 + 0x78) != '\0') {\n    return *(undefined4 *)(param_1 + 0x74);\n  }" if (parenthesized_expression "(*(char *)(param_1 + 0x78) != '\0')" ( (binary_expression "*(char *)(param_1 + 0x78) != '\0'" (pointer_expression "*(char *)(param_1 + 0x78)" * (cast_expression "(char *)(param_1 + 0x78)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x78)" ( (binary_expression "param_1 + 0x78" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    return *(undefined4 *)(param_1 + 0x74);\n  }" { (return_statement "return *(undefined4 *)(param_1 + 0x74);" return (pointer_expression "*(undefined4 *)(param_1 + 0x74)" * (cast_expression "(undefined4 *)(param_1 + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) )))) ;) })) (expression_statement "piVar1 = *(int **)(param_1 + 0x80);" (assignment_expression "piVar1 = *(int **)(param_1 + 0x80)" identifier = (pointer_expression "*(int **)(param_1 + 0x80)" * (cast_expression "(int **)(param_1 + 0x80)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x80)" ( (binary_expression "param_1 + 0x80" identifier + number_literal) ))))) ;) (if_statement "if (piVar1 != (int *)0x0) {\n    uVar2 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);\n    *(undefined1 *)(param_1 + 0x78) = 1;\n    *(undefined4 *)(param_1 + 0x74) = uVar2;\n    return uVar2;\n  }" if (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar2 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);\n    *(undefined1 *)(param_1 + 0x78) = 1;\n    *(undefined4 *)(param_1 + 0x74) = uVar2;\n    return uVar2;\n  }" { (expression_statement "uVar2 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);" (assignment_expression "uVar2 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20)" identifier = (call_expression "(**(code **)(*piVar1 + 0x28))(piVar1,0x20)" (parenthesized_expression "(**(code **)(*piVar1 + 0x28))" ( (pointer_expression "**(code **)(*piVar1 + 0x28)" * (pointer_expression "*(code **)(*piVar1 + 0x28)" * (cast_expression "(code **)(*piVar1 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x28)" ( (binary_expression "*piVar1 + 0x28" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1,0x20)" ( identifier , number_literal )))) ;) (expression_statement "*(undefined1 *)(param_1 + 0x78) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 0x78) = 1" (pointer_expression "*(undefined1 *)(param_1 + 0x78)" * (cast_expression "(undefined1 *)(param_1 + 0x78)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x78)" ( (binary_expression "param_1 + 0x78" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x74) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 0x74) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 0x74)" * (cast_expression "(undefined4 *)(param_1 + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) )))) = identifier) ;) (return_statement "return uVar2;" return identifier ;) })) (expression_statement "FUN_002428a0(0x227aa7);" (call_expression "FUN_002428a0(0x227aa7)" identifier (argument_list "(0x227aa7)" ( number_literal ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT , 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) ;) (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) })))
(function_definition "undefined4 FUN_00227aa0(int param_1)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  \n  if (*(char *)(param_1 + 0x78) != '\0') {\n    return *(undefined4 *)(param_1 + 0x74);\n  }\n  piVar1 = *(int **)(param_1 + 0x80);\n  if (piVar1 != (int *)0x0) {\n    uVar2 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);\n    *(undefined1 *)(param_1 + 0x78) = 1;\n    *(undefined4 *)(param_1 + 0x74) = uVar2;\n    return uVar2;\n  }\n                    \n  FUN_002428a0(0x227aa7);\n}" (type_identifier "undefined4") (function_declarator "FUN_00227aa0(int param_1)" (identifier "FUN_00227aa0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int *piVar1;\n  undefined4 uVar2;\n  \n  if (*(char *)(param_1 + 0x78) != '\0') {\n    return *(undefined4 *)(param_1 + 0x74);\n  }\n  piVar1 = *(int **)(param_1 + 0x80);\n  if (piVar1 != (int *)0x0) {\n    uVar2 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);\n    *(undefined1 *)(param_1 + 0x78) = 1;\n    *(undefined4 *)(param_1 + 0x74) = uVar2;\n    return uVar2;\n  }\n                    \n  FUN_002428a0(0x227aa7);\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (if_statement "if (*(char *)(param_1 + 0x78) != '\0') {\n    return *(undefined4 *)(param_1 + 0x74);\n  }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 0x78) != '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0x78) != '\0'" (pointer_expression "*(char *)(param_1 + 0x78)" (* "*") (cast_expression "(char *)(param_1 + 0x78)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x78)" (( "(") (binary_expression "param_1 + 0x78" (identifier "param_1") (+ "+") (number_literal "0x78")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    return *(undefined4 *)(param_1 + 0x74);\n  }" ({ "{") (return_statement "return *(undefined4 *)(param_1 + 0x74);" (return "return") (pointer_expression "*(undefined4 *)(param_1 + 0x74)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x74)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x74)" (( "(") (binary_expression "param_1 + 0x74" (identifier "param_1") (+ "+") (number_literal "0x74")) () ")")))) (; ";")) (} "}"))) (expression_statement "piVar1 = *(int **)(param_1 + 0x80);" (assignment_expression "piVar1 = *(int **)(param_1 + 0x80)" (identifier "piVar1") (= "=") (pointer_expression "*(int **)(param_1 + 0x80)" (* "*") (cast_expression "(int **)(param_1 + 0x80)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x80)" (( "(") (binary_expression "param_1 + 0x80" (identifier "param_1") (+ "+") (number_literal "0x80")) () ")"))))) (; ";")) (if_statement "if (piVar1 != (int *)0x0) {\n    uVar2 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);\n    *(undefined1 *)(param_1 + 0x78) = 1;\n    *(undefined4 *)(param_1 + 0x74) = uVar2;\n    return uVar2;\n  }" (if "if") (parenthesized_expression "(piVar1 != (int *)0x0)" (( "(") (binary_expression "piVar1 != (int *)0x0" (identifier "piVar1") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    uVar2 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);\n    *(undefined1 *)(param_1 + 0x78) = 1;\n    *(undefined4 *)(param_1 + 0x74) = uVar2;\n    return uVar2;\n  }" ({ "{") (expression_statement "uVar2 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);" (assignment_expression "uVar2 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20)" (identifier "uVar2") (= "=") (call_expression "(**(code **)(*piVar1 + 0x28))(piVar1,0x20)" (parenthesized_expression "(**(code **)(*piVar1 + 0x28))" (( "(") (pointer_expression "**(code **)(*piVar1 + 0x28)" (* "*") (pointer_expression "*(code **)(*piVar1 + 0x28)" (* "*") (cast_expression "(code **)(*piVar1 + 0x28)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar1 + 0x28)" (( "(") (binary_expression "*piVar1 + 0x28" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (argument_list "(piVar1,0x20)" (( "(") (identifier "piVar1") (, ",") (number_literal "0x20") () ")")))) (; ";")) (expression_statement "*(undefined1 *)(param_1 + 0x78) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 0x78) = 1" (pointer_expression "*(undefined1 *)(param_1 + 0x78)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0x78)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x78)" (( "(") (binary_expression "param_1 + 0x78" (identifier "param_1") (+ "+") (number_literal "0x78")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x74) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 0x74) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 0x74)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x74)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x74)" (( "(") (binary_expression "param_1 + 0x74" (identifier "param_1") (+ "+") (number_literal "0x74")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (expression_statement "FUN_002428a0(0x227aa7);" (call_expression "FUN_002428a0(0x227aa7)" (identifier "FUN_002428a0") (argument_list "(0x227aa7)" (( "(") (number_literal "0x227aa7") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::wios::fill() const */

type_1 __thiscall std::type_2::function_1(type_2 *var_1)

{
  int *var_2;
  type_1 uVar2;
  
  if (var_1[0x78] != (type_2)0x0) {
    return *(type_1 *)(var_1 + 0x74);
  }
  var_2 = *(int **)(var_1 + 0x80);
  if (var_2 != (int *)0x0) {
    uVar2 = (**(type_3 **)(*var_2 + 0x28))(var_2,0x20);
    var_1[0x78] = (type_2)0x1;
    *(type_1 *)(var_1 + 0x74) = uVar2;
    return uVar2;
  }
                    /* WARNING: Subroutine does not return */
  var_3();
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

undefined4 MASKED(int param_1)

{
  int *piVar1;
  undefined4 uVar2;
  
  if (*(char *)(param_1 + 0x78) != '\0') {
    return *(undefined4 *)(param_1 + 0x74);
  }
  piVar1 = *(int **)(param_1 + 0x80);
  if (piVar1 != (int *)0x0) {
    uVar2 = (**(code **)(*piVar1 + 0x28))(piVar1,0x20);
    *(undefined1 *)(param_1 + 0x78) = 1;
    *(undefined4 *)(param_1 + 0x74) = uVar2;
    return uVar2;
  }
                    /* WARNING: Subroutine does not return */
  FUN_002428a0(0x227aa7);
}

