
/* std::__facet_shims::(anonymous namespace)::collate_shim<wchar_t>::do_transform(wchar_t const*,
   wchar_t const*) const */

wchar_t * std::__facet_shims::(anonymous_namespace)::collate_shim<wchar_t>::do_transform
                    (wchar_t *param_1,wchar_t *param_2)

{
  long local_48;
  long local_40;
  code *local_28;
  
  local_28 = (code *)0x0;
                    /* try { // try from 004d3e7c to 004d3ea4 has its CatchHandler @ 004d3eca */
  __collate_transform<wchar_t>(*(undefined8 *)(param_2 + 6),&local_48);
  if (local_28 != (code *)0x0) {
    *(wchar_t **)param_1 = param_1 + 4;
    std::wstring::_M_construct<wchar_t_const*>(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 004d3ec5 to 004d3ec9 has its CatchHandler @ 004d3eca */
  __throw_logic_error("uninitialized __any_string");
}



long * FUN_004d3e60(long *param_1,long param_2)

{
  long local_48;
  long local_40;
  code *local_28;
  
  local_28 = (code *)0x0;
                    /* try { // try from 004d3e7c to 004d3ea4 has its CatchHandler @ 004d3eca */
  FUN_004d9920(*(undefined8 *)(param_2 + 0x18),&local_48);
  if (local_28 != (code *)0x0) {
    *param_1 = (long)(param_1 + 2);
    FUN_004a4970(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 004d3ec5 to 004d3ec9 has its CatchHandler @ 004d3eca */
  FUN_004dcba0("uninitialized __any_string");
}


PUSH RBP
PUSH RBX
MOV RBX,RDI
SUB RSP,0x38
MOV RDI,qword ptr [RSI + 0x18]
MOV qword ptr [RSP + 0x20],0x0
MOV RBP,RSP
MOV RSI,RBP
CALL 0x004d9920
CMP qword ptr [RSP + 0x20],0x0
JZ 0x004d3ebe
LEA RAX,[RBX + 0x10]
MOV RSI,qword ptr [RSP]
MOV RDI,RBX
MOV qword ptr [RBX],RAX
MOV RAX,qword ptr [RSP + 0x8]
LEA RDX,[RSI + RAX*0x4]
CALL 0x004a4970
MOV RAX,qword ptr [RSP + 0x20]
TEST RAX,RAX
JZ 0x004d3eb4
MOV RDI,RBP
CALL RAX
ADD RSP,0x38
MOV RAX,RBX
POP RBX
POP RBP
RET
LEA RDI,[0x58bfe4]
CALL 0x004dcba0
(translation_unit "long * FUN_004d3e60(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 004d3e7c to 004d3ea4 has its CatchHandler @ 004d3eca */\n  FUN_004d9920(*(undefined8 *)(param_2 + 0x18),&local_48);\n  if (local_28 != (code *)0x0) {\n    *param_1 = (long)(param_1 + 2);\n    FUN_004a4970(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 004d3ec5 to 004d3ec9 has its CatchHandler @ 004d3eca */\n  FUN_004dcba0("uninitialized __any_string");\n}\n\n" (function_definition "long * FUN_004d3e60(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 004d3e7c to 004d3ea4 has its CatchHandler @ 004d3eca */\n  FUN_004d9920(*(undefined8 *)(param_2 + 0x18),&local_48);\n  if (local_28 != (code *)0x0) {\n    *param_1 = (long)(param_1 + 2);\n    FUN_004a4970(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 004d3ec5 to 004d3ec9 has its CatchHandler @ 004d3eca */\n  FUN_004dcba0("uninitialized __any_string");\n}" (sized_type_specifier "long" long) (pointer_declarator "* FUN_004d3e60(long *param_1,long param_2)" * (function_declarator "FUN_004d3e60(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 004d3e7c to 004d3ea4 has its CatchHandler @ 004d3eca */\n  FUN_004d9920(*(undefined8 *)(param_2 + 0x18),&local_48);\n  if (local_28 != (code *)0x0) {\n    *param_1 = (long)(param_1 + 2);\n    FUN_004a4970(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 004d3ec5 to 004d3ec9 has its CatchHandler @ 004d3eca */\n  FUN_004dcba0("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_004d9920(*(undefined8 *)(param_2 + 0x18),&local_48);" (call_expression "FUN_004d9920(*(undefined8 *)(param_2 + 0x18),&local_48)" identifier (argument_list "(*(undefined8 *)(param_2 + 0x18),&local_48)" ( (pointer_expression "*(undefined8 *)(param_2 + 0x18)" * (cast_expression "(undefined8 *)(param_2 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) , (pointer_expression "&local_48" & identifier) ))) ;) (if_statement "if (local_28 != (code *)0x0) {\n    *param_1 = (long)(param_1 + 2);\n    FUN_004a4970(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_004a4970(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_004a4970(param_1,local_48,local_48 + local_40 * 4);" (call_expression "FUN_004a4970(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_004dcba0("uninitialized __any_string");" (call_expression "FUN_004dcba0("uninitialized __any_string")" identifier (argument_list "("uninitialized __any_string")" ( (string_literal ""uninitialized __any_string"" " string_content ") ))) ;) })))
(translation_unit "/* std::__facet_shims::(anonymous namespace)::collate_shim<wchar_t>::do_transform(wchar_t const*,\n   wchar_t const*) const */\n\nwchar_t * std::__facet_shims::(anonymous_namespace)::collate_shim<wchar_t>::do_transform\n                    (wchar_t *param_1,wchar_t *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 004d3e7c to 004d3ea4 has its CatchHandler @ 004d3eca */\n  __collate_transform<wchar_t>(*(undefined8 *)(param_2 + 6),&local_48);\n  if (local_28 != (code *)0x0) {\n    *(wchar_t **)param_1 = param_1 + 4;\n    std::wstring::_M_construct<wchar_t_const*>(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 004d3ec5 to 004d3ec9 has its CatchHandler @ 004d3eca */\n  __throw_logic_error("uninitialized __any_string");\n}\n\n" comment (ERROR "wchar_t * std::" (binary_expression "wchar_t * std" identifier * identifier) : :) (labeled_statement "__facet_shims::(anonymous_namespace)::collate_shim<wchar_t>::do_transform\n                    (wchar_t *param_1,wchar_t *param_2)" statement_identifier (ERROR "::(anonymous_namespace)::collate_shim<wchar_t>:" : : (parenthesized_expression "(anonymous_namespace)" ( identifier )) : : (binary_expression "collate_shim<wchar_t" identifier < identifier) > :) : (expression_statement "do_transform\n                    (wchar_t *param_1,wchar_t *param_2)" (call_expression "do_transform\n                    (wchar_t *param_1,wchar_t *param_2)" identifier (argument_list "(wchar_t *param_1,wchar_t *param_2)" ( (binary_expression "wchar_t *param_1" identifier * identifier) , (binary_expression "wchar_t *param_2" identifier * 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 004d3e7c to 004d3ea4 has its CatchHandler @ 004d3eca */\n  __collate_transform<wchar_t>(*(undefined8 *)(param_2 + 6),&local_48);\n  if (local_28 != (code *)0x0) {\n    *(wchar_t **)param_1 = param_1 + 4;\n    std::wstring::_M_construct<wchar_t_const*>(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 004d3ec5 to 004d3ec9 has its CatchHandler @ 004d3eca */\n  __throw_logic_error("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 "__collate_transform<wchar_t>(*(undefined8 *)(param_2 + 6),&local_48);" (binary_expression "__collate_transform<wchar_t>(*(undefined8 *)(param_2 + 6),&local_48)" (binary_expression "__collate_transform<wchar_t" identifier < identifier) > (parenthesized_expression "(*(undefined8 *)(param_2 + 6),&local_48)" ( (comma_expression "*(undefined8 *)(param_2 + 6),&local_48" (pointer_expression "*(undefined8 *)(param_2 + 6)" * (cast_expression "(undefined8 *)(param_2 + 6)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 6)" ( (binary_expression "param_2 + 6" identifier + number_literal) )))) , (pointer_expression "&local_48" & identifier)) ))) ;) (if_statement "if (local_28 != (code *)0x0) {\n    *(wchar_t **)param_1 = param_1 + 4;\n    std::wstring::_M_construct<wchar_t_const*>(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    *(wchar_t **)param_1 = param_1 + 4;\n    std::wstring::_M_construct<wchar_t_const*>(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 "*(wchar_t **)param_1 = param_1 + 4;" (assignment_expression "*(wchar_t **)param_1 = param_1 + 4" (pointer_expression "*(wchar_t **)param_1" * (cast_expression "(wchar_t **)param_1" ( (type_descriptor "wchar_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = (binary_expression "param_1 + 4" identifier + number_literal)) ;) (labeled_statement "std::wstring::_M_construct<wchar_t_const*>(param_1,local_48,local_48 + local_40 * 4);" statement_identifier : (ERROR ":" :) (labeled_statement "wstring::_M_construct<wchar_t_const*>(param_1,local_48,local_48 + local_40 * 4);" statement_identifier : (ERROR ":" :) (expression_statement "_M_construct<wchar_t_const*>(param_1,local_48,local_48 + local_40 * 4);" (binary_expression "_M_construct<wchar_t_const*>(param_1,local_48,local_48 + local_40 * 4)" (binary_expression "_M_construct<wchar_t_const" identifier < identifier) (ERROR "*" *) > (parenthesized_expression "(param_1,local_48,local_48 + local_40 * 4)" ( (comma_expression "param_1,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 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 "long * FUN_004d3e60(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_004d9920(*(undefined8 *)(param_2 + 0x18),&local_48);\n  if (local_28 != (code *)0x0) {\n    *param_1 = (long)(param_1 + 2);\n    FUN_004a4970(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_004dcba0("uninitialized __any_string");\n}\n\n" (function_definition "long * FUN_004d3e60(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_004d9920(*(undefined8 *)(param_2 + 0x18),&local_48);\n  if (local_28 != (code *)0x0) {\n    *param_1 = (long)(param_1 + 2);\n    FUN_004a4970(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_004dcba0("uninitialized __any_string");\n}" (sized_type_specifier "long" long) (pointer_declarator "* FUN_004d3e60(long *param_1,long param_2)" * (function_declarator "FUN_004d3e60(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_004d9920(*(undefined8 *)(param_2 + 0x18),&local_48);\n  if (local_28 != (code *)0x0) {\n    *param_1 = (long)(param_1 + 2);\n    FUN_004a4970(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_004dcba0("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_004d9920(*(undefined8 *)(param_2 + 0x18),&local_48);" (call_expression "FUN_004d9920(*(undefined8 *)(param_2 + 0x18),&local_48)" identifier (argument_list "(*(undefined8 *)(param_2 + 0x18),&local_48)" ( (pointer_expression "*(undefined8 *)(param_2 + 0x18)" * (cast_expression "(undefined8 *)(param_2 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) , (pointer_expression "&local_48" & identifier) ))) ;) (if_statement "if (local_28 != (code *)0x0) {\n    *param_1 = (long)(param_1 + 2);\n    FUN_004a4970(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_004a4970(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_004a4970(param_1,local_48,local_48 + local_40 * 4);" (call_expression "FUN_004a4970(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_004dcba0("uninitialized __any_string");" (call_expression "FUN_004dcba0("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_004d3e60(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_004d9920(*(undefined8 *)(param_2 + 0x18),&local_48);\n  if (local_28 != (code *)0x0) {\n    *param_1 = (long)(param_1 + 2);\n    FUN_004a4970(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_004dcba0("uninitialized __any_string");\n}" (sized_type_specifier "long" (long "long")) (pointer_declarator "* FUN_004d3e60(long *param_1,long param_2)" (* "*") (function_declarator "FUN_004d3e60(long *param_1,long param_2)" (identifier "FUN_004d3e60") (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_004d9920(*(undefined8 *)(param_2 + 0x18),&local_48);\n  if (local_28 != (code *)0x0) {\n    *param_1 = (long)(param_1 + 2);\n    FUN_004a4970(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_004dcba0("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_004d9920(*(undefined8 *)(param_2 + 0x18),&local_48);" (call_expression "FUN_004d9920(*(undefined8 *)(param_2 + 0x18),&local_48)" (identifier "FUN_004d9920") (argument_list "(*(undefined8 *)(param_2 + 0x18),&local_48)" (( "(") (pointer_expression "*(undefined8 *)(param_2 + 0x18)" (* "*") (cast_expression "(undefined8 *)(param_2 + 0x18)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x18)" (( "(") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")")))) (, ",") (pointer_expression "&local_48" (& "&") (identifier "local_48")) () ")"))) (; ";")) (if_statement "if (local_28 != (code *)0x0) {\n    *param_1 = (long)(param_1 + 2);\n    FUN_004a4970(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_004a4970(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_004a4970(param_1,local_48,local_48 + local_40 * 4);" (call_expression "FUN_004a4970(param_1,local_48,local_48 + local_40 * 4)" (identifier "FUN_004a4970") (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_004dcba0("uninitialized __any_string");" (call_expression "FUN_004dcba0("uninitialized __any_string")" (identifier "FUN_004dcba0") (argument_list "("uninitialized __any_string")" (( "(") (string_literal ""uninitialized __any_string"" (" """) (string_content "uninitialized __any_string") (" """)) () ")"))) (; ";")) (} "}")))

/* std::__facet_shims::(anonymous namespace)::collate_shim<wchar_t>::do_transform(wchar_t const*,
   wchar_t const*) const */

var_2 * std::__facet_shims::(anonymous_namespace)::collate_shim<var_2>::var_1
                    (var_2 *var_3,var_2 *var_4)

{
  long var_9;
  long var_10;
  type_1 *var_6;
  
  var_6 = (type_1 *)0x0;
                    /* try { // try from 004d3e7c to 004d3ea4 has its CatchHandler @ 004d3eca */
  var_5<var_2>(*(type_2 *)(var_4 + 6),&var_9);
  if (var_6 != (type_1 *)0x0) {
    *(var_2 **)var_3 = var_3 + 4;
    std::wstring::var_7<var_8*>(var_3,var_9,var_9 + var_10 * 4);
    if (var_6 != (type_1 *)0x0) {
      (*var_6)(&var_9);
    }
    return var_3;
  }
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 004d3ec5 to 004d3ec9 has its CatchHandler @ 004d3eca */
  var_11("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 004d3e7c to 004d3ea4 has its CatchHandler @ 004d3eca */
  FUN_004d9920(*(undefined8 *)(param_2 + 0x18),&local_48);
  if (local_28 != (code *)0x0) {
    *param_1 = (long)(param_1 + 2);
    FUN_004a4970(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 004d3ec5 to 004d3ec9 has its CatchHandler @ 004d3eca */
  FUN_004dcba0("uninitialized __any_string");
}

