
/* std::wios::narrow(wchar_t, char) const */

void __thiscall std::wios::narrow(wios *this,wchar_t param_1,char param_2)

{
  long *plVar1;
  
  plVar1 = *(long **)(this + 0xf0);
  if (plVar1 != (long *)0x0) {
                    /* WARNING: Could not recover jumptable at 0x00301422. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (**(code **)(*plVar1 + 0x60))(plVar1,param_1,(int)param_2);
    return;
  }
                    /* WARNING: Subroutine does not return */
  __throw_bad_cast();
}



void FUN_00301410(long param_1,undefined8 param_2,char param_3)

{
  long *plVar1;
  
  plVar1 = *(long **)(param_1 + 0xf0);
  if (plVar1 != (long *)0x0) {
                    /* WARNING: Could not recover jumptable at 0x00301422. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (**(code **)(*plVar1 + 0x60))(plVar1,param_2,(int)param_3);
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00319460();
}


MOV RDI,qword ptr [RDI + 0xf0]
TEST RDI,RDI
JZ 0x00301425
MOV RAX,qword ptr [RDI]
MOVSX EDX,DL
JMP qword ptr [RAX + 0x60]
PUSH RAX
CALL 0x00319460
(translation_unit "void FUN_00301410(long param_1,undefined8 param_2,char param_3)\n\n{\n  long *plVar1;\n  \n  plVar1 = *(long **)(param_1 + 0xf0);\n  if (plVar1 != (long *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x00301422. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(*plVar1 + 0x60))(plVar1,param_2,(int)param_3);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00319460();\n}\n\n" (function_definition "void FUN_00301410(long param_1,undefined8 param_2,char param_3)\n\n{\n  long *plVar1;\n  \n  plVar1 = *(long **)(param_1 + 0xf0);\n  if (plVar1 != (long *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x00301422. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(*plVar1 + 0x60))(plVar1,param_2,(int)param_3);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00319460();\n}" primitive_type (function_declarator "FUN_00301410(long param_1,undefined8 param_2,char param_3)" identifier (parameter_list "(long param_1,undefined8 param_2,char param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "char param_3" primitive_type identifier) ))) (compound_statement "{\n  long *plVar1;\n  \n  plVar1 = *(long **)(param_1 + 0xf0);\n  if (plVar1 != (long *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x00301422. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(*plVar1 + 0x60))(plVar1,param_2,(int)param_3);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00319460();\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (expression_statement "plVar1 = *(long **)(param_1 + 0xf0);" (assignment_expression "plVar1 = *(long **)(param_1 + 0xf0)" identifier = (pointer_expression "*(long **)(param_1 + 0xf0)" * (cast_expression "(long **)(param_1 + 0xf0)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xf0)" ( (binary_expression "param_1 + 0xf0" identifier + number_literal) ))))) ;) (if_statement "if (plVar1 != (long *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x00301422. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(*plVar1 + 0x60))(plVar1,param_2,(int)param_3);\n    return;\n  }" if (parenthesized_expression "(plVar1 != (long *)0x0)" ( (binary_expression "plVar1 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x00301422. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(*plVar1 + 0x60))(plVar1,param_2,(int)param_3);\n    return;\n  }" { comment comment (expression_statement "(**(code **)(*plVar1 + 0x60))(plVar1,param_2,(int)param_3);" (call_expression "(**(code **)(*plVar1 + 0x60))(plVar1,param_2,(int)param_3)" (parenthesized_expression "(**(code **)(*plVar1 + 0x60))" ( (pointer_expression "**(code **)(*plVar1 + 0x60)" * (pointer_expression "*(code **)(*plVar1 + 0x60)" * (cast_expression "(code **)(*plVar1 + 0x60)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x60)" ( (binary_expression "*plVar1 + 0x60" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "(plVar1,param_2,(int)param_3)" ( identifier , identifier , (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) ))) ;) (return_statement "return;" return ;) })) comment (expression_statement "FUN_00319460();" (call_expression "FUN_00319460()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* std::wios::narrow(wchar_t, char) const */\n\nvoid __thiscall std::wios::narrow(wios *this,wchar_t param_1,char param_2)\n\n{\n  long *plVar1;\n  \n  plVar1 = *(long **)(this + 0xf0);\n  if (plVar1 != (long *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x00301422. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(*plVar1 + 0x60))(plVar1,param_1,(int)param_2);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_bad_cast();\n}\n\n" comment (function_definition "void __thiscall std::wios::narrow(wios *this,wchar_t param_1,char param_2)\n\n{\n  long *plVar1;\n  \n  plVar1 = *(long **)(this + 0xf0);\n  if (plVar1 != (long *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x00301422. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(*plVar1 + 0x60))(plVar1,param_1,(int)param_2);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_bad_cast();\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::wios::" identifier : : identifier : :) (function_declarator "narrow(wios *this,wchar_t param_1,char param_2)" identifier (parameter_list "(wios *this,wchar_t param_1,char param_2)" ( (parameter_declaration "wios *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "wchar_t param_1" type_identifier identifier) , (parameter_declaration "char param_2" primitive_type identifier) ))) (compound_statement "{\n  long *plVar1;\n  \n  plVar1 = *(long **)(this + 0xf0);\n  if (plVar1 != (long *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x00301422. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(*plVar1 + 0x60))(plVar1,param_1,(int)param_2);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_bad_cast();\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (expression_statement "plVar1 = *(long **)(this + 0xf0);" (assignment_expression "plVar1 = *(long **)(this + 0xf0)" identifier = (pointer_expression "*(long **)(this + 0xf0)" * (cast_expression "(long **)(this + 0xf0)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0xf0)" ( (binary_expression "this + 0xf0" identifier + number_literal) ))))) ;) (if_statement "if (plVar1 != (long *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x00301422. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(*plVar1 + 0x60))(plVar1,param_1,(int)param_2);\n    return;\n  }" if (parenthesized_expression "(plVar1 != (long *)0x0)" ( (binary_expression "plVar1 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x00301422. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(*plVar1 + 0x60))(plVar1,param_1,(int)param_2);\n    return;\n  }" { comment comment (expression_statement "(**(code **)(*plVar1 + 0x60))(plVar1,param_1,(int)param_2);" (call_expression "(**(code **)(*plVar1 + 0x60))(plVar1,param_1,(int)param_2)" (parenthesized_expression "(**(code **)(*plVar1 + 0x60))" ( (pointer_expression "**(code **)(*plVar1 + 0x60)" * (pointer_expression "*(code **)(*plVar1 + 0x60)" * (cast_expression "(code **)(*plVar1 + 0x60)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x60)" ( (binary_expression "*plVar1 + 0x60" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "(plVar1,param_1,(int)param_2)" ( identifier , identifier , (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) ))) ;) (return_statement "return;" return ;) })) comment (expression_statement "__throw_bad_cast();" (call_expression "__throw_bad_cast()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void FUN_00301410(long param_1,undefined8 param_2,char param_3)\n\n{\n  long *plVar1;\n  \n  plVar1 = *(long **)(param_1 + 0xf0);\n  if (plVar1 != (long *)0x0) {\n                    \n                    \n    (**(code **)(*plVar1 + 0x60))(plVar1,param_2,(int)param_3);\n    return;\n  }\n                    \n  FUN_00319460();\n}\n\n" (function_definition "void FUN_00301410(long param_1,undefined8 param_2,char param_3)\n\n{\n  long *plVar1;\n  \n  plVar1 = *(long **)(param_1 + 0xf0);\n  if (plVar1 != (long *)0x0) {\n                    \n                    \n    (**(code **)(*plVar1 + 0x60))(plVar1,param_2,(int)param_3);\n    return;\n  }\n                    \n  FUN_00319460();\n}" primitive_type (function_declarator "FUN_00301410(long param_1,undefined8 param_2,char param_3)" identifier (parameter_list "(long param_1,undefined8 param_2,char param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "char param_3" primitive_type identifier) ))) (compound_statement "{\n  long *plVar1;\n  \n  plVar1 = *(long **)(param_1 + 0xf0);\n  if (plVar1 != (long *)0x0) {\n                    \n                    \n    (**(code **)(*plVar1 + 0x60))(plVar1,param_2,(int)param_3);\n    return;\n  }\n                    \n  FUN_00319460();\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (expression_statement "plVar1 = *(long **)(param_1 + 0xf0);" (assignment_expression "plVar1 = *(long **)(param_1 + 0xf0)" identifier = (pointer_expression "*(long **)(param_1 + 0xf0)" * (cast_expression "(long **)(param_1 + 0xf0)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xf0)" ( (binary_expression "param_1 + 0xf0" identifier + number_literal) ))))) ;) (if_statement "if (plVar1 != (long *)0x0) {\n                    \n                    \n    (**(code **)(*plVar1 + 0x60))(plVar1,param_2,(int)param_3);\n    return;\n  }" if (parenthesized_expression "(plVar1 != (long *)0x0)" ( (binary_expression "plVar1 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    \n                    \n    (**(code **)(*plVar1 + 0x60))(plVar1,param_2,(int)param_3);\n    return;\n  }" { (expression_statement "(**(code **)(*plVar1 + 0x60))(plVar1,param_2,(int)param_3);" (call_expression "(**(code **)(*plVar1 + 0x60))(plVar1,param_2,(int)param_3)" (parenthesized_expression "(**(code **)(*plVar1 + 0x60))" ( (pointer_expression "**(code **)(*plVar1 + 0x60)" * (pointer_expression "*(code **)(*plVar1 + 0x60)" * (cast_expression "(code **)(*plVar1 + 0x60)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x60)" ( (binary_expression "*plVar1 + 0x60" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "(plVar1,param_2,(int)param_3)" ( identifier , identifier , (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00319460();" (call_expression "FUN_00319460()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT , IDENT , (cast_expression ( (type_descriptor TYPE) ) IDENT) ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void FUN_00301410(long param_1,undefined8 param_2,char param_3)\n\n{\n  long *plVar1;\n  \n  plVar1 = *(long **)(param_1 + 0xf0);\n  if (plVar1 != (long *)0x0) {\n                    \n                    \n    (**(code **)(*plVar1 + 0x60))(plVar1,param_2,(int)param_3);\n    return;\n  }\n                    \n  FUN_00319460();\n}" (primitive_type "void") (function_declarator "FUN_00301410(long param_1,undefined8 param_2,char param_3)" (identifier "FUN_00301410") (parameter_list "(long param_1,undefined8 param_2,char param_3)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) (, ",") (parameter_declaration "char param_3" (primitive_type "char") (identifier "param_3")) () ")"))) (compound_statement "{\n  long *plVar1;\n  \n  plVar1 = *(long **)(param_1 + 0xf0);\n  if (plVar1 != (long *)0x0) {\n                    \n                    \n    (**(code **)(*plVar1 + 0x60))(plVar1,param_2,(int)param_3);\n    return;\n  }\n                    \n  FUN_00319460();\n}" ({ "{") (declaration "long *plVar1;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar1" (* "*") (identifier "plVar1")) (; ";")) (expression_statement "plVar1 = *(long **)(param_1 + 0xf0);" (assignment_expression "plVar1 = *(long **)(param_1 + 0xf0)" (identifier "plVar1") (= "=") (pointer_expression "*(long **)(param_1 + 0xf0)" (* "*") (cast_expression "(long **)(param_1 + 0xf0)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xf0)" (( "(") (binary_expression "param_1 + 0xf0" (identifier "param_1") (+ "+") (number_literal "0xf0")) () ")"))))) (; ";")) (if_statement "if (plVar1 != (long *)0x0) {\n                    \n                    \n    (**(code **)(*plVar1 + 0x60))(plVar1,param_2,(int)param_3);\n    return;\n  }" (if "if") (parenthesized_expression "(plVar1 != (long *)0x0)" (( "(") (binary_expression "plVar1 != (long *)0x0" (identifier "plVar1") (!= "!=") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    \n                    \n    (**(code **)(*plVar1 + 0x60))(plVar1,param_2,(int)param_3);\n    return;\n  }" ({ "{") (expression_statement "(**(code **)(*plVar1 + 0x60))(plVar1,param_2,(int)param_3);" (call_expression "(**(code **)(*plVar1 + 0x60))(plVar1,param_2,(int)param_3)" (parenthesized_expression "(**(code **)(*plVar1 + 0x60))" (( "(") (pointer_expression "**(code **)(*plVar1 + 0x60)" (* "*") (pointer_expression "*(code **)(*plVar1 + 0x60)" (* "*") (cast_expression "(code **)(*plVar1 + 0x60)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*plVar1 + 0x60)" (( "(") (binary_expression "*plVar1 + 0x60" (pointer_expression "*plVar1" (* "*") (identifier "plVar1")) (+ "+") (number_literal "0x60")) () ")"))))) () ")")) (argument_list "(plVar1,param_2,(int)param_3)" (( "(") (identifier "plVar1") (, ",") (identifier "param_2") (, ",") (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00319460();" (call_expression "FUN_00319460()" (identifier "FUN_00319460") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* std::wios::narrow(wchar_t, char) const */

void __thiscall std::type_1::function_1(type_1 *var_1,type_2 param_1,char param_2)

{
  long *var_2;
  
  var_2 = *(long **)(var_1 + 0xf0);
  if (var_2 != (long *)0x0) {
                    /* WARNING: Could not recover jumptable at 0x00301422. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (**(type_3 **)(*var_2 + 0x60))(var_2,param_1,(int)param_2);
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_3();
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) arguments: (argument_list (identifier) (identifier) (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

void MASKED(long param_1,undefined8 param_2,char param_3)

{
  long *plVar1;
  
  plVar1 = *(long **)(param_1 + 0xf0);
  if (plVar1 != (long *)0x0) {
                    /* WARNING: Could not recover jumptable at 0x00301422. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (**(code **)(*plVar1 + 0x60))(plVar1,param_2,(int)param_3);
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00319460();
}

