
/* std::messages<char>::open(std::string const&, std::locale const&, char const*) const */

void __thiscall
std::messages<char>::open(messages<char> *this,string *param_1,locale *param_2,char *param_3)

{
  bindtextdomain(*(undefined8 *)param_1,param_3);
                    /* WARNING: Could not recover jumptable at 0x0034f5dd. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (**(code **)(*(long *)this + 0x10))(this,param_1,param_2);
  return;
}



void FUN_0034f5b0(long *param_1,undefined8 *param_2,undefined8 param_3,undefined8 param_4)

{
  bindtextdomain(*param_2,param_4);
                    /* WARNING: Could not recover jumptable at 0x0034f5dd. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (**(code **)(*param_1 + 0x10))(param_1,param_2,param_3);
  return;
}


PUSH R12
MOV R12,RDX
PUSH RBP
MOV RBP,RSI
MOV RSI,RCX
PUSH RBX
MOV RBX,RDI
MOV RDI,qword ptr [RBP]
CALL 0x00147250
MOV RAX,qword ptr [RBX]
MOV RDX,R12
MOV RSI,RBP
MOV RDI,RBX
POP RBX
POP RBP
MOV RAX,qword ptr [RAX + 0x10]
POP R12
JMP RAX
(translation_unit "void FUN_0034f5b0(long *param_1,undefined8 *param_2,undefined8 param_3,undefined8 param_4)\n\n{\n  bindtextdomain(*param_2,param_4);\n                    /* WARNING: Could not recover jumptable at 0x0034f5dd. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(*param_1 + 0x10))(param_1,param_2,param_3);\n  return;\n}\n\n" (function_definition "void FUN_0034f5b0(long *param_1,undefined8 *param_2,undefined8 param_3,undefined8 param_4)\n\n{\n  bindtextdomain(*param_2,param_4);\n                    /* WARNING: Could not recover jumptable at 0x0034f5dd. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(*param_1 + 0x10))(param_1,param_2,param_3);\n  return;\n}" primitive_type (function_declarator "FUN_0034f5b0(long *param_1,undefined8 *param_2,undefined8 param_3,undefined8 param_4)" identifier (parameter_list "(long *param_1,undefined8 *param_2,undefined8 param_3,undefined8 param_4)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) ))) (compound_statement "{\n  bindtextdomain(*param_2,param_4);\n                    /* WARNING: Could not recover jumptable at 0x0034f5dd. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(*param_1 + 0x10))(param_1,param_2,param_3);\n  return;\n}" { (expression_statement "bindtextdomain(*param_2,param_4);" (call_expression "bindtextdomain(*param_2,param_4)" identifier (argument_list "(*param_2,param_4)" ( (pointer_expression "*param_2" * identifier) , identifier ))) ;) comment comment (expression_statement "(**(code **)(*param_1 + 0x10))(param_1,param_2,param_3);" (call_expression "(**(code **)(*param_1 + 0x10))(param_1,param_2,param_3)" (parenthesized_expression "(**(code **)(*param_1 + 0x10))" ( (pointer_expression "**(code **)(*param_1 + 0x10)" * (pointer_expression "*(code **)(*param_1 + 0x10)" * (cast_expression "(code **)(*param_1 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x10)" ( (binary_expression "*param_1 + 0x10" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1,param_2,param_3)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* std::messages<char>::open(std::string const&, std::locale const&, char const*) const */\n\nvoid __thiscall\nstd::messages<char>::open(messages<char> *this,string *param_1,locale *param_2,char *param_3)\n\n{\n  bindtextdomain(*(undefined8 *)param_1,param_3);\n                    /* WARNING: Could not recover jumptable at 0x0034f5dd. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(*(long *)this + 0x10))(this,param_1,param_2);\n  return;\n}\n\n" comment (function_definition "void __thiscall\nstd::messages<char>::open(messages<char> *this,string *param_1,locale *param_2,char *param_3)\n\n{\n  bindtextdomain(*(undefined8 *)param_1,param_3);\n                    /* WARNING: Could not recover jumptable at 0x0034f5dd. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(*(long *)this + 0x10))(this,param_1,param_2);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::messages<char>::" identifier : : identifier < primitive_type > : :) (function_declarator "open(messages<char> *this,string *param_1,locale *param_2,char *param_3)" identifier (parameter_list "(messages<char> *this,string *param_1,locale *param_2,char *param_3)" ( (parameter_declaration "messages<char> *this" type_identifier (ERROR "<char>" < primitive_type >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "string *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "locale *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  bindtextdomain(*(undefined8 *)param_1,param_3);\n                    /* WARNING: Could not recover jumptable at 0x0034f5dd. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(*(long *)this + 0x10))(this,param_1,param_2);\n  return;\n}" { (expression_statement "bindtextdomain(*(undefined8 *)param_1,param_3);" (call_expression "bindtextdomain(*(undefined8 *)param_1,param_3)" identifier (argument_list "(*(undefined8 *)param_1,param_3)" ( (pointer_expression "*(undefined8 *)param_1" * (cast_expression "(undefined8 *)param_1" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , identifier ))) ;) comment comment (expression_statement "(**(code **)(*(long *)this + 0x10))(this,param_1,param_2);" (call_expression "(**(code **)(*(long *)this + 0x10))(this,param_1,param_2)" (parenthesized_expression "(**(code **)(*(long *)this + 0x10))" ( (pointer_expression "**(code **)(*(long *)this + 0x10)" * (pointer_expression "*(code **)(*(long *)this + 0x10)" * (cast_expression "(code **)(*(long *)this + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)this + 0x10)" ( (binary_expression "*(long *)this + 0x10" (pointer_expression "*(long *)this" * (cast_expression "(long *)this" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (argument_list "(this,param_1,param_2)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0034f5b0(long *param_1,undefined8 *param_2,undefined8 param_3,undefined8 param_4)\n\n{\n  bindtextdomain(*param_2,param_4);\n                    \n                    \n  (**(code **)(*param_1 + 0x10))(param_1,param_2,param_3);\n  return;\n}\n\n" (function_definition "void FUN_0034f5b0(long *param_1,undefined8 *param_2,undefined8 param_3,undefined8 param_4)\n\n{\n  bindtextdomain(*param_2,param_4);\n                    \n                    \n  (**(code **)(*param_1 + 0x10))(param_1,param_2,param_3);\n  return;\n}" primitive_type (function_declarator "FUN_0034f5b0(long *param_1,undefined8 *param_2,undefined8 param_3,undefined8 param_4)" identifier (parameter_list "(long *param_1,undefined8 *param_2,undefined8 param_3,undefined8 param_4)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) ))) (compound_statement "{\n  bindtextdomain(*param_2,param_4);\n                    \n                    \n  (**(code **)(*param_1 + 0x10))(param_1,param_2,param_3);\n  return;\n}" { (expression_statement "bindtextdomain(*param_2,param_4);" (call_expression "bindtextdomain(*param_2,param_4)" identifier (argument_list "(*param_2,param_4)" ( (pointer_expression "*param_2" * identifier) , identifier ))) ;) (expression_statement "(**(code **)(*param_1 + 0x10))(param_1,param_2,param_3);" (call_expression "(**(code **)(*param_1 + 0x10))(param_1,param_2,param_3)" (parenthesized_expression "(**(code **)(*param_1 + 0x10))" ( (pointer_expression "**(code **)(*param_1 + 0x10)" * (pointer_expression "*(code **)(*param_1 + 0x10)" * (cast_expression "(code **)(*param_1 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x10)" ( (binary_expression "*param_1 + 0x10" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1,param_2,param_3)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT ))) ;) (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 , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0034f5b0(long *param_1,undefined8 *param_2,undefined8 param_3,undefined8 param_4)\n\n{\n  bindtextdomain(*param_2,param_4);\n                    \n                    \n  (**(code **)(*param_1 + 0x10))(param_1,param_2,param_3);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0034f5b0(long *param_1,undefined8 *param_2,undefined8 param_3,undefined8 param_4)" (identifier "FUN_0034f5b0") (parameter_list "(long *param_1,undefined8 *param_2,undefined8 param_3,undefined8 param_4)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined8 *param_2" (type_identifier "undefined8") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined8 param_3" (type_identifier "undefined8") (identifier "param_3")) (, ",") (parameter_declaration "undefined8 param_4" (type_identifier "undefined8") (identifier "param_4")) () ")"))) (compound_statement "{\n  bindtextdomain(*param_2,param_4);\n                    \n                    \n  (**(code **)(*param_1 + 0x10))(param_1,param_2,param_3);\n  return;\n}" ({ "{") (expression_statement "bindtextdomain(*param_2,param_4);" (call_expression "bindtextdomain(*param_2,param_4)" (identifier "bindtextdomain") (argument_list "(*param_2,param_4)" (( "(") (pointer_expression "*param_2" (* "*") (identifier "param_2")) (, ",") (identifier "param_4") () ")"))) (; ";")) (expression_statement "(**(code **)(*param_1 + 0x10))(param_1,param_2,param_3);" (call_expression "(**(code **)(*param_1 + 0x10))(param_1,param_2,param_3)" (parenthesized_expression "(**(code **)(*param_1 + 0x10))" (( "(") (pointer_expression "**(code **)(*param_1 + 0x10)" (* "*") (pointer_expression "*(code **)(*param_1 + 0x10)" (* "*") (cast_expression "(code **)(*param_1 + 0x10)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 0x10)" (( "(") (binary_expression "*param_1 + 0x10" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (argument_list "(param_1,param_2,param_3)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::messages<char>::open(std::string const&, std::locale const&, char const*) const */

void __thiscall
std::type_1<char>::function_1(type_1<char> *this,type_2 *param_1,type_3 *param_2,char *param_3)

{
  var_1(*(type_4 *)param_1,param_3);
                    /* WARNING: Could not recover jumptable at 0x0034f5dd. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (**(type_5 **)(*(long *)this + 0x10))(this,param_1,param_2);
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier)))) (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) (identifier)))) (return_statement))))

void MASKED(long *param_1,undefined8 *param_2,undefined8 param_3,undefined8 param_4)

{
  bindtextdomain(*param_2,param_4);
                    /* WARNING: Could not recover jumptable at 0x0034f5dd. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (**(code **)(*param_1 + 0x10))(param_1,param_2,param_3);
  return;
}

