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

int conf_cmp(void *av,void *bv)

{
  int iVar1;
  
                    /* WARNING: Load size is inaccurate */
  iVar1 = *av;
                    /* WARNING: Load size is inaccurate */
  if (*bv <= iVar1) {
    if (*bv < iVar1) {
      return 1;
    }
    if (subkeytypes[iVar1] != 1) {
      if (subkeytypes[iVar1] != 2) {
        return 0;
      }
      iVar1 = strcmp(*(char **)((int)av + 4),*(char **)((int)bv + 4));
      return iVar1;
    }
    if (*(int *)((int)bv + 4) <= *(int *)((int)av + 4)) {
      return (uint)(*(int *)((int)bv + 4) < *(int *)((int)av + 4));
    }
  }
  return -1;
}



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

uint FUN_00017870(int *param_1,int *param_2)

{
  int iVar1;
  uint uVar2;
  
  iVar1 = *param_1;
  if (*param_2 <= iVar1) {
    if (*param_2 < iVar1) {
      return 1;
    }
    if (*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 1) {
      if (*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 2) {
        return 0;
      }
      uVar2 = strcmp((char *)param_1[1],(char *)param_2[1]);
      return uVar2;
    }
    if (param_2[1] <= param_1[1]) {
      return (uint)(param_2[1] < param_1[1]);
    }
  }
  return 0xffffffff;
}


PUSH ESI
PUSH EBX
CALL 0x000152d0
ADD EBX,0x57471
SUB ESP,0x4
MOV ECX,dword ptr [ESP + 0x10]
MOV ESI,dword ptr [ESP + 0x14]
MOV EDX,dword ptr [ECX]
CMP EDX,dword ptr [ESI]
JL 0x000178e8
MOV EAX,0x1
JG 0x000178a8
MOV EAX,dword ptr [EBX + EDX*0x4 + 0xfffdccd8]
CMP EAX,0x1
JZ 0x000178d0
CMP EAX,0x2
JZ 0x000178b0
XOR EAX,EAX
ADD ESP,0x4
POP EBX
POP ESI
RET
SUB ESP,0x8
PUSH dword ptr [ESI + 0x4]
PUSH dword ptr [ECX + 0x4]
CALL 0x000143b0
ADD ESP,0x10
ADD ESP,0x4
POP EBX
POP ESI
RET
MOV EAX,dword ptr [ESI + 0x4]
CMP dword ptr [ECX + 0x4],EAX
JL 0x000178e8
SETG AL
ADD ESP,0x4
MOVZX EAX,AL
POP EBX
POP ESI
RET
MOV EAX,0xffffffff
JMP 0x000178a8
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nuint FUN_00017870(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  iVar1 = *param_1;\n  if (*param_2 <= iVar1) {\n    if (*param_2 < iVar1) {\n      return 1;\n    }\n    if (*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 1) {\n      if (*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 2) {\n        return 0;\n      }\n      uVar2 = strcmp((char *)param_1[1],(char *)param_2[1]);\n      return uVar2;\n    }\n    if (param_2[1] <= param_1[1]) {\n      return (uint)(param_2[1] < param_1[1]);\n    }\n  }\n  return 0xffffffff;\n}\n\n" comment (function_definition "uint FUN_00017870(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  iVar1 = *param_1;\n  if (*param_2 <= iVar1) {\n    if (*param_2 < iVar1) {\n      return 1;\n    }\n    if (*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 1) {\n      if (*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 2) {\n        return 0;\n      }\n      uVar2 = strcmp((char *)param_1[1],(char *)param_2[1]);\n      return uVar2;\n    }\n    if (param_2[1] <= param_1[1]) {\n      return (uint)(param_2[1] < param_1[1]);\n    }\n  }\n  return 0xffffffff;\n}" type_identifier (function_declarator "FUN_00017870(int *param_1,int *param_2)" identifier (parameter_list "(int *param_1,int *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  \n  iVar1 = *param_1;\n  if (*param_2 <= iVar1) {\n    if (*param_2 < iVar1) {\n      return 1;\n    }\n    if (*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 1) {\n      if (*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 2) {\n        return 0;\n      }\n      uVar2 = strcmp((char *)param_1[1],(char *)param_2[1]);\n      return uVar2;\n    }\n    if (param_2[1] <= param_1[1]) {\n      return (uint)(param_2[1] < param_1[1]);\n    }\n  }\n  return 0xffffffff;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (*param_2 <= iVar1) {\n    if (*param_2 < iVar1) {\n      return 1;\n    }\n    if (*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 1) {\n      if (*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 2) {\n        return 0;\n      }\n      uVar2 = strcmp((char *)param_1[1],(char *)param_2[1]);\n      return uVar2;\n    }\n    if (param_2[1] <= param_1[1]) {\n      return (uint)(param_2[1] < param_1[1]);\n    }\n  }" if (parenthesized_expression "(*param_2 <= iVar1)" ( (binary_expression "*param_2 <= iVar1" (pointer_expression "*param_2" * identifier) <= identifier) )) (compound_statement "{\n    if (*param_2 < iVar1) {\n      return 1;\n    }\n    if (*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 1) {\n      if (*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 2) {\n        return 0;\n      }\n      uVar2 = strcmp((char *)param_1[1],(char *)param_2[1]);\n      return uVar2;\n    }\n    if (param_2[1] <= param_1[1]) {\n      return (uint)(param_2[1] < param_1[1]);\n    }\n  }" { (if_statement "if (*param_2 < iVar1) {\n      return 1;\n    }" if (parenthesized_expression "(*param_2 < iVar1)" ( (binary_expression "*param_2 < iVar1" (pointer_expression "*param_2" * identifier) < identifier) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 1) {\n      if (*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 2) {\n        return 0;\n      }\n      uVar2 = strcmp((char *)param_1[1],(char *)param_2[1]);\n      return uVar2;\n    }" if (parenthesized_expression "(*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 1)" ( (binary_expression "*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 1" (pointer_expression "*(int *)(&DAT_0004b9c0 + iVar1 * 4)" * (cast_expression "(int *)(&DAT_0004b9c0 + iVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_0004b9c0 + iVar1 * 4)" ( (binary_expression "&DAT_0004b9c0 + iVar1 * 4" (pointer_expression "&DAT_0004b9c0" & identifier) + (binary_expression "iVar1 * 4" identifier * number_literal)) )))) != number_literal) )) (compound_statement "{\n      if (*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 2) {\n        return 0;\n      }\n      uVar2 = strcmp((char *)param_1[1],(char *)param_2[1]);\n      return uVar2;\n    }" { (if_statement "if (*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 2) {\n        return 0;\n      }" if (parenthesized_expression "(*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 2)" ( (binary_expression "*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 2" (pointer_expression "*(int *)(&DAT_0004b9c0 + iVar1 * 4)" * (cast_expression "(int *)(&DAT_0004b9c0 + iVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_0004b9c0 + iVar1 * 4)" ( (binary_expression "&DAT_0004b9c0 + iVar1 * 4" (pointer_expression "&DAT_0004b9c0" & identifier) + (binary_expression "iVar1 * 4" identifier * number_literal)) )))) != number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar2 = strcmp((char *)param_1[1],(char *)param_2[1]);" (assignment_expression "uVar2 = strcmp((char *)param_1[1],(char *)param_2[1])" identifier = (call_expression "strcmp((char *)param_1[1],(char *)param_2[1])" identifier (argument_list "((char *)param_1[1],(char *)param_2[1])" ( (cast_expression "(char *)param_1[1]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) , (cast_expression "(char *)param_2[1]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[1]" identifier [ number_literal ])) )))) ;) (return_statement "return uVar2;" return identifier ;) })) (if_statement "if (param_2[1] <= param_1[1]) {\n      return (uint)(param_2[1] < param_1[1]);\n    }" if (parenthesized_expression "(param_2[1] <= param_1[1])" ( (binary_expression "param_2[1] <= param_1[1]" (subscript_expression "param_2[1]" identifier [ number_literal ]) <= (subscript_expression "param_1[1]" identifier [ number_literal ])) )) (compound_statement "{\n      return (uint)(param_2[1] < param_1[1]);\n    }" { (return_statement "return (uint)(param_2[1] < param_1[1]);" return (call_expression "(uint)(param_2[1] < param_1[1])" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_2[1] < param_1[1])" ( (binary_expression "param_2[1] < param_1[1]" (subscript_expression "param_2[1]" identifier [ number_literal ]) < (subscript_expression "param_1[1]" identifier [ number_literal ])) ))) ;) })) })) (return_statement "return 0xffffffff;" 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 conf_cmp(void *av,void *bv)\n\n{\n  int iVar1;\n  \n                    /* WARNING: Load size is inaccurate */\n  iVar1 = *av;\n                    /* WARNING: Load size is inaccurate */\n  if (*bv <= iVar1) {\n    if (*bv < iVar1) {\n      return 1;\n    }\n    if (subkeytypes[iVar1] != 1) {\n      if (subkeytypes[iVar1] != 2) {\n        return 0;\n      }\n      iVar1 = strcmp(*(char **)((int)av + 4),*(char **)((int)bv + 4));\n      return iVar1;\n    }\n    if (*(int *)((int)bv + 4) <= *(int *)((int)av + 4)) {\n      return (uint)(*(int *)((int)bv + 4) < *(int *)((int)av + 4));\n    }\n  }\n  return -1;\n}\n\n" comment comment (function_definition "int conf_cmp(void *av,void *bv)\n\n{\n  int iVar1;\n  \n                    /* WARNING: Load size is inaccurate */\n  iVar1 = *av;\n                    /* WARNING: Load size is inaccurate */\n  if (*bv <= iVar1) {\n    if (*bv < iVar1) {\n      return 1;\n    }\n    if (subkeytypes[iVar1] != 1) {\n      if (subkeytypes[iVar1] != 2) {\n        return 0;\n      }\n      iVar1 = strcmp(*(char **)((int)av + 4),*(char **)((int)bv + 4));\n      return iVar1;\n    }\n    if (*(int *)((int)bv + 4) <= *(int *)((int)av + 4)) {\n      return (uint)(*(int *)((int)bv + 4) < *(int *)((int)av + 4));\n    }\n  }\n  return -1;\n}" primitive_type (function_declarator "conf_cmp(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                    /* WARNING: Load size is inaccurate */\n  iVar1 = *av;\n                    /* WARNING: Load size is inaccurate */\n  if (*bv <= iVar1) {\n    if (*bv < iVar1) {\n      return 1;\n    }\n    if (subkeytypes[iVar1] != 1) {\n      if (subkeytypes[iVar1] != 2) {\n        return 0;\n      }\n      iVar1 = strcmp(*(char **)((int)av + 4),*(char **)((int)bv + 4));\n      return iVar1;\n    }\n    if (*(int *)((int)bv + 4) <= *(int *)((int)av + 4)) {\n      return (uint)(*(int *)((int)bv + 4) < *(int *)((int)av + 4));\n    }\n  }\n  return -1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) comment (expression_statement "iVar1 = *av;" (assignment_expression "iVar1 = *av" identifier = (pointer_expression "*av" * identifier)) ;) comment (if_statement "if (*bv <= iVar1) {\n    if (*bv < iVar1) {\n      return 1;\n    }\n    if (subkeytypes[iVar1] != 1) {\n      if (subkeytypes[iVar1] != 2) {\n        return 0;\n      }\n      iVar1 = strcmp(*(char **)((int)av + 4),*(char **)((int)bv + 4));\n      return iVar1;\n    }\n    if (*(int *)((int)bv + 4) <= *(int *)((int)av + 4)) {\n      return (uint)(*(int *)((int)bv + 4) < *(int *)((int)av + 4));\n    }\n  }" if (parenthesized_expression "(*bv <= iVar1)" ( (binary_expression "*bv <= iVar1" (pointer_expression "*bv" * identifier) <= identifier) )) (compound_statement "{\n    if (*bv < iVar1) {\n      return 1;\n    }\n    if (subkeytypes[iVar1] != 1) {\n      if (subkeytypes[iVar1] != 2) {\n        return 0;\n      }\n      iVar1 = strcmp(*(char **)((int)av + 4),*(char **)((int)bv + 4));\n      return iVar1;\n    }\n    if (*(int *)((int)bv + 4) <= *(int *)((int)av + 4)) {\n      return (uint)(*(int *)((int)bv + 4) < *(int *)((int)av + 4));\n    }\n  }" { (if_statement "if (*bv < iVar1) {\n      return 1;\n    }" if (parenthesized_expression "(*bv < iVar1)" ( (binary_expression "*bv < iVar1" (pointer_expression "*bv" * identifier) < identifier) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (subkeytypes[iVar1] != 1) {\n      if (subkeytypes[iVar1] != 2) {\n        return 0;\n      }\n      iVar1 = strcmp(*(char **)((int)av + 4),*(char **)((int)bv + 4));\n      return iVar1;\n    }" if (parenthesized_expression "(subkeytypes[iVar1] != 1)" ( (binary_expression "subkeytypes[iVar1] != 1" (subscript_expression "subkeytypes[iVar1]" identifier [ identifier ]) != number_literal) )) (compound_statement "{\n      if (subkeytypes[iVar1] != 2) {\n        return 0;\n      }\n      iVar1 = strcmp(*(char **)((int)av + 4),*(char **)((int)bv + 4));\n      return iVar1;\n    }" { (if_statement "if (subkeytypes[iVar1] != 2) {\n        return 0;\n      }" if (parenthesized_expression "(subkeytypes[iVar1] != 2)" ( (binary_expression "subkeytypes[iVar1] != 2" (subscript_expression "subkeytypes[iVar1]" identifier [ identifier ]) != number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = strcmp(*(char **)((int)av + 4),*(char **)((int)bv + 4));" (assignment_expression "iVar1 = strcmp(*(char **)((int)av + 4),*(char **)((int)bv + 4))" identifier = (call_expression "strcmp(*(char **)((int)av + 4),*(char **)((int)bv + 4))" identifier (argument_list "(*(char **)((int)av + 4),*(char **)((int)bv + 4))" ( (pointer_expression "*(char **)((int)av + 4)" * (cast_expression "(char **)((int)av + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (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 "*(char **)((int)bv + 4)" * (cast_expression "(char **)((int)bv + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (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 ;) })) (if_statement "if (*(int *)((int)bv + 4) <= *(int *)((int)av + 4)) {\n      return (uint)(*(int *)((int)bv + 4) < *(int *)((int)av + 4));\n    }" if (parenthesized_expression "(*(int *)((int)bv + 4) <= *(int *)((int)av + 4))" ( (binary_expression "*(int *)((int)bv + 4) <= *(int *)((int)av + 4)" (pointer_expression "*(int *)((int)bv + 4)" * (cast_expression "(int *)((int)bv + 4)" ( (type_descriptor "int *" primitive_type (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) )))) <= (pointer_expression "*(int *)((int)av + 4)" * (cast_expression "(int *)((int)av + 4)" ( (type_descriptor "int *" primitive_type (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) ))))) )) (compound_statement "{\n      return (uint)(*(int *)((int)bv + 4) < *(int *)((int)av + 4));\n    }" { (return_statement "return (uint)(*(int *)((int)bv + 4) < *(int *)((int)av + 4));" return (call_expression "(uint)(*(int *)((int)bv + 4) < *(int *)((int)av + 4))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)((int)bv + 4) < *(int *)((int)av + 4))" ( (binary_expression "*(int *)((int)bv + 4) < *(int *)((int)av + 4)" (pointer_expression "*(int *)((int)bv + 4)" * (cast_expression "(int *)((int)bv + 4)" ( (type_descriptor "int *" primitive_type (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) )))) < (pointer_expression "*(int *)((int)av + 4)" * (cast_expression "(int *)((int)av + 4)" ( (type_descriptor "int *" primitive_type (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) ))))) ))) ;) })) })) (return_statement "return -1;" return number_literal ;) })))
(translation_unit "uint FUN_00017870(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  iVar1 = *param_1;\n  if (*param_2 <= iVar1) {\n    if (*param_2 < iVar1) {\n      return 1;\n    }\n    if (*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 1) {\n      if (*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 2) {\n        return 0;\n      }\n      uVar2 = strcmp((char *)param_1[1],(char *)param_2[1]);\n      return uVar2;\n    }\n    if (param_2[1] <= param_1[1]) {\n      return (uint)(param_2[1] < param_1[1]);\n    }\n  }\n  return 0xffffffff;\n}\n\n" (function_definition "uint FUN_00017870(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  iVar1 = *param_1;\n  if (*param_2 <= iVar1) {\n    if (*param_2 < iVar1) {\n      return 1;\n    }\n    if (*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 1) {\n      if (*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 2) {\n        return 0;\n      }\n      uVar2 = strcmp((char *)param_1[1],(char *)param_2[1]);\n      return uVar2;\n    }\n    if (param_2[1] <= param_1[1]) {\n      return (uint)(param_2[1] < param_1[1]);\n    }\n  }\n  return 0xffffffff;\n}" type_identifier (function_declarator "FUN_00017870(int *param_1,int *param_2)" identifier (parameter_list "(int *param_1,int *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  \n  iVar1 = *param_1;\n  if (*param_2 <= iVar1) {\n    if (*param_2 < iVar1) {\n      return 1;\n    }\n    if (*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 1) {\n      if (*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 2) {\n        return 0;\n      }\n      uVar2 = strcmp((char *)param_1[1],(char *)param_2[1]);\n      return uVar2;\n    }\n    if (param_2[1] <= param_1[1]) {\n      return (uint)(param_2[1] < param_1[1]);\n    }\n  }\n  return 0xffffffff;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (*param_2 <= iVar1) {\n    if (*param_2 < iVar1) {\n      return 1;\n    }\n    if (*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 1) {\n      if (*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 2) {\n        return 0;\n      }\n      uVar2 = strcmp((char *)param_1[1],(char *)param_2[1]);\n      return uVar2;\n    }\n    if (param_2[1] <= param_1[1]) {\n      return (uint)(param_2[1] < param_1[1]);\n    }\n  }" if (parenthesized_expression "(*param_2 <= iVar1)" ( (binary_expression "*param_2 <= iVar1" (pointer_expression "*param_2" * identifier) <= identifier) )) (compound_statement "{\n    if (*param_2 < iVar1) {\n      return 1;\n    }\n    if (*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 1) {\n      if (*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 2) {\n        return 0;\n      }\n      uVar2 = strcmp((char *)param_1[1],(char *)param_2[1]);\n      return uVar2;\n    }\n    if (param_2[1] <= param_1[1]) {\n      return (uint)(param_2[1] < param_1[1]);\n    }\n  }" { (if_statement "if (*param_2 < iVar1) {\n      return 1;\n    }" if (parenthesized_expression "(*param_2 < iVar1)" ( (binary_expression "*param_2 < iVar1" (pointer_expression "*param_2" * identifier) < identifier) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 1) {\n      if (*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 2) {\n        return 0;\n      }\n      uVar2 = strcmp((char *)param_1[1],(char *)param_2[1]);\n      return uVar2;\n    }" if (parenthesized_expression "(*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 1)" ( (binary_expression "*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 1" (pointer_expression "*(int *)(&DAT_0004b9c0 + iVar1 * 4)" * (cast_expression "(int *)(&DAT_0004b9c0 + iVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_0004b9c0 + iVar1 * 4)" ( (binary_expression "&DAT_0004b9c0 + iVar1 * 4" (pointer_expression "&DAT_0004b9c0" & identifier) + (binary_expression "iVar1 * 4" identifier * number_literal)) )))) != number_literal) )) (compound_statement "{\n      if (*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 2) {\n        return 0;\n      }\n      uVar2 = strcmp((char *)param_1[1],(char *)param_2[1]);\n      return uVar2;\n    }" { (if_statement "if (*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 2) {\n        return 0;\n      }" if (parenthesized_expression "(*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 2)" ( (binary_expression "*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 2" (pointer_expression "*(int *)(&DAT_0004b9c0 + iVar1 * 4)" * (cast_expression "(int *)(&DAT_0004b9c0 + iVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_0004b9c0 + iVar1 * 4)" ( (binary_expression "&DAT_0004b9c0 + iVar1 * 4" (pointer_expression "&DAT_0004b9c0" & identifier) + (binary_expression "iVar1 * 4" identifier * number_literal)) )))) != number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar2 = strcmp((char *)param_1[1],(char *)param_2[1]);" (assignment_expression "uVar2 = strcmp((char *)param_1[1],(char *)param_2[1])" identifier = (call_expression "strcmp((char *)param_1[1],(char *)param_2[1])" identifier (argument_list "((char *)param_1[1],(char *)param_2[1])" ( (cast_expression "(char *)param_1[1]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) , (cast_expression "(char *)param_2[1]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[1]" identifier [ number_literal ])) )))) ;) (return_statement "return uVar2;" return identifier ;) })) (if_statement "if (param_2[1] <= param_1[1]) {\n      return (uint)(param_2[1] < param_1[1]);\n    }" if (parenthesized_expression "(param_2[1] <= param_1[1])" ( (binary_expression "param_2[1] <= param_1[1]" (subscript_expression "param_2[1]" identifier [ number_literal ]) <= (subscript_expression "param_1[1]" identifier [ number_literal ])) )) (compound_statement "{\n      return (uint)(param_2[1] < param_1[1]);\n    }" { (return_statement "return (uint)(param_2[1] < param_1[1]);" return (call_expression "(uint)(param_2[1] < param_1[1])" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_2[1] < param_1[1])" ( (binary_expression "param_2[1] < param_1[1]" (subscript_expression "param_2[1]" identifier [ number_literal ]) < (subscript_expression "param_1[1]" identifier [ number_literal ])) ))) ;) })) })) (return_statement "return 0xffffffff;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) <= IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) < IDENT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression IDENT * LIT)) )))) != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression IDENT * LIT)) )))) != LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) )))) ;) (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) <= (subscript_expression IDENT [ LIT ])) )) (compound_statement { (return_statement return (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (subscript_expression IDENT [ LIT ]) < (subscript_expression IDENT [ LIT ])) ))) ;) })) })) (return_statement return LIT ;) })))
(function_definition "uint FUN_00017870(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  iVar1 = *param_1;\n  if (*param_2 <= iVar1) {\n    if (*param_2 < iVar1) {\n      return 1;\n    }\n    if (*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 1) {\n      if (*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 2) {\n        return 0;\n      }\n      uVar2 = strcmp((char *)param_1[1],(char *)param_2[1]);\n      return uVar2;\n    }\n    if (param_2[1] <= param_1[1]) {\n      return (uint)(param_2[1] < param_1[1]);\n    }\n  }\n  return 0xffffffff;\n}" (type_identifier "uint") (function_declarator "FUN_00017870(int *param_1,int *param_2)" (identifier "FUN_00017870") (parameter_list "(int *param_1,int *param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  \n  iVar1 = *param_1;\n  if (*param_2 <= iVar1) {\n    if (*param_2 < iVar1) {\n      return 1;\n    }\n    if (*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 1) {\n      if (*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 2) {\n        return 0;\n      }\n      uVar2 = strcmp((char *)param_1[1],(char *)param_2[1]);\n      return uVar2;\n    }\n    if (param_2[1] <= param_1[1]) {\n      return (uint)(param_2[1] < param_1[1]);\n    }\n  }\n  return 0xffffffff;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" (identifier "iVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (*param_2 <= iVar1) {\n    if (*param_2 < iVar1) {\n      return 1;\n    }\n    if (*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 1) {\n      if (*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 2) {\n        return 0;\n      }\n      uVar2 = strcmp((char *)param_1[1],(char *)param_2[1]);\n      return uVar2;\n    }\n    if (param_2[1] <= param_1[1]) {\n      return (uint)(param_2[1] < param_1[1]);\n    }\n  }" (if "if") (parenthesized_expression "(*param_2 <= iVar1)" (( "(") (binary_expression "*param_2 <= iVar1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (<= "<=") (identifier "iVar1")) () ")")) (compound_statement "{\n    if (*param_2 < iVar1) {\n      return 1;\n    }\n    if (*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 1) {\n      if (*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 2) {\n        return 0;\n      }\n      uVar2 = strcmp((char *)param_1[1],(char *)param_2[1]);\n      return uVar2;\n    }\n    if (param_2[1] <= param_1[1]) {\n      return (uint)(param_2[1] < param_1[1]);\n    }\n  }" ({ "{") (if_statement "if (*param_2 < iVar1) {\n      return 1;\n    }" (if "if") (parenthesized_expression "(*param_2 < iVar1)" (( "(") (binary_expression "*param_2 < iVar1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (< "<") (identifier "iVar1")) () ")")) (compound_statement "{\n      return 1;\n    }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (if_statement "if (*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 1) {\n      if (*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 2) {\n        return 0;\n      }\n      uVar2 = strcmp((char *)param_1[1],(char *)param_2[1]);\n      return uVar2;\n    }" (if "if") (parenthesized_expression "(*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 1)" (( "(") (binary_expression "*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 1" (pointer_expression "*(int *)(&DAT_0004b9c0 + iVar1 * 4)" (* "*") (cast_expression "(int *)(&DAT_0004b9c0 + iVar1 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_0004b9c0 + iVar1 * 4)" (( "(") (binary_expression "&DAT_0004b9c0 + iVar1 * 4" (pointer_expression "&DAT_0004b9c0" (& "&") (identifier "DAT_0004b9c0")) (+ "+") (binary_expression "iVar1 * 4" (identifier "iVar1") (* "*") (number_literal "4"))) () ")")))) (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n      if (*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 2) {\n        return 0;\n      }\n      uVar2 = strcmp((char *)param_1[1],(char *)param_2[1]);\n      return uVar2;\n    }" ({ "{") (if_statement "if (*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 2) {\n        return 0;\n      }" (if "if") (parenthesized_expression "(*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 2)" (( "(") (binary_expression "*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 2" (pointer_expression "*(int *)(&DAT_0004b9c0 + iVar1 * 4)" (* "*") (cast_expression "(int *)(&DAT_0004b9c0 + iVar1 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_0004b9c0 + iVar1 * 4)" (( "(") (binary_expression "&DAT_0004b9c0 + iVar1 * 4" (pointer_expression "&DAT_0004b9c0" (& "&") (identifier "DAT_0004b9c0")) (+ "+") (binary_expression "iVar1 * 4" (identifier "iVar1") (* "*") (number_literal "4"))) () ")")))) (!= "!=") (number_literal "2")) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar2 = strcmp((char *)param_1[1],(char *)param_2[1]);" (assignment_expression "uVar2 = strcmp((char *)param_1[1],(char *)param_2[1])" (identifier "uVar2") (= "=") (call_expression "strcmp((char *)param_1[1],(char *)param_2[1])" (identifier "strcmp") (argument_list "((char *)param_1[1],(char *)param_2[1])" (( "(") (cast_expression "(char *)param_1[1]" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (, ",") (cast_expression "(char *)param_2[1]" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) () ")")))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (if_statement "if (param_2[1] <= param_1[1]) {\n      return (uint)(param_2[1] < param_1[1]);\n    }" (if "if") (parenthesized_expression "(param_2[1] <= param_1[1])" (( "(") (binary_expression "param_2[1] <= param_1[1]" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (<= "<=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) () ")")) (compound_statement "{\n      return (uint)(param_2[1] < param_1[1]);\n    }" ({ "{") (return_statement "return (uint)(param_2[1] < param_1[1]);" (return "return") (call_expression "(uint)(param_2[1] < param_1[1])" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_2[1] < param_1[1])" (( "(") (binary_expression "param_2[1] < param_1[1]" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (< "<") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) () ")"))) (; ";")) (} "}"))) (} "}"))) (return_statement "return 0xffffffff;" (return "return") (number_literal "0xffffffff") (; ";")) (} "}")))

/* 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_1;
  
                    /* WARNING: Load size is inaccurate */
  var_1 = *av;
                    /* WARNING: Load size is inaccurate */
  if (*bv <= var_1) {
    if (*bv < var_1) {
      return 1;
    }
    if (subkeytypes[var_1] != 1) {
      if (subkeytypes[var_1] != 2) {
        return 0;
      }
      var_1 = var_2(*(char **)((int)av + 4),*(char **)((int)bv + 4));
      return var_1;
    }
    if (*(int *)((int)bv + 4) <= *(int *)((int)av + 4)) {
      return (uint)(*(int *)((int)bv + 4) < *(int *)((int)av + 4));
    }
  }
  return -1;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))) (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))))) (return_statement (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))) consequence: (compound_statement (return_statement (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))))))))) (return_statement (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 = *param_1;
  if (*param_2 <= iVar1) {
    if (*param_2 < iVar1) {
      return 1;
    }
    if (*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 1) {
      if (*(int *)(&DAT_0004b9c0 + iVar1 * 4) != 2) {
        return 0;
      }
      uVar2 = strcmp((char *)param_1[1],(char *)param_2[1]);
      return uVar2;
    }
    if (param_2[1] <= param_1[1]) {
      return (uint)(param_2[1] < param_1[1]);
    }
  }
  return 0xffffffff;
}

