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

void std::locale::facet::_S_destroy_c_locale(__locale_struct **param_1)

{
  __locale_struct *p_Var1;
  
  if (*param_1 != (__locale_struct *)0x0) {
    p_Var1 = (__locale_struct *)_S_get_c_locale();
    if (*param_1 != p_Var1) {
      __freelocale(*param_1);
    }
  }
  return;
}



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

void FUN_002474f0(int *param_1)

{
  int iVar1;
  
  if (*param_1 != 0) {
    iVar1 = FUN_00201510(0x2474f7);
    if (*param_1 != iVar1) {
      __freelocale(*param_1);
    }
  }
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00036f20
ADD EBX,0x167b09
SUB ESP,0x4
MOV ESI,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [ESI]
TEST EAX,EAX
JZ 0x00247521
CALL 0x00201510
MOV EDX,dword ptr [ESI]
CMP EDX,EAX
JZ 0x00247521
SUB ESP,0xc
PUSH EDX
CALL 0x0002a7f0
ADD ESP,0x10
ADD ESP,0x4
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_002474f0(int *param_1)\n\n{\n  int iVar1;\n  \n  if (*param_1 != 0) {\n    iVar1 = FUN_00201510(0x2474f7);\n    if (*param_1 != iVar1) {\n      __freelocale(*param_1);\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_002474f0(int *param_1)\n\n{\n  int iVar1;\n  \n  if (*param_1 != 0) {\n    iVar1 = FUN_00201510(0x2474f7);\n    if (*param_1 != iVar1) {\n      __freelocale(*param_1);\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_002474f0(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if (*param_1 != 0) {\n    iVar1 = FUN_00201510(0x2474f7);\n    if (*param_1 != iVar1) {\n      __freelocale(*param_1);\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (*param_1 != 0) {\n    iVar1 = FUN_00201510(0x2474f7);\n    if (*param_1 != iVar1) {\n      __freelocale(*param_1);\n    }\n  }" if (parenthesized_expression "(*param_1 != 0)" ( (binary_expression "*param_1 != 0" (pointer_expression "*param_1" * identifier) != number_literal) )) (compound_statement "{\n    iVar1 = FUN_00201510(0x2474f7);\n    if (*param_1 != iVar1) {\n      __freelocale(*param_1);\n    }\n  }" { (expression_statement "iVar1 = FUN_00201510(0x2474f7);" (assignment_expression "iVar1 = FUN_00201510(0x2474f7)" identifier = (call_expression "FUN_00201510(0x2474f7)" identifier (argument_list "(0x2474f7)" ( number_literal )))) ;) (if_statement "if (*param_1 != iVar1) {\n      __freelocale(*param_1);\n    }" if (parenthesized_expression "(*param_1 != iVar1)" ( (binary_expression "*param_1 != iVar1" (pointer_expression "*param_1" * identifier) != identifier) )) (compound_statement "{\n      __freelocale(*param_1);\n    }" { (expression_statement "__freelocale(*param_1);" (call_expression "__freelocale(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) ))) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::locale::facet::_S_destroy_c_locale(__locale_struct*&) */\n\nvoid std::locale::facet::_S_destroy_c_locale(__locale_struct **param_1)\n\n{\n  __locale_struct *p_Var1;\n  \n  if (*param_1 != (__locale_struct *)0x0) {\n    p_Var1 = (__locale_struct *)_S_get_c_locale();\n    if (*param_1 != p_Var1) {\n      __freelocale(*param_1);\n    }\n  }\n  return;\n}\n\n" comment comment (function_definition "void std::locale::facet::_S_destroy_c_locale(__locale_struct **param_1)\n\n{\n  __locale_struct *p_Var1;\n  \n  if (*param_1 != (__locale_struct *)0x0) {\n    p_Var1 = (__locale_struct *)_S_get_c_locale();\n    if (*param_1 != p_Var1) {\n      __freelocale(*param_1);\n    }\n  }\n  return;\n}" primitive_type (ERROR "std::locale::facet::" identifier : : identifier : : identifier : :) (function_declarator "_S_destroy_c_locale(__locale_struct **param_1)" identifier (parameter_list "(__locale_struct **param_1)" ( (parameter_declaration "__locale_struct **param_1" type_identifier (pointer_declarator "**param_1" * (pointer_declarator "*param_1" * identifier))) ))) (compound_statement "{\n  __locale_struct *p_Var1;\n  \n  if (*param_1 != (__locale_struct *)0x0) {\n    p_Var1 = (__locale_struct *)_S_get_c_locale();\n    if (*param_1 != p_Var1) {\n      __freelocale(*param_1);\n    }\n  }\n  return;\n}" { (declaration "__locale_struct *p_Var1;" type_identifier (pointer_declarator "*p_Var1" * identifier) ;) (if_statement "if (*param_1 != (__locale_struct *)0x0) {\n    p_Var1 = (__locale_struct *)_S_get_c_locale();\n    if (*param_1 != p_Var1) {\n      __freelocale(*param_1);\n    }\n  }" if (parenthesized_expression "(*param_1 != (__locale_struct *)0x0)" ( (binary_expression "*param_1 != (__locale_struct *)0x0" (pointer_expression "*param_1" * identifier) != (cast_expression "(__locale_struct *)0x0" ( (type_descriptor "__locale_struct *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    p_Var1 = (__locale_struct *)_S_get_c_locale();\n    if (*param_1 != p_Var1) {\n      __freelocale(*param_1);\n    }\n  }" { (expression_statement "p_Var1 = (__locale_struct *)_S_get_c_locale();" (assignment_expression "p_Var1 = (__locale_struct *)_S_get_c_locale()" identifier = (cast_expression "(__locale_struct *)_S_get_c_locale()" ( (type_descriptor "__locale_struct *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "_S_get_c_locale()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (*param_1 != p_Var1) {\n      __freelocale(*param_1);\n    }" if (parenthesized_expression "(*param_1 != p_Var1)" ( (binary_expression "*param_1 != p_Var1" (pointer_expression "*param_1" * identifier) != identifier) )) (compound_statement "{\n      __freelocale(*param_1);\n    }" { (expression_statement "__freelocale(*param_1);" (call_expression "__freelocale(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) ))) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_002474f0(int *param_1)\n\n{\n  int iVar1;\n  \n  if (*param_1 != 0) {\n    iVar1 = FUN_00201510(0x2474f7);\n    if (*param_1 != iVar1) {\n      __freelocale(*param_1);\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_002474f0(int *param_1)\n\n{\n  int iVar1;\n  \n  if (*param_1 != 0) {\n    iVar1 = FUN_00201510(0x2474f7);\n    if (*param_1 != iVar1) {\n      __freelocale(*param_1);\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_002474f0(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if (*param_1 != 0) {\n    iVar1 = FUN_00201510(0x2474f7);\n    if (*param_1 != iVar1) {\n      __freelocale(*param_1);\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (*param_1 != 0) {\n    iVar1 = FUN_00201510(0x2474f7);\n    if (*param_1 != iVar1) {\n      __freelocale(*param_1);\n    }\n  }" if (parenthesized_expression "(*param_1 != 0)" ( (binary_expression "*param_1 != 0" (pointer_expression "*param_1" * identifier) != number_literal) )) (compound_statement "{\n    iVar1 = FUN_00201510(0x2474f7);\n    if (*param_1 != iVar1) {\n      __freelocale(*param_1);\n    }\n  }" { (expression_statement "iVar1 = FUN_00201510(0x2474f7);" (assignment_expression "iVar1 = FUN_00201510(0x2474f7)" identifier = (call_expression "FUN_00201510(0x2474f7)" identifier (argument_list "(0x2474f7)" ( number_literal )))) ;) (if_statement "if (*param_1 != iVar1) {\n      __freelocale(*param_1);\n    }" if (parenthesized_expression "(*param_1 != iVar1)" ( (binary_expression "*param_1 != iVar1" (pointer_expression "*param_1" * identifier) != identifier) )) (compound_statement "{\n      __freelocale(*param_1);\n    }" { (expression_statement "__freelocale(*param_1);" (call_expression "__freelocale(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) ))) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) ))) ;) })) })) (return_statement return ;) })))
(function_definition "void FUN_002474f0(int *param_1)\n\n{\n  int iVar1;\n  \n  if (*param_1 != 0) {\n    iVar1 = FUN_00201510(0x2474f7);\n    if (*param_1 != iVar1) {\n      __freelocale(*param_1);\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_002474f0(int *param_1)" (identifier "FUN_002474f0") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if (*param_1 != 0) {\n    iVar1 = FUN_00201510(0x2474f7);\n    if (*param_1 != iVar1) {\n      __freelocale(*param_1);\n    }\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if (*param_1 != 0) {\n    iVar1 = FUN_00201510(0x2474f7);\n    if (*param_1 != iVar1) {\n      __freelocale(*param_1);\n    }\n  }" (if "if") (parenthesized_expression "(*param_1 != 0)" (( "(") (binary_expression "*param_1 != 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = FUN_00201510(0x2474f7);\n    if (*param_1 != iVar1) {\n      __freelocale(*param_1);\n    }\n  }" ({ "{") (expression_statement "iVar1 = FUN_00201510(0x2474f7);" (assignment_expression "iVar1 = FUN_00201510(0x2474f7)" (identifier "iVar1") (= "=") (call_expression "FUN_00201510(0x2474f7)" (identifier "FUN_00201510") (argument_list "(0x2474f7)" (( "(") (number_literal "0x2474f7") () ")")))) (; ";")) (if_statement "if (*param_1 != iVar1) {\n      __freelocale(*param_1);\n    }" (if "if") (parenthesized_expression "(*param_1 != iVar1)" (( "(") (binary_expression "*param_1 != iVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (!= "!=") (identifier "iVar1")) () ")")) (compound_statement "{\n      __freelocale(*param_1);\n    }" ({ "{") (expression_statement "__freelocale(*param_1);" (call_expression "__freelocale(*param_1)" (identifier "__freelocale") (argument_list "(*param_1)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")"))) (; ";")) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void std::locale::facet::function_1(type_1 **param_1)

{
  type_1 *var_2;
  
  if (*param_1 != (type_1 *)0x0) {
    var_2 = (type_1 *)var_1();
    if (*param_1 != var_2) {
      var_3(*param_1);
    }
  }
  return;
}


(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))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier))))))))) (return_statement))))

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

void MASKED(int *param_1)

{
  int iVar1;
  
  if (*param_1 != 0) {
    iVar1 = FUN_00201510(0x2474f7);
    if (*param_1 != iVar1) {
      __freelocale(*param_1);
    }
  }
  return;
}

