
/* std::messages<wchar_t>::messages(unsigned int) */

void __thiscall std::messages<wchar_t>::messages(messages<wchar_t> *this,uint param_1)

{
  undefined *puVar1;
  undefined *puVar2;
  undefined4 uVar3;
  
  puVar1 = PTR__S_get_c_locale_004c13c0;
  puVar2 = PTR_vtable_004c2e98 + 8;
  *(uint *)(this + 4) = (uint)(param_1 != 0);
                    /* try { // try from 0039c808 to 0039c80f has its CatchHandler @ 0039c838 */
  *(undefined **)this = puVar2;
  uVar3 = (*(code *)puVar1)();
  puVar1 = PTR__S_get_c_name_004c2bc0;
  *(undefined4 *)(this + 8) = uVar3;
  uVar3 = (*(code *)puVar1)();
  *(undefined4 *)(this + 0xc) = uVar3;
  return;
}



/* std::messages<wchar_t>::messages(unsigned int) */

void __thiscall std::messages<wchar_t>::messages(messages<wchar_t> *this,uint param_1)

{
  undefined *puVar1;
  undefined *puVar2;
  undefined4 uVar3;
  
  puVar1 = PTR__S_get_c_locale_004c13c0;
  puVar2 = PTR_vtable_004c2e98 + 8;
  *(uint *)(this + 4) = (uint)(param_1 != 0);
                    /* try { // try from 0039c808 to 0039c80f has its CatchHandler @ 0039c838 */
  *(undefined **)this = puVar2;
  uVar3 = (*(code *)puVar1)();
  puVar1 = PTR__S_get_c_name_004c2bc0;
  *(undefined4 *)(this + 8) = uVar3;
  uVar3 = (*(code *)puVar1)();
  *(undefined4 *)(this + 0xc) = uVar3;
  return;
}


lui gp,0x13
addiu gp,gp,-0x3590
addu gp,gp,t9
lw v0,-0x63a8(gp)
addiu sp,sp,-0x28
lw t9,-0x7e80(gp)
sltu a1,zero,a1
addiu v0,v0,0x8
sw gp,0x10(sp)
sw s0,0x1c(sp)
or s0,a0,zero
sw ra,0x24(sp)
sw s1,0x20(sp)
sw a1,0x4(a0)
jalr t9
_sw v0,0x0(a0)
lw gp,0x10(sp)
lw t9,-0x6680(gp)
jalr t9
_sw v0,0x8(s0)
lw ra,0x24(sp)
lw s1,0x20(sp)
sw v0,0xc(s0)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "/* std::messages<wchar_t>::messages(unsigned int) */\n\nvoid __thiscall std::messages<wchar_t>::messages(messages<wchar_t> *this,uint param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  \n  puVar1 = PTR__S_get_c_locale_004c13c0;\n  puVar2 = PTR_vtable_004c2e98 + 8;\n  *(uint *)(this + 4) = (uint)(param_1 != 0);\n                    /* try { // try from 0039c808 to 0039c80f has its CatchHandler @ 0039c838 */\n  *(undefined **)this = puVar2;\n  uVar3 = (*(code *)puVar1)();\n  puVar1 = PTR__S_get_c_name_004c2bc0;\n  *(undefined4 *)(this + 8) = uVar3;\n  uVar3 = (*(code *)puVar1)();\n  *(undefined4 *)(this + 0xc) = uVar3;\n  return;\n}\n\n" comment (function_definition "void __thiscall std::messages<wchar_t>::messages(messages<wchar_t> *this,uint param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  \n  puVar1 = PTR__S_get_c_locale_004c13c0;\n  puVar2 = PTR_vtable_004c2e98 + 8;\n  *(uint *)(this + 4) = (uint)(param_1 != 0);\n                    /* try { // try from 0039c808 to 0039c80f has its CatchHandler @ 0039c838 */\n  *(undefined **)this = puVar2;\n  uVar3 = (*(code *)puVar1)();\n  puVar1 = PTR__S_get_c_name_004c2bc0;\n  *(undefined4 *)(this + 8) = uVar3;\n  uVar3 = (*(code *)puVar1)();\n  *(undefined4 *)(this + 0xc) = uVar3;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::messages<wchar_t>::" identifier : : identifier < identifier > : :) (function_declarator "messages(messages<wchar_t> *this,uint param_1)" identifier (parameter_list "(messages<wchar_t> *this,uint param_1)" ( (parameter_declaration "messages<wchar_t> *this" type_identifier (ERROR "<wchar_t>" < identifier >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "uint param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  \n  puVar1 = PTR__S_get_c_locale_004c13c0;\n  puVar2 = PTR_vtable_004c2e98 + 8;\n  *(uint *)(this + 4) = (uint)(param_1 != 0);\n                    /* try { // try from 0039c808 to 0039c80f has its CatchHandler @ 0039c838 */\n  *(undefined **)this = puVar2;\n  uVar3 = (*(code *)puVar1)();\n  puVar1 = PTR__S_get_c_name_004c2bc0;\n  *(undefined4 *)(this + 8) = uVar3;\n  uVar3 = (*(code *)puVar1)();\n  *(undefined4 *)(this + 0xc) = uVar3;\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "puVar1 = PTR__S_get_c_locale_004c13c0;" (assignment_expression "puVar1 = PTR__S_get_c_locale_004c13c0" identifier = identifier) ;) (expression_statement "puVar2 = PTR_vtable_004c2e98 + 8;" (assignment_expression "puVar2 = PTR_vtable_004c2e98 + 8" identifier = (binary_expression "PTR_vtable_004c2e98 + 8" identifier + number_literal)) ;) (expression_statement "*(uint *)(this + 4) = (uint)(param_1 != 0);" (assignment_expression "*(uint *)(this + 4) = (uint)(param_1 != 0)" (pointer_expression "*(uint *)(this + 4)" * (cast_expression "(uint *)(this + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = (call_expression "(uint)(param_1 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )))) ;) comment (expression_statement "*(undefined **)this = puVar2;" (assignment_expression "*(undefined **)this = puVar2" (pointer_expression "*(undefined **)this" * (cast_expression "(undefined **)this" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (expression_statement "uVar3 = (*(code *)puVar1)();" (assignment_expression "uVar3 = (*(code *)puVar1)()" identifier = (call_expression "(*(code *)puVar1)()" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "puVar1 = PTR__S_get_c_name_004c2bc0;" (assignment_expression "puVar1 = PTR__S_get_c_name_004c2bc0" identifier = identifier) ;) (expression_statement "*(undefined4 *)(this + 8) = uVar3;" (assignment_expression "*(undefined4 *)(this + 8) = uVar3" (pointer_expression "*(undefined4 *)(this + 8)" * (cast_expression "(undefined4 *)(this + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar3 = (*(code *)puVar1)();" (assignment_expression "uVar3 = (*(code *)puVar1)()" identifier = (call_expression "(*(code *)puVar1)()" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "*(undefined4 *)(this + 0xc) = uVar3;" (assignment_expression "*(undefined4 *)(this + 0xc) = uVar3" (pointer_expression "*(undefined4 *)(this + 0xc)" * (cast_expression "(undefined4 *)(this + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* std::messages<wchar_t>::messages(unsigned int) */\n\nvoid __thiscall std::messages<wchar_t>::messages(messages<wchar_t> *this,uint param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  \n  puVar1 = PTR__S_get_c_locale_004c13c0;\n  puVar2 = PTR_vtable_004c2e98 + 8;\n  *(uint *)(this + 4) = (uint)(param_1 != 0);\n                    /* try { // try from 0039c808 to 0039c80f has its CatchHandler @ 0039c838 */\n  *(undefined **)this = puVar2;\n  uVar3 = (*(code *)puVar1)();\n  puVar1 = PTR__S_get_c_name_004c2bc0;\n  *(undefined4 *)(this + 8) = uVar3;\n  uVar3 = (*(code *)puVar1)();\n  *(undefined4 *)(this + 0xc) = uVar3;\n  return;\n}\n\n" comment (function_definition "void __thiscall std::messages<wchar_t>::messages(messages<wchar_t> *this,uint param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  \n  puVar1 = PTR__S_get_c_locale_004c13c0;\n  puVar2 = PTR_vtable_004c2e98 + 8;\n  *(uint *)(this + 4) = (uint)(param_1 != 0);\n                    /* try { // try from 0039c808 to 0039c80f has its CatchHandler @ 0039c838 */\n  *(undefined **)this = puVar2;\n  uVar3 = (*(code *)puVar1)();\n  puVar1 = PTR__S_get_c_name_004c2bc0;\n  *(undefined4 *)(this + 8) = uVar3;\n  uVar3 = (*(code *)puVar1)();\n  *(undefined4 *)(this + 0xc) = uVar3;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::messages<wchar_t>::" identifier : : identifier < identifier > : :) (function_declarator "messages(messages<wchar_t> *this,uint param_1)" identifier (parameter_list "(messages<wchar_t> *this,uint param_1)" ( (parameter_declaration "messages<wchar_t> *this" type_identifier (ERROR "<wchar_t>" < identifier >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "uint param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  \n  puVar1 = PTR__S_get_c_locale_004c13c0;\n  puVar2 = PTR_vtable_004c2e98 + 8;\n  *(uint *)(this + 4) = (uint)(param_1 != 0);\n                    /* try { // try from 0039c808 to 0039c80f has its CatchHandler @ 0039c838 */\n  *(undefined **)this = puVar2;\n  uVar3 = (*(code *)puVar1)();\n  puVar1 = PTR__S_get_c_name_004c2bc0;\n  *(undefined4 *)(this + 8) = uVar3;\n  uVar3 = (*(code *)puVar1)();\n  *(undefined4 *)(this + 0xc) = uVar3;\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "puVar1 = PTR__S_get_c_locale_004c13c0;" (assignment_expression "puVar1 = PTR__S_get_c_locale_004c13c0" identifier = identifier) ;) (expression_statement "puVar2 = PTR_vtable_004c2e98 + 8;" (assignment_expression "puVar2 = PTR_vtable_004c2e98 + 8" identifier = (binary_expression "PTR_vtable_004c2e98 + 8" identifier + number_literal)) ;) (expression_statement "*(uint *)(this + 4) = (uint)(param_1 != 0);" (assignment_expression "*(uint *)(this + 4) = (uint)(param_1 != 0)" (pointer_expression "*(uint *)(this + 4)" * (cast_expression "(uint *)(this + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = (call_expression "(uint)(param_1 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )))) ;) comment (expression_statement "*(undefined **)this = puVar2;" (assignment_expression "*(undefined **)this = puVar2" (pointer_expression "*(undefined **)this" * (cast_expression "(undefined **)this" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (expression_statement "uVar3 = (*(code *)puVar1)();" (assignment_expression "uVar3 = (*(code *)puVar1)()" identifier = (call_expression "(*(code *)puVar1)()" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "puVar1 = PTR__S_get_c_name_004c2bc0;" (assignment_expression "puVar1 = PTR__S_get_c_name_004c2bc0" identifier = identifier) ;) (expression_statement "*(undefined4 *)(this + 8) = uVar3;" (assignment_expression "*(undefined4 *)(this + 8) = uVar3" (pointer_expression "*(undefined4 *)(this + 8)" * (cast_expression "(undefined4 *)(this + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar3 = (*(code *)puVar1)();" (assignment_expression "uVar3 = (*(code *)puVar1)()" identifier = (call_expression "(*(code *)puVar1)()" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "*(undefined4 *)(this + 0xc) = uVar3;" (assignment_expression "*(undefined4 *)(this + 0xc) = uVar3" (pointer_expression "*(undefined4 *)(this + 0xc)" * (cast_expression "(undefined4 *)(this + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void __thiscall std::messages<wchar_t>::messages(messages<wchar_t> *this,uint param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  \n  puVar1 = PTR__S_get_c_locale_004c13c0;\n  puVar2 = PTR_vtable_004c2e98 + 8;\n  *(uint *)(this + 4) = (uint)(param_1 != 0);\n                    \n  *(undefined **)this = puVar2;\n  uVar3 = (*(code *)puVar1)();\n  puVar1 = PTR__S_get_c_name_004c2bc0;\n  *(undefined4 *)(this + 8) = uVar3;\n  uVar3 = (*(code *)puVar1)();\n  *(undefined4 *)(this + 0xc) = uVar3;\n  return;\n}\n\n" (function_definition "void __thiscall std::messages<wchar_t>::messages(messages<wchar_t> *this,uint param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  \n  puVar1 = PTR__S_get_c_locale_004c13c0;\n  puVar2 = PTR_vtable_004c2e98 + 8;\n  *(uint *)(this + 4) = (uint)(param_1 != 0);\n                    \n  *(undefined **)this = puVar2;\n  uVar3 = (*(code *)puVar1)();\n  puVar1 = PTR__S_get_c_name_004c2bc0;\n  *(undefined4 *)(this + 8) = uVar3;\n  uVar3 = (*(code *)puVar1)();\n  *(undefined4 *)(this + 0xc) = uVar3;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::messages<wchar_t>::" identifier : : identifier < identifier > : :) (function_declarator "messages(messages<wchar_t> *this,uint param_1)" identifier (parameter_list "(messages<wchar_t> *this,uint param_1)" ( (parameter_declaration "messages<wchar_t> *this" type_identifier (ERROR "<wchar_t>" < identifier >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "uint param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  \n  puVar1 = PTR__S_get_c_locale_004c13c0;\n  puVar2 = PTR_vtable_004c2e98 + 8;\n  *(uint *)(this + 4) = (uint)(param_1 != 0);\n                    \n  *(undefined **)this = puVar2;\n  uVar3 = (*(code *)puVar1)();\n  puVar1 = PTR__S_get_c_name_004c2bc0;\n  *(undefined4 *)(this + 8) = uVar3;\n  uVar3 = (*(code *)puVar1)();\n  *(undefined4 *)(this + 0xc) = uVar3;\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "puVar1 = PTR__S_get_c_locale_004c13c0;" (assignment_expression "puVar1 = PTR__S_get_c_locale_004c13c0" identifier = identifier) ;) (expression_statement "puVar2 = PTR_vtable_004c2e98 + 8;" (assignment_expression "puVar2 = PTR_vtable_004c2e98 + 8" identifier = (binary_expression "PTR_vtable_004c2e98 + 8" identifier + number_literal)) ;) (expression_statement "*(uint *)(this + 4) = (uint)(param_1 != 0);" (assignment_expression "*(uint *)(this + 4) = (uint)(param_1 != 0)" (pointer_expression "*(uint *)(this + 4)" * (cast_expression "(uint *)(this + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = (call_expression "(uint)(param_1 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )))) ;) (expression_statement "*(undefined **)this = puVar2;" (assignment_expression "*(undefined **)this = puVar2" (pointer_expression "*(undefined **)this" * (cast_expression "(undefined **)this" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (expression_statement "uVar3 = (*(code *)puVar1)();" (assignment_expression "uVar3 = (*(code *)puVar1)()" identifier = (call_expression "(*(code *)puVar1)()" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "puVar1 = PTR__S_get_c_name_004c2bc0;" (assignment_expression "puVar1 = PTR__S_get_c_name_004c2bc0" identifier = identifier) ;) (expression_statement "*(undefined4 *)(this + 8) = uVar3;" (assignment_expression "*(undefined4 *)(this + 8) = uVar3" (pointer_expression "*(undefined4 *)(this + 8)" * (cast_expression "(undefined4 *)(this + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar3 = (*(code *)puVar1)();" (assignment_expression "uVar3 = (*(code *)puVar1)()" identifier = (call_expression "(*(code *)puVar1)()" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "*(undefined4 *)(this + 0xc) = uVar3;" (assignment_expression "*(undefined4 *)(this + 0xc) = uVar3" (pointer_expression "*(undefined4 *)(this + 0xc)" * (cast_expression "(undefined4 *)(this + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ms_call_modifier __thiscall) (ERROR IDENT : : IDENT < IDENT > : :) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (ERROR < IDENT >) (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT != LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = 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 IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return ;) })))
(function_definition "void __thiscall std::messages<wchar_t>::messages(messages<wchar_t> *this,uint param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  \n  puVar1 = PTR__S_get_c_locale_004c13c0;\n  puVar2 = PTR_vtable_004c2e98 + 8;\n  *(uint *)(this + 4) = (uint)(param_1 != 0);\n                    \n  *(undefined **)this = puVar2;\n  uVar3 = (*(code *)puVar1)();\n  puVar1 = PTR__S_get_c_name_004c2bc0;\n  *(undefined4 *)(this + 8) = uVar3;\n  uVar3 = (*(code *)puVar1)();\n  *(undefined4 *)(this + 0xc) = uVar3;\n  return;\n}" (primitive_type "void") (ms_call_modifier "__thiscall" (__thiscall "__thiscall")) (ERROR "std::messages<wchar_t>::" (identifier "std") (: ":") (: ":") (identifier "messages") (< "<") (identifier "wchar_t") (> ">") (: ":") (: ":")) (function_declarator "messages(messages<wchar_t> *this,uint param_1)" (identifier "messages") (parameter_list "(messages<wchar_t> *this,uint param_1)" (( "(") (parameter_declaration "messages<wchar_t> *this" (type_identifier "messages") (ERROR "<wchar_t>" (< "<") (identifier "wchar_t") (> ">")) (pointer_declarator "*this" (* "*") (identifier "this"))) (, ",") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  \n  puVar1 = PTR__S_get_c_locale_004c13c0;\n  puVar2 = PTR_vtable_004c2e98 + 8;\n  *(uint *)(this + 4) = (uint)(param_1 != 0);\n                    \n  *(undefined **)this = puVar2;\n  uVar3 = (*(code *)puVar1)();\n  puVar1 = PTR__S_get_c_name_004c2bc0;\n  *(undefined4 *)(this + 8) = uVar3;\n  uVar3 = (*(code *)puVar1)();\n  *(undefined4 *)(this + 0xc) = uVar3;\n  return;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (expression_statement "puVar1 = PTR__S_get_c_locale_004c13c0;" (assignment_expression "puVar1 = PTR__S_get_c_locale_004c13c0" (identifier "puVar1") (= "=") (identifier "PTR__S_get_c_locale_004c13c0")) (; ";")) (expression_statement "puVar2 = PTR_vtable_004c2e98 + 8;" (assignment_expression "puVar2 = PTR_vtable_004c2e98 + 8" (identifier "puVar2") (= "=") (binary_expression "PTR_vtable_004c2e98 + 8" (identifier "PTR_vtable_004c2e98") (+ "+") (number_literal "8"))) (; ";")) (expression_statement "*(uint *)(this + 4) = (uint)(param_1 != 0);" (assignment_expression "*(uint *)(this + 4) = (uint)(param_1 != 0)" (pointer_expression "*(uint *)(this + 4)" (* "*") (cast_expression "(uint *)(this + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(this + 4)" (( "(") (binary_expression "this + 4" (identifier "this") (+ "+") (number_literal "4")) () ")")))) (= "=") (call_expression "(uint)(param_1 != 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")))) (; ";")) (expression_statement "*(undefined **)this = puVar2;" (assignment_expression "*(undefined **)this = puVar2" (pointer_expression "*(undefined **)this" (* "*") (cast_expression "(undefined **)this" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "this"))) (= "=") (identifier "puVar2")) (; ";")) (expression_statement "uVar3 = (*(code *)puVar1)();" (assignment_expression "uVar3 = (*(code *)puVar1)()" (identifier "uVar3") (= "=") (call_expression "(*(code *)puVar1)()" (parenthesized_expression "(*(code *)puVar1)" (( "(") (pointer_expression "*(code *)puVar1" (* "*") (cast_expression "(code *)puVar1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "puVar1 = PTR__S_get_c_name_004c2bc0;" (assignment_expression "puVar1 = PTR__S_get_c_name_004c2bc0" (identifier "puVar1") (= "=") (identifier "PTR__S_get_c_name_004c2bc0")) (; ";")) (expression_statement "*(undefined4 *)(this + 8) = uVar3;" (assignment_expression "*(undefined4 *)(this + 8) = uVar3" (pointer_expression "*(undefined4 *)(this + 8)" (* "*") (cast_expression "(undefined4 *)(this + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(this + 8)" (( "(") (binary_expression "this + 8" (identifier "this") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "uVar3 = (*(code *)puVar1)();" (assignment_expression "uVar3 = (*(code *)puVar1)()" (identifier "uVar3") (= "=") (call_expression "(*(code *)puVar1)()" (parenthesized_expression "(*(code *)puVar1)" (( "(") (pointer_expression "*(code *)puVar1" (* "*") (cast_expression "(code *)puVar1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(this + 0xc) = uVar3;" (assignment_expression "*(undefined4 *)(this + 0xc) = uVar3" (pointer_expression "*(undefined4 *)(this + 0xc)" (* "*") (cast_expression "(undefined4 *)(this + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(this + 0xc)" (( "(") (binary_expression "this + 0xc" (identifier "this") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::messages<wchar_t>::messages(unsigned int) */

void __thiscall std::function_1<wchar_t>::function_1(function_1<wchar_t> *var_2,type_1 var_3)

{
  type_2 *puVar1;
  type_2 *puVar2;
  type_3 uVar3;
  
  puVar1 = PTR__S_get_c_locale_004c13c0;
  puVar2 = var_1 + 8;
  *(type_1 *)(var_2 + 4) = (type_1)(var_3 != 0);
                    /* try { // try from 0039c808 to 0039c80f has its CatchHandler @ 0039c838 */
  *(type_2 **)var_2 = puVar2;
  uVar3 = (*(type_4 *)puVar1)();
  puVar1 = PTR__S_get_c_name_004c2bc0;
  *(type_3 *)(var_2 + 8) = uVar3;
  uVar3 = (*(type_4 *)puVar1)();
  *(type_3 *)(var_2 + 0xc) = uVar3;
  return;
}


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

/* std::MASKED<wchar_t>::MASKED(unsigned int) */

void __thiscall std::MASKED<wchar_t>::MASKED(MASKED<wchar_t> *this,uint param_1)

{
  undefined *puVar1;
  undefined *puVar2;
  undefined4 uVar3;
  
  puVar1 = PTR__S_get_c_locale_004c13c0;
  puVar2 = PTR_vtable_004c2e98 + 8;
  *(uint *)(this + 4) = (uint)(param_1 != 0);
                    /* try { // try from 0039c808 to 0039c80f has its CatchHandler @ 0039c838 */
  *(undefined **)this = puVar2;
  uVar3 = (*(code *)puVar1)();
  puVar1 = PTR__S_get_c_name_004c2bc0;
  *(undefined4 *)(this + 8) = uVar3;
  uVar3 = (*(code *)puVar1)();
  *(undefined4 *)(this + 0xc) = uVar3;
  return;
}

