
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::locale::facet::_S_create_c_locale(__locale_struct*&, char const*, __locale_struct*) */

void std::locale::facet::_S_create_c_locale
               (__locale_struct **param_1,char *param_2,__locale_struct *param_3)

{
  __locale_struct *p_Var1;
  
  p_Var1 = (__locale_struct *)__newlocale(0x40,param_2,param_3);
  *param_1 = p_Var1;
  if (p_Var1 != (__locale_struct *)0x0) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __throw_runtime_error("locale::facet::_S_create_c_locale name not valid");
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void FUN_0022f230(int *param_1,undefined4 param_2,undefined4 param_3)

{
  int iVar1;
  
  iVar1 = __newlocale(0x40,param_2,param_3);
  *param_1 = iVar1;
  if (iVar1 != 0) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0022c8d0("locale::facet::_S_create_c_locale name not valid");
}


PUSH EBX
CALL 0x00035840
ADD EBX,0x15fdca
SUB ESP,0xc
PUSH dword ptr [ESP + 0x1c]
PUSH dword ptr [ESP + 0x1c]
PUSH 0x40
CALL 0x00029a00
MOV EDX,dword ptr [ESP + 0x20]
ADD ESP,0x10
MOV dword ptr [EDX],EAX
TEST EAX,EAX
JZ 0x0022f260
ADD ESP,0x8
POP EBX
RET
SUB ESP,0xc
LEA EAX,[EBX + 0xfff16e64]
PUSH EAX
CALL 0x0022c8d0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0022f230(int *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = __newlocale(0x40,param_2,param_3);\n  *param_1 = iVar1;\n  if (iVar1 != 0) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0022c8d0("locale::facet::_S_create_c_locale name not valid");\n}\n\n" comment (function_definition "void FUN_0022f230(int *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = __newlocale(0x40,param_2,param_3);\n  *param_1 = iVar1;\n  if (iVar1 != 0) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0022c8d0("locale::facet::_S_create_c_locale name not valid");\n}" primitive_type (function_declarator "FUN_0022f230(int *param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(int *param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = __newlocale(0x40,param_2,param_3);\n  *param_1 = iVar1;\n  if (iVar1 != 0) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0022c8d0("locale::facet::_S_create_c_locale name not valid");\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = __newlocale(0x40,param_2,param_3);" (assignment_expression "iVar1 = __newlocale(0x40,param_2,param_3)" identifier = (call_expression "__newlocale(0x40,param_2,param_3)" identifier (argument_list "(0x40,param_2,param_3)" ( number_literal , identifier , identifier )))) ;) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (if_statement "if (iVar1 != 0) {\n    return;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "FUN_0022c8d0("locale::facet::_S_create_c_locale name not valid");" (call_expression "FUN_0022c8d0("locale::facet::_S_create_c_locale name not valid")" identifier (argument_list "("locale::facet::_S_create_c_locale name not valid")" ( (string_literal ""locale::facet::_S_create_c_locale name not valid"" " string_content ") ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::locale::facet::_S_create_c_locale(__locale_struct*&, char const*, __locale_struct*) */\n\nvoid std::locale::facet::_S_create_c_locale\n               (__locale_struct **param_1,char *param_2,__locale_struct *param_3)\n\n{\n  __locale_struct *p_Var1;\n  \n  p_Var1 = (__locale_struct *)__newlocale(0x40,param_2,param_3);\n  *param_1 = p_Var1;\n  if (p_Var1 != (__locale_struct *)0x0) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_runtime_error("locale::facet::_S_create_c_locale name not valid");\n}\n\n" comment comment (function_definition "void std::locale::facet::_S_create_c_locale\n               (__locale_struct **param_1,char *param_2,__locale_struct *param_3)\n\n{\n  __locale_struct *p_Var1;\n  \n  p_Var1 = (__locale_struct *)__newlocale(0x40,param_2,param_3);\n  *param_1 = p_Var1;\n  if (p_Var1 != (__locale_struct *)0x0) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_runtime_error("locale::facet::_S_create_c_locale name not valid");\n}" primitive_type (ERROR "std::locale::facet::" identifier : : identifier : : identifier : :) (function_declarator "_S_create_c_locale\n               (__locale_struct **param_1,char *param_2,__locale_struct *param_3)" identifier (parameter_list "(__locale_struct **param_1,char *param_2,__locale_struct *param_3)" ( (parameter_declaration "__locale_struct **param_1" type_identifier (pointer_declarator "**param_1" * (pointer_declarator "*param_1" * identifier))) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "__locale_struct *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  __locale_struct *p_Var1;\n  \n  p_Var1 = (__locale_struct *)__newlocale(0x40,param_2,param_3);\n  *param_1 = p_Var1;\n  if (p_Var1 != (__locale_struct *)0x0) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_runtime_error("locale::facet::_S_create_c_locale name not valid");\n}" { (declaration "__locale_struct *p_Var1;" type_identifier (pointer_declarator "*p_Var1" * identifier) ;) (expression_statement "p_Var1 = (__locale_struct *)__newlocale(0x40,param_2,param_3);" (assignment_expression "p_Var1 = (__locale_struct *)__newlocale(0x40,param_2,param_3)" identifier = (cast_expression "(__locale_struct *)__newlocale(0x40,param_2,param_3)" ( (type_descriptor "__locale_struct *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "__newlocale(0x40,param_2,param_3)" identifier (argument_list "(0x40,param_2,param_3)" ( number_literal , identifier , identifier ))))) ;) (expression_statement "*param_1 = p_Var1;" (assignment_expression "*param_1 = p_Var1" (pointer_expression "*param_1" * identifier) = identifier) ;) (if_statement "if (p_Var1 != (__locale_struct *)0x0) {\n    return;\n  }" if (parenthesized_expression "(p_Var1 != (__locale_struct *)0x0)" ( (binary_expression "p_Var1 != (__locale_struct *)0x0" identifier != (cast_expression "(__locale_struct *)0x0" ( (type_descriptor "__locale_struct *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "__throw_runtime_error("locale::facet::_S_create_c_locale name not valid");" (call_expression "__throw_runtime_error("locale::facet::_S_create_c_locale name not valid")" identifier (argument_list "("locale::facet::_S_create_c_locale name not valid")" ( (string_literal ""locale::facet::_S_create_c_locale name not valid"" " string_content ") ))) ;) })))
(translation_unit "void FUN_0022f230(int *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = __newlocale(0x40,param_2,param_3);\n  *param_1 = iVar1;\n  if (iVar1 != 0) {\n    return;\n  }\n                    \n  FUN_0022c8d0("locale::facet::_S_create_c_locale name not valid");\n}\n\n" (function_definition "void FUN_0022f230(int *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = __newlocale(0x40,param_2,param_3);\n  *param_1 = iVar1;\n  if (iVar1 != 0) {\n    return;\n  }\n                    \n  FUN_0022c8d0("locale::facet::_S_create_c_locale name not valid");\n}" primitive_type (function_declarator "FUN_0022f230(int *param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(int *param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = __newlocale(0x40,param_2,param_3);\n  *param_1 = iVar1;\n  if (iVar1 != 0) {\n    return;\n  }\n                    \n  FUN_0022c8d0("locale::facet::_S_create_c_locale name not valid");\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = __newlocale(0x40,param_2,param_3);" (assignment_expression "iVar1 = __newlocale(0x40,param_2,param_3)" identifier = (call_expression "__newlocale(0x40,param_2,param_3)" identifier (argument_list "(0x40,param_2,param_3)" ( number_literal , identifier , identifier )))) ;) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (if_statement "if (iVar1 != 0) {\n    return;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_0022c8d0("locale::facet::_S_create_c_locale name not valid");" (call_expression "FUN_0022c8d0("locale::facet::_S_create_c_locale name not valid")" identifier (argument_list "("locale::facet::_S_create_c_locale name not valid")" ( (string_literal ""locale::facet::_S_create_c_locale name not valid"" " string_content ") ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) })))
(function_definition "void FUN_0022f230(int *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = __newlocale(0x40,param_2,param_3);\n  *param_1 = iVar1;\n  if (iVar1 != 0) {\n    return;\n  }\n                    \n  FUN_0022c8d0("locale::facet::_S_create_c_locale name not valid");\n}" (primitive_type "void") (function_declarator "FUN_0022f230(int *param_1,undefined4 param_2,undefined4 param_3)" (identifier "FUN_0022f230") (parameter_list "(int *param_1,undefined4 param_2,undefined4 param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = __newlocale(0x40,param_2,param_3);\n  *param_1 = iVar1;\n  if (iVar1 != 0) {\n    return;\n  }\n                    \n  FUN_0022c8d0("locale::facet::_S_create_c_locale name not valid");\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = __newlocale(0x40,param_2,param_3);" (assignment_expression "iVar1 = __newlocale(0x40,param_2,param_3)" (identifier "iVar1") (= "=") (call_expression "__newlocale(0x40,param_2,param_3)" (identifier "__newlocale") (argument_list "(0x40,param_2,param_3)" (( "(") (number_literal "0x40") (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")")))) (; ";")) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar1")) (; ";")) (if_statement "if (iVar1 != 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_0022c8d0("locale::facet::_S_create_c_locale name not valid");" (call_expression "FUN_0022c8d0("locale::facet::_S_create_c_locale name not valid")" (identifier "FUN_0022c8d0") (argument_list "("locale::facet::_S_create_c_locale name not valid")" (( "(") (string_literal ""locale::facet::_S_create_c_locale name not valid"" (" """) (string_content "locale::facet::_S_create_c_locale name not valid") (" """)) () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::locale::facet::_S_create_c_locale(__locale_struct*&, char const*, __locale_struct*) */

void std::locale::facet::function_1
               (type_1 **param_1,char *param_2,type_1 *param_3)

{
  type_1 *var_2;
  
  var_2 = (type_1 *)var_1(0x40,param_2,param_3);
  *param_1 = var_2;
  if (var_2 != (type_1 *)0x0) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_3("locale::facet::_S_create_c_locale name not valid");
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier) (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content))))))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

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

{
  int iVar1;
  
  iVar1 = __newlocale(0x40,param_2,param_3);
  *param_1 = iVar1;
  if (iVar1 != 0) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0022c8d0("locale::facet::_S_create_c_locale name not valid");
}

