
/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* std::__facet_shims::(anonymous namespace)::messages_shim<wchar_t>::do_get(int, int, int,
   std::wstring const&) const */

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

{
  allocator local_39;
  wchar_t *local_38;
  uint local_34;
  code *local_20;
  
  local_20 = (code *)0x0;
                    /* try { // try from 00227581 to 0022759f has its CatchHandler @ 002275d0 */
  __messages_get<wchar_t>(0,*(undefined4 *)(param_2 + 0x10),&local_38,param_3,param_4);
  if (local_20 != (code *)0x0) {
    std::wstring::wstring((wstring *)param_1,local_38,local_34,&local_39);
    if (local_20 != (code *)0x0) {
      (*local_20)(&local_38);
    }
    return param_1;
  }
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 002275cb to 002275cf has its CatchHandler @ 002275d0 */
  __throw_logic_error("uninitialized __any_string");
}



/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

undefined4
FUN_00227540(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5
            ,int *param_6)

{
  undefined1 local_39;
  undefined4 local_38;
  undefined4 local_34;
  code *local_20;
  
  local_20 = (code *)0x0;
                    /* try { // try from 00227581 to 0022759f has its CatchHandler @ 002275d0 */
  FUN_00224d20(0,*(undefined4 *)(param_2 + 0x10),&local_38,param_3,param_4,param_5,*param_6,
               *(undefined4 *)(*param_6 + -0xc));
  if (local_20 != (code *)0x0) {
    FUN_0026bb80(param_1,local_38,local_34,&local_39);
    if (local_20 != (code *)0x0) {
      (*local_20)(&local_38);
    }
    return param_1;
  }
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 002275cb to 002275cf has its CatchHandler @ 002275d0 */
  FUN_0022c6b0("uninitialized __any_string");
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
PUSH ESI
CALL 0x000559ea
ADD ESI,0x167ab6
PUSH EBX
SUB ESP,0x3c
MOV EAX,dword ptr [EBP + 0x1c]
MOV EDI,dword ptr [EBP + 0x8]
MOV dword ptr [EBP + -0x1c],0x0
MOV EAX,dword ptr [EAX]
MOV EBX,ESI
PUSH dword ptr [EAX + -0xc]
PUSH EAX
LEA EAX,[EBP + -0x34]
PUSH dword ptr [EBP + 0x18]
MOV dword ptr [EBP + -0x3c],EAX
PUSH dword ptr [EBP + 0x14]
PUSH dword ptr [EBP + 0x10]
PUSH EAX
MOV EAX,dword ptr [EBP + 0xc]
PUSH dword ptr [EAX + 0x10]
PUSH 0x0
CALL 0x00224d20
MOV EAX,dword ptr [EBP + -0x1c]
ADD ESP,0x20
TEST EAX,EAX
JZ 0x002275c1
LEA EAX,[EBP + -0x35]
PUSH EAX
PUSH dword ptr [EBP + -0x30]
PUSH dword ptr [EBP + -0x34]
PUSH EDI
CALL 0x0026bb80
MOV EAX,dword ptr [EBP + -0x1c]
ADD ESP,0x10
TEST EAX,EAX
JZ 0x002275b5
SUB ESP,0xc
PUSH dword ptr [EBP + -0x3c]
CALL EAX
ADD ESP,0x10
LEA ESP,[EBP + -0xc]
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
POP EBP
RET 0x4
SUB ESP,0xc
LEA EAX,[ESI + 0xfff15ab4]
PUSH EAX
CALL 0x0022c6b0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nundefined4\nFUN_00227540(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n            ,int *param_6)\n\n{\n  undefined1 local_39;\n  undefined4 local_38;\n  undefined4 local_34;\n  code *local_20;\n  \n  local_20 = (code *)0x0;\n                    /* try { // try from 00227581 to 0022759f has its CatchHandler @ 002275d0 */\n  FUN_00224d20(0,*(undefined4 *)(param_2 + 0x10),&local_38,param_3,param_4,param_5,*param_6,\n               *(undefined4 *)(*param_6 + -0xc));\n  if (local_20 != (code *)0x0) {\n    FUN_0026bb80(param_1,local_38,local_34,&local_39);\n    if (local_20 != (code *)0x0) {\n      (*local_20)(&local_38);\n    }\n    return param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002275cb to 002275cf has its CatchHandler @ 002275d0 */\n  FUN_0022c6b0("uninitialized __any_string");\n}\n\n" comment (function_definition "undefined4\nFUN_00227540(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n            ,int *param_6)\n\n{\n  undefined1 local_39;\n  undefined4 local_38;\n  undefined4 local_34;\n  code *local_20;\n  \n  local_20 = (code *)0x0;\n                    /* try { // try from 00227581 to 0022759f has its CatchHandler @ 002275d0 */\n  FUN_00224d20(0,*(undefined4 *)(param_2 + 0x10),&local_38,param_3,param_4,param_5,*param_6,\n               *(undefined4 *)(*param_6 + -0xc));\n  if (local_20 != (code *)0x0) {\n    FUN_0026bb80(param_1,local_38,local_34,&local_39);\n    if (local_20 != (code *)0x0) {\n      (*local_20)(&local_38);\n    }\n    return param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002275cb to 002275cf has its CatchHandler @ 002275d0 */\n  FUN_0022c6b0("uninitialized __any_string");\n}" type_identifier (function_declarator "FUN_00227540(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n            ,int *param_6)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n            ,int *param_6)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "int *param_6" primitive_type (pointer_declarator "*param_6" * identifier)) ))) (compound_statement "{\n  undefined1 local_39;\n  undefined4 local_38;\n  undefined4 local_34;\n  code *local_20;\n  \n  local_20 = (code *)0x0;\n                    /* try { // try from 00227581 to 0022759f has its CatchHandler @ 002275d0 */\n  FUN_00224d20(0,*(undefined4 *)(param_2 + 0x10),&local_38,param_3,param_4,param_5,*param_6,\n               *(undefined4 *)(*param_6 + -0xc));\n  if (local_20 != (code *)0x0) {\n    FUN_0026bb80(param_1,local_38,local_34,&local_39);\n    if (local_20 != (code *)0x0) {\n      (*local_20)(&local_38);\n    }\n    return param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002275cb to 002275cf has its CatchHandler @ 002275d0 */\n  FUN_0022c6b0("uninitialized __any_string");\n}" { (declaration "undefined1 local_39;" type_identifier identifier ;) (declaration "undefined4 local_38;" type_identifier identifier ;) (declaration "undefined4 local_34;" type_identifier identifier ;) (declaration "code *local_20;" type_identifier (pointer_declarator "*local_20" * identifier) ;) (expression_statement "local_20 = (code *)0x0;" (assignment_expression "local_20 = (code *)0x0" identifier = (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) comment (expression_statement "FUN_00224d20(0,*(undefined4 *)(param_2 + 0x10),&local_38,param_3,param_4,param_5,*param_6,\n               *(undefined4 *)(*param_6 + -0xc));" (call_expression "FUN_00224d20(0,*(undefined4 *)(param_2 + 0x10),&local_38,param_3,param_4,param_5,*param_6,\n               *(undefined4 *)(*param_6 + -0xc))" identifier (argument_list "(0,*(undefined4 *)(param_2 + 0x10),&local_38,param_3,param_4,param_5,*param_6,\n               *(undefined4 *)(*param_6 + -0xc))" ( number_literal , (pointer_expression "*(undefined4 *)(param_2 + 0x10)" * (cast_expression "(undefined4 *)(param_2 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) , (pointer_expression "&local_38" & identifier) , identifier , identifier , identifier , (pointer_expression "*param_6" * identifier) , (pointer_expression "*(undefined4 *)(*param_6 + -0xc)" * (cast_expression "(undefined4 *)(*param_6 + -0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_6 + -0xc)" ( (binary_expression "*param_6 + -0xc" (pointer_expression "*param_6" * identifier) + number_literal) )))) ))) ;) (if_statement "if (local_20 != (code *)0x0) {\n    FUN_0026bb80(param_1,local_38,local_34,&local_39);\n    if (local_20 != (code *)0x0) {\n      (*local_20)(&local_38);\n    }\n    return param_1;\n  }" if (parenthesized_expression "(local_20 != (code *)0x0)" ( (binary_expression "local_20 != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    FUN_0026bb80(param_1,local_38,local_34,&local_39);\n    if (local_20 != (code *)0x0) {\n      (*local_20)(&local_38);\n    }\n    return param_1;\n  }" { (expression_statement "FUN_0026bb80(param_1,local_38,local_34,&local_39);" (call_expression "FUN_0026bb80(param_1,local_38,local_34,&local_39)" identifier (argument_list "(param_1,local_38,local_34,&local_39)" ( identifier , identifier , identifier , (pointer_expression "&local_39" & identifier) ))) ;) (if_statement "if (local_20 != (code *)0x0) {\n      (*local_20)(&local_38);\n    }" if (parenthesized_expression "(local_20 != (code *)0x0)" ( (binary_expression "local_20 != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      (*local_20)(&local_38);\n    }" { (expression_statement "(*local_20)(&local_38);" (call_expression "(*local_20)(&local_38)" (parenthesized_expression "(*local_20)" ( (pointer_expression "*local_20" * identifier) )) (argument_list "(&local_38)" ( (pointer_expression "&local_38" & identifier) ))) ;) })) (return_statement "return param_1;" return identifier ;) })) comment comment (expression_statement "FUN_0022c6b0("uninitialized __any_string");" (call_expression "FUN_0022c6b0("uninitialized __any_string")" identifier (argument_list "("uninitialized __any_string")" ( (string_literal ""uninitialized __any_string"" " string_content ") ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n/* std::__facet_shims::(anonymous namespace)::messages_shim<wchar_t>::do_get(int, int, int,\n   std::wstring const&) const */\n\nint 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  allocator local_39;\n  wchar_t *local_38;\n  uint local_34;\n  code *local_20;\n  \n  local_20 = (code *)0x0;\n                    /* try { // try from 00227581 to 0022759f has its CatchHandler @ 002275d0 */\n  __messages_get<wchar_t>(0,*(undefined4 *)(param_2 + 0x10),&local_38,param_3,param_4);\n  if (local_20 != (code *)0x0) {\n    std::wstring::wstring((wstring *)param_1,local_38,local_34,&local_39);\n    if (local_20 != (code *)0x0) {\n      (*local_20)(&local_38);\n    }\n    return param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002275cb to 002275cf has its CatchHandler @ 002275d0 */\n  __throw_logic_error("uninitialized __any_string");\n}\n\n" comment comment (function_definition "int 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  allocator local_39;\n  wchar_t *local_38;\n  uint local_34;\n  code *local_20;\n  \n  local_20 = (code *)0x0;\n                    /* try { // try from 00227581 to 0022759f has its CatchHandler @ 002275d0 */\n  __messages_get<wchar_t>(0,*(undefined4 *)(param_2 + 0x10),&local_38,param_3,param_4);\n  if (local_20 != (code *)0x0) {\n    std::wstring::wstring((wstring *)param_1,local_38,local_34,&local_39);\n    if (local_20 != (code *)0x0) {\n      (*local_20)(&local_38);\n    }\n    return param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002275cb to 002275cf has its CatchHandler @ 002275d0 */\n  __throw_logic_error("uninitialized __any_string");\n}" primitive_type (ERROR "std::__facet_shims::(anonymous_namespace)::messages_shim<wchar_t>::" identifier : : identifier : : ( identifier ) : : identifier < identifier > : :) (function_declarator "do_get\n              (int param_1,int param_2,int param_3,wstring *param_4)" 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  allocator local_39;\n  wchar_t *local_38;\n  uint local_34;\n  code *local_20;\n  \n  local_20 = (code *)0x0;\n                    /* try { // try from 00227581 to 0022759f has its CatchHandler @ 002275d0 */\n  __messages_get<wchar_t>(0,*(undefined4 *)(param_2 + 0x10),&local_38,param_3,param_4);\n  if (local_20 != (code *)0x0) {\n    std::wstring::wstring((wstring *)param_1,local_38,local_34,&local_39);\n    if (local_20 != (code *)0x0) {\n      (*local_20)(&local_38);\n    }\n    return param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002275cb to 002275cf has its CatchHandler @ 002275d0 */\n  __throw_logic_error("uninitialized __any_string");\n}" { (declaration "allocator local_39;" type_identifier identifier ;) (declaration "wchar_t *local_38;" type_identifier (pointer_declarator "*local_38" * identifier) ;) (declaration "uint local_34;" type_identifier identifier ;) (declaration "code *local_20;" type_identifier (pointer_declarator "*local_20" * identifier) ;) (expression_statement "local_20 = (code *)0x0;" (assignment_expression "local_20 = (code *)0x0" identifier = (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) comment (expression_statement "__messages_get<wchar_t>(0,*(undefined4 *)(param_2 + 0x10),&local_38,param_3,param_4);" (binary_expression "__messages_get<wchar_t>(0,*(undefined4 *)(param_2 + 0x10),&local_38,param_3,param_4)" (binary_expression "__messages_get<wchar_t" identifier < identifier) > (parenthesized_expression "(0,*(undefined4 *)(param_2 + 0x10),&local_38,param_3,param_4)" ( (comma_expression "0,*(undefined4 *)(param_2 + 0x10),&local_38,param_3,param_4" number_literal , (comma_expression "*(undefined4 *)(param_2 + 0x10),&local_38,param_3,param_4" (pointer_expression "*(undefined4 *)(param_2 + 0x10)" * (cast_expression "(undefined4 *)(param_2 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) , (comma_expression "&local_38,param_3,param_4" (pointer_expression "&local_38" & identifier) , (comma_expression "param_3,param_4" identifier , identifier)))) ))) ;) (if_statement "if (local_20 != (code *)0x0) {\n    std::wstring::wstring((wstring *)param_1,local_38,local_34,&local_39);\n    if (local_20 != (code *)0x0) {\n      (*local_20)(&local_38);\n    }\n    return param_1;\n  }" if (parenthesized_expression "(local_20 != (code *)0x0)" ( (binary_expression "local_20 != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    std::wstring::wstring((wstring *)param_1,local_38,local_34,&local_39);\n    if (local_20 != (code *)0x0) {\n      (*local_20)(&local_38);\n    }\n    return param_1;\n  }" { (labeled_statement "std::wstring::wstring((wstring *)param_1,local_38,local_34,&local_39);" statement_identifier : (ERROR ":" :) (labeled_statement "wstring::wstring((wstring *)param_1,local_38,local_34,&local_39);" statement_identifier : (ERROR ":" :) (expression_statement "wstring((wstring *)param_1,local_38,local_34,&local_39);" (call_expression "wstring((wstring *)param_1,local_38,local_34,&local_39)" identifier (argument_list "((wstring *)param_1,local_38,local_34,&local_39)" ( (cast_expression "(wstring *)param_1" ( (type_descriptor "wstring *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier , (pointer_expression "&local_39" & identifier) ))) ;))) (if_statement "if (local_20 != (code *)0x0) {\n      (*local_20)(&local_38);\n    }" if (parenthesized_expression "(local_20 != (code *)0x0)" ( (binary_expression "local_20 != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      (*local_20)(&local_38);\n    }" { (expression_statement "(*local_20)(&local_38);" (call_expression "(*local_20)(&local_38)" (parenthesized_expression "(*local_20)" ( (pointer_expression "*local_20" * identifier) )) (argument_list "(&local_38)" ( (pointer_expression "&local_38" & identifier) ))) ;) })) (return_statement "return param_1;" 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 "undefined4\nFUN_00227540(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n            ,int *param_6)\n\n{\n  undefined1 local_39;\n  undefined4 local_38;\n  undefined4 local_34;\n  code *local_20;\n  \n  local_20 = (code *)0x0;\n                    \n  FUN_00224d20(0,*(undefined4 *)(param_2 + 0x10),&local_38,param_3,param_4,param_5,*param_6,\n               *(undefined4 *)(*param_6 + -0xc));\n  if (local_20 != (code *)0x0) {\n    FUN_0026bb80(param_1,local_38,local_34,&local_39);\n    if (local_20 != (code *)0x0) {\n      (*local_20)(&local_38);\n    }\n    return param_1;\n  }\n                    \n                    \n  FUN_0022c6b0("uninitialized __any_string");\n}\n\n" (function_definition "undefined4\nFUN_00227540(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n            ,int *param_6)\n\n{\n  undefined1 local_39;\n  undefined4 local_38;\n  undefined4 local_34;\n  code *local_20;\n  \n  local_20 = (code *)0x0;\n                    \n  FUN_00224d20(0,*(undefined4 *)(param_2 + 0x10),&local_38,param_3,param_4,param_5,*param_6,\n               *(undefined4 *)(*param_6 + -0xc));\n  if (local_20 != (code *)0x0) {\n    FUN_0026bb80(param_1,local_38,local_34,&local_39);\n    if (local_20 != (code *)0x0) {\n      (*local_20)(&local_38);\n    }\n    return param_1;\n  }\n                    \n                    \n  FUN_0022c6b0("uninitialized __any_string");\n}" type_identifier (function_declarator "FUN_00227540(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n            ,int *param_6)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n            ,int *param_6)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "int *param_6" primitive_type (pointer_declarator "*param_6" * identifier)) ))) (compound_statement "{\n  undefined1 local_39;\n  undefined4 local_38;\n  undefined4 local_34;\n  code *local_20;\n  \n  local_20 = (code *)0x0;\n                    \n  FUN_00224d20(0,*(undefined4 *)(param_2 + 0x10),&local_38,param_3,param_4,param_5,*param_6,\n               *(undefined4 *)(*param_6 + -0xc));\n  if (local_20 != (code *)0x0) {\n    FUN_0026bb80(param_1,local_38,local_34,&local_39);\n    if (local_20 != (code *)0x0) {\n      (*local_20)(&local_38);\n    }\n    return param_1;\n  }\n                    \n                    \n  FUN_0022c6b0("uninitialized __any_string");\n}" { (declaration "undefined1 local_39;" type_identifier identifier ;) (declaration "undefined4 local_38;" type_identifier identifier ;) (declaration "undefined4 local_34;" type_identifier identifier ;) (declaration "code *local_20;" type_identifier (pointer_declarator "*local_20" * identifier) ;) (expression_statement "local_20 = (code *)0x0;" (assignment_expression "local_20 = (code *)0x0" identifier = (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "FUN_00224d20(0,*(undefined4 *)(param_2 + 0x10),&local_38,param_3,param_4,param_5,*param_6,\n               *(undefined4 *)(*param_6 + -0xc));" (call_expression "FUN_00224d20(0,*(undefined4 *)(param_2 + 0x10),&local_38,param_3,param_4,param_5,*param_6,\n               *(undefined4 *)(*param_6 + -0xc))" identifier (argument_list "(0,*(undefined4 *)(param_2 + 0x10),&local_38,param_3,param_4,param_5,*param_6,\n               *(undefined4 *)(*param_6 + -0xc))" ( number_literal , (pointer_expression "*(undefined4 *)(param_2 + 0x10)" * (cast_expression "(undefined4 *)(param_2 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) , (pointer_expression "&local_38" & identifier) , identifier , identifier , identifier , (pointer_expression "*param_6" * identifier) , (pointer_expression "*(undefined4 *)(*param_6 + -0xc)" * (cast_expression "(undefined4 *)(*param_6 + -0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_6 + -0xc)" ( (binary_expression "*param_6 + -0xc" (pointer_expression "*param_6" * identifier) + number_literal) )))) ))) ;) (if_statement "if (local_20 != (code *)0x0) {\n    FUN_0026bb80(param_1,local_38,local_34,&local_39);\n    if (local_20 != (code *)0x0) {\n      (*local_20)(&local_38);\n    }\n    return param_1;\n  }" if (parenthesized_expression "(local_20 != (code *)0x0)" ( (binary_expression "local_20 != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    FUN_0026bb80(param_1,local_38,local_34,&local_39);\n    if (local_20 != (code *)0x0) {\n      (*local_20)(&local_38);\n    }\n    return param_1;\n  }" { (expression_statement "FUN_0026bb80(param_1,local_38,local_34,&local_39);" (call_expression "FUN_0026bb80(param_1,local_38,local_34,&local_39)" identifier (argument_list "(param_1,local_38,local_34,&local_39)" ( identifier , identifier , identifier , (pointer_expression "&local_39" & identifier) ))) ;) (if_statement "if (local_20 != (code *)0x0) {\n      (*local_20)(&local_38);\n    }" if (parenthesized_expression "(local_20 != (code *)0x0)" ( (binary_expression "local_20 != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      (*local_20)(&local_38);\n    }" { (expression_statement "(*local_20)(&local_38);" (call_expression "(*local_20)(&local_38)" (parenthesized_expression "(*local_20)" ( (pointer_expression "*local_20" * identifier) )) (argument_list "(&local_38)" ( (pointer_expression "&local_38" & identifier) ))) ;) })) (return_statement "return param_1;" return identifier ;) })) (expression_statement "FUN_0022c6b0("uninitialized __any_string");" (call_expression "FUN_0022c6b0("uninitialized __any_string")" identifier (argument_list "("uninitialized __any_string")" ( (string_literal ""uninitialized __any_string"" " string_content ") ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE 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 ( LIT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression & IDENT) , IDENT , IDENT , IDENT , (pointer_expression * IDENT) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_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 IDENT (argument_list ( IDENT , IDENT , IDENT , (pointer_expression & IDENT) ))) ;) (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 "undefined4\nFUN_00227540(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n            ,int *param_6)\n\n{\n  undefined1 local_39;\n  undefined4 local_38;\n  undefined4 local_34;\n  code *local_20;\n  \n  local_20 = (code *)0x0;\n                    \n  FUN_00224d20(0,*(undefined4 *)(param_2 + 0x10),&local_38,param_3,param_4,param_5,*param_6,\n               *(undefined4 *)(*param_6 + -0xc));\n  if (local_20 != (code *)0x0) {\n    FUN_0026bb80(param_1,local_38,local_34,&local_39);\n    if (local_20 != (code *)0x0) {\n      (*local_20)(&local_38);\n    }\n    return param_1;\n  }\n                    \n                    \n  FUN_0022c6b0("uninitialized __any_string");\n}" (type_identifier "undefined4") (function_declarator "FUN_00227540(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n            ,int *param_6)" (identifier "FUN_00227540") (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n            ,int *param_6)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) (, ",") (parameter_declaration "int *param_6" (primitive_type "int") (pointer_declarator "*param_6" (* "*") (identifier "param_6"))) () ")"))) (compound_statement "{\n  undefined1 local_39;\n  undefined4 local_38;\n  undefined4 local_34;\n  code *local_20;\n  \n  local_20 = (code *)0x0;\n                    \n  FUN_00224d20(0,*(undefined4 *)(param_2 + 0x10),&local_38,param_3,param_4,param_5,*param_6,\n               *(undefined4 *)(*param_6 + -0xc));\n  if (local_20 != (code *)0x0) {\n    FUN_0026bb80(param_1,local_38,local_34,&local_39);\n    if (local_20 != (code *)0x0) {\n      (*local_20)(&local_38);\n    }\n    return param_1;\n  }\n                    \n                    \n  FUN_0022c6b0("uninitialized __any_string");\n}" ({ "{") (declaration "undefined1 local_39;" (type_identifier "undefined1") (identifier "local_39") (; ";")) (declaration "undefined4 local_38;" (type_identifier "undefined4") (identifier "local_38") (; ";")) (declaration "undefined4 local_34;" (type_identifier "undefined4") (identifier "local_34") (; ";")) (declaration "code *local_20;" (type_identifier "code") (pointer_declarator "*local_20" (* "*") (identifier "local_20")) (; ";")) (expression_statement "local_20 = (code *)0x0;" (assignment_expression "local_20 = (code *)0x0" (identifier "local_20") (= "=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "FUN_00224d20(0,*(undefined4 *)(param_2 + 0x10),&local_38,param_3,param_4,param_5,*param_6,\n               *(undefined4 *)(*param_6 + -0xc));" (call_expression "FUN_00224d20(0,*(undefined4 *)(param_2 + 0x10),&local_38,param_3,param_4,param_5,*param_6,\n               *(undefined4 *)(*param_6 + -0xc))" (identifier "FUN_00224d20") (argument_list "(0,*(undefined4 *)(param_2 + 0x10),&local_38,param_3,param_4,param_5,*param_6,\n               *(undefined4 *)(*param_6 + -0xc))" (( "(") (number_literal "0") (, ",") (pointer_expression "*(undefined4 *)(param_2 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x10)" (( "(") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) () ")")))) (, ",") (pointer_expression "&local_38" (& "&") (identifier "local_38")) (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_5") (, ",") (pointer_expression "*param_6" (* "*") (identifier "param_6")) (, ",") (pointer_expression "*(undefined4 *)(*param_6 + -0xc)" (* "*") (cast_expression "(undefined4 *)(*param_6 + -0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_6 + -0xc)" (( "(") (binary_expression "*param_6 + -0xc" (pointer_expression "*param_6" (* "*") (identifier "param_6")) (+ "+") (number_literal "-0xc")) () ")")))) () ")"))) (; ";")) (if_statement "if (local_20 != (code *)0x0) {\n    FUN_0026bb80(param_1,local_38,local_34,&local_39);\n    if (local_20 != (code *)0x0) {\n      (*local_20)(&local_38);\n    }\n    return param_1;\n  }" (if "if") (parenthesized_expression "(local_20 != (code *)0x0)" (( "(") (binary_expression "local_20 != (code *)0x0" (identifier "local_20") (!= "!=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    FUN_0026bb80(param_1,local_38,local_34,&local_39);\n    if (local_20 != (code *)0x0) {\n      (*local_20)(&local_38);\n    }\n    return param_1;\n  }" ({ "{") (expression_statement "FUN_0026bb80(param_1,local_38,local_34,&local_39);" (call_expression "FUN_0026bb80(param_1,local_38,local_34,&local_39)" (identifier "FUN_0026bb80") (argument_list "(param_1,local_38,local_34,&local_39)" (( "(") (identifier "param_1") (, ",") (identifier "local_38") (, ",") (identifier "local_34") (, ",") (pointer_expression "&local_39" (& "&") (identifier "local_39")) () ")"))) (; ";")) (if_statement "if (local_20 != (code *)0x0) {\n      (*local_20)(&local_38);\n    }" (if "if") (parenthesized_expression "(local_20 != (code *)0x0)" (( "(") (binary_expression "local_20 != (code *)0x0" (identifier "local_20") (!= "!=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      (*local_20)(&local_38);\n    }" ({ "{") (expression_statement "(*local_20)(&local_38);" (call_expression "(*local_20)(&local_38)" (parenthesized_expression "(*local_20)" (( "(") (pointer_expression "*local_20" (* "*") (identifier "local_20")) () ")")) (argument_list "(&local_38)" (( "(") (pointer_expression "&local_38" (& "&") (identifier "local_38")) () ")"))) (; ";")) (} "}"))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "FUN_0022c6b0("uninitialized __any_string");" (call_expression "FUN_0022c6b0("uninitialized __any_string")" (identifier "FUN_0022c6b0") (argument_list "("uninitialized __any_string")" (( "(") (string_literal ""uninitialized __any_string"" (" """) (string_content "uninitialized __any_string") (" """)) () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* std::__facet_shims::(anonymous namespace)::messages_shim<wchar_t>::do_get(int, int, int,
   std::wstring const&) const */

int std::__facet_shims::(anonymous_namespace)::messages_shim<type_3>::function_1
              (int param_1,int var_2,int param_3,type_1 *param_4)

{
  type_2 local_39;
  type_3 *local_38;
  type_4 local_34;
  type_5 *var_3;
  
  var_3 = (type_5 *)0x0;
                    /* try { // try from 00227581 to 0022759f has its CatchHandler @ 002275d0 */
  var_1<type_3>(0,*(type_6 *)(var_2 + 0x10),&local_38,param_3,param_4);
  if (var_3 != (type_5 *)0x0) {
    std::wstring::type_1((type_1 *)param_1,local_38,local_34,&local_39);
    if (var_3 != (type_5 *)0x0) {
      (*var_3)(&local_38);
    }
    return param_1;
  }
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 002275cb to 002275cf has its CatchHandler @ 002275d0 */
  var_4("uninitialized __any_string");
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) 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 (number_literal) (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)) (identifier) (identifier) (identifier) (pointer_expression argument: (identifier)) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (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: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (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 (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))))))))

/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

undefined4
MASKED(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5
            ,int *param_6)

{
  undefined1 local_39;
  undefined4 local_38;
  undefined4 local_34;
  code *local_20;
  
  local_20 = (code *)0x0;
                    /* try { // try from 00227581 to 0022759f has its CatchHandler @ 002275d0 */
  FUN_00224d20(0,*(undefined4 *)(param_2 + 0x10),&local_38,param_3,param_4,param_5,*param_6,
               *(undefined4 *)(*param_6 + -0xc));
  if (local_20 != (code *)0x0) {
    FUN_0026bb80(param_1,local_38,local_34,&local_39);
    if (local_20 != (code *)0x0) {
      (*local_20)(&local_38);
    }
    return param_1;
  }
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 002275cb to 002275cf has its CatchHandler @ 002275d0 */
  FUN_0022c6b0("uninitialized __any_string");
}

