
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::collate<char>::_M_compare(char const*, char const*) const */

uint __thiscall std::collate<char>::_M_compare(collate<char> *this,char *param_1,char *param_2)

{
  int iVar1;
  
  iVar1 = __strcoll_l(param_1,param_2,*(undefined4 *)(this + 8));
  return (uint)(iVar1 != 0) | iVar1 >> 0x1e;
}



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

uint FUN_001faba0(int param_1,undefined4 param_2,undefined4 param_3)

{
  int iVar1;
  
  iVar1 = __strcoll_l(param_2,param_3,*(undefined4 *)(param_1 + 8));
  return (uint)(iVar1 != 0) | iVar1 >> 0x1e;
}


PUSH EBX
CALL 0x00035680
ADD EBX,0x14445a
SUB ESP,0xc
MOV EAX,dword ptr [ESP + 0x14]
PUSH dword ptr [EAX + 0x8]
PUSH dword ptr [ESP + 0x20]
PUSH dword ptr [ESP + 0x20]
CALL 0x00028820
MOV EDX,EAX
SAR EDX,0x1e
TEST EAX,EAX
SETNZ AL
ADD ESP,0x18
MOVZX EAX,AL
POP EBX
OR EAX,EDX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nuint FUN_001faba0(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = __strcoll_l(param_2,param_3,*(undefined4 *)(param_1 + 8));\n  return (uint)(iVar1 != 0) | iVar1 >> 0x1e;\n}\n\n" comment (function_definition "uint FUN_001faba0(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = __strcoll_l(param_2,param_3,*(undefined4 *)(param_1 + 8));\n  return (uint)(iVar1 != 0) | iVar1 >> 0x1e;\n}" type_identifier (function_declarator "FUN_001faba0(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 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 = __strcoll_l(param_2,param_3,*(undefined4 *)(param_1 + 8));\n  return (uint)(iVar1 != 0) | iVar1 >> 0x1e;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = __strcoll_l(param_2,param_3,*(undefined4 *)(param_1 + 8));" (assignment_expression "iVar1 = __strcoll_l(param_2,param_3,*(undefined4 *)(param_1 + 8))" identifier = (call_expression "__strcoll_l(param_2,param_3,*(undefined4 *)(param_1 + 8))" identifier (argument_list "(param_2,param_3,*(undefined4 *)(param_1 + 8))" ( identifier , identifier , (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) )))) ;) (return_statement "return (uint)(iVar1 != 0) | iVar1 >> 0x1e;" return (binary_expression "(uint)(iVar1 != 0) | iVar1 >> 0x1e" (call_expression "(uint)(iVar1 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) ))) | (binary_expression "iVar1 >> 0x1e" identifier >> number_literal)) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::collate<char>::_M_compare(char const*, char const*) const */\n\nuint __thiscall std::collate<char>::_M_compare(collate<char> *this,char *param_1,char *param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = __strcoll_l(param_1,param_2,*(undefined4 *)(this + 8));\n  return (uint)(iVar1 != 0) | iVar1 >> 0x1e;\n}\n\n" comment comment (function_definition "uint __thiscall std::collate<char>::_M_compare(collate<char> *this,char *param_1,char *param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = __strcoll_l(param_1,param_2,*(undefined4 *)(this + 8));\n  return (uint)(iVar1 != 0) | iVar1 >> 0x1e;\n}" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::collate<char>::" identifier : : identifier < primitive_type > : :) (function_declarator "_M_compare(collate<char> *this,char *param_1,char *param_2)" identifier (parameter_list "(collate<char> *this,char *param_1,char *param_2)" ( (parameter_declaration "collate<char> *this" type_identifier (ERROR "<char>" < primitive_type >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = __strcoll_l(param_1,param_2,*(undefined4 *)(this + 8));\n  return (uint)(iVar1 != 0) | iVar1 >> 0x1e;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = __strcoll_l(param_1,param_2,*(undefined4 *)(this + 8));" (assignment_expression "iVar1 = __strcoll_l(param_1,param_2,*(undefined4 *)(this + 8))" identifier = (call_expression "__strcoll_l(param_1,param_2,*(undefined4 *)(this + 8))" identifier (argument_list "(param_1,param_2,*(undefined4 *)(this + 8))" ( identifier , identifier , (pointer_expression "*(undefined4 *)(this + 8)" * (cast_expression "(undefined4 *)(this + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) )))) ;) (return_statement "return (uint)(iVar1 != 0) | iVar1 >> 0x1e;" return (binary_expression "(uint)(iVar1 != 0) | iVar1 >> 0x1e" (call_expression "(uint)(iVar1 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) ))) | (binary_expression "iVar1 >> 0x1e" identifier >> number_literal)) ;) })))
(translation_unit "uint FUN_001faba0(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = __strcoll_l(param_2,param_3,*(undefined4 *)(param_1 + 8));\n  return (uint)(iVar1 != 0) | iVar1 >> 0x1e;\n}\n\n" (function_definition "uint FUN_001faba0(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = __strcoll_l(param_2,param_3,*(undefined4 *)(param_1 + 8));\n  return (uint)(iVar1 != 0) | iVar1 >> 0x1e;\n}" type_identifier (function_declarator "FUN_001faba0(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 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 = __strcoll_l(param_2,param_3,*(undefined4 *)(param_1 + 8));\n  return (uint)(iVar1 != 0) | iVar1 >> 0x1e;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = __strcoll_l(param_2,param_3,*(undefined4 *)(param_1 + 8));" (assignment_expression "iVar1 = __strcoll_l(param_2,param_3,*(undefined4 *)(param_1 + 8))" identifier = (call_expression "__strcoll_l(param_2,param_3,*(undefined4 *)(param_1 + 8))" identifier (argument_list "(param_2,param_3,*(undefined4 *)(param_1 + 8))" ( identifier , identifier , (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) )))) ;) (return_statement "return (uint)(iVar1 != 0) | iVar1 >> 0x1e;" return (binary_expression "(uint)(iVar1 != 0) | iVar1 >> 0x1e" (call_expression "(uint)(iVar1 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) ))) | (binary_expression "iVar1 >> 0x1e" identifier >> number_literal)) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (return_statement return (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT != LIT) ))) | (binary_expression IDENT >> LIT)) ;) })))
(function_definition "uint FUN_001faba0(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = __strcoll_l(param_2,param_3,*(undefined4 *)(param_1 + 8));\n  return (uint)(iVar1 != 0) | iVar1 >> 0x1e;\n}" (type_identifier "uint") (function_declarator "FUN_001faba0(int param_1,undefined4 param_2,undefined4 param_3)" (identifier "FUN_001faba0") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (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 = __strcoll_l(param_2,param_3,*(undefined4 *)(param_1 + 8));\n  return (uint)(iVar1 != 0) | iVar1 >> 0x1e;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = __strcoll_l(param_2,param_3,*(undefined4 *)(param_1 + 8));" (assignment_expression "iVar1 = __strcoll_l(param_2,param_3,*(undefined4 *)(param_1 + 8))" (identifier "iVar1") (= "=") (call_expression "__strcoll_l(param_2,param_3,*(undefined4 *)(param_1 + 8))" (identifier "__strcoll_l") (argument_list "(param_2,param_3,*(undefined4 *)(param_1 + 8))" (( "(") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) () ")")))) (; ";")) (return_statement "return (uint)(iVar1 != 0) | iVar1 >> 0x1e;" (return "return") (binary_expression "(uint)(iVar1 != 0) | iVar1 >> 0x1e" (call_expression "(uint)(iVar1 != 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")"))) (| "|") (binary_expression "iVar1 >> 0x1e" (identifier "iVar1") (>> ">>") (number_literal "0x1e"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::collate<char>::_M_compare(char const*, char const*) const */

type_1 __thiscall std::type_2<char>::function_1(type_2<char> *var_2,char *param_1,char *param_2)

{
  int var_3;
  
  var_3 = var_1(param_1,param_2,*(type_3 *)(var_2 + 8));
  return (type_1)(var_3 != 0) | var_3 >> 0x1e;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) 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 (identifier) (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (return_statement (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))) right: (binary_expression left: (identifier) right: (number_literal)))))))

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

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

{
  int iVar1;
  
  iVar1 = __strcoll_l(param_2,param_3,*(undefined4 *)(param_1 + 8));
  return (uint)(iVar1 != 0) | iVar1 >> 0x1e;
}

