
/* std::messages<char>::messages(__locale_struct*, char const*, unsigned int) */

void __thiscall
std::messages<char>::messages
          (messages<char> *this,__locale_struct *param_1,char *param_2,uint param_3)

{
  undefined *puVar1;
  undefined4 uVar2;
  int iVar3;
  void *pvVar4;
  __locale_struct *local_res4 [3];
  
  puVar1 = PTR_vtable_00433754 + 8;
  *(uint *)(this + 4) = (uint)(param_3 != 0);
  *(undefined4 *)(this + 8) = 0;
  *(undefined4 *)(this + 0xc) = 0;
  *(undefined **)this = puVar1;
  local_res4[0] = param_1;
  uVar2 = locale::facet::_S_get_c_name();
  iVar3 = (*(code *)PTR_strcmp_00436644)(param_2,uVar2);
  if (iVar3 == 0) {
    *(undefined4 *)(this + 0xc) = uVar2;
  }
  else {
    iVar3 = (*(code *)PTR_strlen_0043677c)(param_2);
                    /* try { // try from 002cf8d4 to 002cf8db has its CatchHandler @ 002cf900 */
    pvVar4 = operator_new__(iVar3 + 1U);
    uVar2 = (*(code *)PTR_memcpy_00436788)(pvVar4,param_2,iVar3 + 1U);
    *(undefined4 *)(this + 0xc) = uVar2;
  }
  uVar2 = (*(code *)PTR__S_clone_c_locale_004337ec)(local_res4);
  *(undefined4 *)(this + 8) = uVar2;
  return;
}



/* std::messages<char>::messages(__locale_struct*, char const*, unsigned int) */

void __thiscall
std::messages<char>::messages
          (messages<char> *this,__locale_struct *param_1,char *param_2,uint param_3)

{
  undefined *puVar1;
  undefined4 uVar2;
  int iVar3;
  void *pvVar4;
  __locale_struct *local_res4 [3];
  
  puVar1 = PTR_vtable_00433754 + 8;
  *(uint *)(this + 4) = (uint)(param_3 != 0);
  *(undefined4 *)(this + 8) = 0;
  *(undefined4 *)(this + 0xc) = 0;
  *(undefined **)this = puVar1;
  local_res4[0] = param_1;
  uVar2 = locale::facet::_S_get_c_name();
  iVar3 = (*(code *)PTR_strcmp_00436644)(param_2,uVar2);
  if (iVar3 == 0) {
    *(undefined4 *)(this + 0xc) = uVar2;
  }
  else {
    iVar3 = (*(code *)PTR_strlen_0043677c)(param_2);
                    /* try { // try from 002cf8d4 to 002cf8db has its CatchHandler @ 002cf900 */
    pvVar4 = operator_new__(iVar3 + 1U);
    uVar2 = (*(code *)PTR_memcpy_00436788)(pvVar4,param_2,iVar3 + 1U);
    *(undefined4 *)(this + 0xc) = uVar2;
  }
  uVar2 = (*(code *)PTR__S_clone_c_locale_004337ec)(local_res4);
  *(undefined4 *)(this + 8) = uVar2;
  return;
}


lui gp,0x17
addiu gp,gp,-0x564c
addu gp,gp,t9
lw v0,-0x6a7c(gp)
addiu sp,sp,-0x28
lw t9,-0x6a84(gp)
sltu a3,zero,a3
addiu v0,v0,0x8
sw gp,0x10(sp)
sw ra,0x24(sp)
sw s2,0x20(sp)
or s2,a2,zero
sw s1,0x1c(sp)
sw s0,0x18(sp)
or s0,a0,zero
sw a3,0x4(a0)
sw zero,0x8(a0)
sw zero,0xc(a0)
sw v0,0x0(a0)
bal 0x002b8f4c
_sw a1,0x2c(sp)
or a0,s2,zero
lw gp,0x10(sp)
or a1,v0,zero
lw t9,-0x3b8c(gp)
jalr t9
_or s1,v0,zero
bne v0,zero,0x002cf8bc
_lw gp,0x10(sp)
sw s1,0xc(s0)
lw t9,-0x69e4(gp)
jalr t9
_addiu a0,sp,0x2c
lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
sw v0,0x8(s0)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
lw t9,-0x3a54(gp)
jalr t9
_or a0,s2,zero
lw gp,0x10(sp)
addiu s1,v0,0x1
lw t9,-0x7ef4(gp)
bal 0x002b38f0
_or a0,s1,zero
lw gp,0x10(sp)
or a2,s1,zero
or a1,s2,zero
lw t9,-0x3a48(gp)
jalr t9
_or a0,v0,zero
lw gp,0x10(sp)
b 0x002cf894
_sw v0,0xc(s0)
(translation_unit "/* std::messages<char>::messages(__locale_struct*, char const*, unsigned int) */\n\nvoid __thiscall\nstd::messages<char>::messages\n          (messages<char> *this,__locale_struct *param_1,char *param_2,uint param_3)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  void *pvVar4;\n  __locale_struct *local_res4 [3];\n  \n  puVar1 = PTR_vtable_00433754 + 8;\n  *(uint *)(this + 4) = (uint)(param_3 != 0);\n  *(undefined4 *)(this + 8) = 0;\n  *(undefined4 *)(this + 0xc) = 0;\n  *(undefined **)this = puVar1;\n  local_res4[0] = param_1;\n  uVar2 = locale::facet::_S_get_c_name();\n  iVar3 = (*(code *)PTR_strcmp_00436644)(param_2,uVar2);\n  if (iVar3 == 0) {\n    *(undefined4 *)(this + 0xc) = uVar2;\n  }\n  else {\n    iVar3 = (*(code *)PTR_strlen_0043677c)(param_2);\n                    /* try { // try from 002cf8d4 to 002cf8db has its CatchHandler @ 002cf900 */\n    pvVar4 = operator_new__(iVar3 + 1U);\n    uVar2 = (*(code *)PTR_memcpy_00436788)(pvVar4,param_2,iVar3 + 1U);\n    *(undefined4 *)(this + 0xc) = uVar2;\n  }\n  uVar2 = (*(code *)PTR__S_clone_c_locale_004337ec)(local_res4);\n  *(undefined4 *)(this + 8) = uVar2;\n  return;\n}\n\n" comment (function_definition "void __thiscall\nstd::messages<char>::messages\n          (messages<char> *this,__locale_struct *param_1,char *param_2,uint param_3)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  void *pvVar4;\n  __locale_struct *local_res4 [3];\n  \n  puVar1 = PTR_vtable_00433754 + 8;\n  *(uint *)(this + 4) = (uint)(param_3 != 0);\n  *(undefined4 *)(this + 8) = 0;\n  *(undefined4 *)(this + 0xc) = 0;\n  *(undefined **)this = puVar1;\n  local_res4[0] = param_1;\n  uVar2 = locale::facet::_S_get_c_name();\n  iVar3 = (*(code *)PTR_strcmp_00436644)(param_2,uVar2);\n  if (iVar3 == 0) {\n    *(undefined4 *)(this + 0xc) = uVar2;\n  }\n  else {\n    iVar3 = (*(code *)PTR_strlen_0043677c)(param_2);\n                    /* try { // try from 002cf8d4 to 002cf8db has its CatchHandler @ 002cf900 */\n    pvVar4 = operator_new__(iVar3 + 1U);\n    uVar2 = (*(code *)PTR_memcpy_00436788)(pvVar4,param_2,iVar3 + 1U);\n    *(undefined4 *)(this + 0xc) = uVar2;\n  }\n  uVar2 = (*(code *)PTR__S_clone_c_locale_004337ec)(local_res4);\n  *(undefined4 *)(this + 8) = uVar2;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::messages<char>::" identifier : : identifier < primitive_type > : :) (function_declarator "messages\n          (messages<char> *this,__locale_struct *param_1,char *param_2,uint param_3)" identifier (parameter_list "(messages<char> *this,__locale_struct *param_1,char *param_2,uint param_3)" ( (parameter_declaration "messages<char> *this" type_identifier (ERROR "<char>" < primitive_type >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "__locale_struct *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  void *pvVar4;\n  __locale_struct *local_res4 [3];\n  \n  puVar1 = PTR_vtable_00433754 + 8;\n  *(uint *)(this + 4) = (uint)(param_3 != 0);\n  *(undefined4 *)(this + 8) = 0;\n  *(undefined4 *)(this + 0xc) = 0;\n  *(undefined **)this = puVar1;\n  local_res4[0] = param_1;\n  uVar2 = locale::facet::_S_get_c_name();\n  iVar3 = (*(code *)PTR_strcmp_00436644)(param_2,uVar2);\n  if (iVar3 == 0) {\n    *(undefined4 *)(this + 0xc) = uVar2;\n  }\n  else {\n    iVar3 = (*(code *)PTR_strlen_0043677c)(param_2);\n                    /* try { // try from 002cf8d4 to 002cf8db has its CatchHandler @ 002cf900 */\n    pvVar4 = operator_new__(iVar3 + 1U);\n    uVar2 = (*(code *)PTR_memcpy_00436788)(pvVar4,param_2,iVar3 + 1U);\n    *(undefined4 *)(this + 0xc) = uVar2;\n  }\n  uVar2 = (*(code *)PTR__S_clone_c_locale_004337ec)(local_res4);\n  *(undefined4 *)(this + 8) = uVar2;\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "void *pvVar4;" primitive_type (pointer_declarator "*pvVar4" * identifier) ;) (declaration "__locale_struct *local_res4 [3];" type_identifier (pointer_declarator "*local_res4 [3]" * (array_declarator "local_res4 [3]" identifier [ number_literal ])) ;) (expression_statement "puVar1 = PTR_vtable_00433754 + 8;" (assignment_expression "puVar1 = PTR_vtable_00433754 + 8" identifier = (binary_expression "PTR_vtable_00433754 + 8" identifier + number_literal)) ;) (expression_statement "*(uint *)(this + 4) = (uint)(param_3 != 0);" (assignment_expression "*(uint *)(this + 4) = (uint)(param_3 != 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_3 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )))) ;) (expression_statement "*(undefined4 *)(this + 8) = 0;" (assignment_expression "*(undefined4 *)(this + 8) = 0" (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) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(this + 0xc) = 0;" (assignment_expression "*(undefined4 *)(this + 0xc) = 0" (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) )))) = number_literal) ;) (expression_statement "*(undefined **)this = puVar1;" (assignment_expression "*(undefined **)this = puVar1" (pointer_expression "*(undefined **)this" * (cast_expression "(undefined **)this" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (expression_statement "local_res4[0] = param_1;" (assignment_expression "local_res4[0] = param_1" (subscript_expression "local_res4[0]" identifier [ number_literal ]) = identifier) ;) (ERROR "uVar2 = locale::" (assignment_expression "uVar2 = locale" identifier = identifier) : :) (labeled_statement "facet::_S_get_c_name();" statement_identifier : (ERROR ":" :) (expression_statement "_S_get_c_name();" (call_expression "_S_get_c_name()" identifier (argument_list "()" ( ))) ;)) (expression_statement "iVar3 = (*(code *)PTR_strcmp_00436644)(param_2,uVar2);" (assignment_expression "iVar3 = (*(code *)PTR_strcmp_00436644)(param_2,uVar2)" identifier = (call_expression "(*(code *)PTR_strcmp_00436644)(param_2,uVar2)" (parenthesized_expression "(*(code *)PTR_strcmp_00436644)" ( (pointer_expression "*(code *)PTR_strcmp_00436644" * (cast_expression "(code *)PTR_strcmp_00436644" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,uVar2)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 == 0) {\n    *(undefined4 *)(this + 0xc) = uVar2;\n  }\n  else {\n    iVar3 = (*(code *)PTR_strlen_0043677c)(param_2);\n                    /* try { // try from 002cf8d4 to 002cf8db has its CatchHandler @ 002cf900 */\n    pvVar4 = operator_new__(iVar3 + 1U);\n    uVar2 = (*(code *)PTR_memcpy_00436788)(pvVar4,param_2,iVar3 + 1U);\n    *(undefined4 *)(this + 0xc) = uVar2;\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    *(undefined4 *)(this + 0xc) = uVar2;\n  }" { (expression_statement "*(undefined4 *)(this + 0xc) = uVar2;" (assignment_expression "*(undefined4 *)(this + 0xc) = uVar2" (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) ;) }) (else_clause "else {\n    iVar3 = (*(code *)PTR_strlen_0043677c)(param_2);\n                    /* try { // try from 002cf8d4 to 002cf8db has its CatchHandler @ 002cf900 */\n    pvVar4 = operator_new__(iVar3 + 1U);\n    uVar2 = (*(code *)PTR_memcpy_00436788)(pvVar4,param_2,iVar3 + 1U);\n    *(undefined4 *)(this + 0xc) = uVar2;\n  }" else (compound_statement "{\n    iVar3 = (*(code *)PTR_strlen_0043677c)(param_2);\n                    /* try { // try from 002cf8d4 to 002cf8db has its CatchHandler @ 002cf900 */\n    pvVar4 = operator_new__(iVar3 + 1U);\n    uVar2 = (*(code *)PTR_memcpy_00436788)(pvVar4,param_2,iVar3 + 1U);\n    *(undefined4 *)(this + 0xc) = uVar2;\n  }" { (expression_statement "iVar3 = (*(code *)PTR_strlen_0043677c)(param_2);" (assignment_expression "iVar3 = (*(code *)PTR_strlen_0043677c)(param_2)" identifier = (call_expression "(*(code *)PTR_strlen_0043677c)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_0043677c)" ( (pointer_expression "*(code *)PTR_strlen_0043677c" * (cast_expression "(code *)PTR_strlen_0043677c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) comment (expression_statement "pvVar4 = operator_new__(iVar3 + 1U);" (assignment_expression "pvVar4 = operator_new__(iVar3 + 1U)" identifier = (call_expression "operator_new__(iVar3 + 1U)" identifier (argument_list "(iVar3 + 1U)" ( (binary_expression "iVar3 + 1U" identifier + number_literal) )))) ;) (expression_statement "uVar2 = (*(code *)PTR_memcpy_00436788)(pvVar4,param_2,iVar3 + 1U);" (assignment_expression "uVar2 = (*(code *)PTR_memcpy_00436788)(pvVar4,param_2,iVar3 + 1U)" identifier = (call_expression "(*(code *)PTR_memcpy_00436788)(pvVar4,param_2,iVar3 + 1U)" (parenthesized_expression "(*(code *)PTR_memcpy_00436788)" ( (pointer_expression "*(code *)PTR_memcpy_00436788" * (cast_expression "(code *)PTR_memcpy_00436788" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pvVar4,param_2,iVar3 + 1U)" ( identifier , identifier , (binary_expression "iVar3 + 1U" identifier + number_literal) )))) ;) (expression_statement "*(undefined4 *)(this + 0xc) = uVar2;" (assignment_expression "*(undefined4 *)(this + 0xc) = uVar2" (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) ;) }))) (expression_statement "uVar2 = (*(code *)PTR__S_clone_c_locale_004337ec)(local_res4);" (assignment_expression "uVar2 = (*(code *)PTR__S_clone_c_locale_004337ec)(local_res4)" identifier = (call_expression "(*(code *)PTR__S_clone_c_locale_004337ec)(local_res4)" (parenthesized_expression "(*(code *)PTR__S_clone_c_locale_004337ec)" ( (pointer_expression "*(code *)PTR__S_clone_c_locale_004337ec" * (cast_expression "(code *)PTR__S_clone_c_locale_004337ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_res4)" ( identifier )))) ;) (expression_statement "*(undefined4 *)(this + 8) = uVar2;" (assignment_expression "*(undefined4 *)(this + 8) = uVar2" (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) ;) (return_statement "return;" return ;) })))
(translation_unit "/* std::messages<char>::messages(__locale_struct*, char const*, unsigned int) */\n\nvoid __thiscall\nstd::messages<char>::messages\n          (messages<char> *this,__locale_struct *param_1,char *param_2,uint param_3)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  void *pvVar4;\n  __locale_struct *local_res4 [3];\n  \n  puVar1 = PTR_vtable_00433754 + 8;\n  *(uint *)(this + 4) = (uint)(param_3 != 0);\n  *(undefined4 *)(this + 8) = 0;\n  *(undefined4 *)(this + 0xc) = 0;\n  *(undefined **)this = puVar1;\n  local_res4[0] = param_1;\n  uVar2 = locale::facet::_S_get_c_name();\n  iVar3 = (*(code *)PTR_strcmp_00436644)(param_2,uVar2);\n  if (iVar3 == 0) {\n    *(undefined4 *)(this + 0xc) = uVar2;\n  }\n  else {\n    iVar3 = (*(code *)PTR_strlen_0043677c)(param_2);\n                    /* try { // try from 002cf8d4 to 002cf8db has its CatchHandler @ 002cf900 */\n    pvVar4 = operator_new__(iVar3 + 1U);\n    uVar2 = (*(code *)PTR_memcpy_00436788)(pvVar4,param_2,iVar3 + 1U);\n    *(undefined4 *)(this + 0xc) = uVar2;\n  }\n  uVar2 = (*(code *)PTR__S_clone_c_locale_004337ec)(local_res4);\n  *(undefined4 *)(this + 8) = uVar2;\n  return;\n}\n\n" comment (function_definition "void __thiscall\nstd::messages<char>::messages\n          (messages<char> *this,__locale_struct *param_1,char *param_2,uint param_3)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  void *pvVar4;\n  __locale_struct *local_res4 [3];\n  \n  puVar1 = PTR_vtable_00433754 + 8;\n  *(uint *)(this + 4) = (uint)(param_3 != 0);\n  *(undefined4 *)(this + 8) = 0;\n  *(undefined4 *)(this + 0xc) = 0;\n  *(undefined **)this = puVar1;\n  local_res4[0] = param_1;\n  uVar2 = locale::facet::_S_get_c_name();\n  iVar3 = (*(code *)PTR_strcmp_00436644)(param_2,uVar2);\n  if (iVar3 == 0) {\n    *(undefined4 *)(this + 0xc) = uVar2;\n  }\n  else {\n    iVar3 = (*(code *)PTR_strlen_0043677c)(param_2);\n                    /* try { // try from 002cf8d4 to 002cf8db has its CatchHandler @ 002cf900 */\n    pvVar4 = operator_new__(iVar3 + 1U);\n    uVar2 = (*(code *)PTR_memcpy_00436788)(pvVar4,param_2,iVar3 + 1U);\n    *(undefined4 *)(this + 0xc) = uVar2;\n  }\n  uVar2 = (*(code *)PTR__S_clone_c_locale_004337ec)(local_res4);\n  *(undefined4 *)(this + 8) = uVar2;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::messages<char>::" identifier : : identifier < primitive_type > : :) (function_declarator "messages\n          (messages<char> *this,__locale_struct *param_1,char *param_2,uint param_3)" identifier (parameter_list "(messages<char> *this,__locale_struct *param_1,char *param_2,uint param_3)" ( (parameter_declaration "messages<char> *this" type_identifier (ERROR "<char>" < primitive_type >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "__locale_struct *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  void *pvVar4;\n  __locale_struct *local_res4 [3];\n  \n  puVar1 = PTR_vtable_00433754 + 8;\n  *(uint *)(this + 4) = (uint)(param_3 != 0);\n  *(undefined4 *)(this + 8) = 0;\n  *(undefined4 *)(this + 0xc) = 0;\n  *(undefined **)this = puVar1;\n  local_res4[0] = param_1;\n  uVar2 = locale::facet::_S_get_c_name();\n  iVar3 = (*(code *)PTR_strcmp_00436644)(param_2,uVar2);\n  if (iVar3 == 0) {\n    *(undefined4 *)(this + 0xc) = uVar2;\n  }\n  else {\n    iVar3 = (*(code *)PTR_strlen_0043677c)(param_2);\n                    /* try { // try from 002cf8d4 to 002cf8db has its CatchHandler @ 002cf900 */\n    pvVar4 = operator_new__(iVar3 + 1U);\n    uVar2 = (*(code *)PTR_memcpy_00436788)(pvVar4,param_2,iVar3 + 1U);\n    *(undefined4 *)(this + 0xc) = uVar2;\n  }\n  uVar2 = (*(code *)PTR__S_clone_c_locale_004337ec)(local_res4);\n  *(undefined4 *)(this + 8) = uVar2;\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "void *pvVar4;" primitive_type (pointer_declarator "*pvVar4" * identifier) ;) (declaration "__locale_struct *local_res4 [3];" type_identifier (pointer_declarator "*local_res4 [3]" * (array_declarator "local_res4 [3]" identifier [ number_literal ])) ;) (expression_statement "puVar1 = PTR_vtable_00433754 + 8;" (assignment_expression "puVar1 = PTR_vtable_00433754 + 8" identifier = (binary_expression "PTR_vtable_00433754 + 8" identifier + number_literal)) ;) (expression_statement "*(uint *)(this + 4) = (uint)(param_3 != 0);" (assignment_expression "*(uint *)(this + 4) = (uint)(param_3 != 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_3 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )))) ;) (expression_statement "*(undefined4 *)(this + 8) = 0;" (assignment_expression "*(undefined4 *)(this + 8) = 0" (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) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(this + 0xc) = 0;" (assignment_expression "*(undefined4 *)(this + 0xc) = 0" (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) )))) = number_literal) ;) (expression_statement "*(undefined **)this = puVar1;" (assignment_expression "*(undefined **)this = puVar1" (pointer_expression "*(undefined **)this" * (cast_expression "(undefined **)this" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (expression_statement "local_res4[0] = param_1;" (assignment_expression "local_res4[0] = param_1" (subscript_expression "local_res4[0]" identifier [ number_literal ]) = identifier) ;) (ERROR "uVar2 = locale::" (assignment_expression "uVar2 = locale" identifier = identifier) : :) (labeled_statement "facet::_S_get_c_name();" statement_identifier : (ERROR ":" :) (expression_statement "_S_get_c_name();" (call_expression "_S_get_c_name()" identifier (argument_list "()" ( ))) ;)) (expression_statement "iVar3 = (*(code *)PTR_strcmp_00436644)(param_2,uVar2);" (assignment_expression "iVar3 = (*(code *)PTR_strcmp_00436644)(param_2,uVar2)" identifier = (call_expression "(*(code *)PTR_strcmp_00436644)(param_2,uVar2)" (parenthesized_expression "(*(code *)PTR_strcmp_00436644)" ( (pointer_expression "*(code *)PTR_strcmp_00436644" * (cast_expression "(code *)PTR_strcmp_00436644" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,uVar2)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 == 0) {\n    *(undefined4 *)(this + 0xc) = uVar2;\n  }\n  else {\n    iVar3 = (*(code *)PTR_strlen_0043677c)(param_2);\n                    /* try { // try from 002cf8d4 to 002cf8db has its CatchHandler @ 002cf900 */\n    pvVar4 = operator_new__(iVar3 + 1U);\n    uVar2 = (*(code *)PTR_memcpy_00436788)(pvVar4,param_2,iVar3 + 1U);\n    *(undefined4 *)(this + 0xc) = uVar2;\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    *(undefined4 *)(this + 0xc) = uVar2;\n  }" { (expression_statement "*(undefined4 *)(this + 0xc) = uVar2;" (assignment_expression "*(undefined4 *)(this + 0xc) = uVar2" (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) ;) }) (else_clause "else {\n    iVar3 = (*(code *)PTR_strlen_0043677c)(param_2);\n                    /* try { // try from 002cf8d4 to 002cf8db has its CatchHandler @ 002cf900 */\n    pvVar4 = operator_new__(iVar3 + 1U);\n    uVar2 = (*(code *)PTR_memcpy_00436788)(pvVar4,param_2,iVar3 + 1U);\n    *(undefined4 *)(this + 0xc) = uVar2;\n  }" else (compound_statement "{\n    iVar3 = (*(code *)PTR_strlen_0043677c)(param_2);\n                    /* try { // try from 002cf8d4 to 002cf8db has its CatchHandler @ 002cf900 */\n    pvVar4 = operator_new__(iVar3 + 1U);\n    uVar2 = (*(code *)PTR_memcpy_00436788)(pvVar4,param_2,iVar3 + 1U);\n    *(undefined4 *)(this + 0xc) = uVar2;\n  }" { (expression_statement "iVar3 = (*(code *)PTR_strlen_0043677c)(param_2);" (assignment_expression "iVar3 = (*(code *)PTR_strlen_0043677c)(param_2)" identifier = (call_expression "(*(code *)PTR_strlen_0043677c)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_0043677c)" ( (pointer_expression "*(code *)PTR_strlen_0043677c" * (cast_expression "(code *)PTR_strlen_0043677c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) comment (expression_statement "pvVar4 = operator_new__(iVar3 + 1U);" (assignment_expression "pvVar4 = operator_new__(iVar3 + 1U)" identifier = (call_expression "operator_new__(iVar3 + 1U)" identifier (argument_list "(iVar3 + 1U)" ( (binary_expression "iVar3 + 1U" identifier + number_literal) )))) ;) (expression_statement "uVar2 = (*(code *)PTR_memcpy_00436788)(pvVar4,param_2,iVar3 + 1U);" (assignment_expression "uVar2 = (*(code *)PTR_memcpy_00436788)(pvVar4,param_2,iVar3 + 1U)" identifier = (call_expression "(*(code *)PTR_memcpy_00436788)(pvVar4,param_2,iVar3 + 1U)" (parenthesized_expression "(*(code *)PTR_memcpy_00436788)" ( (pointer_expression "*(code *)PTR_memcpy_00436788" * (cast_expression "(code *)PTR_memcpy_00436788" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pvVar4,param_2,iVar3 + 1U)" ( identifier , identifier , (binary_expression "iVar3 + 1U" identifier + number_literal) )))) ;) (expression_statement "*(undefined4 *)(this + 0xc) = uVar2;" (assignment_expression "*(undefined4 *)(this + 0xc) = uVar2" (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) ;) }))) (expression_statement "uVar2 = (*(code *)PTR__S_clone_c_locale_004337ec)(local_res4);" (assignment_expression "uVar2 = (*(code *)PTR__S_clone_c_locale_004337ec)(local_res4)" identifier = (call_expression "(*(code *)PTR__S_clone_c_locale_004337ec)(local_res4)" (parenthesized_expression "(*(code *)PTR__S_clone_c_locale_004337ec)" ( (pointer_expression "*(code *)PTR__S_clone_c_locale_004337ec" * (cast_expression "(code *)PTR__S_clone_c_locale_004337ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_res4)" ( identifier )))) ;) (expression_statement "*(undefined4 *)(this + 8) = uVar2;" (assignment_expression "*(undefined4 *)(this + 8) = uVar2" (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) ;) (return_statement "return;" return ;) })))
(translation_unit "void __thiscall\nstd::messages<char>::messages\n          (messages<char> *this,__locale_struct *param_1,char *param_2,uint param_3)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  void *pvVar4;\n  __locale_struct *local_res4 [3];\n  \n  puVar1 = PTR_vtable_00433754 + 8;\n  *(uint *)(this + 4) = (uint)(param_3 != 0);\n  *(undefined4 *)(this + 8) = 0;\n  *(undefined4 *)(this + 0xc) = 0;\n  *(undefined **)this = puVar1;\n  local_res4[0] = param_1;\n  uVar2 = locale::facet::_S_get_c_name();\n  iVar3 = (*(code *)PTR_strcmp_00436644)(param_2,uVar2);\n  if (iVar3 == 0) {\n    *(undefined4 *)(this + 0xc) = uVar2;\n  }\n  else {\n    iVar3 = (*(code *)PTR_strlen_0043677c)(param_2);\n                    \n    pvVar4 = operator_new__(iVar3 + 1U);\n    uVar2 = (*(code *)PTR_memcpy_00436788)(pvVar4,param_2,iVar3 + 1U);\n    *(undefined4 *)(this + 0xc) = uVar2;\n  }\n  uVar2 = (*(code *)PTR__S_clone_c_locale_004337ec)(local_res4);\n  *(undefined4 *)(this + 8) = uVar2;\n  return;\n}\n\n" (function_definition "void __thiscall\nstd::messages<char>::messages\n          (messages<char> *this,__locale_struct *param_1,char *param_2,uint param_3)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  void *pvVar4;\n  __locale_struct *local_res4 [3];\n  \n  puVar1 = PTR_vtable_00433754 + 8;\n  *(uint *)(this + 4) = (uint)(param_3 != 0);\n  *(undefined4 *)(this + 8) = 0;\n  *(undefined4 *)(this + 0xc) = 0;\n  *(undefined **)this = puVar1;\n  local_res4[0] = param_1;\n  uVar2 = locale::facet::_S_get_c_name();\n  iVar3 = (*(code *)PTR_strcmp_00436644)(param_2,uVar2);\n  if (iVar3 == 0) {\n    *(undefined4 *)(this + 0xc) = uVar2;\n  }\n  else {\n    iVar3 = (*(code *)PTR_strlen_0043677c)(param_2);\n                    \n    pvVar4 = operator_new__(iVar3 + 1U);\n    uVar2 = (*(code *)PTR_memcpy_00436788)(pvVar4,param_2,iVar3 + 1U);\n    *(undefined4 *)(this + 0xc) = uVar2;\n  }\n  uVar2 = (*(code *)PTR__S_clone_c_locale_004337ec)(local_res4);\n  *(undefined4 *)(this + 8) = uVar2;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::messages<char>::" identifier : : identifier < primitive_type > : :) (function_declarator "messages\n          (messages<char> *this,__locale_struct *param_1,char *param_2,uint param_3)" identifier (parameter_list "(messages<char> *this,__locale_struct *param_1,char *param_2,uint param_3)" ( (parameter_declaration "messages<char> *this" type_identifier (ERROR "<char>" < primitive_type >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "__locale_struct *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  void *pvVar4;\n  __locale_struct *local_res4 [3];\n  \n  puVar1 = PTR_vtable_00433754 + 8;\n  *(uint *)(this + 4) = (uint)(param_3 != 0);\n  *(undefined4 *)(this + 8) = 0;\n  *(undefined4 *)(this + 0xc) = 0;\n  *(undefined **)this = puVar1;\n  local_res4[0] = param_1;\n  uVar2 = locale::facet::_S_get_c_name();\n  iVar3 = (*(code *)PTR_strcmp_00436644)(param_2,uVar2);\n  if (iVar3 == 0) {\n    *(undefined4 *)(this + 0xc) = uVar2;\n  }\n  else {\n    iVar3 = (*(code *)PTR_strlen_0043677c)(param_2);\n                    \n    pvVar4 = operator_new__(iVar3 + 1U);\n    uVar2 = (*(code *)PTR_memcpy_00436788)(pvVar4,param_2,iVar3 + 1U);\n    *(undefined4 *)(this + 0xc) = uVar2;\n  }\n  uVar2 = (*(code *)PTR__S_clone_c_locale_004337ec)(local_res4);\n  *(undefined4 *)(this + 8) = uVar2;\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "void *pvVar4;" primitive_type (pointer_declarator "*pvVar4" * identifier) ;) (declaration "__locale_struct *local_res4 [3];" type_identifier (pointer_declarator "*local_res4 [3]" * (array_declarator "local_res4 [3]" identifier [ number_literal ])) ;) (expression_statement "puVar1 = PTR_vtable_00433754 + 8;" (assignment_expression "puVar1 = PTR_vtable_00433754 + 8" identifier = (binary_expression "PTR_vtable_00433754 + 8" identifier + number_literal)) ;) (expression_statement "*(uint *)(this + 4) = (uint)(param_3 != 0);" (assignment_expression "*(uint *)(this + 4) = (uint)(param_3 != 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_3 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )))) ;) (expression_statement "*(undefined4 *)(this + 8) = 0;" (assignment_expression "*(undefined4 *)(this + 8) = 0" (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) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(this + 0xc) = 0;" (assignment_expression "*(undefined4 *)(this + 0xc) = 0" (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) )))) = number_literal) ;) (expression_statement "*(undefined **)this = puVar1;" (assignment_expression "*(undefined **)this = puVar1" (pointer_expression "*(undefined **)this" * (cast_expression "(undefined **)this" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (expression_statement "local_res4[0] = param_1;" (assignment_expression "local_res4[0] = param_1" (subscript_expression "local_res4[0]" identifier [ number_literal ]) = identifier) ;) (ERROR "uVar2 = locale::" (assignment_expression "uVar2 = locale" identifier = identifier) : :) (labeled_statement "facet::_S_get_c_name();" statement_identifier : (ERROR ":" :) (expression_statement "_S_get_c_name();" (call_expression "_S_get_c_name()" identifier (argument_list "()" ( ))) ;)) (expression_statement "iVar3 = (*(code *)PTR_strcmp_00436644)(param_2,uVar2);" (assignment_expression "iVar3 = (*(code *)PTR_strcmp_00436644)(param_2,uVar2)" identifier = (call_expression "(*(code *)PTR_strcmp_00436644)(param_2,uVar2)" (parenthesized_expression "(*(code *)PTR_strcmp_00436644)" ( (pointer_expression "*(code *)PTR_strcmp_00436644" * (cast_expression "(code *)PTR_strcmp_00436644" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,uVar2)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 == 0) {\n    *(undefined4 *)(this + 0xc) = uVar2;\n  }\n  else {\n    iVar3 = (*(code *)PTR_strlen_0043677c)(param_2);\n                    \n    pvVar4 = operator_new__(iVar3 + 1U);\n    uVar2 = (*(code *)PTR_memcpy_00436788)(pvVar4,param_2,iVar3 + 1U);\n    *(undefined4 *)(this + 0xc) = uVar2;\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    *(undefined4 *)(this + 0xc) = uVar2;\n  }" { (expression_statement "*(undefined4 *)(this + 0xc) = uVar2;" (assignment_expression "*(undefined4 *)(this + 0xc) = uVar2" (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) ;) }) (else_clause "else {\n    iVar3 = (*(code *)PTR_strlen_0043677c)(param_2);\n                    \n    pvVar4 = operator_new__(iVar3 + 1U);\n    uVar2 = (*(code *)PTR_memcpy_00436788)(pvVar4,param_2,iVar3 + 1U);\n    *(undefined4 *)(this + 0xc) = uVar2;\n  }" else (compound_statement "{\n    iVar3 = (*(code *)PTR_strlen_0043677c)(param_2);\n                    \n    pvVar4 = operator_new__(iVar3 + 1U);\n    uVar2 = (*(code *)PTR_memcpy_00436788)(pvVar4,param_2,iVar3 + 1U);\n    *(undefined4 *)(this + 0xc) = uVar2;\n  }" { (expression_statement "iVar3 = (*(code *)PTR_strlen_0043677c)(param_2);" (assignment_expression "iVar3 = (*(code *)PTR_strlen_0043677c)(param_2)" identifier = (call_expression "(*(code *)PTR_strlen_0043677c)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_0043677c)" ( (pointer_expression "*(code *)PTR_strlen_0043677c" * (cast_expression "(code *)PTR_strlen_0043677c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "pvVar4 = operator_new__(iVar3 + 1U);" (assignment_expression "pvVar4 = operator_new__(iVar3 + 1U)" identifier = (call_expression "operator_new__(iVar3 + 1U)" identifier (argument_list "(iVar3 + 1U)" ( (binary_expression "iVar3 + 1U" identifier + number_literal) )))) ;) (expression_statement "uVar2 = (*(code *)PTR_memcpy_00436788)(pvVar4,param_2,iVar3 + 1U);" (assignment_expression "uVar2 = (*(code *)PTR_memcpy_00436788)(pvVar4,param_2,iVar3 + 1U)" identifier = (call_expression "(*(code *)PTR_memcpy_00436788)(pvVar4,param_2,iVar3 + 1U)" (parenthesized_expression "(*(code *)PTR_memcpy_00436788)" ( (pointer_expression "*(code *)PTR_memcpy_00436788" * (cast_expression "(code *)PTR_memcpy_00436788" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pvVar4,param_2,iVar3 + 1U)" ( identifier , identifier , (binary_expression "iVar3 + 1U" identifier + number_literal) )))) ;) (expression_statement "*(undefined4 *)(this + 0xc) = uVar2;" (assignment_expression "*(undefined4 *)(this + 0xc) = uVar2" (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) ;) }))) (expression_statement "uVar2 = (*(code *)PTR__S_clone_c_locale_004337ec)(local_res4);" (assignment_expression "uVar2 = (*(code *)PTR__S_clone_c_locale_004337ec)(local_res4)" identifier = (call_expression "(*(code *)PTR__S_clone_c_locale_004337ec)(local_res4)" (parenthesized_expression "(*(code *)PTR__S_clone_c_locale_004337ec)" ( (pointer_expression "*(code *)PTR__S_clone_c_locale_004337ec" * (cast_expression "(code *)PTR__S_clone_c_locale_004337ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_res4)" ( identifier )))) ;) (expression_statement "*(undefined4 *)(this + 8) = uVar2;" (assignment_expression "*(undefined4 *)(this + 8) = uVar2" (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) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ms_call_modifier __thiscall) (ERROR IDENT : : IDENT < TYPE > : :) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (ERROR < TYPE >) (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * (array_declarator IDENT [ LIT ])) ;) (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 *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (ERROR (assignment_expression IDENT = IDENT) : :) (labeled_statement statement_identifier : (ERROR :) (expression_statement (call_expression IDENT (argument_list ( ))) ;)) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , 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) )))) = IDENT) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (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\nstd::messages<char>::messages\n          (messages<char> *this,__locale_struct *param_1,char *param_2,uint param_3)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  void *pvVar4;\n  __locale_struct *local_res4 [3];\n  \n  puVar1 = PTR_vtable_00433754 + 8;\n  *(uint *)(this + 4) = (uint)(param_3 != 0);\n  *(undefined4 *)(this + 8) = 0;\n  *(undefined4 *)(this + 0xc) = 0;\n  *(undefined **)this = puVar1;\n  local_res4[0] = param_1;\n  uVar2 = locale::facet::_S_get_c_name();\n  iVar3 = (*(code *)PTR_strcmp_00436644)(param_2,uVar2);\n  if (iVar3 == 0) {\n    *(undefined4 *)(this + 0xc) = uVar2;\n  }\n  else {\n    iVar3 = (*(code *)PTR_strlen_0043677c)(param_2);\n                    \n    pvVar4 = operator_new__(iVar3 + 1U);\n    uVar2 = (*(code *)PTR_memcpy_00436788)(pvVar4,param_2,iVar3 + 1U);\n    *(undefined4 *)(this + 0xc) = uVar2;\n  }\n  uVar2 = (*(code *)PTR__S_clone_c_locale_004337ec)(local_res4);\n  *(undefined4 *)(this + 8) = uVar2;\n  return;\n}" (primitive_type "void") (ms_call_modifier "__thiscall" (__thiscall "__thiscall")) (ERROR "std::messages<char>::" (identifier "std") (: ":") (: ":") (identifier "messages") (< "<") (primitive_type "char") (> ">") (: ":") (: ":")) (function_declarator "messages\n          (messages<char> *this,__locale_struct *param_1,char *param_2,uint param_3)" (identifier "messages") (parameter_list "(messages<char> *this,__locale_struct *param_1,char *param_2,uint param_3)" (( "(") (parameter_declaration "messages<char> *this" (type_identifier "messages") (ERROR "<char>" (< "<") (primitive_type "char") (> ">")) (pointer_declarator "*this" (* "*") (identifier "this"))) (, ",") (parameter_declaration "__locale_struct *param_1" (type_identifier "__locale_struct") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  void *pvVar4;\n  __locale_struct *local_res4 [3];\n  \n  puVar1 = PTR_vtable_00433754 + 8;\n  *(uint *)(this + 4) = (uint)(param_3 != 0);\n  *(undefined4 *)(this + 8) = 0;\n  *(undefined4 *)(this + 0xc) = 0;\n  *(undefined **)this = puVar1;\n  local_res4[0] = param_1;\n  uVar2 = locale::facet::_S_get_c_name();\n  iVar3 = (*(code *)PTR_strcmp_00436644)(param_2,uVar2);\n  if (iVar3 == 0) {\n    *(undefined4 *)(this + 0xc) = uVar2;\n  }\n  else {\n    iVar3 = (*(code *)PTR_strlen_0043677c)(param_2);\n                    \n    pvVar4 = operator_new__(iVar3 + 1U);\n    uVar2 = (*(code *)PTR_memcpy_00436788)(pvVar4,param_2,iVar3 + 1U);\n    *(undefined4 *)(this + 0xc) = uVar2;\n  }\n  uVar2 = (*(code *)PTR__S_clone_c_locale_004337ec)(local_res4);\n  *(undefined4 *)(this + 8) = uVar2;\n  return;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "void *pvVar4;" (primitive_type "void") (pointer_declarator "*pvVar4" (* "*") (identifier "pvVar4")) (; ";")) (declaration "__locale_struct *local_res4 [3];" (type_identifier "__locale_struct") (pointer_declarator "*local_res4 [3]" (* "*") (array_declarator "local_res4 [3]" (identifier "local_res4") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "puVar1 = PTR_vtable_00433754 + 8;" (assignment_expression "puVar1 = PTR_vtable_00433754 + 8" (identifier "puVar1") (= "=") (binary_expression "PTR_vtable_00433754 + 8" (identifier "PTR_vtable_00433754") (+ "+") (number_literal "8"))) (; ";")) (expression_statement "*(uint *)(this + 4) = (uint)(param_3 != 0);" (assignment_expression "*(uint *)(this + 4) = (uint)(param_3 != 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_3 != 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")))) (; ";")) (expression_statement "*(undefined4 *)(this + 8) = 0;" (assignment_expression "*(undefined4 *)(this + 8) = 0" (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")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(this + 0xc) = 0;" (assignment_expression "*(undefined4 *)(this + 0xc) = 0" (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")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined **)this = puVar1;" (assignment_expression "*(undefined **)this = puVar1" (pointer_expression "*(undefined **)this" (* "*") (cast_expression "(undefined **)this" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "this"))) (= "=") (identifier "puVar1")) (; ";")) (expression_statement "local_res4[0] = param_1;" (assignment_expression "local_res4[0] = param_1" (subscript_expression "local_res4[0]" (identifier "local_res4") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "param_1")) (; ";")) (ERROR "uVar2 = locale::" (assignment_expression "uVar2 = locale" (identifier "uVar2") (= "=") (identifier "locale")) (: ":") (: ":")) (labeled_statement "facet::_S_get_c_name();" (statement_identifier "facet") (: ":") (ERROR ":" (: ":")) (expression_statement "_S_get_c_name();" (call_expression "_S_get_c_name()" (identifier "_S_get_c_name") (argument_list "()" (( "(") () ")"))) (; ";"))) (expression_statement "iVar3 = (*(code *)PTR_strcmp_00436644)(param_2,uVar2);" (assignment_expression "iVar3 = (*(code *)PTR_strcmp_00436644)(param_2,uVar2)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_strcmp_00436644)(param_2,uVar2)" (parenthesized_expression "(*(code *)PTR_strcmp_00436644)" (( "(") (pointer_expression "*(code *)PTR_strcmp_00436644" (* "*") (cast_expression "(code *)PTR_strcmp_00436644" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcmp_00436644"))) () ")")) (argument_list "(param_2,uVar2)" (( "(") (identifier "param_2") (, ",") (identifier "uVar2") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n    *(undefined4 *)(this + 0xc) = uVar2;\n  }\n  else {\n    iVar3 = (*(code *)PTR_strlen_0043677c)(param_2);\n                    \n    pvVar4 = operator_new__(iVar3 + 1U);\n    uVar2 = (*(code *)PTR_memcpy_00436788)(pvVar4,param_2,iVar3 + 1U);\n    *(undefined4 *)(this + 0xc) = uVar2;\n  }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    *(undefined4 *)(this + 0xc) = uVar2;\n  }" ({ "{") (expression_statement "*(undefined4 *)(this + 0xc) = uVar2;" (assignment_expression "*(undefined4 *)(this + 0xc) = uVar2" (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 "uVar2")) (; ";")) (} "}")) (else_clause "else {\n    iVar3 = (*(code *)PTR_strlen_0043677c)(param_2);\n                    \n    pvVar4 = operator_new__(iVar3 + 1U);\n    uVar2 = (*(code *)PTR_memcpy_00436788)(pvVar4,param_2,iVar3 + 1U);\n    *(undefined4 *)(this + 0xc) = uVar2;\n  }" (else "else") (compound_statement "{\n    iVar3 = (*(code *)PTR_strlen_0043677c)(param_2);\n                    \n    pvVar4 = operator_new__(iVar3 + 1U);\n    uVar2 = (*(code *)PTR_memcpy_00436788)(pvVar4,param_2,iVar3 + 1U);\n    *(undefined4 *)(this + 0xc) = uVar2;\n  }" ({ "{") (expression_statement "iVar3 = (*(code *)PTR_strlen_0043677c)(param_2);" (assignment_expression "iVar3 = (*(code *)PTR_strlen_0043677c)(param_2)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_strlen_0043677c)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_0043677c)" (( "(") (pointer_expression "*(code *)PTR_strlen_0043677c" (* "*") (cast_expression "(code *)PTR_strlen_0043677c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_0043677c"))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "pvVar4 = operator_new__(iVar3 + 1U);" (assignment_expression "pvVar4 = operator_new__(iVar3 + 1U)" (identifier "pvVar4") (= "=") (call_expression "operator_new__(iVar3 + 1U)" (identifier "operator_new__") (argument_list "(iVar3 + 1U)" (( "(") (binary_expression "iVar3 + 1U" (identifier "iVar3") (+ "+") (number_literal "1U")) () ")")))) (; ";")) (expression_statement "uVar2 = (*(code *)PTR_memcpy_00436788)(pvVar4,param_2,iVar3 + 1U);" (assignment_expression "uVar2 = (*(code *)PTR_memcpy_00436788)(pvVar4,param_2,iVar3 + 1U)" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR_memcpy_00436788)(pvVar4,param_2,iVar3 + 1U)" (parenthesized_expression "(*(code *)PTR_memcpy_00436788)" (( "(") (pointer_expression "*(code *)PTR_memcpy_00436788" (* "*") (cast_expression "(code *)PTR_memcpy_00436788" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_00436788"))) () ")")) (argument_list "(pvVar4,param_2,iVar3 + 1U)" (( "(") (identifier "pvVar4") (, ",") (identifier "param_2") (, ",") (binary_expression "iVar3 + 1U" (identifier "iVar3") (+ "+") (number_literal "1U")) () ")")))) (; ";")) (expression_statement "*(undefined4 *)(this + 0xc) = uVar2;" (assignment_expression "*(undefined4 *)(this + 0xc) = uVar2" (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 "uVar2")) (; ";")) (} "}")))) (expression_statement "uVar2 = (*(code *)PTR__S_clone_c_locale_004337ec)(local_res4);" (assignment_expression "uVar2 = (*(code *)PTR__S_clone_c_locale_004337ec)(local_res4)" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR__S_clone_c_locale_004337ec)(local_res4)" (parenthesized_expression "(*(code *)PTR__S_clone_c_locale_004337ec)" (( "(") (pointer_expression "*(code *)PTR__S_clone_c_locale_004337ec" (* "*") (cast_expression "(code *)PTR__S_clone_c_locale_004337ec" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR__S_clone_c_locale_004337ec"))) () ")")) (argument_list "(local_res4)" (( "(") (identifier "local_res4") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(this + 8) = uVar2;" (assignment_expression "*(undefined4 *)(this + 8) = uVar2" (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 "uVar2")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::messages<char>::messages(__locale_struct*, char const*, unsigned int) */

void __thiscall
std::function_1<char>::function_1
          (function_1<char> *var_2,type_1 *param_1,char *param_2,type_2 var_3)

{
  type_3 *puVar1;
  type_4 uVar2;
  int var_5;
  void *pvVar4;
  type_1 *local_res4 [3];
  
  puVar1 = var_1 + 8;
  *(type_2 *)(var_2 + 4) = (type_2)(var_3 != 0);
  *(type_4 *)(var_2 + 8) = 0;
  *(type_4 *)(var_2 + 0xc) = 0;
  *(type_3 **)var_2 = puVar1;
  local_res4[0] = param_1;
  uVar2 = locale::facet::var_4();
  var_5 = (*(type_5 *)PTR_strcmp_00436644)(param_2,uVar2);
  if (var_5 == 0) {
    *(type_4 *)(var_2 + 0xc) = uVar2;
  }
  else {
    var_5 = (*(type_5 *)PTR_strlen_0043677c)(param_2);
                    /* try { // try from 002cf8d4 to 002cf8db has its CatchHandler @ 002cf900 */
    pvVar4 = var_6(var_5 + 1U);
    uVar2 = (*(type_5 *)PTR_memcpy_00436788)(pvVar4,param_2,var_5 + 1U);
    *(type_4 *)(var_2 + 0xc) = uVar2;
  }
  uVar2 = (*(type_5 *)PTR__S_clone_c_locale_004337ec)(local_res4);
  *(type_4 *)(var_2 + 8) = uVar2;
  return;
}


(translation_unit (function_definition type: (primitive_type) (ms_call_modifier) (ERROR (identifier) (identifier) (primitive_type)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) (ERROR (primitive_type)) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) 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: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (array_declarator declarator: (identifier) size: (number_literal)))) (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)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (ERROR (assignment_expression left: (identifier) right: (identifier))) (labeled_statement label: (statement_identifier) (ERROR) (expression_statement (call_expression function: (identifier) arguments: (argument_list)))) (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 (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (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)))) alternative: (else_clause (compound_statement (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 (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))) (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 (identifier) (identifier) (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: (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 (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))) (return_statement))))

/* std::MASKED<char>::MASKED(__locale_struct*, char const*, unsigned int) */

void __thiscall
std::MASKED<char>::MASKED
          (MASKED<char> *this,__locale_struct *param_1,char *param_2,uint param_3)

{
  undefined *puVar1;
  undefined4 uVar2;
  int iVar3;
  void *pvVar4;
  __locale_struct *local_res4 [3];
  
  puVar1 = PTR_vtable_00433754 + 8;
  *(uint *)(this + 4) = (uint)(param_3 != 0);
  *(undefined4 *)(this + 8) = 0;
  *(undefined4 *)(this + 0xc) = 0;
  *(undefined **)this = puVar1;
  local_res4[0] = param_1;
  uVar2 = locale::facet::_S_get_c_name();
  iVar3 = (*(code *)PTR_strcmp_00436644)(param_2,uVar2);
  if (iVar3 == 0) {
    *(undefined4 *)(this + 0xc) = uVar2;
  }
  else {
    iVar3 = (*(code *)PTR_strlen_0043677c)(param_2);
                    /* try { // try from 002cf8d4 to 002cf8db has its CatchHandler @ 002cf900 */
    pvVar4 = operator_new__(iVar3 + 1U);
    uVar2 = (*(code *)PTR_memcpy_00436788)(pvVar4,param_2,iVar3 + 1U);
    *(undefined4 *)(this + 0xc) = uVar2;
  }
  uVar2 = (*(code *)PTR__S_clone_c_locale_004337ec)(local_res4);
  *(undefined4 *)(this + 8) = uVar2;
  return;
}

