
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

char * locale_charset(void)

{
  char *pcVar1;
  
  pcVar1 = nl_langinfo(0xe);
  if (pcVar1 != (char *)0x0) {
    if (*pcVar1 == '\0') {
      pcVar1 = "ASCII";
    }
    return pcVar1;
  }
  return "ASCII";
}



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

char * FUN_000218a0(void)

{
  char *pcVar1;
  
  pcVar1 = nl_langinfo(0xe);
  if (pcVar1 != (char *)0x0) {
    if (*pcVar1 == '\0') {
      pcVar1 = "ASCII";
    }
    return pcVar1;
  }
  return "ASCII";
}


PUSH EBX
CALL 0x00012c30
ADD EBX,0xf75a
SUB ESP,0x14
PUSH 0xe
CALL 0x00012520
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000218d0
CMP byte ptr [EAX],0x0
LEA EDX,[EBX + 0xffff7366]
CMOVZ EAX,EDX
ADD ESP,0x8
POP EBX
RET
ADD ESP,0x8
LEA EAX,[EBX + 0xffff7366]
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * FUN_000218a0(void)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = nl_langinfo(0xe);\n  if (pcVar1 != (char *)0x0) {\n    if (*pcVar1 == '\0') {\n      pcVar1 = "ASCII";\n    }\n    return pcVar1;\n  }\n  return "ASCII";\n}\n\n" comment (function_definition "char * FUN_000218a0(void)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = nl_langinfo(0xe);\n  if (pcVar1 != (char *)0x0) {\n    if (*pcVar1 == '\0') {\n      pcVar1 = "ASCII";\n    }\n    return pcVar1;\n  }\n  return "ASCII";\n}" primitive_type (pointer_declarator "* FUN_000218a0(void)" * (function_declarator "FUN_000218a0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  char *pcVar1;\n  \n  pcVar1 = nl_langinfo(0xe);\n  if (pcVar1 != (char *)0x0) {\n    if (*pcVar1 == '\0') {\n      pcVar1 = "ASCII";\n    }\n    return pcVar1;\n  }\n  return "ASCII";\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (expression_statement "pcVar1 = nl_langinfo(0xe);" (assignment_expression "pcVar1 = nl_langinfo(0xe)" identifier = (call_expression "nl_langinfo(0xe)" identifier (argument_list "(0xe)" ( number_literal )))) ;) (if_statement "if (pcVar1 != (char *)0x0) {\n    if (*pcVar1 == '\0') {\n      pcVar1 = "ASCII";\n    }\n    return pcVar1;\n  }" if (parenthesized_expression "(pcVar1 != (char *)0x0)" ( (binary_expression "pcVar1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (*pcVar1 == '\0') {\n      pcVar1 = "ASCII";\n    }\n    return pcVar1;\n  }" { (if_statement "if (*pcVar1 == '\0') {\n      pcVar1 = "ASCII";\n    }" if (parenthesized_expression "(*pcVar1 == '\0')" ( (binary_expression "*pcVar1 == '\0'" (pointer_expression "*pcVar1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      pcVar1 = "ASCII";\n    }" { (expression_statement "pcVar1 = "ASCII";" (assignment_expression "pcVar1 = "ASCII"" identifier = (string_literal ""ASCII"" " string_content ")) ;) })) (return_statement "return pcVar1;" return identifier ;) })) (return_statement "return "ASCII";" return (string_literal ""ASCII"" " string_content ") ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nchar * locale_charset(void)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = nl_langinfo(0xe);\n  if (pcVar1 != (char *)0x0) {\n    if (*pcVar1 == '\0') {\n      pcVar1 = "ASCII";\n    }\n    return pcVar1;\n  }\n  return "ASCII";\n}\n\n" comment comment (function_definition "char * locale_charset(void)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = nl_langinfo(0xe);\n  if (pcVar1 != (char *)0x0) {\n    if (*pcVar1 == '\0') {\n      pcVar1 = "ASCII";\n    }\n    return pcVar1;\n  }\n  return "ASCII";\n}" primitive_type (pointer_declarator "* locale_charset(void)" * (function_declarator "locale_charset(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  char *pcVar1;\n  \n  pcVar1 = nl_langinfo(0xe);\n  if (pcVar1 != (char *)0x0) {\n    if (*pcVar1 == '\0') {\n      pcVar1 = "ASCII";\n    }\n    return pcVar1;\n  }\n  return "ASCII";\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (expression_statement "pcVar1 = nl_langinfo(0xe);" (assignment_expression "pcVar1 = nl_langinfo(0xe)" identifier = (call_expression "nl_langinfo(0xe)" identifier (argument_list "(0xe)" ( number_literal )))) ;) (if_statement "if (pcVar1 != (char *)0x0) {\n    if (*pcVar1 == '\0') {\n      pcVar1 = "ASCII";\n    }\n    return pcVar1;\n  }" if (parenthesized_expression "(pcVar1 != (char *)0x0)" ( (binary_expression "pcVar1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (*pcVar1 == '\0') {\n      pcVar1 = "ASCII";\n    }\n    return pcVar1;\n  }" { (if_statement "if (*pcVar1 == '\0') {\n      pcVar1 = "ASCII";\n    }" if (parenthesized_expression "(*pcVar1 == '\0')" ( (binary_expression "*pcVar1 == '\0'" (pointer_expression "*pcVar1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      pcVar1 = "ASCII";\n    }" { (expression_statement "pcVar1 = "ASCII";" (assignment_expression "pcVar1 = "ASCII"" identifier = (string_literal ""ASCII"" " string_content ")) ;) })) (return_statement "return pcVar1;" return identifier ;) })) (return_statement "return "ASCII";" return (string_literal ""ASCII"" " string_content ") ;) })))
(translation_unit "char * FUN_000218a0(void)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = nl_langinfo(0xe);\n  if (pcVar1 != (char *)0x0) {\n    if (*pcVar1 == '\0') {\n      pcVar1 = "ASCII";\n    }\n    return pcVar1;\n  }\n  return "ASCII";\n}\n\n" (function_definition "char * FUN_000218a0(void)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = nl_langinfo(0xe);\n  if (pcVar1 != (char *)0x0) {\n    if (*pcVar1 == '\0') {\n      pcVar1 = "ASCII";\n    }\n    return pcVar1;\n  }\n  return "ASCII";\n}" primitive_type (pointer_declarator "* FUN_000218a0(void)" * (function_declarator "FUN_000218a0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  char *pcVar1;\n  \n  pcVar1 = nl_langinfo(0xe);\n  if (pcVar1 != (char *)0x0) {\n    if (*pcVar1 == '\0') {\n      pcVar1 = "ASCII";\n    }\n    return pcVar1;\n  }\n  return "ASCII";\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (expression_statement "pcVar1 = nl_langinfo(0xe);" (assignment_expression "pcVar1 = nl_langinfo(0xe)" identifier = (call_expression "nl_langinfo(0xe)" identifier (argument_list "(0xe)" ( number_literal )))) ;) (if_statement "if (pcVar1 != (char *)0x0) {\n    if (*pcVar1 == '\0') {\n      pcVar1 = "ASCII";\n    }\n    return pcVar1;\n  }" if (parenthesized_expression "(pcVar1 != (char *)0x0)" ( (binary_expression "pcVar1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (*pcVar1 == '\0') {\n      pcVar1 = "ASCII";\n    }\n    return pcVar1;\n  }" { (if_statement "if (*pcVar1 == '\0') {\n      pcVar1 = "ASCII";\n    }" if (parenthesized_expression "(*pcVar1 == '\0')" ( (binary_expression "*pcVar1 == '\0'" (pointer_expression "*pcVar1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      pcVar1 = "ASCII";\n    }" { (expression_statement "pcVar1 = "ASCII";" (assignment_expression "pcVar1 = "ASCII"" identifier = (string_literal ""ASCII"" " string_content ")) ;) })) (return_statement "return pcVar1;" return identifier ;) })) (return_statement "return "ASCII";" return (string_literal ""ASCII"" " string_content ") ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) })) (return_statement return IDENT ;) })) (return_statement return (string_literal " string_content ") ;) })))
(function_definition "char * FUN_000218a0(void)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = nl_langinfo(0xe);\n  if (pcVar1 != (char *)0x0) {\n    if (*pcVar1 == '\0') {\n      pcVar1 = "ASCII";\n    }\n    return pcVar1;\n  }\n  return "ASCII";\n}" (primitive_type "char") (pointer_declarator "* FUN_000218a0(void)" (* "*") (function_declarator "FUN_000218a0(void)" (identifier "FUN_000218a0") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")")))) (compound_statement "{\n  char *pcVar1;\n  \n  pcVar1 = nl_langinfo(0xe);\n  if (pcVar1 != (char *)0x0) {\n    if (*pcVar1 == '\0') {\n      pcVar1 = "ASCII";\n    }\n    return pcVar1;\n  }\n  return "ASCII";\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (expression_statement "pcVar1 = nl_langinfo(0xe);" (assignment_expression "pcVar1 = nl_langinfo(0xe)" (identifier "pcVar1") (= "=") (call_expression "nl_langinfo(0xe)" (identifier "nl_langinfo") (argument_list "(0xe)" (( "(") (number_literal "0xe") () ")")))) (; ";")) (if_statement "if (pcVar1 != (char *)0x0) {\n    if (*pcVar1 == '\0') {\n      pcVar1 = "ASCII";\n    }\n    return pcVar1;\n  }" (if "if") (parenthesized_expression "(pcVar1 != (char *)0x0)" (( "(") (binary_expression "pcVar1 != (char *)0x0" (identifier "pcVar1") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    if (*pcVar1 == '\0') {\n      pcVar1 = "ASCII";\n    }\n    return pcVar1;\n  }" ({ "{") (if_statement "if (*pcVar1 == '\0') {\n      pcVar1 = "ASCII";\n    }" (if "if") (parenthesized_expression "(*pcVar1 == '\0')" (( "(") (binary_expression "*pcVar1 == '\0'" (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      pcVar1 = "ASCII";\n    }" ({ "{") (expression_statement "pcVar1 = "ASCII";" (assignment_expression "pcVar1 = "ASCII"" (identifier "pcVar1") (= "=") (string_literal ""ASCII"" (" """) (string_content "ASCII") (" """))) (; ";")) (} "}"))) (return_statement "return pcVar1;" (return "return") (identifier "pcVar1") (; ";")) (} "}"))) (return_statement "return "ASCII";" (return "return") (string_literal ""ASCII"" (" """) (string_content "ASCII") (" """)) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

char * function_1(void)

{
  char *var_2;
  
  var_2 = var_1(0xe);
  if (var_2 != (char *)0x0) {
    if (*var_2 == '\0') {
      var_2 = "ASCII";
    }
    return var_2;
  }
  return "ASCII";
}


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

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

char * MASKED(void)

{
  char *pcVar1;
  
  pcVar1 = nl_langinfo(0xe);
  if (pcVar1 != (char *)0x0) {
    if (*pcVar1 == '\0') {
      pcVar1 = "ASCII";
    }
    return pcVar1;
  }
  return "ASCII";
}

