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

int locale_decpoint(void)

{
  char cVar1;
  lconv *plVar2;
  int iVar3;
  
  plVar2 = localeconv();
  if ((plVar2 != (lconv *)0x0) && (plVar2->decimal_point != (char *)0x0)) {
    cVar1 = *plVar2->decimal_point;
    iVar3 = (int)cVar1;
    if (cVar1 == '\0') {
      iVar3 = 0x2e;
    }
    return iVar3;
  }
  return 0x2e;
}



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

int locale_decpoint(void)

{
  char cVar1;
  lconv *plVar2;
  int iVar3;
  
  plVar2 = localeconv();
  if ((plVar2 != (lconv *)0x0) && (plVar2->decimal_point != (char *)0x0)) {
    cVar1 = *plVar2->decimal_point;
    iVar3 = (int)cVar1;
    if (cVar1 == '\0') {
      iVar3 = 0x2e;
    }
    return iVar3;
  }
  return 0x2e;
}


PUSH EBX
CALL 0x00031ed0
ADD EBX,0xb723a
SUB ESP,0x8
CALL 0x0002fb60
TEST EAX,EAX
JZ 0x00092df0
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
JZ 0x00092df0
MOVSX EAX,byte ptr [EAX]
MOV EDX,0x2e
TEST AL,AL
CMOVZ EAX,EDX
ADD ESP,0x8
POP EBX
RET
ADD ESP,0x8
MOV EAX,0x2e
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint locale_decpoint(void)\n\n{\n  char cVar1;\n  lconv *plVar2;\n  int iVar3;\n  \n  plVar2 = localeconv();\n  if ((plVar2 != (lconv *)0x0) && (plVar2->decimal_point != (char *)0x0)) {\n    cVar1 = *plVar2->decimal_point;\n    iVar3 = (int)cVar1;\n    if (cVar1 == '\0') {\n      iVar3 = 0x2e;\n    }\n    return iVar3;\n  }\n  return 0x2e;\n}\n\n" comment (function_definition "int locale_decpoint(void)\n\n{\n  char cVar1;\n  lconv *plVar2;\n  int iVar3;\n  \n  plVar2 = localeconv();\n  if ((plVar2 != (lconv *)0x0) && (plVar2->decimal_point != (char *)0x0)) {\n    cVar1 = *plVar2->decimal_point;\n    iVar3 = (int)cVar1;\n    if (cVar1 == '\0') {\n      iVar3 = 0x2e;\n    }\n    return iVar3;\n  }\n  return 0x2e;\n}" primitive_type (function_declarator "locale_decpoint(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  char cVar1;\n  lconv *plVar2;\n  int iVar3;\n  \n  plVar2 = localeconv();\n  if ((plVar2 != (lconv *)0x0) && (plVar2->decimal_point != (char *)0x0)) {\n    cVar1 = *plVar2->decimal_point;\n    iVar3 = (int)cVar1;\n    if (cVar1 == '\0') {\n      iVar3 = 0x2e;\n    }\n    return iVar3;\n  }\n  return 0x2e;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "lconv *plVar2;" type_identifier (pointer_declarator "*plVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "plVar2 = localeconv();" (assignment_expression "plVar2 = localeconv()" identifier = (call_expression "localeconv()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((plVar2 != (lconv *)0x0) && (plVar2->decimal_point != (char *)0x0)) {\n    cVar1 = *plVar2->decimal_point;\n    iVar3 = (int)cVar1;\n    if (cVar1 == '\0') {\n      iVar3 = 0x2e;\n    }\n    return iVar3;\n  }" if (parenthesized_expression "((plVar2 != (lconv *)0x0) && (plVar2->decimal_point != (char *)0x0))" ( (binary_expression "(plVar2 != (lconv *)0x0) && (plVar2->decimal_point != (char *)0x0)" (parenthesized_expression "(plVar2 != (lconv *)0x0)" ( (binary_expression "plVar2 != (lconv *)0x0" identifier != (cast_expression "(lconv *)0x0" ( (type_descriptor "lconv *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(plVar2->decimal_point != (char *)0x0)" ( (binary_expression "plVar2->decimal_point != (char *)0x0" (field_expression "plVar2->decimal_point" identifier -> field_identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    cVar1 = *plVar2->decimal_point;\n    iVar3 = (int)cVar1;\n    if (cVar1 == '\0') {\n      iVar3 = 0x2e;\n    }\n    return iVar3;\n  }" { (expression_statement "cVar1 = *plVar2->decimal_point;" (assignment_expression "cVar1 = *plVar2->decimal_point" identifier = (pointer_expression "*plVar2->decimal_point" * (field_expression "plVar2->decimal_point" identifier -> field_identifier))) ;) (expression_statement "iVar3 = (int)cVar1;" (assignment_expression "iVar3 = (int)cVar1" identifier = (cast_expression "(int)cVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (cVar1 == '\0') {\n      iVar3 = 0x2e;\n    }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      iVar3 = 0x2e;\n    }" { (expression_statement "iVar3 = 0x2e;" (assignment_expression "iVar3 = 0x2e" identifier = number_literal) ;) })) (return_statement "return iVar3;" return identifier ;) })) (return_statement "return 0x2e;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint locale_decpoint(void)\n\n{\n  char cVar1;\n  lconv *plVar2;\n  int iVar3;\n  \n  plVar2 = localeconv();\n  if ((plVar2 != (lconv *)0x0) && (plVar2->decimal_point != (char *)0x0)) {\n    cVar1 = *plVar2->decimal_point;\n    iVar3 = (int)cVar1;\n    if (cVar1 == '\0') {\n      iVar3 = 0x2e;\n    }\n    return iVar3;\n  }\n  return 0x2e;\n}\n\n" comment comment (function_definition "int locale_decpoint(void)\n\n{\n  char cVar1;\n  lconv *plVar2;\n  int iVar3;\n  \n  plVar2 = localeconv();\n  if ((plVar2 != (lconv *)0x0) && (plVar2->decimal_point != (char *)0x0)) {\n    cVar1 = *plVar2->decimal_point;\n    iVar3 = (int)cVar1;\n    if (cVar1 == '\0') {\n      iVar3 = 0x2e;\n    }\n    return iVar3;\n  }\n  return 0x2e;\n}" primitive_type (function_declarator "locale_decpoint(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  char cVar1;\n  lconv *plVar2;\n  int iVar3;\n  \n  plVar2 = localeconv();\n  if ((plVar2 != (lconv *)0x0) && (plVar2->decimal_point != (char *)0x0)) {\n    cVar1 = *plVar2->decimal_point;\n    iVar3 = (int)cVar1;\n    if (cVar1 == '\0') {\n      iVar3 = 0x2e;\n    }\n    return iVar3;\n  }\n  return 0x2e;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "lconv *plVar2;" type_identifier (pointer_declarator "*plVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "plVar2 = localeconv();" (assignment_expression "plVar2 = localeconv()" identifier = (call_expression "localeconv()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((plVar2 != (lconv *)0x0) && (plVar2->decimal_point != (char *)0x0)) {\n    cVar1 = *plVar2->decimal_point;\n    iVar3 = (int)cVar1;\n    if (cVar1 == '\0') {\n      iVar3 = 0x2e;\n    }\n    return iVar3;\n  }" if (parenthesized_expression "((plVar2 != (lconv *)0x0) && (plVar2->decimal_point != (char *)0x0))" ( (binary_expression "(plVar2 != (lconv *)0x0) && (plVar2->decimal_point != (char *)0x0)" (parenthesized_expression "(plVar2 != (lconv *)0x0)" ( (binary_expression "plVar2 != (lconv *)0x0" identifier != (cast_expression "(lconv *)0x0" ( (type_descriptor "lconv *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(plVar2->decimal_point != (char *)0x0)" ( (binary_expression "plVar2->decimal_point != (char *)0x0" (field_expression "plVar2->decimal_point" identifier -> field_identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    cVar1 = *plVar2->decimal_point;\n    iVar3 = (int)cVar1;\n    if (cVar1 == '\0') {\n      iVar3 = 0x2e;\n    }\n    return iVar3;\n  }" { (expression_statement "cVar1 = *plVar2->decimal_point;" (assignment_expression "cVar1 = *plVar2->decimal_point" identifier = (pointer_expression "*plVar2->decimal_point" * (field_expression "plVar2->decimal_point" identifier -> field_identifier))) ;) (expression_statement "iVar3 = (int)cVar1;" (assignment_expression "iVar3 = (int)cVar1" identifier = (cast_expression "(int)cVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (cVar1 == '\0') {\n      iVar3 = 0x2e;\n    }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      iVar3 = 0x2e;\n    }" { (expression_statement "iVar3 = 0x2e;" (assignment_expression "iVar3 = 0x2e" identifier = number_literal) ;) })) (return_statement "return iVar3;" return identifier ;) })) (return_statement "return 0x2e;" return number_literal ;) })))
(translation_unit "int locale_decpoint(void)\n\n{\n  char cVar1;\n  lconv *plVar2;\n  int iVar3;\n  \n  plVar2 = localeconv();\n  if ((plVar2 != (lconv *)0x0) && (plVar2->decimal_point != (char *)0x0)) {\n    cVar1 = *plVar2->decimal_point;\n    iVar3 = (int)cVar1;\n    if (cVar1 == '\0') {\n      iVar3 = 0x2e;\n    }\n    return iVar3;\n  }\n  return 0x2e;\n}\n\n" (function_definition "int locale_decpoint(void)\n\n{\n  char cVar1;\n  lconv *plVar2;\n  int iVar3;\n  \n  plVar2 = localeconv();\n  if ((plVar2 != (lconv *)0x0) && (plVar2->decimal_point != (char *)0x0)) {\n    cVar1 = *plVar2->decimal_point;\n    iVar3 = (int)cVar1;\n    if (cVar1 == '\0') {\n      iVar3 = 0x2e;\n    }\n    return iVar3;\n  }\n  return 0x2e;\n}" primitive_type (function_declarator "locale_decpoint(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  char cVar1;\n  lconv *plVar2;\n  int iVar3;\n  \n  plVar2 = localeconv();\n  if ((plVar2 != (lconv *)0x0) && (plVar2->decimal_point != (char *)0x0)) {\n    cVar1 = *plVar2->decimal_point;\n    iVar3 = (int)cVar1;\n    if (cVar1 == '\0') {\n      iVar3 = 0x2e;\n    }\n    return iVar3;\n  }\n  return 0x2e;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "lconv *plVar2;" type_identifier (pointer_declarator "*plVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "plVar2 = localeconv();" (assignment_expression "plVar2 = localeconv()" identifier = (call_expression "localeconv()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((plVar2 != (lconv *)0x0) && (plVar2->decimal_point != (char *)0x0)) {\n    cVar1 = *plVar2->decimal_point;\n    iVar3 = (int)cVar1;\n    if (cVar1 == '\0') {\n      iVar3 = 0x2e;\n    }\n    return iVar3;\n  }" if (parenthesized_expression "((plVar2 != (lconv *)0x0) && (plVar2->decimal_point != (char *)0x0))" ( (binary_expression "(plVar2 != (lconv *)0x0) && (plVar2->decimal_point != (char *)0x0)" (parenthesized_expression "(plVar2 != (lconv *)0x0)" ( (binary_expression "plVar2 != (lconv *)0x0" identifier != (cast_expression "(lconv *)0x0" ( (type_descriptor "lconv *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(plVar2->decimal_point != (char *)0x0)" ( (binary_expression "plVar2->decimal_point != (char *)0x0" (field_expression "plVar2->decimal_point" identifier -> field_identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    cVar1 = *plVar2->decimal_point;\n    iVar3 = (int)cVar1;\n    if (cVar1 == '\0') {\n      iVar3 = 0x2e;\n    }\n    return iVar3;\n  }" { (expression_statement "cVar1 = *plVar2->decimal_point;" (assignment_expression "cVar1 = *plVar2->decimal_point" identifier = (pointer_expression "*plVar2->decimal_point" * (field_expression "plVar2->decimal_point" identifier -> field_identifier))) ;) (expression_statement "iVar3 = (int)cVar1;" (assignment_expression "iVar3 = (int)cVar1" identifier = (cast_expression "(int)cVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (cVar1 == '\0') {\n      iVar3 = 0x2e;\n    }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      iVar3 = 0x2e;\n    }" { (expression_statement "iVar3 = 0x2e;" (assignment_expression "iVar3 = 0x2e" identifier = number_literal) ;) })) (return_statement "return iVar3;" return identifier ;) })) (return_statement "return 0x2e;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression (field_expression IDENT -> field_identifier) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (field_expression IDENT -> field_identifier))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (return_statement return IDENT ;) })) (return_statement return LIT ;) })))
(function_definition "int locale_decpoint(void)\n\n{\n  char cVar1;\n  lconv *plVar2;\n  int iVar3;\n  \n  plVar2 = localeconv();\n  if ((plVar2 != (lconv *)0x0) && (plVar2->decimal_point != (char *)0x0)) {\n    cVar1 = *plVar2->decimal_point;\n    iVar3 = (int)cVar1;\n    if (cVar1 == '\0') {\n      iVar3 = 0x2e;\n    }\n    return iVar3;\n  }\n  return 0x2e;\n}" (primitive_type "int") (function_declarator "locale_decpoint(void)" (identifier "locale_decpoint") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  char cVar1;\n  lconv *plVar2;\n  int iVar3;\n  \n  plVar2 = localeconv();\n  if ((plVar2 != (lconv *)0x0) && (plVar2->decimal_point != (char *)0x0)) {\n    cVar1 = *plVar2->decimal_point;\n    iVar3 = (int)cVar1;\n    if (cVar1 == '\0') {\n      iVar3 = 0x2e;\n    }\n    return iVar3;\n  }\n  return 0x2e;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "lconv *plVar2;" (type_identifier "lconv") (pointer_declarator "*plVar2" (* "*") (identifier "plVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "plVar2 = localeconv();" (assignment_expression "plVar2 = localeconv()" (identifier "plVar2") (= "=") (call_expression "localeconv()" (identifier "localeconv") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((plVar2 != (lconv *)0x0) && (plVar2->decimal_point != (char *)0x0)) {\n    cVar1 = *plVar2->decimal_point;\n    iVar3 = (int)cVar1;\n    if (cVar1 == '\0') {\n      iVar3 = 0x2e;\n    }\n    return iVar3;\n  }" (if "if") (parenthesized_expression "((plVar2 != (lconv *)0x0) && (plVar2->decimal_point != (char *)0x0))" (( "(") (binary_expression "(plVar2 != (lconv *)0x0) && (plVar2->decimal_point != (char *)0x0)" (parenthesized_expression "(plVar2 != (lconv *)0x0)" (( "(") (binary_expression "plVar2 != (lconv *)0x0" (identifier "plVar2") (!= "!=") (cast_expression "(lconv *)0x0" (( "(") (type_descriptor "lconv *" (type_identifier "lconv") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(plVar2->decimal_point != (char *)0x0)" (( "(") (binary_expression "plVar2->decimal_point != (char *)0x0" (field_expression "plVar2->decimal_point" (identifier "plVar2") (-> "->") (field_identifier "decimal_point")) (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")"))) () ")")) (compound_statement "{\n    cVar1 = *plVar2->decimal_point;\n    iVar3 = (int)cVar1;\n    if (cVar1 == '\0') {\n      iVar3 = 0x2e;\n    }\n    return iVar3;\n  }" ({ "{") (expression_statement "cVar1 = *plVar2->decimal_point;" (assignment_expression "cVar1 = *plVar2->decimal_point" (identifier "cVar1") (= "=") (pointer_expression "*plVar2->decimal_point" (* "*") (field_expression "plVar2->decimal_point" (identifier "plVar2") (-> "->") (field_identifier "decimal_point")))) (; ";")) (expression_statement "iVar3 = (int)cVar1;" (assignment_expression "iVar3 = (int)cVar1" (identifier "iVar3") (= "=") (cast_expression "(int)cVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "cVar1"))) (; ";")) (if_statement "if (cVar1 == '\0') {\n      iVar3 = 0x2e;\n    }" (if "if") (parenthesized_expression "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      iVar3 = 0x2e;\n    }" ({ "{") (expression_statement "iVar3 = 0x2e;" (assignment_expression "iVar3 = 0x2e" (identifier "iVar3") (= "=") (number_literal "0x2e")) (; ";")) (} "}"))) (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}"))) (return_statement "return 0x2e;" (return "return") (number_literal "0x2e") (; ";")) (} "}")))

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

int function_1(void)

{
  char var_3;
  type_1 *var_2;
  int iVar3;
  
  var_2 = var_1();
  if ((var_2 != (type_1 *)0x0) && (var_2->decimal_point != (char *)0x0)) {
    var_3 = *var_2->decimal_point;
    iVar3 = (int)var_3;
    if (var_3 == '\0') {
      iVar3 = 0x2e;
    }
    return iVar3;
  }
  return 0x2e;
}


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

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

int MASKED(void)

{
  char cVar1;
  lconv *plVar2;
  int iVar3;
  
  plVar2 = localeconv();
  if ((plVar2 != (lconv *)0x0) && (plVar2->decimal_point != (char *)0x0)) {
    cVar1 = *plVar2->decimal_point;
    iVar3 = (int)cVar1;
    if (cVar1 == '\0') {
      iVar3 = 0x2e;
    }
    return iVar3;
  }
  return 0x2e;
}

