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

int __regparm3 rangecmp_wc(wint_t c1,wint_t c2,int forcecoll)

{
  int iVar1;
  
  if (c1 != c2) {
    if ((((forcecoll == 0) && (glob_asciirange != 0)) && (c1 < 0x100)) && (c2 < 0x100)) {
      iVar1 = c1 - c2;
    }
    else {
      s2_4852 = c2;
      s1_4851 = c1;
      iVar1 = wcscoll((wchar_t *)&s1_4851,(wchar_t *)&s2_4852);
    }
    return iVar1;
  }
  return 0;
}



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

int __regparm3 FUN_000b7470(uint param_1,uint param_2,int param_3)

{
  int iVar1;
  
  if (param_1 != param_2) {
    if ((((param_3 == 0) && (glob_asciirange != 0)) && (param_1 < 0x100)) && (param_2 < 0x100)) {
      iVar1 = param_1 - param_2;
    }
    else {
      DAT_0014b6f4 = param_2;
      DAT_0014b6fc = param_1;
      iVar1 = wcscoll((wchar_t *)&DAT_0014b6fc,(wchar_t *)&DAT_0014b6f4);
    }
    return iVar1;
  }
  return 0;
}


PUSH EBX
CALL 0x00031ed0
ADD EBX,0x92b8a
SUB ESP,0x8
CMP EAX,EDX
JZ 0x000b74d8
TEST ECX,ECX
JNZ 0x000b7491
MOV ECX,dword ptr [EBX + 0x1704]
TEST ECX,ECX
JNZ 0x000b74c0
SUB ESP,0x8
MOV dword ptr [EBX + 0x16fc],EAX
LEA EAX,[EBX + 0x16f4]
PUSH EAX
LEA EAX,[EBX + 0x16fc]
PUSH EAX
MOV dword ptr [EBX + 0x16f4],EDX
CALL 0x0002f170
ADD ESP,0x10
ADD ESP,0x8
POP EBX
RET
CMP EAX,0xff
JA 0x000b7491
CMP EDX,0xff
JA 0x000b7491
SUB EAX,EDX
JMP 0x000b74b6
ADD ESP,0x8
XOR EAX,EAX
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 FUN_000b7470(uint param_1,uint param_2,int param_3)\n\n{\n  int iVar1;\n  \n  if (param_1 != param_2) {\n    if ((((param_3 == 0) && (glob_asciirange != 0)) && (param_1 < 0x100)) && (param_2 < 0x100)) {\n      iVar1 = param_1 - param_2;\n    }\n    else {\n      DAT_0014b6f4 = param_2;\n      DAT_0014b6fc = param_1;\n      iVar1 = wcscoll((wchar_t *)&DAT_0014b6fc,(wchar_t *)&DAT_0014b6f4);\n    }\n    return iVar1;\n  }\n  return 0;\n}\n\n" comment (function_definition "int __regparm3 FUN_000b7470(uint param_1,uint param_2,int param_3)\n\n{\n  int iVar1;\n  \n  if (param_1 != param_2) {\n    if ((((param_3 == 0) && (glob_asciirange != 0)) && (param_1 < 0x100)) && (param_2 < 0x100)) {\n      iVar1 = param_1 - param_2;\n    }\n    else {\n      DAT_0014b6f4 = param_2;\n      DAT_0014b6fc = param_1;\n      iVar1 = wcscoll((wchar_t *)&DAT_0014b6fc,(wchar_t *)&DAT_0014b6f4);\n    }\n    return iVar1;\n  }\n  return 0;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000b7470(uint param_1,uint param_2,int param_3)" identifier (parameter_list "(uint param_1,uint param_2,int param_3)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (param_1 != param_2) {\n    if ((((param_3 == 0) && (glob_asciirange != 0)) && (param_1 < 0x100)) && (param_2 < 0x100)) {\n      iVar1 = param_1 - param_2;\n    }\n    else {\n      DAT_0014b6f4 = param_2;\n      DAT_0014b6fc = param_1;\n      iVar1 = wcscoll((wchar_t *)&DAT_0014b6fc,(wchar_t *)&DAT_0014b6f4);\n    }\n    return iVar1;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (param_1 != param_2) {\n    if ((((param_3 == 0) && (glob_asciirange != 0)) && (param_1 < 0x100)) && (param_2 < 0x100)) {\n      iVar1 = param_1 - param_2;\n    }\n    else {\n      DAT_0014b6f4 = param_2;\n      DAT_0014b6fc = param_1;\n      iVar1 = wcscoll((wchar_t *)&DAT_0014b6fc,(wchar_t *)&DAT_0014b6f4);\n    }\n    return iVar1;\n  }" if (parenthesized_expression "(param_1 != param_2)" ( (binary_expression "param_1 != param_2" identifier != identifier) )) (compound_statement "{\n    if ((((param_3 == 0) && (glob_asciirange != 0)) && (param_1 < 0x100)) && (param_2 < 0x100)) {\n      iVar1 = param_1 - param_2;\n    }\n    else {\n      DAT_0014b6f4 = param_2;\n      DAT_0014b6fc = param_1;\n      iVar1 = wcscoll((wchar_t *)&DAT_0014b6fc,(wchar_t *)&DAT_0014b6f4);\n    }\n    return iVar1;\n  }" { (if_statement "if ((((param_3 == 0) && (glob_asciirange != 0)) && (param_1 < 0x100)) && (param_2 < 0x100)) {\n      iVar1 = param_1 - param_2;\n    }\n    else {\n      DAT_0014b6f4 = param_2;\n      DAT_0014b6fc = param_1;\n      iVar1 = wcscoll((wchar_t *)&DAT_0014b6fc,(wchar_t *)&DAT_0014b6f4);\n    }" if (parenthesized_expression "((((param_3 == 0) && (glob_asciirange != 0)) && (param_1 < 0x100)) && (param_2 < 0x100))" ( (binary_expression "(((param_3 == 0) && (glob_asciirange != 0)) && (param_1 < 0x100)) && (param_2 < 0x100)" (parenthesized_expression "(((param_3 == 0) && (glob_asciirange != 0)) && (param_1 < 0x100))" ( (binary_expression "((param_3 == 0) && (glob_asciirange != 0)) && (param_1 < 0x100)" (parenthesized_expression "((param_3 == 0) && (glob_asciirange != 0))" ( (binary_expression "(param_3 == 0) && (glob_asciirange != 0)" (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) && (parenthesized_expression "(glob_asciirange != 0)" ( (binary_expression "glob_asciirange != 0" identifier != number_literal) ))) )) && (parenthesized_expression "(param_1 < 0x100)" ( (binary_expression "param_1 < 0x100" identifier < number_literal) ))) )) && (parenthesized_expression "(param_2 < 0x100)" ( (binary_expression "param_2 < 0x100" identifier < number_literal) ))) )) (compound_statement "{\n      iVar1 = param_1 - param_2;\n    }" { (expression_statement "iVar1 = param_1 - param_2;" (assignment_expression "iVar1 = param_1 - param_2" identifier = (binary_expression "param_1 - param_2" identifier - identifier)) ;) }) (else_clause "else {\n      DAT_0014b6f4 = param_2;\n      DAT_0014b6fc = param_1;\n      iVar1 = wcscoll((wchar_t *)&DAT_0014b6fc,(wchar_t *)&DAT_0014b6f4);\n    }" else (compound_statement "{\n      DAT_0014b6f4 = param_2;\n      DAT_0014b6fc = param_1;\n      iVar1 = wcscoll((wchar_t *)&DAT_0014b6fc,(wchar_t *)&DAT_0014b6f4);\n    }" { (expression_statement "DAT_0014b6f4 = param_2;" (assignment_expression "DAT_0014b6f4 = param_2" identifier = identifier) ;) (expression_statement "DAT_0014b6fc = param_1;" (assignment_expression "DAT_0014b6fc = param_1" identifier = identifier) ;) (expression_statement "iVar1 = wcscoll((wchar_t *)&DAT_0014b6fc,(wchar_t *)&DAT_0014b6f4);" (assignment_expression "iVar1 = wcscoll((wchar_t *)&DAT_0014b6fc,(wchar_t *)&DAT_0014b6f4)" identifier = (call_expression "wcscoll((wchar_t *)&DAT_0014b6fc,(wchar_t *)&DAT_0014b6f4)" identifier (argument_list "((wchar_t *)&DAT_0014b6fc,(wchar_t *)&DAT_0014b6f4)" ( (cast_expression "(wchar_t *)&DAT_0014b6fc" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0014b6fc" & identifier)) , (cast_expression "(wchar_t *)&DAT_0014b6f4" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0014b6f4" & identifier)) )))) ;) }))) (return_statement "return iVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 rangecmp_wc(wint_t c1,wint_t c2,int forcecoll)\n\n{\n  int iVar1;\n  \n  if (c1 != c2) {\n    if ((((forcecoll == 0) && (glob_asciirange != 0)) && (c1 < 0x100)) && (c2 < 0x100)) {\n      iVar1 = c1 - c2;\n    }\n    else {\n      s2_4852 = c2;\n      s1_4851 = c1;\n      iVar1 = wcscoll((wchar_t *)&s1_4851,(wchar_t *)&s2_4852);\n    }\n    return iVar1;\n  }\n  return 0;\n}\n\n" comment (function_definition "int __regparm3 rangecmp_wc(wint_t c1,wint_t c2,int forcecoll)\n\n{\n  int iVar1;\n  \n  if (c1 != c2) {\n    if ((((forcecoll == 0) && (glob_asciirange != 0)) && (c1 < 0x100)) && (c2 < 0x100)) {\n      iVar1 = c1 - c2;\n    }\n    else {\n      s2_4852 = c2;\n      s1_4851 = c1;\n      iVar1 = wcscoll((wchar_t *)&s1_4851,(wchar_t *)&s2_4852);\n    }\n    return iVar1;\n  }\n  return 0;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "rangecmp_wc(wint_t c1,wint_t c2,int forcecoll)" identifier (parameter_list "(wint_t c1,wint_t c2,int forcecoll)" ( (parameter_declaration "wint_t c1" type_identifier identifier) , (parameter_declaration "wint_t c2" type_identifier identifier) , (parameter_declaration "int forcecoll" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (c1 != c2) {\n    if ((((forcecoll == 0) && (glob_asciirange != 0)) && (c1 < 0x100)) && (c2 < 0x100)) {\n      iVar1 = c1 - c2;\n    }\n    else {\n      s2_4852 = c2;\n      s1_4851 = c1;\n      iVar1 = wcscoll((wchar_t *)&s1_4851,(wchar_t *)&s2_4852);\n    }\n    return iVar1;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (c1 != c2) {\n    if ((((forcecoll == 0) && (glob_asciirange != 0)) && (c1 < 0x100)) && (c2 < 0x100)) {\n      iVar1 = c1 - c2;\n    }\n    else {\n      s2_4852 = c2;\n      s1_4851 = c1;\n      iVar1 = wcscoll((wchar_t *)&s1_4851,(wchar_t *)&s2_4852);\n    }\n    return iVar1;\n  }" if (parenthesized_expression "(c1 != c2)" ( (binary_expression "c1 != c2" identifier != identifier) )) (compound_statement "{\n    if ((((forcecoll == 0) && (glob_asciirange != 0)) && (c1 < 0x100)) && (c2 < 0x100)) {\n      iVar1 = c1 - c2;\n    }\n    else {\n      s2_4852 = c2;\n      s1_4851 = c1;\n      iVar1 = wcscoll((wchar_t *)&s1_4851,(wchar_t *)&s2_4852);\n    }\n    return iVar1;\n  }" { (if_statement "if ((((forcecoll == 0) && (glob_asciirange != 0)) && (c1 < 0x100)) && (c2 < 0x100)) {\n      iVar1 = c1 - c2;\n    }\n    else {\n      s2_4852 = c2;\n      s1_4851 = c1;\n      iVar1 = wcscoll((wchar_t *)&s1_4851,(wchar_t *)&s2_4852);\n    }" if (parenthesized_expression "((((forcecoll == 0) && (glob_asciirange != 0)) && (c1 < 0x100)) && (c2 < 0x100))" ( (binary_expression "(((forcecoll == 0) && (glob_asciirange != 0)) && (c1 < 0x100)) && (c2 < 0x100)" (parenthesized_expression "(((forcecoll == 0) && (glob_asciirange != 0)) && (c1 < 0x100))" ( (binary_expression "((forcecoll == 0) && (glob_asciirange != 0)) && (c1 < 0x100)" (parenthesized_expression "((forcecoll == 0) && (glob_asciirange != 0))" ( (binary_expression "(forcecoll == 0) && (glob_asciirange != 0)" (parenthesized_expression "(forcecoll == 0)" ( (binary_expression "forcecoll == 0" identifier == number_literal) )) && (parenthesized_expression "(glob_asciirange != 0)" ( (binary_expression "glob_asciirange != 0" identifier != number_literal) ))) )) && (parenthesized_expression "(c1 < 0x100)" ( (binary_expression "c1 < 0x100" identifier < number_literal) ))) )) && (parenthesized_expression "(c2 < 0x100)" ( (binary_expression "c2 < 0x100" identifier < number_literal) ))) )) (compound_statement "{\n      iVar1 = c1 - c2;\n    }" { (expression_statement "iVar1 = c1 - c2;" (assignment_expression "iVar1 = c1 - c2" identifier = (binary_expression "c1 - c2" identifier - identifier)) ;) }) (else_clause "else {\n      s2_4852 = c2;\n      s1_4851 = c1;\n      iVar1 = wcscoll((wchar_t *)&s1_4851,(wchar_t *)&s2_4852);\n    }" else (compound_statement "{\n      s2_4852 = c2;\n      s1_4851 = c1;\n      iVar1 = wcscoll((wchar_t *)&s1_4851,(wchar_t *)&s2_4852);\n    }" { (expression_statement "s2_4852 = c2;" (assignment_expression "s2_4852 = c2" identifier = identifier) ;) (expression_statement "s1_4851 = c1;" (assignment_expression "s1_4851 = c1" identifier = identifier) ;) (expression_statement "iVar1 = wcscoll((wchar_t *)&s1_4851,(wchar_t *)&s2_4852);" (assignment_expression "iVar1 = wcscoll((wchar_t *)&s1_4851,(wchar_t *)&s2_4852)" identifier = (call_expression "wcscoll((wchar_t *)&s1_4851,(wchar_t *)&s2_4852)" identifier (argument_list "((wchar_t *)&s1_4851,(wchar_t *)&s2_4852)" ( (cast_expression "(wchar_t *)&s1_4851" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&s1_4851" & identifier)) , (cast_expression "(wchar_t *)&s2_4852" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&s2_4852" & identifier)) )))) ;) }))) (return_statement "return iVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int __regparm3 FUN_000b7470(uint param_1,uint param_2,int param_3)\n\n{\n  int iVar1;\n  \n  if (param_1 != param_2) {\n    if ((((param_3 == 0) && (glob_asciirange != 0)) && (param_1 < 0x100)) && (param_2 < 0x100)) {\n      iVar1 = param_1 - param_2;\n    }\n    else {\n      DAT_0014b6f4 = param_2;\n      DAT_0014b6fc = param_1;\n      iVar1 = wcscoll((wchar_t *)&DAT_0014b6fc,(wchar_t *)&DAT_0014b6f4);\n    }\n    return iVar1;\n  }\n  return 0;\n}\n\n" (function_definition "int __regparm3 FUN_000b7470(uint param_1,uint param_2,int param_3)\n\n{\n  int iVar1;\n  \n  if (param_1 != param_2) {\n    if ((((param_3 == 0) && (glob_asciirange != 0)) && (param_1 < 0x100)) && (param_2 < 0x100)) {\n      iVar1 = param_1 - param_2;\n    }\n    else {\n      DAT_0014b6f4 = param_2;\n      DAT_0014b6fc = param_1;\n      iVar1 = wcscoll((wchar_t *)&DAT_0014b6fc,(wchar_t *)&DAT_0014b6f4);\n    }\n    return iVar1;\n  }\n  return 0;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000b7470(uint param_1,uint param_2,int param_3)" identifier (parameter_list "(uint param_1,uint param_2,int param_3)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (param_1 != param_2) {\n    if ((((param_3 == 0) && (glob_asciirange != 0)) && (param_1 < 0x100)) && (param_2 < 0x100)) {\n      iVar1 = param_1 - param_2;\n    }\n    else {\n      DAT_0014b6f4 = param_2;\n      DAT_0014b6fc = param_1;\n      iVar1 = wcscoll((wchar_t *)&DAT_0014b6fc,(wchar_t *)&DAT_0014b6f4);\n    }\n    return iVar1;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (param_1 != param_2) {\n    if ((((param_3 == 0) && (glob_asciirange != 0)) && (param_1 < 0x100)) && (param_2 < 0x100)) {\n      iVar1 = param_1 - param_2;\n    }\n    else {\n      DAT_0014b6f4 = param_2;\n      DAT_0014b6fc = param_1;\n      iVar1 = wcscoll((wchar_t *)&DAT_0014b6fc,(wchar_t *)&DAT_0014b6f4);\n    }\n    return iVar1;\n  }" if (parenthesized_expression "(param_1 != param_2)" ( (binary_expression "param_1 != param_2" identifier != identifier) )) (compound_statement "{\n    if ((((param_3 == 0) && (glob_asciirange != 0)) && (param_1 < 0x100)) && (param_2 < 0x100)) {\n      iVar1 = param_1 - param_2;\n    }\n    else {\n      DAT_0014b6f4 = param_2;\n      DAT_0014b6fc = param_1;\n      iVar1 = wcscoll((wchar_t *)&DAT_0014b6fc,(wchar_t *)&DAT_0014b6f4);\n    }\n    return iVar1;\n  }" { (if_statement "if ((((param_3 == 0) && (glob_asciirange != 0)) && (param_1 < 0x100)) && (param_2 < 0x100)) {\n      iVar1 = param_1 - param_2;\n    }\n    else {\n      DAT_0014b6f4 = param_2;\n      DAT_0014b6fc = param_1;\n      iVar1 = wcscoll((wchar_t *)&DAT_0014b6fc,(wchar_t *)&DAT_0014b6f4);\n    }" if (parenthesized_expression "((((param_3 == 0) && (glob_asciirange != 0)) && (param_1 < 0x100)) && (param_2 < 0x100))" ( (binary_expression "(((param_3 == 0) && (glob_asciirange != 0)) && (param_1 < 0x100)) && (param_2 < 0x100)" (parenthesized_expression "(((param_3 == 0) && (glob_asciirange != 0)) && (param_1 < 0x100))" ( (binary_expression "((param_3 == 0) && (glob_asciirange != 0)) && (param_1 < 0x100)" (parenthesized_expression "((param_3 == 0) && (glob_asciirange != 0))" ( (binary_expression "(param_3 == 0) && (glob_asciirange != 0)" (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) && (parenthesized_expression "(glob_asciirange != 0)" ( (binary_expression "glob_asciirange != 0" identifier != number_literal) ))) )) && (parenthesized_expression "(param_1 < 0x100)" ( (binary_expression "param_1 < 0x100" identifier < number_literal) ))) )) && (parenthesized_expression "(param_2 < 0x100)" ( (binary_expression "param_2 < 0x100" identifier < number_literal) ))) )) (compound_statement "{\n      iVar1 = param_1 - param_2;\n    }" { (expression_statement "iVar1 = param_1 - param_2;" (assignment_expression "iVar1 = param_1 - param_2" identifier = (binary_expression "param_1 - param_2" identifier - identifier)) ;) }) (else_clause "else {\n      DAT_0014b6f4 = param_2;\n      DAT_0014b6fc = param_1;\n      iVar1 = wcscoll((wchar_t *)&DAT_0014b6fc,(wchar_t *)&DAT_0014b6f4);\n    }" else (compound_statement "{\n      DAT_0014b6f4 = param_2;\n      DAT_0014b6fc = param_1;\n      iVar1 = wcscoll((wchar_t *)&DAT_0014b6fc,(wchar_t *)&DAT_0014b6f4);\n    }" { (expression_statement "DAT_0014b6f4 = param_2;" (assignment_expression "DAT_0014b6f4 = param_2" identifier = identifier) ;) (expression_statement "DAT_0014b6fc = param_1;" (assignment_expression "DAT_0014b6fc = param_1" identifier = identifier) ;) (expression_statement "iVar1 = wcscoll((wchar_t *)&DAT_0014b6fc,(wchar_t *)&DAT_0014b6f4);" (assignment_expression "iVar1 = wcscoll((wchar_t *)&DAT_0014b6fc,(wchar_t *)&DAT_0014b6f4)" identifier = (call_expression "wcscoll((wchar_t *)&DAT_0014b6fc,(wchar_t *)&DAT_0014b6f4)" identifier (argument_list "((wchar_t *)&DAT_0014b6fc,(wchar_t *)&DAT_0014b6f4)" ( (cast_expression "(wchar_t *)&DAT_0014b6fc" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0014b6fc" & identifier)) , (cast_expression "(wchar_t *)&DAT_0014b6f4" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0014b6f4" & identifier)) )))) ;) }))) (return_statement "return iVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) && (parenthesized_expression ( (binary_expression IDENT < LIT) ))) )) && (parenthesized_expression ( (binary_expression IDENT < LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT)) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT)) )))) ;) }))) (return_statement return IDENT ;) })) (return_statement return LIT ;) })))
(function_definition "int __regparm3 FUN_000b7470(uint param_1,uint param_2,int param_3)\n\n{\n  int iVar1;\n  \n  if (param_1 != param_2) {\n    if ((((param_3 == 0) && (glob_asciirange != 0)) && (param_1 < 0x100)) && (param_2 < 0x100)) {\n      iVar1 = param_1 - param_2;\n    }\n    else {\n      DAT_0014b6f4 = param_2;\n      DAT_0014b6fc = param_1;\n      iVar1 = wcscoll((wchar_t *)&DAT_0014b6fc,(wchar_t *)&DAT_0014b6f4);\n    }\n    return iVar1;\n  }\n  return 0;\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000b7470(uint param_1,uint param_2,int param_3)" (identifier "FUN_000b7470") (parameter_list "(uint param_1,uint param_2,int param_3)" (( "(") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if (param_1 != param_2) {\n    if ((((param_3 == 0) && (glob_asciirange != 0)) && (param_1 < 0x100)) && (param_2 < 0x100)) {\n      iVar1 = param_1 - param_2;\n    }\n    else {\n      DAT_0014b6f4 = param_2;\n      DAT_0014b6fc = param_1;\n      iVar1 = wcscoll((wchar_t *)&DAT_0014b6fc,(wchar_t *)&DAT_0014b6f4);\n    }\n    return iVar1;\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if (param_1 != param_2) {\n    if ((((param_3 == 0) && (glob_asciirange != 0)) && (param_1 < 0x100)) && (param_2 < 0x100)) {\n      iVar1 = param_1 - param_2;\n    }\n    else {\n      DAT_0014b6f4 = param_2;\n      DAT_0014b6fc = param_1;\n      iVar1 = wcscoll((wchar_t *)&DAT_0014b6fc,(wchar_t *)&DAT_0014b6f4);\n    }\n    return iVar1;\n  }" (if "if") (parenthesized_expression "(param_1 != param_2)" (( "(") (binary_expression "param_1 != param_2" (identifier "param_1") (!= "!=") (identifier "param_2")) () ")")) (compound_statement "{\n    if ((((param_3 == 0) && (glob_asciirange != 0)) && (param_1 < 0x100)) && (param_2 < 0x100)) {\n      iVar1 = param_1 - param_2;\n    }\n    else {\n      DAT_0014b6f4 = param_2;\n      DAT_0014b6fc = param_1;\n      iVar1 = wcscoll((wchar_t *)&DAT_0014b6fc,(wchar_t *)&DAT_0014b6f4);\n    }\n    return iVar1;\n  }" ({ "{") (if_statement "if ((((param_3 == 0) && (glob_asciirange != 0)) && (param_1 < 0x100)) && (param_2 < 0x100)) {\n      iVar1 = param_1 - param_2;\n    }\n    else {\n      DAT_0014b6f4 = param_2;\n      DAT_0014b6fc = param_1;\n      iVar1 = wcscoll((wchar_t *)&DAT_0014b6fc,(wchar_t *)&DAT_0014b6f4);\n    }" (if "if") (parenthesized_expression "((((param_3 == 0) && (glob_asciirange != 0)) && (param_1 < 0x100)) && (param_2 < 0x100))" (( "(") (binary_expression "(((param_3 == 0) && (glob_asciirange != 0)) && (param_1 < 0x100)) && (param_2 < 0x100)" (parenthesized_expression "(((param_3 == 0) && (glob_asciirange != 0)) && (param_1 < 0x100))" (( "(") (binary_expression "((param_3 == 0) && (glob_asciirange != 0)) && (param_1 < 0x100)" (parenthesized_expression "((param_3 == 0) && (glob_asciirange != 0))" (( "(") (binary_expression "(param_3 == 0) && (glob_asciirange != 0)" (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(glob_asciirange != 0)" (( "(") (binary_expression "glob_asciirange != 0" (identifier "glob_asciirange") (!= "!=") (number_literal "0")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(param_1 < 0x100)" (( "(") (binary_expression "param_1 < 0x100" (identifier "param_1") (< "<") (number_literal "0x100")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(param_2 < 0x100)" (( "(") (binary_expression "param_2 < 0x100" (identifier "param_2") (< "<") (number_literal "0x100")) () ")"))) () ")")) (compound_statement "{\n      iVar1 = param_1 - param_2;\n    }" ({ "{") (expression_statement "iVar1 = param_1 - param_2;" (assignment_expression "iVar1 = param_1 - param_2" (identifier "iVar1") (= "=") (binary_expression "param_1 - param_2" (identifier "param_1") (- "-") (identifier "param_2"))) (; ";")) (} "}")) (else_clause "else {\n      DAT_0014b6f4 = param_2;\n      DAT_0014b6fc = param_1;\n      iVar1 = wcscoll((wchar_t *)&DAT_0014b6fc,(wchar_t *)&DAT_0014b6f4);\n    }" (else "else") (compound_statement "{\n      DAT_0014b6f4 = param_2;\n      DAT_0014b6fc = param_1;\n      iVar1 = wcscoll((wchar_t *)&DAT_0014b6fc,(wchar_t *)&DAT_0014b6f4);\n    }" ({ "{") (expression_statement "DAT_0014b6f4 = param_2;" (assignment_expression "DAT_0014b6f4 = param_2" (identifier "DAT_0014b6f4") (= "=") (identifier "param_2")) (; ";")) (expression_statement "DAT_0014b6fc = param_1;" (assignment_expression "DAT_0014b6fc = param_1" (identifier "DAT_0014b6fc") (= "=") (identifier "param_1")) (; ";")) (expression_statement "iVar1 = wcscoll((wchar_t *)&DAT_0014b6fc,(wchar_t *)&DAT_0014b6f4);" (assignment_expression "iVar1 = wcscoll((wchar_t *)&DAT_0014b6fc,(wchar_t *)&DAT_0014b6f4)" (identifier "iVar1") (= "=") (call_expression "wcscoll((wchar_t *)&DAT_0014b6fc,(wchar_t *)&DAT_0014b6f4)" (identifier "wcscoll") (argument_list "((wchar_t *)&DAT_0014b6fc,(wchar_t *)&DAT_0014b6f4)" (( "(") (cast_expression "(wchar_t *)&DAT_0014b6fc" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&DAT_0014b6fc" (& "&") (identifier "DAT_0014b6fc"))) (, ",") (cast_expression "(wchar_t *)&DAT_0014b6f4" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&DAT_0014b6f4" (& "&") (identifier "DAT_0014b6f4"))) () ")")))) (; ";")) (} "}")))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

int __regparm3 function_1(type_1 var_1,type_1 var_2,int var_3)

{
  int iVar1;
  
  if (var_1 != var_2) {
    if ((((var_3 == 0) && (var_4 != 0)) && (var_1 < 0x100)) && (var_2 < 0x100)) {
      iVar1 = var_1 - var_2;
    }
    else {
      s2_4852 = var_2;
      s1_4851 = var_1;
      iVar1 = var_5((type_2 *)&s1_4851,(type_2 *)&s2_4852);
    }
    return iVar1;
  }
  return 0;
}


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

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

int __regparm3 MASKED(uint param_1,uint param_2,int param_3)

{
  int iVar1;
  
  if (param_1 != param_2) {
    if ((((param_3 == 0) && (glob_asciirange != 0)) && (param_1 < 0x100)) && (param_2 < 0x100)) {
      iVar1 = param_1 - param_2;
    }
    else {
      DAT_0014b6f4 = param_2;
      DAT_0014b6fc = param_1;
      iVar1 = wcscoll((wchar_t *)&DAT_0014b6fc,(wchar_t *)&DAT_0014b6f4);
    }
    return iVar1;
  }
  return 0;
}

