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

int ssh_rportcmp_ssh1(void *av,void *bv)

{
  int iVar1;
  
  iVar1 = strcmp(*(char **)((int)av + 0xc),*(char **)((int)bv + 0xc));
  if (iVar1 == 0) {
    iVar1 = 1;
    if (*(uint *)((int)av + 4) <= *(uint *)((int)bv + 4)) {
      iVar1 = -(uint)(*(uint *)((int)av + 4) < *(uint *)((int)bv + 4));
    }
    return iVar1;
  }
  return iVar1 >> 0x1f | 1;
}



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

uint FUN_00041890(int param_1,int param_2)

{
  int iVar1;
  uint uVar2;
  
  iVar1 = strcmp(*(char **)(param_1 + 0xc),*(char **)(param_2 + 0xc));
  if (iVar1 == 0) {
    uVar2 = 1;
    if (*(uint *)(param_1 + 4) <= *(uint *)(param_2 + 4)) {
      uVar2 = -(uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4));
    }
    return uVar2;
  }
  return iVar1 >> 0x1f | 1;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EDI,dword ptr [ESP + 0x10]
CALL 0x0001c520
ADD EBX,0xf8eb4
MOV ESI,dword ptr [ESP + 0x14]
SUB ESP,0x8
PUSH dword ptr [ESI + 0xc]
PUSH dword ptr [EDI + 0xc]
CALL 0x0001ab70
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x000418d0
MOV EAX,0x1
MOV EDX,dword ptr [ESI + 0x4]
CMP dword ptr [EDI + 0x4],EDX
JA 0x000418ca
SBB EAX,EAX
POP EBX
POP ESI
POP EDI
RET
SAR EAX,0x1f
POP EBX
POP ESI
OR EAX,0x1
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nuint FUN_00041890(int param_1,int param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  iVar1 = strcmp(*(char **)(param_1 + 0xc),*(char **)(param_2 + 0xc));\n  if (iVar1 == 0) {\n    uVar2 = 1;\n    if (*(uint *)(param_1 + 4) <= *(uint *)(param_2 + 4)) {\n      uVar2 = -(uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4));\n    }\n    return uVar2;\n  }\n  return iVar1 >> 0x1f | 1;\n}\n\n" comment (function_definition "uint FUN_00041890(int param_1,int param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  iVar1 = strcmp(*(char **)(param_1 + 0xc),*(char **)(param_2 + 0xc));\n  if (iVar1 == 0) {\n    uVar2 = 1;\n    if (*(uint *)(param_1 + 4) <= *(uint *)(param_2 + 4)) {\n      uVar2 = -(uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4));\n    }\n    return uVar2;\n  }\n  return iVar1 >> 0x1f | 1;\n}" type_identifier (function_declarator "FUN_00041890(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  \n  iVar1 = strcmp(*(char **)(param_1 + 0xc),*(char **)(param_2 + 0xc));\n  if (iVar1 == 0) {\n    uVar2 = 1;\n    if (*(uint *)(param_1 + 4) <= *(uint *)(param_2 + 4)) {\n      uVar2 = -(uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4));\n    }\n    return uVar2;\n  }\n  return iVar1 >> 0x1f | 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "iVar1 = strcmp(*(char **)(param_1 + 0xc),*(char **)(param_2 + 0xc));" (assignment_expression "iVar1 = strcmp(*(char **)(param_1 + 0xc),*(char **)(param_2 + 0xc))" identifier = (call_expression "strcmp(*(char **)(param_1 + 0xc),*(char **)(param_2 + 0xc))" identifier (argument_list "(*(char **)(param_1 + 0xc),*(char **)(param_2 + 0xc))" ( (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) , (pointer_expression "*(char **)(param_2 + 0xc)" * (cast_expression "(char **)(param_2 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar1 == 0) {\n    uVar2 = 1;\n    if (*(uint *)(param_1 + 4) <= *(uint *)(param_2 + 4)) {\n      uVar2 = -(uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4));\n    }\n    return uVar2;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar2 = 1;\n    if (*(uint *)(param_1 + 4) <= *(uint *)(param_2 + 4)) {\n      uVar2 = -(uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4));\n    }\n    return uVar2;\n  }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (if_statement "if (*(uint *)(param_1 + 4) <= *(uint *)(param_2 + 4)) {\n      uVar2 = -(uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4));\n    }" if (parenthesized_expression "(*(uint *)(param_1 + 4) <= *(uint *)(param_2 + 4))" ( (binary_expression "*(uint *)(param_1 + 4) <= *(uint *)(param_2 + 4)" (pointer_expression "*(uint *)(param_1 + 4)" * (cast_expression "(uint *)(param_1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) <= (pointer_expression "*(uint *)(param_2 + 4)" * (cast_expression "(uint *)(param_2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) )) (compound_statement "{\n      uVar2 = -(uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4));\n    }" { (expression_statement "uVar2 = -(uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4));" (assignment_expression "uVar2 = -(uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4))" identifier = (unary_expression "-(uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4))" - (call_expression "(uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4))" ( (binary_expression "*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4)" (pointer_expression "*(uint *)(param_1 + 4)" * (cast_expression "(uint *)(param_1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) < (pointer_expression "*(uint *)(param_2 + 4)" * (cast_expression "(uint *)(param_2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ))))) ;) })) (return_statement "return uVar2;" return identifier ;) })) (return_statement "return iVar1 >> 0x1f | 1;" return (binary_expression "iVar1 >> 0x1f | 1" (binary_expression "iVar1 >> 0x1f" identifier >> number_literal) | 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 ssh_rportcmp_ssh1(void *av,void *bv)\n\n{\n  int iVar1;\n  \n  iVar1 = strcmp(*(char **)((int)av + 0xc),*(char **)((int)bv + 0xc));\n  if (iVar1 == 0) {\n    iVar1 = 1;\n    if (*(uint *)((int)av + 4) <= *(uint *)((int)bv + 4)) {\n      iVar1 = -(uint)(*(uint *)((int)av + 4) < *(uint *)((int)bv + 4));\n    }\n    return iVar1;\n  }\n  return iVar1 >> 0x1f | 1;\n}\n\n" comment comment (function_definition "int ssh_rportcmp_ssh1(void *av,void *bv)\n\n{\n  int iVar1;\n  \n  iVar1 = strcmp(*(char **)((int)av + 0xc),*(char **)((int)bv + 0xc));\n  if (iVar1 == 0) {\n    iVar1 = 1;\n    if (*(uint *)((int)av + 4) <= *(uint *)((int)bv + 4)) {\n      iVar1 = -(uint)(*(uint *)((int)av + 4) < *(uint *)((int)bv + 4));\n    }\n    return iVar1;\n  }\n  return iVar1 >> 0x1f | 1;\n}" primitive_type (function_declarator "ssh_rportcmp_ssh1(void *av,void *bv)" identifier (parameter_list "(void *av,void *bv)" ( (parameter_declaration "void *av" primitive_type (pointer_declarator "*av" * identifier)) , (parameter_declaration "void *bv" primitive_type (pointer_declarator "*bv" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = strcmp(*(char **)((int)av + 0xc),*(char **)((int)bv + 0xc));\n  if (iVar1 == 0) {\n    iVar1 = 1;\n    if (*(uint *)((int)av + 4) <= *(uint *)((int)bv + 4)) {\n      iVar1 = -(uint)(*(uint *)((int)av + 4) < *(uint *)((int)bv + 4));\n    }\n    return iVar1;\n  }\n  return iVar1 >> 0x1f | 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = strcmp(*(char **)((int)av + 0xc),*(char **)((int)bv + 0xc));" (assignment_expression "iVar1 = strcmp(*(char **)((int)av + 0xc),*(char **)((int)bv + 0xc))" identifier = (call_expression "strcmp(*(char **)((int)av + 0xc),*(char **)((int)bv + 0xc))" identifier (argument_list "(*(char **)((int)av + 0xc),*(char **)((int)bv + 0xc))" ( (pointer_expression "*(char **)((int)av + 0xc)" * (cast_expression "(char **)((int)av + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)av + 0xc)" ( (binary_expression "(int)av + 0xc" (cast_expression "(int)av" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , (pointer_expression "*(char **)((int)bv + 0xc)" * (cast_expression "(char **)((int)bv + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)bv + 0xc)" ( (binary_expression "(int)bv + 0xc" (cast_expression "(int)bv" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = 1;\n    if (*(uint *)((int)av + 4) <= *(uint *)((int)bv + 4)) {\n      iVar1 = -(uint)(*(uint *)((int)av + 4) < *(uint *)((int)bv + 4));\n    }\n    return iVar1;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = 1;\n    if (*(uint *)((int)av + 4) <= *(uint *)((int)bv + 4)) {\n      iVar1 = -(uint)(*(uint *)((int)av + 4) < *(uint *)((int)bv + 4));\n    }\n    return iVar1;\n  }" { (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) (if_statement "if (*(uint *)((int)av + 4) <= *(uint *)((int)bv + 4)) {\n      iVar1 = -(uint)(*(uint *)((int)av + 4) < *(uint *)((int)bv + 4));\n    }" if (parenthesized_expression "(*(uint *)((int)av + 4) <= *(uint *)((int)bv + 4))" ( (binary_expression "*(uint *)((int)av + 4) <= *(uint *)((int)bv + 4)" (pointer_expression "*(uint *)((int)av + 4)" * (cast_expression "(uint *)((int)av + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)av + 4)" ( (binary_expression "(int)av + 4" (cast_expression "(int)av" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) <= (pointer_expression "*(uint *)((int)bv + 4)" * (cast_expression "(uint *)((int)bv + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)bv + 4)" ( (binary_expression "(int)bv + 4" (cast_expression "(int)bv" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) )) (compound_statement "{\n      iVar1 = -(uint)(*(uint *)((int)av + 4) < *(uint *)((int)bv + 4));\n    }" { (expression_statement "iVar1 = -(uint)(*(uint *)((int)av + 4) < *(uint *)((int)bv + 4));" (assignment_expression "iVar1 = -(uint)(*(uint *)((int)av + 4) < *(uint *)((int)bv + 4))" identifier = (unary_expression "-(uint)(*(uint *)((int)av + 4) < *(uint *)((int)bv + 4))" - (call_expression "(uint)(*(uint *)((int)av + 4) < *(uint *)((int)bv + 4))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(uint *)((int)av + 4) < *(uint *)((int)bv + 4))" ( (binary_expression "*(uint *)((int)av + 4) < *(uint *)((int)bv + 4)" (pointer_expression "*(uint *)((int)av + 4)" * (cast_expression "(uint *)((int)av + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)av + 4)" ( (binary_expression "(int)av + 4" (cast_expression "(int)av" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) < (pointer_expression "*(uint *)((int)bv + 4)" * (cast_expression "(uint *)((int)bv + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)bv + 4)" ( (binary_expression "(int)bv + 4" (cast_expression "(int)bv" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ))))) ;) })) (return_statement "return iVar1;" return identifier ;) })) (return_statement "return iVar1 >> 0x1f | 1;" return (binary_expression "iVar1 >> 0x1f | 1" (binary_expression "iVar1 >> 0x1f" identifier >> number_literal) | number_literal) ;) })))
(translation_unit "uint FUN_00041890(int param_1,int param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  iVar1 = strcmp(*(char **)(param_1 + 0xc),*(char **)(param_2 + 0xc));\n  if (iVar1 == 0) {\n    uVar2 = 1;\n    if (*(uint *)(param_1 + 4) <= *(uint *)(param_2 + 4)) {\n      uVar2 = -(uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4));\n    }\n    return uVar2;\n  }\n  return iVar1 >> 0x1f | 1;\n}\n\n" (function_definition "uint FUN_00041890(int param_1,int param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  iVar1 = strcmp(*(char **)(param_1 + 0xc),*(char **)(param_2 + 0xc));\n  if (iVar1 == 0) {\n    uVar2 = 1;\n    if (*(uint *)(param_1 + 4) <= *(uint *)(param_2 + 4)) {\n      uVar2 = -(uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4));\n    }\n    return uVar2;\n  }\n  return iVar1 >> 0x1f | 1;\n}" type_identifier (function_declarator "FUN_00041890(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  \n  iVar1 = strcmp(*(char **)(param_1 + 0xc),*(char **)(param_2 + 0xc));\n  if (iVar1 == 0) {\n    uVar2 = 1;\n    if (*(uint *)(param_1 + 4) <= *(uint *)(param_2 + 4)) {\n      uVar2 = -(uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4));\n    }\n    return uVar2;\n  }\n  return iVar1 >> 0x1f | 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "iVar1 = strcmp(*(char **)(param_1 + 0xc),*(char **)(param_2 + 0xc));" (assignment_expression "iVar1 = strcmp(*(char **)(param_1 + 0xc),*(char **)(param_2 + 0xc))" identifier = (call_expression "strcmp(*(char **)(param_1 + 0xc),*(char **)(param_2 + 0xc))" identifier (argument_list "(*(char **)(param_1 + 0xc),*(char **)(param_2 + 0xc))" ( (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) , (pointer_expression "*(char **)(param_2 + 0xc)" * (cast_expression "(char **)(param_2 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar1 == 0) {\n    uVar2 = 1;\n    if (*(uint *)(param_1 + 4) <= *(uint *)(param_2 + 4)) {\n      uVar2 = -(uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4));\n    }\n    return uVar2;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar2 = 1;\n    if (*(uint *)(param_1 + 4) <= *(uint *)(param_2 + 4)) {\n      uVar2 = -(uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4));\n    }\n    return uVar2;\n  }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (if_statement "if (*(uint *)(param_1 + 4) <= *(uint *)(param_2 + 4)) {\n      uVar2 = -(uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4));\n    }" if (parenthesized_expression "(*(uint *)(param_1 + 4) <= *(uint *)(param_2 + 4))" ( (binary_expression "*(uint *)(param_1 + 4) <= *(uint *)(param_2 + 4)" (pointer_expression "*(uint *)(param_1 + 4)" * (cast_expression "(uint *)(param_1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) <= (pointer_expression "*(uint *)(param_2 + 4)" * (cast_expression "(uint *)(param_2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) )) (compound_statement "{\n      uVar2 = -(uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4));\n    }" { (expression_statement "uVar2 = -(uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4));" (assignment_expression "uVar2 = -(uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4))" identifier = (unary_expression "-(uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4))" - (call_expression "(uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4))" ( (binary_expression "*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4)" (pointer_expression "*(uint *)(param_1 + 4)" * (cast_expression "(uint *)(param_1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) < (pointer_expression "*(uint *)(param_2 + 4)" * (cast_expression "(uint *)(param_2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ))))) ;) })) (return_statement "return uVar2;" return identifier ;) })) (return_statement "return iVar1 >> 0x1f | 1;" return (binary_expression "iVar1 >> 0x1f | 1" (binary_expression "iVar1 >> 0x1f" identifier >> number_literal) | number_literal) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (unary_expression - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))))) ;) })) (return_statement return IDENT ;) })) (return_statement return (binary_expression (binary_expression IDENT >> LIT) | LIT) ;) })))
(function_definition "uint FUN_00041890(int param_1,int param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  iVar1 = strcmp(*(char **)(param_1 + 0xc),*(char **)(param_2 + 0xc));\n  if (iVar1 == 0) {\n    uVar2 = 1;\n    if (*(uint *)(param_1 + 4) <= *(uint *)(param_2 + 4)) {\n      uVar2 = -(uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4));\n    }\n    return uVar2;\n  }\n  return iVar1 >> 0x1f | 1;\n}" (type_identifier "uint") (function_declarator "FUN_00041890(int param_1,int param_2)" (identifier "FUN_00041890") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  \n  iVar1 = strcmp(*(char **)(param_1 + 0xc),*(char **)(param_2 + 0xc));\n  if (iVar1 == 0) {\n    uVar2 = 1;\n    if (*(uint *)(param_1 + 4) <= *(uint *)(param_2 + 4)) {\n      uVar2 = -(uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4));\n    }\n    return uVar2;\n  }\n  return iVar1 >> 0x1f | 1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (expression_statement "iVar1 = strcmp(*(char **)(param_1 + 0xc),*(char **)(param_2 + 0xc));" (assignment_expression "iVar1 = strcmp(*(char **)(param_1 + 0xc),*(char **)(param_2 + 0xc))" (identifier "iVar1") (= "=") (call_expression "strcmp(*(char **)(param_1 + 0xc),*(char **)(param_2 + 0xc))" (identifier "strcmp") (argument_list "(*(char **)(param_1 + 0xc),*(char **)(param_2 + 0xc))" (( "(") (pointer_expression "*(char **)(param_1 + 0xc)" (* "*") (cast_expression "(char **)(param_1 + 0xc)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (, ",") (pointer_expression "*(char **)(param_2 + 0xc)" (* "*") (cast_expression "(char **)(param_2 + 0xc)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")")))) () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    uVar2 = 1;\n    if (*(uint *)(param_1 + 4) <= *(uint *)(param_2 + 4)) {\n      uVar2 = -(uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4));\n    }\n    return uVar2;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar2 = 1;\n    if (*(uint *)(param_1 + 4) <= *(uint *)(param_2 + 4)) {\n      uVar2 = -(uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4));\n    }\n    return uVar2;\n  }" ({ "{") (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" (identifier "uVar2") (= "=") (number_literal "1")) (; ";")) (if_statement "if (*(uint *)(param_1 + 4) <= *(uint *)(param_2 + 4)) {\n      uVar2 = -(uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4));\n    }" (if "if") (parenthesized_expression "(*(uint *)(param_1 + 4) <= *(uint *)(param_2 + 4))" (( "(") (binary_expression "*(uint *)(param_1 + 4) <= *(uint *)(param_2 + 4)" (pointer_expression "*(uint *)(param_1 + 4)" (* "*") (cast_expression "(uint *)(param_1 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (<= "<=") (pointer_expression "*(uint *)(param_2 + 4)" (* "*") (cast_expression "(uint *)(param_2 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")"))))) () ")")) (compound_statement "{\n      uVar2 = -(uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4));\n    }" ({ "{") (expression_statement "uVar2 = -(uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4));" (assignment_expression "uVar2 = -(uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4))" (identifier "uVar2") (= "=") (unary_expression "-(uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4))" (- "-") (call_expression "(uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4))" (( "(") (binary_expression "*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4)" (pointer_expression "*(uint *)(param_1 + 4)" (* "*") (cast_expression "(uint *)(param_1 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (< "<") (pointer_expression "*(uint *)(param_2 + 4)" (* "*") (cast_expression "(uint *)(param_2 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")"))))) () ")"))))) (; ";")) (} "}"))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (return_statement "return iVar1 >> 0x1f | 1;" (return "return") (binary_expression "iVar1 >> 0x1f | 1" (binary_expression "iVar1 >> 0x1f" (identifier "iVar1") (>> ">>") (number_literal "0x1f")) (| "|") (number_literal "1")) (; ";")) (} "}")))

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

int function_1(void *av,void *bv)

{
  int var_2;
  
  var_2 = var_1(*(char **)((int)av + 0xc),*(char **)((int)bv + 0xc));
  if (var_2 == 0) {
    var_2 = 1;
    if (*(type_1 *)((int)av + 4) <= *(type_1 *)((int)bv + 4)) {
      var_2 = -(type_1)(*(type_1 *)((int)av + 4) < *(type_1 *)((int)bv + 4));
    }
    return var_2;
  }
  return var_2 >> 0x1f | 1;
}


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

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

uint MASKED(int param_1,int param_2)

{
  int iVar1;
  uint uVar2;
  
  iVar1 = strcmp(*(char **)(param_1 + 0xc),*(char **)(param_2 + 0xc));
  if (iVar1 == 0) {
    uVar2 = 1;
    if (*(uint *)(param_1 + 4) <= *(uint *)(param_2 + 4)) {
      uVar2 = -(uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4));
    }
    return uVar2;
  }
  return iVar1 >> 0x1f | 1;
}

