
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* int std::__facet_shims::__messages_open<char>(std::integral_constant<bool, true>,
   std::locale::facet const*, char const*, unsigned int, std::locale const&) */

int std::__facet_shims::__messages_open<char>
              (undefined4 param_1,int *param_2,int param_3,int param_4,undefined4 param_5)

{
  int iVar1;
  basic_string<char,_std::char_traits<char>,_std::allocator<char>_> local_34;
  
  local_34._M_dataplus._M_p = (pointer)&local_34.field_2;
  __cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::
  _M_construct<char_const*>(&local_34,param_3,param_4 + param_3,0);
                    /* try { // try from 003ebe00 to 003ebe02 has its CatchHandler @ 003ebe28 */
  iVar1 = (**(code **)(*param_2 + 8))(param_2,&local_34,param_5);
  if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9
       *)local_34._M_dataplus._M_p != &local_34.field_2) {
    operator_delete(local_34._M_dataplus._M_p);
  }
  return iVar1;
}



/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

undefined4 FUN_003ebdc0(undefined4 param_1,int *param_2,int param_3,int param_4,undefined4 param_5)

{
  undefined4 uVar1;
  undefined1 *local_34 [2];
  undefined1 local_2c [28];
  
  local_34[0] = local_2c;
  FUN_00072b90(local_34,param_3,param_4 + param_3,0);
                    /* try { // try from 003ebe00 to 003ebe02 has its CatchHandler @ 003ebe28 */
  uVar1 = (**(code **)(*param_2 + 8))(param_2,local_34,param_5);
  if (local_34[0] != local_2c) {
    FUN_003ae080(local_34[0]);
  }
  return uVar1;
}


CALL 0x00074f02
ADD EAX,0x1fe23b
PUSH EBP
MOV EBP,ESP
PUSH EDI
PUSH ESI
LEA EDI,[EBP + -0x30]
LEA ESI,[EBP + -0x28]
PUSH EBX
MOV EBX,EAX
SUB ESP,0x3c
MOV EDX,dword ptr [EBP + 0x10]
MOV ECX,dword ptr [EBP + 0x14]
MOV dword ptr [EBP + -0x3c],EAX
PUSH 0x0
ADD ECX,EDX
MOV dword ptr [EBP + -0x30],ESI
PUSH ECX
PUSH EDX
PUSH EDI
CALL 0x00072b90
MOV ECX,dword ptr [EBP + 0xc]
ADD ESP,0xc
MOV EDX,dword ptr [ECX]
PUSH dword ptr [EBP + 0x18]
PUSH EDI
PUSH ECX
CALL dword ptr [EDX + 0x8]
MOV EDX,dword ptr [EBP + -0x30]
MOV EDI,EAX
ADD ESP,0x10
CMP EDX,ESI
JZ 0x003ebe1e
SUB ESP,0xc
MOV EBX,dword ptr [EBP + -0x3c]
PUSH EDX
CALL 0x003ae080
ADD ESP,0x10
LEA ESP,[EBP + -0xc]
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nundefined4 FUN_003ebdc0(undefined4 param_1,int *param_2,int param_3,int param_4,undefined4 param_5)\n\n{\n  undefined4 uVar1;\n  undefined1 *local_34 [2];\n  undefined1 local_2c [28];\n  \n  local_34[0] = local_2c;\n  FUN_00072b90(local_34,param_3,param_4 + param_3,0);\n                    /* try { // try from 003ebe00 to 003ebe02 has its CatchHandler @ 003ebe28 */\n  uVar1 = (**(code **)(*param_2 + 8))(param_2,local_34,param_5);\n  if (local_34[0] != local_2c) {\n    FUN_003ae080(local_34[0]);\n  }\n  return uVar1;\n}\n\n" comment (function_definition "undefined4 FUN_003ebdc0(undefined4 param_1,int *param_2,int param_3,int param_4,undefined4 param_5)\n\n{\n  undefined4 uVar1;\n  undefined1 *local_34 [2];\n  undefined1 local_2c [28];\n  \n  local_34[0] = local_2c;\n  FUN_00072b90(local_34,param_3,param_4 + param_3,0);\n                    /* try { // try from 003ebe00 to 003ebe02 has its CatchHandler @ 003ebe28 */\n  uVar1 = (**(code **)(*param_2 + 8))(param_2,local_34,param_5);\n  if (local_34[0] != local_2c) {\n    FUN_003ae080(local_34[0]);\n  }\n  return uVar1;\n}" type_identifier (function_declarator "FUN_003ebdc0(undefined4 param_1,int *param_2,int param_3,int param_4,undefined4 param_5)" identifier (parameter_list "(undefined4 param_1,int *param_2,int param_3,int param_4,undefined4 param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined1 *local_34 [2];\n  undefined1 local_2c [28];\n  \n  local_34[0] = local_2c;\n  FUN_00072b90(local_34,param_3,param_4 + param_3,0);\n                    /* try { // try from 003ebe00 to 003ebe02 has its CatchHandler @ 003ebe28 */\n  uVar1 = (**(code **)(*param_2 + 8))(param_2,local_34,param_5);\n  if (local_34[0] != local_2c) {\n    FUN_003ae080(local_34[0]);\n  }\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined1 *local_34 [2];" type_identifier (pointer_declarator "*local_34 [2]" * (array_declarator "local_34 [2]" identifier [ number_literal ])) ;) (declaration "undefined1 local_2c [28];" type_identifier (array_declarator "local_2c [28]" identifier [ number_literal ]) ;) (expression_statement "local_34[0] = local_2c;" (assignment_expression "local_34[0] = local_2c" (subscript_expression "local_34[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "FUN_00072b90(local_34,param_3,param_4 + param_3,0);" (call_expression "FUN_00072b90(local_34,param_3,param_4 + param_3,0)" identifier (argument_list "(local_34,param_3,param_4 + param_3,0)" ( identifier , identifier , (binary_expression "param_4 + param_3" identifier + identifier) , number_literal ))) ;) comment (expression_statement "uVar1 = (**(code **)(*param_2 + 8))(param_2,local_34,param_5);" (assignment_expression "uVar1 = (**(code **)(*param_2 + 8))(param_2,local_34,param_5)" identifier = (call_expression "(**(code **)(*param_2 + 8))(param_2,local_34,param_5)" (parenthesized_expression "(**(code **)(*param_2 + 8))" ( (pointer_expression "**(code **)(*param_2 + 8)" * (pointer_expression "*(code **)(*param_2 + 8)" * (cast_expression "(code **)(*param_2 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 8)" ( (binary_expression "*param_2 + 8" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "(param_2,local_34,param_5)" ( identifier , identifier , identifier )))) ;) (if_statement "if (local_34[0] != local_2c) {\n    FUN_003ae080(local_34[0]);\n  }" if (parenthesized_expression "(local_34[0] != local_2c)" ( (binary_expression "local_34[0] != local_2c" (subscript_expression "local_34[0]" identifier [ number_literal ]) != identifier) )) (compound_statement "{\n    FUN_003ae080(local_34[0]);\n  }" { (expression_statement "FUN_003ae080(local_34[0]);" (call_expression "FUN_003ae080(local_34[0])" identifier (argument_list "(local_34[0])" ( (subscript_expression "local_34[0]" identifier [ number_literal ]) ))) ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n/* int std::__facet_shims::__messages_open<char>(std::integral_constant<bool, true>,\n   std::locale::facet const*, char const*, unsigned int, std::locale const&) */\n\nint std::__facet_shims::__messages_open<char>\n              (undefined4 param_1,int *param_2,int param_3,int param_4,undefined4 param_5)\n\n{\n  int iVar1;\n  basic_string<char,_std::char_traits<char>,_std::allocator<char>_> local_34;\n  \n  local_34._M_dataplus._M_p = (pointer)&local_34.field_2;\n  __cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n  _M_construct<char_const*>(&local_34,param_3,param_4 + param_3,0);\n                    /* try { // try from 003ebe00 to 003ebe02 has its CatchHandler @ 003ebe28 */\n  iVar1 = (**(code **)(*param_2 + 8))(param_2,&local_34,param_5);\n  if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n       *)local_34._M_dataplus._M_p != &local_34.field_2) {\n    operator_delete(local_34._M_dataplus._M_p);\n  }\n  return iVar1;\n}\n\n" comment comment (function_definition "int std::__facet_shims::__messages_open<char>\n              (undefined4 param_1,int *param_2,int param_3,int param_4,undefined4 param_5)\n\n{\n  int iVar1;\n  basic_string<char,_std::char_traits<char>,_std::allocator<char>_> local_34;\n  \n  local_34._M_dataplus._M_p = (pointer)&local_34.field_2;\n  __cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n  _M_construct<char_const*>(&local_34,param_3,param_4 + param_3,0);\n                    /* try { // try from 003ebe00 to 003ebe02 has its CatchHandler @ 003ebe28 */\n  iVar1 = (**(code **)(*param_2 + 8))(param_2,&local_34,param_5);\n  if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n       *)local_34._M_dataplus._M_p != &local_34.field_2) {\n    operator_delete(local_34._M_dataplus._M_p);\n  }\n  return iVar1;\n}" primitive_type (ERROR "std::__facet_shims::" identifier : : identifier : :) (function_declarator "__messages_open<char>\n              (undefined4 param_1,int *param_2,int param_3,int param_4,undefined4 param_5)" identifier (ERROR "<char>" < primitive_type >) (parameter_list "(undefined4 param_1,int *param_2,int param_3,int param_4,undefined4 param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  basic_string<char,_std::char_traits<char>,_std::allocator<char>_> local_34;\n  \n  local_34._M_dataplus._M_p = (pointer)&local_34.field_2;\n  __cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n  _M_construct<char_const*>(&local_34,param_3,param_4 + param_3,0);\n                    /* try { // try from 003ebe00 to 003ebe02 has its CatchHandler @ 003ebe28 */\n  iVar1 = (**(code **)(*param_2 + 8))(param_2,&local_34,param_5);\n  if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n       *)local_34._M_dataplus._M_p != &local_34.field_2) {\n    operator_delete(local_34._M_dataplus._M_p);\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (ERROR "basic_string<char,_std::char_traits<char>,_std::" (comma_expression "basic_string<char,_std" (binary_expression "basic_string<char" identifier < identifier) , identifier) : : (binary_expression "char_traits<char>,_std" (binary_expression "char_traits<char" identifier < identifier) > (ERROR "," ,) identifier) : :) (expression_statement "allocator<char>_> local_34;" (binary_expression "allocator<char>_> local_34" (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > identifier) ;) (expression_statement "local_34._M_dataplus._M_p = (pointer)&local_34.field_2;" (assignment_expression "local_34._M_dataplus._M_p = (pointer)&local_34.field_2" (field_expression "local_34._M_dataplus._M_p" (field_expression "local_34._M_dataplus" identifier . field_identifier) . field_identifier) = (binary_expression "(pointer)&local_34.field_2" (parenthesized_expression "(pointer)" ( identifier )) & (field_expression "local_34.field_2" identifier . field_identifier))) ;) (ERROR "__cxx11::basic_string<char,_std::char_traits<char>,_std::" (comma_expression "__cxx11::basic_string<char,_std::char_traits<char>,_std" identifier (ERROR "::basic_string<char,_std::char_traits<char>" : : (comma_expression "basic_string<char,_std" (binary_expression "basic_string<char" identifier < identifier) , identifier) : : (binary_expression "char_traits<char" identifier < identifier) >) , identifier) : :) (expression_statement "allocator<char>_>::\n  _M_construct<char_const*>(&local_34,param_3,param_4 + param_3,0);" (binary_expression "allocator<char>_>::\n  _M_construct<char_const*>(&local_34,param_3,param_4 + param_3,0)" (binary_expression "allocator<char>_>::\n  _M_construct<char_const" (binary_expression "allocator<char>_>::\n  _M_construct" (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > (ERROR "::" : :) identifier) < identifier) (ERROR "*" *) > (parenthesized_expression "(&local_34,param_3,param_4 + param_3,0)" ( (comma_expression "&local_34,param_3,param_4 + param_3,0" (pointer_expression "&local_34" & identifier) , (comma_expression "param_3,param_4 + param_3,0" identifier , (comma_expression "param_4 + param_3,0" (binary_expression "param_4 + param_3" identifier + identifier) , number_literal))) ))) ;) comment (expression_statement "iVar1 = (**(code **)(*param_2 + 8))(param_2,&local_34,param_5);" (assignment_expression "iVar1 = (**(code **)(*param_2 + 8))(param_2,&local_34,param_5)" identifier = (call_expression "(**(code **)(*param_2 + 8))(param_2,&local_34,param_5)" (parenthesized_expression "(**(code **)(*param_2 + 8))" ( (pointer_expression "**(code **)(*param_2 + 8)" * (pointer_expression "*(code **)(*param_2 + 8)" * (cast_expression "(code **)(*param_2 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 8)" ( (binary_expression "*param_2 + 8" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "(param_2,&local_34,param_5)" ( identifier , (pointer_expression "&local_34" & identifier) , identifier )))) ;) (if_statement "if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n       *)local_34._M_dataplus._M_p != &local_34.field_2) {\n    operator_delete(local_34._M_dataplus._M_p);\n  }" if (parenthesized_expression "((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n       *)local_34._M_dataplus._M_p != &local_34.field_2)" ( (parenthesized_expression "(anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n       *)local_34._M_dataplus._M_p != &local_34.field_2)" ( (ERROR "anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::" (comma_expression "anon_union_16_2_edb7204a_for_basic_string<char,_std" (binary_expression "anon_union_16_2_edb7204a_for_basic_string<char" identifier < identifier) , identifier) : : (binary_expression "char_traits<char>,_std" (binary_expression "char_traits<char" identifier < identifier) > (ERROR "," ,) identifier) : :) (binary_expression "allocator<char>_>_9\n       *)local_34._M_dataplus._M_p != &local_34.field_2" (binary_expression "allocator<char>_>_9\n       *)local_34._M_dataplus._M_p" (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > (binary_expression "_9\n       *)local_34._M_dataplus._M_p" identifier * (ERROR ")" )) (field_expression "local_34._M_dataplus._M_p" (field_expression "local_34._M_dataplus" identifier . field_identifier) . field_identifier))) != (pointer_expression "&local_34.field_2" & (field_expression "local_34.field_2" identifier . field_identifier))) )) )) (compound_statement "{\n    operator_delete(local_34._M_dataplus._M_p);\n  }" { (expression_statement "operator_delete(local_34._M_dataplus._M_p);" (call_expression "operator_delete(local_34._M_dataplus._M_p)" identifier (argument_list "(local_34._M_dataplus._M_p)" ( (field_expression "local_34._M_dataplus._M_p" (field_expression "local_34._M_dataplus" identifier . field_identifier) . field_identifier) ))) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "undefined4 FUN_003ebdc0(undefined4 param_1,int *param_2,int param_3,int param_4,undefined4 param_5)\n\n{\n  undefined4 uVar1;\n  undefined1 *local_34 [2];\n  undefined1 local_2c [28];\n  \n  local_34[0] = local_2c;\n  FUN_00072b90(local_34,param_3,param_4 + param_3,0);\n                    \n  uVar1 = (**(code **)(*param_2 + 8))(param_2,local_34,param_5);\n  if (local_34[0] != local_2c) {\n    FUN_003ae080(local_34[0]);\n  }\n  return uVar1;\n}\n\n" (function_definition "undefined4 FUN_003ebdc0(undefined4 param_1,int *param_2,int param_3,int param_4,undefined4 param_5)\n\n{\n  undefined4 uVar1;\n  undefined1 *local_34 [2];\n  undefined1 local_2c [28];\n  \n  local_34[0] = local_2c;\n  FUN_00072b90(local_34,param_3,param_4 + param_3,0);\n                    \n  uVar1 = (**(code **)(*param_2 + 8))(param_2,local_34,param_5);\n  if (local_34[0] != local_2c) {\n    FUN_003ae080(local_34[0]);\n  }\n  return uVar1;\n}" type_identifier (function_declarator "FUN_003ebdc0(undefined4 param_1,int *param_2,int param_3,int param_4,undefined4 param_5)" identifier (parameter_list "(undefined4 param_1,int *param_2,int param_3,int param_4,undefined4 param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined1 *local_34 [2];\n  undefined1 local_2c [28];\n  \n  local_34[0] = local_2c;\n  FUN_00072b90(local_34,param_3,param_4 + param_3,0);\n                    \n  uVar1 = (**(code **)(*param_2 + 8))(param_2,local_34,param_5);\n  if (local_34[0] != local_2c) {\n    FUN_003ae080(local_34[0]);\n  }\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined1 *local_34 [2];" type_identifier (pointer_declarator "*local_34 [2]" * (array_declarator "local_34 [2]" identifier [ number_literal ])) ;) (declaration "undefined1 local_2c [28];" type_identifier (array_declarator "local_2c [28]" identifier [ number_literal ]) ;) (expression_statement "local_34[0] = local_2c;" (assignment_expression "local_34[0] = local_2c" (subscript_expression "local_34[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "FUN_00072b90(local_34,param_3,param_4 + param_3,0);" (call_expression "FUN_00072b90(local_34,param_3,param_4 + param_3,0)" identifier (argument_list "(local_34,param_3,param_4 + param_3,0)" ( identifier , identifier , (binary_expression "param_4 + param_3" identifier + identifier) , number_literal ))) ;) (expression_statement "uVar1 = (**(code **)(*param_2 + 8))(param_2,local_34,param_5);" (assignment_expression "uVar1 = (**(code **)(*param_2 + 8))(param_2,local_34,param_5)" identifier = (call_expression "(**(code **)(*param_2 + 8))(param_2,local_34,param_5)" (parenthesized_expression "(**(code **)(*param_2 + 8))" ( (pointer_expression "**(code **)(*param_2 + 8)" * (pointer_expression "*(code **)(*param_2 + 8)" * (cast_expression "(code **)(*param_2 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 8)" ( (binary_expression "*param_2 + 8" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "(param_2,local_34,param_5)" ( identifier , identifier , identifier )))) ;) (if_statement "if (local_34[0] != local_2c) {\n    FUN_003ae080(local_34[0]);\n  }" if (parenthesized_expression "(local_34[0] != local_2c)" ( (binary_expression "local_34[0] != local_2c" (subscript_expression "local_34[0]" identifier [ number_literal ]) != identifier) )) (compound_statement "{\n    FUN_003ae080(local_34[0]);\n  }" { (expression_statement "FUN_003ae080(local_34[0]);" (call_expression "FUN_003ae080(local_34[0])" identifier (argument_list "(local_34[0])" ( (subscript_expression "local_34[0]" identifier [ number_literal ]) ))) ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * (array_declarator IDENT [ LIT ])) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression IDENT + IDENT) , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) })) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_003ebdc0(undefined4 param_1,int *param_2,int param_3,int param_4,undefined4 param_5)\n\n{\n  undefined4 uVar1;\n  undefined1 *local_34 [2];\n  undefined1 local_2c [28];\n  \n  local_34[0] = local_2c;\n  FUN_00072b90(local_34,param_3,param_4 + param_3,0);\n                    \n  uVar1 = (**(code **)(*param_2 + 8))(param_2,local_34,param_5);\n  if (local_34[0] != local_2c) {\n    FUN_003ae080(local_34[0]);\n  }\n  return uVar1;\n}" (type_identifier "undefined4") (function_declarator "FUN_003ebdc0(undefined4 param_1,int *param_2,int param_3,int param_4,undefined4 param_5)" (identifier "FUN_003ebdc0") (parameter_list "(undefined4 param_1,int *param_2,int param_3,int param_4,undefined4 param_5)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  undefined1 *local_34 [2];\n  undefined1 local_2c [28];\n  \n  local_34[0] = local_2c;\n  FUN_00072b90(local_34,param_3,param_4 + param_3,0);\n                    \n  uVar1 = (**(code **)(*param_2 + 8))(param_2,local_34,param_5);\n  if (local_34[0] != local_2c) {\n    FUN_003ae080(local_34[0]);\n  }\n  return uVar1;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "undefined1 *local_34 [2];" (type_identifier "undefined1") (pointer_declarator "*local_34 [2]" (* "*") (array_declarator "local_34 [2]" (identifier "local_34") ([ "[") (number_literal "2") (] "]"))) (; ";")) (declaration "undefined1 local_2c [28];" (type_identifier "undefined1") (array_declarator "local_2c [28]" (identifier "local_2c") ([ "[") (number_literal "28") (] "]")) (; ";")) (expression_statement "local_34[0] = local_2c;" (assignment_expression "local_34[0] = local_2c" (subscript_expression "local_34[0]" (identifier "local_34") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "local_2c")) (; ";")) (expression_statement "FUN_00072b90(local_34,param_3,param_4 + param_3,0);" (call_expression "FUN_00072b90(local_34,param_3,param_4 + param_3,0)" (identifier "FUN_00072b90") (argument_list "(local_34,param_3,param_4 + param_3,0)" (( "(") (identifier "local_34") (, ",") (identifier "param_3") (, ",") (binary_expression "param_4 + param_3" (identifier "param_4") (+ "+") (identifier "param_3")) (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "uVar1 = (**(code **)(*param_2 + 8))(param_2,local_34,param_5);" (assignment_expression "uVar1 = (**(code **)(*param_2 + 8))(param_2,local_34,param_5)" (identifier "uVar1") (= "=") (call_expression "(**(code **)(*param_2 + 8))(param_2,local_34,param_5)" (parenthesized_expression "(**(code **)(*param_2 + 8))" (( "(") (pointer_expression "**(code **)(*param_2 + 8)" (* "*") (pointer_expression "*(code **)(*param_2 + 8)" (* "*") (cast_expression "(code **)(*param_2 + 8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_2 + 8)" (( "(") (binary_expression "*param_2 + 8" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "8")) () ")"))))) () ")")) (argument_list "(param_2,local_34,param_5)" (( "(") (identifier "param_2") (, ",") (identifier "local_34") (, ",") (identifier "param_5") () ")")))) (; ";")) (if_statement "if (local_34[0] != local_2c) {\n    FUN_003ae080(local_34[0]);\n  }" (if "if") (parenthesized_expression "(local_34[0] != local_2c)" (( "(") (binary_expression "local_34[0] != local_2c" (subscript_expression "local_34[0]" (identifier "local_34") ([ "[") (number_literal "0") (] "]")) (!= "!=") (identifier "local_2c")) () ")")) (compound_statement "{\n    FUN_003ae080(local_34[0]);\n  }" ({ "{") (expression_statement "FUN_003ae080(local_34[0]);" (call_expression "FUN_003ae080(local_34[0])" (identifier "FUN_003ae080") (argument_list "(local_34[0])" (( "(") (subscript_expression "local_34[0]" (identifier "local_34") ([ "[") (number_literal "0") (] "]")) () ")"))) (; ";")) (} "}"))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* int std::__facet_shims::__messages_open<char>(std::integral_constant<bool, true>,
   std::locale::facet const*, char const*, unsigned int, std::locale const&) */

int std::__facet_shims::function_1<char>
              (type_1 param_1,int *param_2,int var_8,int var_7,type_1 param_5)

{
  int iVar1;
  basic_string<var_2,_std::char_traits<var_2>,_std::var_1<var_2>var_3> var_4;
  
  var_4._M_dataplus._M_p = (pointer)&var_4.field_2;
  __cxx11::basic_string<var_2,_std::char_traits<var_2>,_std::var_1<var_2>var_3>::
  var_5<var_6*>(&var_4,var_8,var_7 + var_8,0);
                    /* try { // try from 003ebe00 to 003ebe02 has its CatchHandler @ 003ebe28 */
  iVar1 = (**(type_2 **)(*param_2 + 8))(param_2,&var_4,param_5);
  if ((anon_union_16_2_edb7204a_for_basic_string<var_2,_std::char_traits<var_2>,_std::var_1<var_2>var_3>var_9
       *)var_4._M_dataplus._M_p != &var_4.field_2) {
    var_10(var_4._M_dataplus._M_p);
  }
  return iVar1;
}


(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: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (array_declarator declarator: (identifier) size: (number_literal)))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (binary_expression left: (identifier) right: (identifier)) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) arguments: (argument_list (identifier) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal))))))) (return_statement (identifier)))))

/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

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

{
  undefined4 uVar1;
  undefined1 *local_34 [2];
  undefined1 local_2c [28];
  
  local_34[0] = local_2c;
  FUN_00072b90(local_34,param_3,param_4 + param_3,0);
                    /* try { // try from 003ebe00 to 003ebe02 has its CatchHandler @ 003ebe28 */
  uVar1 = (**(code **)(*param_2 + 8))(param_2,local_34,param_5);
  if (local_34[0] != local_2c) {
    FUN_003ae080(local_34[0]);
  }
  return uVar1;
}

