
/* std::__facet_shims::(anonymous namespace)::messages_shim<wchar_t>::do_get(int, int, int,
   std::wstring const&) const */

long * std::__facet_shims::(anonymous_namespace)::messages_shim<wchar_t>::do_get
                 (int param_1,int param_2,int param_3,wstring *param_4)

{
  undefined4 in_register_00000014;
  undefined4 in_register_00000034;
  undefined4 in_register_0000003c;
  long *plVar1;
  undefined8 in_R8;
  undefined8 *in_R9;
  long local_48;
  long local_40;
  code *local_28;
  
  plVar1 = (long *)CONCAT44(in_register_0000003c,param_1);
  local_28 = (code *)0x0;
                    /* try { // try from 0031083b to 00310863 has its CatchHandler @ 0031088a */
  __messages_get<wchar_t>
            (*(undefined8 *)(CONCAT44(in_register_00000034,param_2) + 0x20),&local_48,
             CONCAT44(in_register_00000014,param_3),param_4,in_R8,*in_R9,in_R9[1]);
  if (local_28 != (code *)0x0) {
    *plVar1 = (long)(plVar1 + 2);
    std::wstring::_M_construct<wchar_t_const*>(plVar1,local_48,local_48 + local_40 * 4);
    if (local_28 != (code *)0x0) {
      (*local_28)(&local_48);
    }
    return plVar1;
  }
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 00310885 to 00310889 has its CatchHandler @ 0031088a */
  __throw_logic_error("uninitialized __any_string");
}



long * FUN_00310810(long *param_1,long param_2)

{
  long local_48;
  long local_40;
  code *local_28;
  
  local_28 = (code *)0x0;
                    /* try { // try from 0031083b to 00310863 has its CatchHandler @ 0031088a */
  FUN_00317390(*(undefined8 *)(param_2 + 0x20),&local_48);
  if (local_28 != (code *)0x0) {
    *param_1 = (long)(param_1 + 2);
    FUN_002e12a0(param_1,local_48,local_48 + local_40 * 4);
    if (local_28 != (code *)0x0) {
      (*local_28)(&local_48);
    }
    return param_1;
  }
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 00310885 to 00310889 has its CatchHandler @ 0031088a */
  FUN_003194d0("uninitialized __any_string");
}


PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV RBX,RDI
LEA RAX,[RBP + -0x40]
MOV R14,RAX
SUB RSP,0x38
MOV RDI,qword ptr [RSI + 0x20]
PUSH qword ptr [R9 + 0x8]
MOV RSI,RAX
MOV R9,qword ptr [R9]
MOV qword ptr [RBP + -0x20],0x0
CALL 0x00317390
CMP qword ptr [RBP + -0x20],0x0
POP RAX
POP RDX
JZ 0x0031087e
LEA RAX,[RBX + 0x10]
MOV RSI,qword ptr [RBP + -0x40]
MOV RDI,RBX
MOV qword ptr [RBX],RAX
MOV RAX,qword ptr [RBP + -0x38]
LEA RDX,[RSI + RAX*0x4]
CALL 0x002e12a0
MOV RAX,qword ptr [RBP + -0x20]
TEST RAX,RAX
JZ 0x00310872
MOV RDI,R14
CALL RAX
LEA RSP,[RBP + -0x10]
MOV RAX,RBX
POP RBX
POP R14
POP RBP
RET
LEA RDI,[0x391f44]
CALL 0x003194d0
(translation_unit "long * FUN_00310810(long *param_1,long param_2)\n\n{\n  long local_48;\n  long local_40;\n  code *local_28;\n  \n  local_28 = (code *)0x0;\n                    /* try { // try from 0031083b to 00310863 has its CatchHandler @ 0031088a */\n  FUN_00317390(*(undefined8 *)(param_2 + 0x20),&local_48);\n  if (local_28 != (code *)0x0) {\n    *param_1 = (long)(param_1 + 2);\n    FUN_002e12a0(param_1,local_48,local_48 + local_40 * 4);\n    if (local_28 != (code *)0x0) {\n      (*local_28)(&local_48);\n    }\n    return param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 00310885 to 00310889 has its CatchHandler @ 0031088a */\n  FUN_003194d0("uninitialized __any_string");\n}\n\n" (function_definition "long * FUN_00310810(long *param_1,long param_2)\n\n{\n  long local_48;\n  long local_40;\n  code *local_28;\n  \n  local_28 = (code *)0x0;\n                    /* try { // try from 0031083b to 00310863 has its CatchHandler @ 0031088a */\n  FUN_00317390(*(undefined8 *)(param_2 + 0x20),&local_48);\n  if (local_28 != (code *)0x0) {\n    *param_1 = (long)(param_1 + 2);\n    FUN_002e12a0(param_1,local_48,local_48 + local_40 * 4);\n    if (local_28 != (code *)0x0) {\n      (*local_28)(&local_48);\n    }\n    return param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 00310885 to 00310889 has its CatchHandler @ 0031088a */\n  FUN_003194d0("uninitialized __any_string");\n}" (sized_type_specifier "long" long) (pointer_declarator "* FUN_00310810(long *param_1,long param_2)" * (function_declarator "FUN_00310810(long *param_1,long param_2)" identifier (parameter_list "(long *param_1,long param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) )))) (compound_statement "{\n  long local_48;\n  long local_40;\n  code *local_28;\n  \n  local_28 = (code *)0x0;\n                    /* try { // try from 0031083b to 00310863 has its CatchHandler @ 0031088a */\n  FUN_00317390(*(undefined8 *)(param_2 + 0x20),&local_48);\n  if (local_28 != (code *)0x0) {\n    *param_1 = (long)(param_1 + 2);\n    FUN_002e12a0(param_1,local_48,local_48 + local_40 * 4);\n    if (local_28 != (code *)0x0) {\n      (*local_28)(&local_48);\n    }\n    return param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 00310885 to 00310889 has its CatchHandler @ 0031088a */\n  FUN_003194d0("uninitialized __any_string");\n}" { (declaration "long local_48;" (sized_type_specifier "long" long) identifier ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (declaration "code *local_28;" type_identifier (pointer_declarator "*local_28" * identifier) ;) (expression_statement "local_28 = (code *)0x0;" (assignment_expression "local_28 = (code *)0x0" identifier = (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) comment (expression_statement "FUN_00317390(*(undefined8 *)(param_2 + 0x20),&local_48);" (call_expression "FUN_00317390(*(undefined8 *)(param_2 + 0x20),&local_48)" identifier (argument_list "(*(undefined8 *)(param_2 + 0x20),&local_48)" ( (pointer_expression "*(undefined8 *)(param_2 + 0x20)" * (cast_expression "(undefined8 *)(param_2 + 0x20)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))) , (pointer_expression "&local_48" & identifier) ))) ;) (if_statement "if (local_28 != (code *)0x0) {\n    *param_1 = (long)(param_1 + 2);\n    FUN_002e12a0(param_1,local_48,local_48 + local_40 * 4);\n    if (local_28 != (code *)0x0) {\n      (*local_28)(&local_48);\n    }\n    return param_1;\n  }" if (parenthesized_expression "(local_28 != (code *)0x0)" ( (binary_expression "local_28 != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *param_1 = (long)(param_1 + 2);\n    FUN_002e12a0(param_1,local_48,local_48 + local_40 * 4);\n    if (local_28 != (code *)0x0) {\n      (*local_28)(&local_48);\n    }\n    return param_1;\n  }" { (expression_statement "*param_1 = (long)(param_1 + 2);" (assignment_expression "*param_1 = (long)(param_1 + 2)" (pointer_expression "*param_1" * identifier) = (cast_expression "(long)(param_1 + 2)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) ;) (expression_statement "FUN_002e12a0(param_1,local_48,local_48 + local_40 * 4);" (call_expression "FUN_002e12a0(param_1,local_48,local_48 + local_40 * 4)" identifier (argument_list "(param_1,local_48,local_48 + local_40 * 4)" ( identifier , identifier , (binary_expression "local_48 + local_40 * 4" identifier + (binary_expression "local_40 * 4" identifier * number_literal)) ))) ;) (if_statement "if (local_28 != (code *)0x0) {\n      (*local_28)(&local_48);\n    }" if (parenthesized_expression "(local_28 != (code *)0x0)" ( (binary_expression "local_28 != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      (*local_28)(&local_48);\n    }" { (expression_statement "(*local_28)(&local_48);" (call_expression "(*local_28)(&local_48)" (parenthesized_expression "(*local_28)" ( (pointer_expression "*local_28" * identifier) )) (argument_list "(&local_48)" ( (pointer_expression "&local_48" & identifier) ))) ;) })) (return_statement "return param_1;" return identifier ;) })) comment comment (expression_statement "FUN_003194d0("uninitialized __any_string");" (call_expression "FUN_003194d0("uninitialized __any_string")" identifier (argument_list "("uninitialized __any_string")" ( (string_literal ""uninitialized __any_string"" " string_content ") ))) ;) })))
(translation_unit "/* std::__facet_shims::(anonymous namespace)::messages_shim<wchar_t>::do_get(int, int, int,\n   std::wstring const&) const */\n\nlong * std::__facet_shims::(anonymous_namespace)::messages_shim<wchar_t>::do_get\n                 (int param_1,int param_2,int param_3,wstring *param_4)\n\n{\n  undefined4 in_register_00000014;\n  undefined4 in_register_00000034;\n  undefined4 in_register_0000003c;\n  long *plVar1;\n  undefined8 in_R8;\n  undefined8 *in_R9;\n  long local_48;\n  long local_40;\n  code *local_28;\n  \n  plVar1 = (long *)CONCAT44(in_register_0000003c,param_1);\n  local_28 = (code *)0x0;\n                    /* try { // try from 0031083b to 00310863 has its CatchHandler @ 0031088a */\n  __messages_get<wchar_t>\n            (*(undefined8 *)(CONCAT44(in_register_00000034,param_2) + 0x20),&local_48,\n             CONCAT44(in_register_00000014,param_3),param_4,in_R8,*in_R9,in_R9[1]);\n  if (local_28 != (code *)0x0) {\n    *plVar1 = (long)(plVar1 + 2);\n    std::wstring::_M_construct<wchar_t_const*>(plVar1,local_48,local_48 + local_40 * 4);\n    if (local_28 != (code *)0x0) {\n      (*local_28)(&local_48);\n    }\n    return plVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 00310885 to 00310889 has its CatchHandler @ 0031088a */\n  __throw_logic_error("uninitialized __any_string");\n}\n\n" comment (function_definition "long * std::__facet_shims::(anonymous_namespace)::messages_shim<wchar_t>::do_get\n                 (int param_1,int param_2,int param_3,wstring *param_4)\n\n{\n  undefined4 in_register_00000014;\n  undefined4 in_register_00000034;\n  undefined4 in_register_0000003c;\n  long *plVar1;\n  undefined8 in_R8;\n  undefined8 *in_R9;\n  long local_48;\n  long local_40;\n  code *local_28;\n  \n  plVar1 = (long *)CONCAT44(in_register_0000003c,param_1);\n  local_28 = (code *)0x0;\n                    /* try { // try from 0031083b to 00310863 has its CatchHandler @ 0031088a */\n  __messages_get<wchar_t>\n            (*(undefined8 *)(CONCAT44(in_register_00000034,param_2) + 0x20),&local_48,\n             CONCAT44(in_register_00000014,param_3),param_4,in_R8,*in_R9,in_R9[1]);\n  if (local_28 != (code *)0x0) {\n    *plVar1 = (long)(plVar1 + 2);\n    std::wstring::_M_construct<wchar_t_const*>(plVar1,local_48,local_48 + local_40 * 4);\n    if (local_28 != (code *)0x0) {\n      (*local_28)(&local_48);\n    }\n    return plVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 00310885 to 00310889 has its CatchHandler @ 0031088a */\n  __throw_logic_error("uninitialized __any_string");\n}" (sized_type_specifier "long" long) (function_declarator "* std::__facet_shims::(anonymous_namespace)::messages_shim<wchar_t>::do_get\n                 (int param_1,int param_2,int param_3,wstring *param_4)" (pointer_declarator "* std::__facet_shims::(anonymous_namespace" * (ERROR "std::__facet_shims::(" identifier : : identifier : : () identifier) (ERROR ")::messages_shim<wchar_t>::do_get" ) : : identifier < identifier > : : identifier) (parameter_list "(int param_1,int param_2,int param_3,wstring *param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "wstring *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  undefined4 in_register_00000014;\n  undefined4 in_register_00000034;\n  undefined4 in_register_0000003c;\n  long *plVar1;\n  undefined8 in_R8;\n  undefined8 *in_R9;\n  long local_48;\n  long local_40;\n  code *local_28;\n  \n  plVar1 = (long *)CONCAT44(in_register_0000003c,param_1);\n  local_28 = (code *)0x0;\n                    /* try { // try from 0031083b to 00310863 has its CatchHandler @ 0031088a */\n  __messages_get<wchar_t>\n            (*(undefined8 *)(CONCAT44(in_register_00000034,param_2) + 0x20),&local_48,\n             CONCAT44(in_register_00000014,param_3),param_4,in_R8,*in_R9,in_R9[1]);\n  if (local_28 != (code *)0x0) {\n    *plVar1 = (long)(plVar1 + 2);\n    std::wstring::_M_construct<wchar_t_const*>(plVar1,local_48,local_48 + local_40 * 4);\n    if (local_28 != (code *)0x0) {\n      (*local_28)(&local_48);\n    }\n    return plVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 00310885 to 00310889 has its CatchHandler @ 0031088a */\n  __throw_logic_error("uninitialized __any_string");\n}" { (declaration "undefined4 in_register_00000014;" type_identifier identifier ;) (declaration "undefined4 in_register_00000034;" type_identifier identifier ;) (declaration "undefined4 in_register_0000003c;" type_identifier identifier ;) (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "undefined8 in_R8;" type_identifier identifier ;) (declaration "undefined8 *in_R9;" type_identifier (pointer_declarator "*in_R9" * identifier) ;) (declaration "long local_48;" (sized_type_specifier "long" long) identifier ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (declaration "code *local_28;" type_identifier (pointer_declarator "*local_28" * identifier) ;) (expression_statement "plVar1 = (long *)CONCAT44(in_register_0000003c,param_1);" (assignment_expression "plVar1 = (long *)CONCAT44(in_register_0000003c,param_1)" identifier = (cast_expression "(long *)CONCAT44(in_register_0000003c,param_1)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "CONCAT44(in_register_0000003c,param_1)" identifier (argument_list "(in_register_0000003c,param_1)" ( identifier , identifier ))))) ;) (expression_statement "local_28 = (code *)0x0;" (assignment_expression "local_28 = (code *)0x0" identifier = (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) comment (expression_statement "__messages_get<wchar_t>\n            (*(undefined8 *)(CONCAT44(in_register_00000034,param_2) + 0x20),&local_48,\n             CONCAT44(in_register_00000014,param_3),param_4,in_R8,*in_R9,in_R9[1]);" (binary_expression "__messages_get<wchar_t>\n            (*(undefined8 *)(CONCAT44(in_register_00000034,param_2) + 0x20),&local_48,\n             CONCAT44(in_register_00000014,param_3),param_4,in_R8,*in_R9,in_R9[1])" (binary_expression "__messages_get<wchar_t" identifier < identifier) > (parenthesized_expression "(*(undefined8 *)(CONCAT44(in_register_00000034,param_2) + 0x20),&local_48,\n             CONCAT44(in_register_00000014,param_3),param_4,in_R8,*in_R9,in_R9[1])" ( (comma_expression "*(undefined8 *)(CONCAT44(in_register_00000034,param_2) + 0x20),&local_48,\n             CONCAT44(in_register_00000014,param_3),param_4,in_R8,*in_R9,in_R9[1]" (pointer_expression "*(undefined8 *)(CONCAT44(in_register_00000034,param_2) + 0x20)" * (cast_expression "(undefined8 *)(CONCAT44(in_register_00000034,param_2) + 0x20)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(CONCAT44(in_register_00000034,param_2) + 0x20)" ( (binary_expression "CONCAT44(in_register_00000034,param_2) + 0x20" (call_expression "CONCAT44(in_register_00000034,param_2)" identifier (argument_list "(in_register_00000034,param_2)" ( identifier , identifier ))) + number_literal) )))) , (comma_expression "&local_48,\n             CONCAT44(in_register_00000014,param_3),param_4,in_R8,*in_R9,in_R9[1]" (pointer_expression "&local_48" & identifier) , (comma_expression "CONCAT44(in_register_00000014,param_3),param_4,in_R8,*in_R9,in_R9[1]" (call_expression "CONCAT44(in_register_00000014,param_3)" identifier (argument_list "(in_register_00000014,param_3)" ( identifier , identifier ))) , (comma_expression "param_4,in_R8,*in_R9,in_R9[1]" identifier , (comma_expression "in_R8,*in_R9,in_R9[1]" identifier , (comma_expression "*in_R9,in_R9[1]" (pointer_expression "*in_R9" * identifier) , (subscript_expression "in_R9[1]" identifier [ number_literal ]))))))) ))) ;) (if_statement "if (local_28 != (code *)0x0) {\n    *plVar1 = (long)(plVar1 + 2);\n    std::wstring::_M_construct<wchar_t_const*>(plVar1,local_48,local_48 + local_40 * 4);\n    if (local_28 != (code *)0x0) {\n      (*local_28)(&local_48);\n    }\n    return plVar1;\n  }" if (parenthesized_expression "(local_28 != (code *)0x0)" ( (binary_expression "local_28 != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *plVar1 = (long)(plVar1 + 2);\n    std::wstring::_M_construct<wchar_t_const*>(plVar1,local_48,local_48 + local_40 * 4);\n    if (local_28 != (code *)0x0) {\n      (*local_28)(&local_48);\n    }\n    return plVar1;\n  }" { (expression_statement "*plVar1 = (long)(plVar1 + 2);" (assignment_expression "*plVar1 = (long)(plVar1 + 2)" (pointer_expression "*plVar1" * identifier) = (cast_expression "(long)(plVar1 + 2)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(plVar1 + 2)" ( (binary_expression "plVar1 + 2" identifier + number_literal) )))) ;) (labeled_statement "std::wstring::_M_construct<wchar_t_const*>(plVar1,local_48,local_48 + local_40 * 4);" statement_identifier : (ERROR ":" :) (labeled_statement "wstring::_M_construct<wchar_t_const*>(plVar1,local_48,local_48 + local_40 * 4);" statement_identifier : (ERROR ":" :) (expression_statement "_M_construct<wchar_t_const*>(plVar1,local_48,local_48 + local_40 * 4);" (binary_expression "_M_construct<wchar_t_const*>(plVar1,local_48,local_48 + local_40 * 4)" (binary_expression "_M_construct<wchar_t_const" identifier < identifier) (ERROR "*" *) > (parenthesized_expression "(plVar1,local_48,local_48 + local_40 * 4)" ( (comma_expression "plVar1,local_48,local_48 + local_40 * 4" identifier , (comma_expression "local_48,local_48 + local_40 * 4" identifier , (binary_expression "local_48 + local_40 * 4" identifier + (binary_expression "local_40 * 4" identifier * number_literal)))) ))) ;))) (if_statement "if (local_28 != (code *)0x0) {\n      (*local_28)(&local_48);\n    }" if (parenthesized_expression "(local_28 != (code *)0x0)" ( (binary_expression "local_28 != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      (*local_28)(&local_48);\n    }" { (expression_statement "(*local_28)(&local_48);" (call_expression "(*local_28)(&local_48)" (parenthesized_expression "(*local_28)" ( (pointer_expression "*local_28" * identifier) )) (argument_list "(&local_48)" ( (pointer_expression "&local_48" & identifier) ))) ;) })) (return_statement "return plVar1;" return identifier ;) })) comment comment (expression_statement "__throw_logic_error("uninitialized __any_string");" (call_expression "__throw_logic_error("uninitialized __any_string")" identifier (argument_list "("uninitialized __any_string")" ( (string_literal ""uninitialized __any_string"" " string_content ") ))) ;) })))
(translation_unit "long * FUN_00310810(long *param_1,long param_2)\n\n{\n  long local_48;\n  long local_40;\n  code *local_28;\n  \n  local_28 = (code *)0x0;\n                    \n  FUN_00317390(*(undefined8 *)(param_2 + 0x20),&local_48);\n  if (local_28 != (code *)0x0) {\n    *param_1 = (long)(param_1 + 2);\n    FUN_002e12a0(param_1,local_48,local_48 + local_40 * 4);\n    if (local_28 != (code *)0x0) {\n      (*local_28)(&local_48);\n    }\n    return param_1;\n  }\n                    \n                    \n  FUN_003194d0("uninitialized __any_string");\n}\n\n" (function_definition "long * FUN_00310810(long *param_1,long param_2)\n\n{\n  long local_48;\n  long local_40;\n  code *local_28;\n  \n  local_28 = (code *)0x0;\n                    \n  FUN_00317390(*(undefined8 *)(param_2 + 0x20),&local_48);\n  if (local_28 != (code *)0x0) {\n    *param_1 = (long)(param_1 + 2);\n    FUN_002e12a0(param_1,local_48,local_48 + local_40 * 4);\n    if (local_28 != (code *)0x0) {\n      (*local_28)(&local_48);\n    }\n    return param_1;\n  }\n                    \n                    \n  FUN_003194d0("uninitialized __any_string");\n}" (sized_type_specifier "long" long) (pointer_declarator "* FUN_00310810(long *param_1,long param_2)" * (function_declarator "FUN_00310810(long *param_1,long param_2)" identifier (parameter_list "(long *param_1,long param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) )))) (compound_statement "{\n  long local_48;\n  long local_40;\n  code *local_28;\n  \n  local_28 = (code *)0x0;\n                    \n  FUN_00317390(*(undefined8 *)(param_2 + 0x20),&local_48);\n  if (local_28 != (code *)0x0) {\n    *param_1 = (long)(param_1 + 2);\n    FUN_002e12a0(param_1,local_48,local_48 + local_40 * 4);\n    if (local_28 != (code *)0x0) {\n      (*local_28)(&local_48);\n    }\n    return param_1;\n  }\n                    \n                    \n  FUN_003194d0("uninitialized __any_string");\n}" { (declaration "long local_48;" (sized_type_specifier "long" long) identifier ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (declaration "code *local_28;" type_identifier (pointer_declarator "*local_28" * identifier) ;) (expression_statement "local_28 = (code *)0x0;" (assignment_expression "local_28 = (code *)0x0" identifier = (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "FUN_00317390(*(undefined8 *)(param_2 + 0x20),&local_48);" (call_expression "FUN_00317390(*(undefined8 *)(param_2 + 0x20),&local_48)" identifier (argument_list "(*(undefined8 *)(param_2 + 0x20),&local_48)" ( (pointer_expression "*(undefined8 *)(param_2 + 0x20)" * (cast_expression "(undefined8 *)(param_2 + 0x20)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))) , (pointer_expression "&local_48" & identifier) ))) ;) (if_statement "if (local_28 != (code *)0x0) {\n    *param_1 = (long)(param_1 + 2);\n    FUN_002e12a0(param_1,local_48,local_48 + local_40 * 4);\n    if (local_28 != (code *)0x0) {\n      (*local_28)(&local_48);\n    }\n    return param_1;\n  }" if (parenthesized_expression "(local_28 != (code *)0x0)" ( (binary_expression "local_28 != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *param_1 = (long)(param_1 + 2);\n    FUN_002e12a0(param_1,local_48,local_48 + local_40 * 4);\n    if (local_28 != (code *)0x0) {\n      (*local_28)(&local_48);\n    }\n    return param_1;\n  }" { (expression_statement "*param_1 = (long)(param_1 + 2);" (assignment_expression "*param_1 = (long)(param_1 + 2)" (pointer_expression "*param_1" * identifier) = (cast_expression "(long)(param_1 + 2)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) ;) (expression_statement "FUN_002e12a0(param_1,local_48,local_48 + local_40 * 4);" (call_expression "FUN_002e12a0(param_1,local_48,local_48 + local_40 * 4)" identifier (argument_list "(param_1,local_48,local_48 + local_40 * 4)" ( identifier , identifier , (binary_expression "local_48 + local_40 * 4" identifier + (binary_expression "local_40 * 4" identifier * number_literal)) ))) ;) (if_statement "if (local_28 != (code *)0x0) {\n      (*local_28)(&local_48);\n    }" if (parenthesized_expression "(local_28 != (code *)0x0)" ( (binary_expression "local_28 != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      (*local_28)(&local_48);\n    }" { (expression_statement "(*local_28)(&local_48);" (call_expression "(*local_28)(&local_48)" (parenthesized_expression "(*local_28)" ( (pointer_expression "*local_28" * identifier) )) (argument_list "(&local_48)" ( (pointer_expression "&local_48" & identifier) ))) ;) })) (return_statement "return param_1;" return identifier ;) })) (expression_statement "FUN_003194d0("uninitialized __any_string");" (call_expression "FUN_003194d0("uninitialized __any_string")" identifier (argument_list "("uninitialized __any_string")" ( (string_literal ""uninitialized __any_string"" " string_content ") ))) ;) })))
(translation_unit (function_definition (sized_type_specifier long) (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) IDENT) )))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression & IDENT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression IDENT + (binary_expression IDENT * LIT)) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( (pointer_expression & IDENT) ))) ;) })) (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) })))
(function_definition "long * FUN_00310810(long *param_1,long param_2)\n\n{\n  long local_48;\n  long local_40;\n  code *local_28;\n  \n  local_28 = (code *)0x0;\n                    \n  FUN_00317390(*(undefined8 *)(param_2 + 0x20),&local_48);\n  if (local_28 != (code *)0x0) {\n    *param_1 = (long)(param_1 + 2);\n    FUN_002e12a0(param_1,local_48,local_48 + local_40 * 4);\n    if (local_28 != (code *)0x0) {\n      (*local_28)(&local_48);\n    }\n    return param_1;\n  }\n                    \n                    \n  FUN_003194d0("uninitialized __any_string");\n}" (sized_type_specifier "long" (long "long")) (pointer_declarator "* FUN_00310810(long *param_1,long param_2)" (* "*") (function_declarator "FUN_00310810(long *param_1,long param_2)" (identifier "FUN_00310810") (parameter_list "(long *param_1,long param_2)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) () ")")))) (compound_statement "{\n  long local_48;\n  long local_40;\n  code *local_28;\n  \n  local_28 = (code *)0x0;\n                    \n  FUN_00317390(*(undefined8 *)(param_2 + 0x20),&local_48);\n  if (local_28 != (code *)0x0) {\n    *param_1 = (long)(param_1 + 2);\n    FUN_002e12a0(param_1,local_48,local_48 + local_40 * 4);\n    if (local_28 != (code *)0x0) {\n      (*local_28)(&local_48);\n    }\n    return param_1;\n  }\n                    \n                    \n  FUN_003194d0("uninitialized __any_string");\n}" ({ "{") (declaration "long local_48;" (sized_type_specifier "long" (long "long")) (identifier "local_48") (; ";")) (declaration "long local_40;" (sized_type_specifier "long" (long "long")) (identifier "local_40") (; ";")) (declaration "code *local_28;" (type_identifier "code") (pointer_declarator "*local_28" (* "*") (identifier "local_28")) (; ";")) (expression_statement "local_28 = (code *)0x0;" (assignment_expression "local_28 = (code *)0x0" (identifier "local_28") (= "=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "FUN_00317390(*(undefined8 *)(param_2 + 0x20),&local_48);" (call_expression "FUN_00317390(*(undefined8 *)(param_2 + 0x20),&local_48)" (identifier "FUN_00317390") (argument_list "(*(undefined8 *)(param_2 + 0x20),&local_48)" (( "(") (pointer_expression "*(undefined8 *)(param_2 + 0x20)" (* "*") (cast_expression "(undefined8 *)(param_2 + 0x20)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x20)" (( "(") (binary_expression "param_2 + 0x20" (identifier "param_2") (+ "+") (number_literal "0x20")) () ")")))) (, ",") (pointer_expression "&local_48" (& "&") (identifier "local_48")) () ")"))) (; ";")) (if_statement "if (local_28 != (code *)0x0) {\n    *param_1 = (long)(param_1 + 2);\n    FUN_002e12a0(param_1,local_48,local_48 + local_40 * 4);\n    if (local_28 != (code *)0x0) {\n      (*local_28)(&local_48);\n    }\n    return param_1;\n  }" (if "if") (parenthesized_expression "(local_28 != (code *)0x0)" (( "(") (binary_expression "local_28 != (code *)0x0" (identifier "local_28") (!= "!=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    *param_1 = (long)(param_1 + 2);\n    FUN_002e12a0(param_1,local_48,local_48 + local_40 * 4);\n    if (local_28 != (code *)0x0) {\n      (*local_28)(&local_48);\n    }\n    return param_1;\n  }" ({ "{") (expression_statement "*param_1 = (long)(param_1 + 2);" (assignment_expression "*param_1 = (long)(param_1 + 2)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(long)(param_1 + 2)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) (; ";")) (expression_statement "FUN_002e12a0(param_1,local_48,local_48 + local_40 * 4);" (call_expression "FUN_002e12a0(param_1,local_48,local_48 + local_40 * 4)" (identifier "FUN_002e12a0") (argument_list "(param_1,local_48,local_48 + local_40 * 4)" (( "(") (identifier "param_1") (, ",") (identifier "local_48") (, ",") (binary_expression "local_48 + local_40 * 4" (identifier "local_48") (+ "+") (binary_expression "local_40 * 4" (identifier "local_40") (* "*") (number_literal "4"))) () ")"))) (; ";")) (if_statement "if (local_28 != (code *)0x0) {\n      (*local_28)(&local_48);\n    }" (if "if") (parenthesized_expression "(local_28 != (code *)0x0)" (( "(") (binary_expression "local_28 != (code *)0x0" (identifier "local_28") (!= "!=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      (*local_28)(&local_48);\n    }" ({ "{") (expression_statement "(*local_28)(&local_48);" (call_expression "(*local_28)(&local_48)" (parenthesized_expression "(*local_28)" (( "(") (pointer_expression "*local_28" (* "*") (identifier "local_28")) () ")")) (argument_list "(&local_48)" (( "(") (pointer_expression "&local_48" (& "&") (identifier "local_48")) () ")"))) (; ";")) (} "}"))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "FUN_003194d0("uninitialized __any_string");" (call_expression "FUN_003194d0("uninitialized __any_string")" (identifier "FUN_003194d0") (argument_list "("uninitialized __any_string")" (( "(") (string_literal ""uninitialized __any_string"" (" """) (string_content "uninitialized __any_string") (" """)) () ")"))) (; ";")) (} "}")))

/* std::__facet_shims::(anonymous namespace)::messages_shim<wchar_t>::do_get(int, int, int,
   std::wstring const&) const */

long * std::__facet_shims::(anonymous_namespace)::messages_shim<var_3>::do_get
                 (int param_1,int param_2,int param_3,type_1 *param_4)

{
  type_2 in_register_00000014;
  type_2 in_register_00000034;
  type_2 in_register_0000003c;
  long *var_5;
  type_3 in_R8;
  type_3 *in_R9;
  long var_8;
  long var_9;
  type_4 *var_4;
  
  var_5 = (long *)var_1(in_register_0000003c,param_1);
  var_4 = (type_4 *)0x0;
                    /* try { // try from 0031083b to 00310863 has its CatchHandler @ 0031088a */
  var_2<var_3>
            (*(type_3 *)(var_1(in_register_00000034,param_2) + 0x20),&var_8,
             var_1(in_register_00000014,param_3),param_4,in_R8,*in_R9,in_R9[1]);
  if (var_4 != (type_4 *)0x0) {
    *var_5 = (long)(var_5 + 2);
    std::wstring::var_6<var_7*>(var_5,var_8,var_8 + var_9 * 4);
    if (var_4 != (type_4 *)0x0) {
      (*var_4)(&var_8);
    }
    return var_5;
  }
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 00310885 to 00310889 has its CatchHandler @ 0031088a */
  var_10("uninitialized __any_string");
}


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

long * MASKED(long *param_1,long param_2)

{
  long local_48;
  long local_40;
  code *local_28;
  
  local_28 = (code *)0x0;
                    /* try { // try from 0031083b to 00310863 has its CatchHandler @ 0031088a */
  FUN_00317390(*(undefined8 *)(param_2 + 0x20),&local_48);
  if (local_28 != (code *)0x0) {
    *param_1 = (long)(param_1 + 2);
    FUN_002e12a0(param_1,local_48,local_48 + local_40 * 4);
    if (local_28 != (code *)0x0) {
      (*local_28)(&local_48);
    }
    return param_1;
  }
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 00310885 to 00310889 has its CatchHandler @ 0031088a */
  FUN_003194d0("uninitialized __any_string");
}

