
/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* std::messages<char>::do_open(std::string const&, std::locale const&) const */

undefined4 __thiscall
std::messages<char>::do_open(messages<char> *this,string *param_1,locale *param_2)

{
  codecvt *pcVar1;
  undefined4 uVar2;
  Catalogs *pCVar3;
  locale local_20 [16];
  
  pcVar1 = use_facet<std::codecvt<char,char,__mbstate_t>>(param_2);
  uVar2 = __nl_langinfo_l(0xe,*(undefined4 *)(pcVar1 + 8));
  bind_textdomain_codeset(*(undefined4 *)param_1,uVar2);
  pCVar3 = (Catalogs *)get_catalogs();
  locale::locale(local_20,param_2);
                    /* try { // try from 0027aa9c to 0027aaa0 has its CatchHandler @ 0027aaba */
  uVar2 = Catalogs::_M_add(pCVar3,*(undefined4 *)param_1,local_20);
  locale::~locale(local_20);
  return uVar2;
}



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

undefined4 FUN_0027aa40(undefined4 param_1,undefined4 *param_2,undefined4 param_3)

{
  int iVar1;
  undefined4 uVar2;
  undefined1 local_20 [16];
  
  iVar1 = FUN_001fc3e0(param_3);
  uVar2 = __nl_langinfo_l(0xe,*(undefined4 *)(iVar1 + 8));
  bind_textdomain_codeset(*param_2,uVar2);
  uVar2 = FUN_0022f610();
  FUN_001e8d40(local_20,param_3);
                    /* try { // try from 0027aa9c to 0027aaa0 has its CatchHandler @ 0027aaba */
  uVar2 = FUN_0022f810(uVar2,*param_2,local_20);
  FUN_001e9510(local_20);
  return uVar2;
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
PUSH ESI
CALL 0x000559ea
ADD ESI,0x1145b6
PUSH EBX
SUB ESP,0x38
MOV EDI,dword ptr [EBP + 0x10]
PUSH EDI
MOV EBX,ESI
CALL 0x001fc3e0
POP EDX
POP ECX
PUSH dword ptr [EAX + 0x8]
PUSH 0xe
CALL 0x00029040
POP EDX
POP ECX
PUSH EAX
MOV EAX,dword ptr [EBP + 0xc]
PUSH dword ptr [EAX]
CALL 0x00029a30
ADD ESP,0x10
CALL 0x0022f610
SUB ESP,0x8
PUSH EDI
LEA EDI,[EBP + -0x1c]
PUSH EDI
MOV dword ptr [EBP + -0x2c],EAX
CALL 0x001e8d40
MOV EDX,dword ptr [EBP + 0xc]
ADD ESP,0xc
PUSH EDI
PUSH dword ptr [EDX]
PUSH dword ptr [EBP + -0x2c]
CALL 0x0022f810
MOV dword ptr [EBP + -0x2c],EAX
MOV dword ptr [ESP],EDI
CALL 0x001e9510
MOV EAX,dword ptr [EBP + -0x2c]
ADD ESP,0x10
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nundefined4 FUN_0027aa40(undefined4 param_1,undefined4 *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined1 local_20 [16];\n  \n  iVar1 = FUN_001fc3e0(param_3);\n  uVar2 = __nl_langinfo_l(0xe,*(undefined4 *)(iVar1 + 8));\n  bind_textdomain_codeset(*param_2,uVar2);\n  uVar2 = FUN_0022f610();\n  FUN_001e8d40(local_20,param_3);\n                    /* try { // try from 0027aa9c to 0027aaa0 has its CatchHandler @ 0027aaba */\n  uVar2 = FUN_0022f810(uVar2,*param_2,local_20);\n  FUN_001e9510(local_20);\n  return uVar2;\n}\n\n" comment (function_definition "undefined4 FUN_0027aa40(undefined4 param_1,undefined4 *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined1 local_20 [16];\n  \n  iVar1 = FUN_001fc3e0(param_3);\n  uVar2 = __nl_langinfo_l(0xe,*(undefined4 *)(iVar1 + 8));\n  bind_textdomain_codeset(*param_2,uVar2);\n  uVar2 = FUN_0022f610();\n  FUN_001e8d40(local_20,param_3);\n                    /* try { // try from 0027aa9c to 0027aaa0 has its CatchHandler @ 0027aaba */\n  uVar2 = FUN_0022f810(uVar2,*param_2,local_20);\n  FUN_001e9510(local_20);\n  return uVar2;\n}" type_identifier (function_declarator "FUN_0027aa40(undefined4 param_1,undefined4 *param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined1 local_20 [16];\n  \n  iVar1 = FUN_001fc3e0(param_3);\n  uVar2 = __nl_langinfo_l(0xe,*(undefined4 *)(iVar1 + 8));\n  bind_textdomain_codeset(*param_2,uVar2);\n  uVar2 = FUN_0022f610();\n  FUN_001e8d40(local_20,param_3);\n                    /* try { // try from 0027aa9c to 0027aaa0 has its CatchHandler @ 0027aaba */\n  uVar2 = FUN_0022f810(uVar2,*param_2,local_20);\n  FUN_001e9510(local_20);\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined1 local_20 [16];" type_identifier (array_declarator "local_20 [16]" identifier [ number_literal ]) ;) (expression_statement "iVar1 = FUN_001fc3e0(param_3);" (assignment_expression "iVar1 = FUN_001fc3e0(param_3)" identifier = (call_expression "FUN_001fc3e0(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) (expression_statement "uVar2 = __nl_langinfo_l(0xe,*(undefined4 *)(iVar1 + 8));" (assignment_expression "uVar2 = __nl_langinfo_l(0xe,*(undefined4 *)(iVar1 + 8))" identifier = (call_expression "__nl_langinfo_l(0xe,*(undefined4 *)(iVar1 + 8))" identifier (argument_list "(0xe,*(undefined4 *)(iVar1 + 8))" ( number_literal , (pointer_expression "*(undefined4 *)(iVar1 + 8)" * (cast_expression "(undefined4 *)(iVar1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) )))) ;) (expression_statement "bind_textdomain_codeset(*param_2,uVar2);" (call_expression "bind_textdomain_codeset(*param_2,uVar2)" identifier (argument_list "(*param_2,uVar2)" ( (pointer_expression "*param_2" * identifier) , identifier ))) ;) (expression_statement "uVar2 = FUN_0022f610();" (assignment_expression "uVar2 = FUN_0022f610()" identifier = (call_expression "FUN_0022f610()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_001e8d40(local_20,param_3);" (call_expression "FUN_001e8d40(local_20,param_3)" identifier (argument_list "(local_20,param_3)" ( identifier , identifier ))) ;) comment (expression_statement "uVar2 = FUN_0022f810(uVar2,*param_2,local_20);" (assignment_expression "uVar2 = FUN_0022f810(uVar2,*param_2,local_20)" identifier = (call_expression "FUN_0022f810(uVar2,*param_2,local_20)" identifier (argument_list "(uVar2,*param_2,local_20)" ( identifier , (pointer_expression "*param_2" * identifier) , identifier )))) ;) (expression_statement "FUN_001e9510(local_20);" (call_expression "FUN_001e9510(local_20)" identifier (argument_list "(local_20)" ( identifier ))) ;) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n/* std::messages<char>::do_open(std::string const&, std::locale const&) const */\n\nundefined4 __thiscall\nstd::messages<char>::do_open(messages<char> *this,string *param_1,locale *param_2)\n\n{\n  codecvt *pcVar1;\n  undefined4 uVar2;\n  Catalogs *pCVar3;\n  locale local_20 [16];\n  \n  pcVar1 = use_facet<std::codecvt<char,char,__mbstate_t>>(param_2);\n  uVar2 = __nl_langinfo_l(0xe,*(undefined4 *)(pcVar1 + 8));\n  bind_textdomain_codeset(*(undefined4 *)param_1,uVar2);\n  pCVar3 = (Catalogs *)get_catalogs();\n  locale::locale(local_20,param_2);\n                    /* try { // try from 0027aa9c to 0027aaa0 has its CatchHandler @ 0027aaba */\n  uVar2 = Catalogs::_M_add(pCVar3,*(undefined4 *)param_1,local_20);\n  locale::~locale(local_20);\n  return uVar2;\n}\n\n" comment comment (function_definition "undefined4 __thiscall\nstd::messages<char>::do_open(messages<char> *this,string *param_1,locale *param_2)\n\n{\n  codecvt *pcVar1;\n  undefined4 uVar2;\n  Catalogs *pCVar3;\n  locale local_20 [16];\n  \n  pcVar1 = use_facet<std::codecvt<char,char,__mbstate_t>>(param_2);\n  uVar2 = __nl_langinfo_l(0xe,*(undefined4 *)(pcVar1 + 8));\n  bind_textdomain_codeset(*(undefined4 *)param_1,uVar2);\n  pCVar3 = (Catalogs *)get_catalogs();\n  locale::locale(local_20,param_2);\n                    /* try { // try from 0027aa9c to 0027aaa0 has its CatchHandler @ 0027aaba */\n  uVar2 = Catalogs::_M_add(pCVar3,*(undefined4 *)param_1,local_20);\n  locale::~locale(local_20);\n  return uVar2;\n}" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::messages<char>::" identifier : : identifier < primitive_type > : :) (function_declarator "do_open(messages<char> *this,string *param_1,locale *param_2)" identifier (parameter_list "(messages<char> *this,string *param_1,locale *param_2)" ( (parameter_declaration "messages<char> *this" type_identifier (ERROR "<char>" < primitive_type >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "string *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "locale *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  codecvt *pcVar1;\n  undefined4 uVar2;\n  Catalogs *pCVar3;\n  locale local_20 [16];\n  \n  pcVar1 = use_facet<std::codecvt<char,char,__mbstate_t>>(param_2);\n  uVar2 = __nl_langinfo_l(0xe,*(undefined4 *)(pcVar1 + 8));\n  bind_textdomain_codeset(*(undefined4 *)param_1,uVar2);\n  pCVar3 = (Catalogs *)get_catalogs();\n  locale::locale(local_20,param_2);\n                    /* try { // try from 0027aa9c to 0027aaa0 has its CatchHandler @ 0027aaba */\n  uVar2 = Catalogs::_M_add(pCVar3,*(undefined4 *)param_1,local_20);\n  locale::~locale(local_20);\n  return uVar2;\n}" { (declaration "codecvt *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "Catalogs *pCVar3;" type_identifier (pointer_declarator "*pCVar3" * identifier) ;) (declaration "locale local_20 [16];" type_identifier (array_declarator "local_20 [16]" identifier [ number_literal ]) ;) (expression_statement "pcVar1 = use_facet<std::codecvt<char,char,__mbstate_t>>(param_2);" (comma_expression "pcVar1 = use_facet<std::codecvt<char,char,__mbstate_t>>(param_2)" (binary_expression "pcVar1 = use_facet<std::codecvt<char" (assignment_expression "pcVar1 = use_facet<std" identifier = (binary_expression "use_facet<std" identifier < identifier)) (ERROR "::codecvt" : : identifier) < identifier) , (comma_expression "char,__mbstate_t>>(param_2)" identifier , (binary_expression "__mbstate_t>>(param_2)" identifier >> (parenthesized_expression "(param_2)" ( identifier ))))) ;) (expression_statement "uVar2 = __nl_langinfo_l(0xe,*(undefined4 *)(pcVar1 + 8));" (assignment_expression "uVar2 = __nl_langinfo_l(0xe,*(undefined4 *)(pcVar1 + 8))" identifier = (call_expression "__nl_langinfo_l(0xe,*(undefined4 *)(pcVar1 + 8))" identifier (argument_list "(0xe,*(undefined4 *)(pcVar1 + 8))" ( number_literal , (pointer_expression "*(undefined4 *)(pcVar1 + 8)" * (cast_expression "(undefined4 *)(pcVar1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar1 + 8)" ( (binary_expression "pcVar1 + 8" identifier + number_literal) )))) )))) ;) (expression_statement "bind_textdomain_codeset(*(undefined4 *)param_1,uVar2);" (call_expression "bind_textdomain_codeset(*(undefined4 *)param_1,uVar2)" identifier (argument_list "(*(undefined4 *)param_1,uVar2)" ( (pointer_expression "*(undefined4 *)param_1" * (cast_expression "(undefined4 *)param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , identifier ))) ;) (expression_statement "pCVar3 = (Catalogs *)get_catalogs();" (assignment_expression "pCVar3 = (Catalogs *)get_catalogs()" identifier = (cast_expression "(Catalogs *)get_catalogs()" ( (type_descriptor "Catalogs *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "get_catalogs()" identifier (argument_list "()" ( ))))) ;) (labeled_statement "locale::locale(local_20,param_2);" statement_identifier : (ERROR ":" :) (expression_statement "locale(local_20,param_2);" (call_expression "locale(local_20,param_2)" identifier (argument_list "(local_20,param_2)" ( identifier , identifier ))) ;)) comment (ERROR "uVar2 = Catalogs::" (assignment_expression "uVar2 = Catalogs" identifier = identifier) : :) (expression_statement "_M_add(pCVar3,*(undefined4 *)param_1,local_20);" (call_expression "_M_add(pCVar3,*(undefined4 *)param_1,local_20)" identifier (argument_list "(pCVar3,*(undefined4 *)param_1,local_20)" ( identifier , (pointer_expression "*(undefined4 *)param_1" * (cast_expression "(undefined4 *)param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , identifier ))) ;) (labeled_statement "locale::~locale(local_20);" statement_identifier : (ERROR ":" :) (expression_statement "~locale(local_20);" (unary_expression "~locale(local_20)" ~ (call_expression "locale(local_20)" identifier (argument_list "(local_20)" ( identifier )))) ;)) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "undefined4 FUN_0027aa40(undefined4 param_1,undefined4 *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined1 local_20 [16];\n  \n  iVar1 = FUN_001fc3e0(param_3);\n  uVar2 = __nl_langinfo_l(0xe,*(undefined4 *)(iVar1 + 8));\n  bind_textdomain_codeset(*param_2,uVar2);\n  uVar2 = FUN_0022f610();\n  FUN_001e8d40(local_20,param_3);\n                    \n  uVar2 = FUN_0022f810(uVar2,*param_2,local_20);\n  FUN_001e9510(local_20);\n  return uVar2;\n}\n\n" (function_definition "undefined4 FUN_0027aa40(undefined4 param_1,undefined4 *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined1 local_20 [16];\n  \n  iVar1 = FUN_001fc3e0(param_3);\n  uVar2 = __nl_langinfo_l(0xe,*(undefined4 *)(iVar1 + 8));\n  bind_textdomain_codeset(*param_2,uVar2);\n  uVar2 = FUN_0022f610();\n  FUN_001e8d40(local_20,param_3);\n                    \n  uVar2 = FUN_0022f810(uVar2,*param_2,local_20);\n  FUN_001e9510(local_20);\n  return uVar2;\n}" type_identifier (function_declarator "FUN_0027aa40(undefined4 param_1,undefined4 *param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined1 local_20 [16];\n  \n  iVar1 = FUN_001fc3e0(param_3);\n  uVar2 = __nl_langinfo_l(0xe,*(undefined4 *)(iVar1 + 8));\n  bind_textdomain_codeset(*param_2,uVar2);\n  uVar2 = FUN_0022f610();\n  FUN_001e8d40(local_20,param_3);\n                    \n  uVar2 = FUN_0022f810(uVar2,*param_2,local_20);\n  FUN_001e9510(local_20);\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined1 local_20 [16];" type_identifier (array_declarator "local_20 [16]" identifier [ number_literal ]) ;) (expression_statement "iVar1 = FUN_001fc3e0(param_3);" (assignment_expression "iVar1 = FUN_001fc3e0(param_3)" identifier = (call_expression "FUN_001fc3e0(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) (expression_statement "uVar2 = __nl_langinfo_l(0xe,*(undefined4 *)(iVar1 + 8));" (assignment_expression "uVar2 = __nl_langinfo_l(0xe,*(undefined4 *)(iVar1 + 8))" identifier = (call_expression "__nl_langinfo_l(0xe,*(undefined4 *)(iVar1 + 8))" identifier (argument_list "(0xe,*(undefined4 *)(iVar1 + 8))" ( number_literal , (pointer_expression "*(undefined4 *)(iVar1 + 8)" * (cast_expression "(undefined4 *)(iVar1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) )))) ;) (expression_statement "bind_textdomain_codeset(*param_2,uVar2);" (call_expression "bind_textdomain_codeset(*param_2,uVar2)" identifier (argument_list "(*param_2,uVar2)" ( (pointer_expression "*param_2" * identifier) , identifier ))) ;) (expression_statement "uVar2 = FUN_0022f610();" (assignment_expression "uVar2 = FUN_0022f610()" identifier = (call_expression "FUN_0022f610()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_001e8d40(local_20,param_3);" (call_expression "FUN_001e8d40(local_20,param_3)" identifier (argument_list "(local_20,param_3)" ( identifier , identifier ))) ;) (expression_statement "uVar2 = FUN_0022f810(uVar2,*param_2,local_20);" (assignment_expression "uVar2 = FUN_0022f810(uVar2,*param_2,local_20)" identifier = (call_expression "FUN_0022f810(uVar2,*param_2,local_20)" identifier (argument_list "(uVar2,*param_2,local_20)" ( identifier , (pointer_expression "*param_2" * identifier) , identifier )))) ;) (expression_statement "FUN_001e9510(local_20);" (call_expression "FUN_001e9510(local_20)" identifier (argument_list "(local_20)" ( identifier ))) ;) (return_statement "return uVar2;" 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) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression * IDENT) , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_0027aa40(undefined4 param_1,undefined4 *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined1 local_20 [16];\n  \n  iVar1 = FUN_001fc3e0(param_3);\n  uVar2 = __nl_langinfo_l(0xe,*(undefined4 *)(iVar1 + 8));\n  bind_textdomain_codeset(*param_2,uVar2);\n  uVar2 = FUN_0022f610();\n  FUN_001e8d40(local_20,param_3);\n                    \n  uVar2 = FUN_0022f810(uVar2,*param_2,local_20);\n  FUN_001e9510(local_20);\n  return uVar2;\n}" (type_identifier "undefined4") (function_declarator "FUN_0027aa40(undefined4 param_1,undefined4 *param_2,undefined4 param_3)" (identifier "FUN_0027aa40") (parameter_list "(undefined4 param_1,undefined4 *param_2,undefined4 param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined1 local_20 [16];\n  \n  iVar1 = FUN_001fc3e0(param_3);\n  uVar2 = __nl_langinfo_l(0xe,*(undefined4 *)(iVar1 + 8));\n  bind_textdomain_codeset(*param_2,uVar2);\n  uVar2 = FUN_0022f610();\n  FUN_001e8d40(local_20,param_3);\n                    \n  uVar2 = FUN_0022f810(uVar2,*param_2,local_20);\n  FUN_001e9510(local_20);\n  return uVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined1 local_20 [16];" (type_identifier "undefined1") (array_declarator "local_20 [16]" (identifier "local_20") ([ "[") (number_literal "16") (] "]")) (; ";")) (expression_statement "iVar1 = FUN_001fc3e0(param_3);" (assignment_expression "iVar1 = FUN_001fc3e0(param_3)" (identifier "iVar1") (= "=") (call_expression "FUN_001fc3e0(param_3)" (identifier "FUN_001fc3e0") (argument_list "(param_3)" (( "(") (identifier "param_3") () ")")))) (; ";")) (expression_statement "uVar2 = __nl_langinfo_l(0xe,*(undefined4 *)(iVar1 + 8));" (assignment_expression "uVar2 = __nl_langinfo_l(0xe,*(undefined4 *)(iVar1 + 8))" (identifier "uVar2") (= "=") (call_expression "__nl_langinfo_l(0xe,*(undefined4 *)(iVar1 + 8))" (identifier "__nl_langinfo_l") (argument_list "(0xe,*(undefined4 *)(iVar1 + 8))" (( "(") (number_literal "0xe") (, ",") (pointer_expression "*(undefined4 *)(iVar1 + 8)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")")))) () ")")))) (; ";")) (expression_statement "bind_textdomain_codeset(*param_2,uVar2);" (call_expression "bind_textdomain_codeset(*param_2,uVar2)" (identifier "bind_textdomain_codeset") (argument_list "(*param_2,uVar2)" (( "(") (pointer_expression "*param_2" (* "*") (identifier "param_2")) (, ",") (identifier "uVar2") () ")"))) (; ";")) (expression_statement "uVar2 = FUN_0022f610();" (assignment_expression "uVar2 = FUN_0022f610()" (identifier "uVar2") (= "=") (call_expression "FUN_0022f610()" (identifier "FUN_0022f610") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "FUN_001e8d40(local_20,param_3);" (call_expression "FUN_001e8d40(local_20,param_3)" (identifier "FUN_001e8d40") (argument_list "(local_20,param_3)" (( "(") (identifier "local_20") (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "uVar2 = FUN_0022f810(uVar2,*param_2,local_20);" (assignment_expression "uVar2 = FUN_0022f810(uVar2,*param_2,local_20)" (identifier "uVar2") (= "=") (call_expression "FUN_0022f810(uVar2,*param_2,local_20)" (identifier "FUN_0022f810") (argument_list "(uVar2,*param_2,local_20)" (( "(") (identifier "uVar2") (, ",") (pointer_expression "*param_2" (* "*") (identifier "param_2")) (, ",") (identifier "local_20") () ")")))) (; ";")) (expression_statement "FUN_001e9510(local_20);" (call_expression "FUN_001e9510(local_20)" (identifier "FUN_001e9510") (argument_list "(local_20)" (( "(") (identifier "local_20") () ")"))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* std::messages<char>::do_open(std::string const&, std::locale const&) const */

type_1 __thiscall
var_2::type_2<char>::function_1(type_2<char> *this,type_3 *param_1,type_4 *param_2)

{
  type_5 *var_6;
  type_1 uVar2;
  type_6 *pCVar3;
  type_4 local_20 [16];
  
  var_6 = var_1<var_2::type_5<var_3,var_3,var_4>>(param_2);
  uVar2 = var_5(0xe,*(type_1 *)(var_6 + 8));
  var_7(*(type_1 *)param_1,uVar2);
  pCVar3 = (type_6 *)var_8();
  locale::type_4(local_20,param_2);
                    /* try { // try from 0027aa9c to 0027aaa0 has its CatchHandler @ 0027aaba */
  uVar2 = type_6::var_9(pCVar3,*(type_1 *)param_1,local_20);
  locale::~type_4(local_20);
  return uVar2;
}


(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: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (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))))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)) (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement (identifier)))))

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

undefined4 MASKED(undefined4 param_1,undefined4 *param_2,undefined4 param_3)

{
  int iVar1;
  undefined4 uVar2;
  undefined1 local_20 [16];
  
  iVar1 = FUN_001fc3e0(param_3);
  uVar2 = __nl_langinfo_l(0xe,*(undefined4 *)(iVar1 + 8));
  bind_textdomain_codeset(*param_2,uVar2);
  uVar2 = FUN_0022f610();
  FUN_001e8d40(local_20,param_3);
                    /* try { // try from 0027aa9c to 0027aaa0 has its CatchHandler @ 0027aaba */
  uVar2 = FUN_0022f810(uVar2,*param_2,local_20);
  FUN_001e9510(local_20);
  return uVar2;
}

