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

int strcmp_atime(V a,V b)

{
  int iVar1;
  
  if (*(int *)((int)b + 0x4c) < *(int *)((int)a + 0x4c)) {
    iVar1 = -1;
  }
  else {
    iVar1 = 1;
    if ((*(int *)((int)b + 0x4c) <= *(int *)((int)a + 0x4c)) &&
       (iVar1 = *(int *)((int)b + 0x50) - *(int *)((int)a + 0x50), iVar1 == 0)) {
                    /* WARNING: Load size is inaccurate */
                    /* WARNING: Load size is inaccurate */
      iVar1 = strcmp(*a,*b);
    }
  }
  return iVar1;
}



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

int FUN_0001a640(undefined4 *param_1,undefined4 *param_2)

{
  int iVar1;
  
  if ((int)param_2[0x13] < (int)param_1[0x13]) {
    iVar1 = -1;
  }
  else {
    iVar1 = 1;
    if (((int)param_2[0x13] <= (int)param_1[0x13]) &&
       (iVar1 = param_2[0x14] - param_1[0x14], iVar1 == 0)) {
      iVar1 = strcmp((char *)*param_1,(char *)*param_2);
    }
  }
  return iVar1;
}


PUSH EBX
CALL 0x00014250
ADD EBX,0x209ba
SUB ESP,0x8
MOV ECX,dword ptr [ESP + 0x14]
MOV EDX,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [ECX + 0x4c]
CMP dword ptr [EDX + 0x4c],EAX
JG 0x0001a688
MOV EAX,0x1
JL 0x0001a67d
MOV EAX,dword ptr [ECX + 0x50]
SUB EAX,dword ptr [EDX + 0x50]
JNZ 0x0001a67d
SUB ESP,0x8
PUSH dword ptr [ECX]
PUSH dword ptr [EDX]
CALL 0x000120a0
ADD ESP,0x10
ADD ESP,0x8
POP EBX
RET
MOV EAX,0xffffffff
JMP 0x0001a67d
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_0001a640(undefined4 *param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  \n  if ((int)param_2[0x13] < (int)param_1[0x13]) {\n    iVar1 = -1;\n  }\n  else {\n    iVar1 = 1;\n    if (((int)param_2[0x13] <= (int)param_1[0x13]) &&\n       (iVar1 = param_2[0x14] - param_1[0x14], iVar1 == 0)) {\n      iVar1 = strcmp((char *)*param_1,(char *)*param_2);\n    }\n  }\n  return iVar1;\n}\n\n" comment (function_definition "int FUN_0001a640(undefined4 *param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  \n  if ((int)param_2[0x13] < (int)param_1[0x13]) {\n    iVar1 = -1;\n  }\n  else {\n    iVar1 = 1;\n    if (((int)param_2[0x13] <= (int)param_1[0x13]) &&\n       (iVar1 = param_2[0x14] - param_1[0x14], iVar1 == 0)) {\n      iVar1 = strcmp((char *)*param_1,(char *)*param_2);\n    }\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_0001a640(undefined4 *param_1,undefined4 *param_2)" identifier (parameter_list "(undefined4 *param_1,undefined4 *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if ((int)param_2[0x13] < (int)param_1[0x13]) {\n    iVar1 = -1;\n  }\n  else {\n    iVar1 = 1;\n    if (((int)param_2[0x13] <= (int)param_1[0x13]) &&\n       (iVar1 = param_2[0x14] - param_1[0x14], iVar1 == 0)) {\n      iVar1 = strcmp((char *)*param_1,(char *)*param_2);\n    }\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if ((int)param_2[0x13] < (int)param_1[0x13]) {\n    iVar1 = -1;\n  }\n  else {\n    iVar1 = 1;\n    if (((int)param_2[0x13] <= (int)param_1[0x13]) &&\n       (iVar1 = param_2[0x14] - param_1[0x14], iVar1 == 0)) {\n      iVar1 = strcmp((char *)*param_1,(char *)*param_2);\n    }\n  }" if (parenthesized_expression "((int)param_2[0x13] < (int)param_1[0x13])" ( (binary_expression "(int)param_2[0x13] < (int)param_1[0x13]" (cast_expression "(int)param_2[0x13]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_2[0x13]" identifier [ number_literal ])) < (cast_expression "(int)param_1[0x13]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[0x13]" identifier [ number_literal ]))) )) (compound_statement "{\n    iVar1 = -1;\n  }" { (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) }) (else_clause "else {\n    iVar1 = 1;\n    if (((int)param_2[0x13] <= (int)param_1[0x13]) &&\n       (iVar1 = param_2[0x14] - param_1[0x14], iVar1 == 0)) {\n      iVar1 = strcmp((char *)*param_1,(char *)*param_2);\n    }\n  }" else (compound_statement "{\n    iVar1 = 1;\n    if (((int)param_2[0x13] <= (int)param_1[0x13]) &&\n       (iVar1 = param_2[0x14] - param_1[0x14], iVar1 == 0)) {\n      iVar1 = strcmp((char *)*param_1,(char *)*param_2);\n    }\n  }" { (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) (if_statement "if (((int)param_2[0x13] <= (int)param_1[0x13]) &&\n       (iVar1 = param_2[0x14] - param_1[0x14], iVar1 == 0)) {\n      iVar1 = strcmp((char *)*param_1,(char *)*param_2);\n    }" if (parenthesized_expression "(((int)param_2[0x13] <= (int)param_1[0x13]) &&\n       (iVar1 = param_2[0x14] - param_1[0x14], iVar1 == 0))" ( (binary_expression "((int)param_2[0x13] <= (int)param_1[0x13]) &&\n       (iVar1 = param_2[0x14] - param_1[0x14], iVar1 == 0)" (parenthesized_expression "((int)param_2[0x13] <= (int)param_1[0x13])" ( (binary_expression "(int)param_2[0x13] <= (int)param_1[0x13]" (cast_expression "(int)param_2[0x13]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_2[0x13]" identifier [ number_literal ])) <= (cast_expression "(int)param_1[0x13]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[0x13]" identifier [ number_literal ]))) )) && (parenthesized_expression "(iVar1 = param_2[0x14] - param_1[0x14], iVar1 == 0)" ( (comma_expression "iVar1 = param_2[0x14] - param_1[0x14], iVar1 == 0" (assignment_expression "iVar1 = param_2[0x14] - param_1[0x14]" identifier = (binary_expression "param_2[0x14] - param_1[0x14]" (subscript_expression "param_2[0x14]" identifier [ number_literal ]) - (subscript_expression "param_1[0x14]" identifier [ number_literal ]))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n      iVar1 = strcmp((char *)*param_1,(char *)*param_2);\n    }" { (expression_statement "iVar1 = strcmp((char *)*param_1,(char *)*param_2);" (assignment_expression "iVar1 = strcmp((char *)*param_1,(char *)*param_2)" identifier = (call_expression "strcmp((char *)*param_1,(char *)*param_2)" identifier (argument_list "((char *)*param_1,(char *)*param_2)" ( (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) , (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)) )))) ;) })) }))) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint strcmp_atime(V a,V b)\n\n{\n  int iVar1;\n  \n  if (*(int *)((int)b + 0x4c) < *(int *)((int)a + 0x4c)) {\n    iVar1 = -1;\n  }\n  else {\n    iVar1 = 1;\n    if ((*(int *)((int)b + 0x4c) <= *(int *)((int)a + 0x4c)) &&\n       (iVar1 = *(int *)((int)b + 0x50) - *(int *)((int)a + 0x50), iVar1 == 0)) {\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n      iVar1 = strcmp(*a,*b);\n    }\n  }\n  return iVar1;\n}\n\n" comment comment (function_definition "int strcmp_atime(V a,V b)\n\n{\n  int iVar1;\n  \n  if (*(int *)((int)b + 0x4c) < *(int *)((int)a + 0x4c)) {\n    iVar1 = -1;\n  }\n  else {\n    iVar1 = 1;\n    if ((*(int *)((int)b + 0x4c) <= *(int *)((int)a + 0x4c)) &&\n       (iVar1 = *(int *)((int)b + 0x50) - *(int *)((int)a + 0x50), iVar1 == 0)) {\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n      iVar1 = strcmp(*a,*b);\n    }\n  }\n  return iVar1;\n}" primitive_type (function_declarator "strcmp_atime(V a,V b)" identifier (parameter_list "(V a,V b)" ( (parameter_declaration "V a" type_identifier identifier) , (parameter_declaration "V b" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (*(int *)((int)b + 0x4c) < *(int *)((int)a + 0x4c)) {\n    iVar1 = -1;\n  }\n  else {\n    iVar1 = 1;\n    if ((*(int *)((int)b + 0x4c) <= *(int *)((int)a + 0x4c)) &&\n       (iVar1 = *(int *)((int)b + 0x50) - *(int *)((int)a + 0x50), iVar1 == 0)) {\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n      iVar1 = strcmp(*a,*b);\n    }\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (*(int *)((int)b + 0x4c) < *(int *)((int)a + 0x4c)) {\n    iVar1 = -1;\n  }\n  else {\n    iVar1 = 1;\n    if ((*(int *)((int)b + 0x4c) <= *(int *)((int)a + 0x4c)) &&\n       (iVar1 = *(int *)((int)b + 0x50) - *(int *)((int)a + 0x50), iVar1 == 0)) {\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n      iVar1 = strcmp(*a,*b);\n    }\n  }" if (parenthesized_expression "(*(int *)((int)b + 0x4c) < *(int *)((int)a + 0x4c))" ( (binary_expression "*(int *)((int)b + 0x4c) < *(int *)((int)a + 0x4c)" (pointer_expression "*(int *)((int)b + 0x4c)" * (cast_expression "(int *)((int)b + 0x4c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)b + 0x4c)" ( (binary_expression "(int)b + 0x4c" (cast_expression "(int)b" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) < (pointer_expression "*(int *)((int)a + 0x4c)" * (cast_expression "(int *)((int)a + 0x4c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)a + 0x4c)" ( (binary_expression "(int)a + 0x4c" (cast_expression "(int)a" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) )) (compound_statement "{\n    iVar1 = -1;\n  }" { (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) }) (else_clause "else {\n    iVar1 = 1;\n    if ((*(int *)((int)b + 0x4c) <= *(int *)((int)a + 0x4c)) &&\n       (iVar1 = *(int *)((int)b + 0x50) - *(int *)((int)a + 0x50), iVar1 == 0)) {\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n      iVar1 = strcmp(*a,*b);\n    }\n  }" else (compound_statement "{\n    iVar1 = 1;\n    if ((*(int *)((int)b + 0x4c) <= *(int *)((int)a + 0x4c)) &&\n       (iVar1 = *(int *)((int)b + 0x50) - *(int *)((int)a + 0x50), iVar1 == 0)) {\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n      iVar1 = strcmp(*a,*b);\n    }\n  }" { (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) (if_statement "if ((*(int *)((int)b + 0x4c) <= *(int *)((int)a + 0x4c)) &&\n       (iVar1 = *(int *)((int)b + 0x50) - *(int *)((int)a + 0x50), iVar1 == 0)) {\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n      iVar1 = strcmp(*a,*b);\n    }" if (parenthesized_expression "((*(int *)((int)b + 0x4c) <= *(int *)((int)a + 0x4c)) &&\n       (iVar1 = *(int *)((int)b + 0x50) - *(int *)((int)a + 0x50), iVar1 == 0))" ( (binary_expression "(*(int *)((int)b + 0x4c) <= *(int *)((int)a + 0x4c)) &&\n       (iVar1 = *(int *)((int)b + 0x50) - *(int *)((int)a + 0x50), iVar1 == 0)" (parenthesized_expression "(*(int *)((int)b + 0x4c) <= *(int *)((int)a + 0x4c))" ( (binary_expression "*(int *)((int)b + 0x4c) <= *(int *)((int)a + 0x4c)" (pointer_expression "*(int *)((int)b + 0x4c)" * (cast_expression "(int *)((int)b + 0x4c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)b + 0x4c)" ( (binary_expression "(int)b + 0x4c" (cast_expression "(int)b" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) <= (pointer_expression "*(int *)((int)a + 0x4c)" * (cast_expression "(int *)((int)a + 0x4c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)a + 0x4c)" ( (binary_expression "(int)a + 0x4c" (cast_expression "(int)a" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) )) && (parenthesized_expression "(iVar1 = *(int *)((int)b + 0x50) - *(int *)((int)a + 0x50), iVar1 == 0)" ( (comma_expression "iVar1 = *(int *)((int)b + 0x50) - *(int *)((int)a + 0x50), iVar1 == 0" (assignment_expression "iVar1 = *(int *)((int)b + 0x50) - *(int *)((int)a + 0x50)" identifier = (binary_expression "*(int *)((int)b + 0x50) - *(int *)((int)a + 0x50)" (pointer_expression "*(int *)((int)b + 0x50)" * (cast_expression "(int *)((int)b + 0x50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)b + 0x50)" ( (binary_expression "(int)b + 0x50" (cast_expression "(int)b" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) - (pointer_expression "*(int *)((int)a + 0x50)" * (cast_expression "(int *)((int)a + 0x50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)a + 0x50)" ( (binary_expression "(int)a + 0x50" (cast_expression "(int)a" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n      iVar1 = strcmp(*a,*b);\n    }" { comment comment (expression_statement "iVar1 = strcmp(*a,*b);" (assignment_expression "iVar1 = strcmp(*a,*b)" identifier = (call_expression "strcmp(*a,*b)" identifier (argument_list "(*a,*b)" ( (pointer_expression "*a" * identifier) , (pointer_expression "*b" * identifier) )))) ;) })) }))) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int FUN_0001a640(undefined4 *param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  \n  if ((int)param_2[0x13] < (int)param_1[0x13]) {\n    iVar1 = -1;\n  }\n  else {\n    iVar1 = 1;\n    if (((int)param_2[0x13] <= (int)param_1[0x13]) &&\n       (iVar1 = param_2[0x14] - param_1[0x14], iVar1 == 0)) {\n      iVar1 = strcmp((char *)*param_1,(char *)*param_2);\n    }\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_0001a640(undefined4 *param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  \n  if ((int)param_2[0x13] < (int)param_1[0x13]) {\n    iVar1 = -1;\n  }\n  else {\n    iVar1 = 1;\n    if (((int)param_2[0x13] <= (int)param_1[0x13]) &&\n       (iVar1 = param_2[0x14] - param_1[0x14], iVar1 == 0)) {\n      iVar1 = strcmp((char *)*param_1,(char *)*param_2);\n    }\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_0001a640(undefined4 *param_1,undefined4 *param_2)" identifier (parameter_list "(undefined4 *param_1,undefined4 *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if ((int)param_2[0x13] < (int)param_1[0x13]) {\n    iVar1 = -1;\n  }\n  else {\n    iVar1 = 1;\n    if (((int)param_2[0x13] <= (int)param_1[0x13]) &&\n       (iVar1 = param_2[0x14] - param_1[0x14], iVar1 == 0)) {\n      iVar1 = strcmp((char *)*param_1,(char *)*param_2);\n    }\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if ((int)param_2[0x13] < (int)param_1[0x13]) {\n    iVar1 = -1;\n  }\n  else {\n    iVar1 = 1;\n    if (((int)param_2[0x13] <= (int)param_1[0x13]) &&\n       (iVar1 = param_2[0x14] - param_1[0x14], iVar1 == 0)) {\n      iVar1 = strcmp((char *)*param_1,(char *)*param_2);\n    }\n  }" if (parenthesized_expression "((int)param_2[0x13] < (int)param_1[0x13])" ( (binary_expression "(int)param_2[0x13] < (int)param_1[0x13]" (cast_expression "(int)param_2[0x13]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_2[0x13]" identifier [ number_literal ])) < (cast_expression "(int)param_1[0x13]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[0x13]" identifier [ number_literal ]))) )) (compound_statement "{\n    iVar1 = -1;\n  }" { (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) }) (else_clause "else {\n    iVar1 = 1;\n    if (((int)param_2[0x13] <= (int)param_1[0x13]) &&\n       (iVar1 = param_2[0x14] - param_1[0x14], iVar1 == 0)) {\n      iVar1 = strcmp((char *)*param_1,(char *)*param_2);\n    }\n  }" else (compound_statement "{\n    iVar1 = 1;\n    if (((int)param_2[0x13] <= (int)param_1[0x13]) &&\n       (iVar1 = param_2[0x14] - param_1[0x14], iVar1 == 0)) {\n      iVar1 = strcmp((char *)*param_1,(char *)*param_2);\n    }\n  }" { (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) (if_statement "if (((int)param_2[0x13] <= (int)param_1[0x13]) &&\n       (iVar1 = param_2[0x14] - param_1[0x14], iVar1 == 0)) {\n      iVar1 = strcmp((char *)*param_1,(char *)*param_2);\n    }" if (parenthesized_expression "(((int)param_2[0x13] <= (int)param_1[0x13]) &&\n       (iVar1 = param_2[0x14] - param_1[0x14], iVar1 == 0))" ( (binary_expression "((int)param_2[0x13] <= (int)param_1[0x13]) &&\n       (iVar1 = param_2[0x14] - param_1[0x14], iVar1 == 0)" (parenthesized_expression "((int)param_2[0x13] <= (int)param_1[0x13])" ( (binary_expression "(int)param_2[0x13] <= (int)param_1[0x13]" (cast_expression "(int)param_2[0x13]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_2[0x13]" identifier [ number_literal ])) <= (cast_expression "(int)param_1[0x13]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[0x13]" identifier [ number_literal ]))) )) && (parenthesized_expression "(iVar1 = param_2[0x14] - param_1[0x14], iVar1 == 0)" ( (comma_expression "iVar1 = param_2[0x14] - param_1[0x14], iVar1 == 0" (assignment_expression "iVar1 = param_2[0x14] - param_1[0x14]" identifier = (binary_expression "param_2[0x14] - param_1[0x14]" (subscript_expression "param_2[0x14]" identifier [ number_literal ]) - (subscript_expression "param_1[0x14]" identifier [ number_literal ]))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n      iVar1 = strcmp((char *)*param_1,(char *)*param_2);\n    }" { (expression_statement "iVar1 = strcmp((char *)*param_1,(char *)*param_2);" (assignment_expression "iVar1 = strcmp((char *)*param_1,(char *)*param_2)" identifier = (call_expression "strcmp((char *)*param_1,(char *)*param_2)" identifier (argument_list "((char *)*param_1,(char *)*param_2)" ( (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) , (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)) )))) ;) })) }))) (return_statement "return iVar1;" return identifier ;) })))
(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 ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) < (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) <= (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) - (subscript_expression IDENT [ LIT ]))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (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 ;) })))
(function_definition "int FUN_0001a640(undefined4 *param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  \n  if ((int)param_2[0x13] < (int)param_1[0x13]) {\n    iVar1 = -1;\n  }\n  else {\n    iVar1 = 1;\n    if (((int)param_2[0x13] <= (int)param_1[0x13]) &&\n       (iVar1 = param_2[0x14] - param_1[0x14], iVar1 == 0)) {\n      iVar1 = strcmp((char *)*param_1,(char *)*param_2);\n    }\n  }\n  return iVar1;\n}" (primitive_type "int") (function_declarator "FUN_0001a640(undefined4 *param_1,undefined4 *param_2)" (identifier "FUN_0001a640") (parameter_list "(undefined4 *param_1,undefined4 *param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if ((int)param_2[0x13] < (int)param_1[0x13]) {\n    iVar1 = -1;\n  }\n  else {\n    iVar1 = 1;\n    if (((int)param_2[0x13] <= (int)param_1[0x13]) &&\n       (iVar1 = param_2[0x14] - param_1[0x14], iVar1 == 0)) {\n      iVar1 = strcmp((char *)*param_1,(char *)*param_2);\n    }\n  }\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if ((int)param_2[0x13] < (int)param_1[0x13]) {\n    iVar1 = -1;\n  }\n  else {\n    iVar1 = 1;\n    if (((int)param_2[0x13] <= (int)param_1[0x13]) &&\n       (iVar1 = param_2[0x14] - param_1[0x14], iVar1 == 0)) {\n      iVar1 = strcmp((char *)*param_1,(char *)*param_2);\n    }\n  }" (if "if") (parenthesized_expression "((int)param_2[0x13] < (int)param_1[0x13])" (( "(") (binary_expression "(int)param_2[0x13] < (int)param_1[0x13]" (cast_expression "(int)param_2[0x13]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_2[0x13]" (identifier "param_2") ([ "[") (number_literal "0x13") (] "]"))) (< "<") (cast_expression "(int)param_1[0x13]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_1[0x13]" (identifier "param_1") ([ "[") (number_literal "0x13") (] "]")))) () ")")) (compound_statement "{\n    iVar1 = -1;\n  }" ({ "{") (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" (identifier "iVar1") (= "=") (number_literal "-1")) (; ";")) (} "}")) (else_clause "else {\n    iVar1 = 1;\n    if (((int)param_2[0x13] <= (int)param_1[0x13]) &&\n       (iVar1 = param_2[0x14] - param_1[0x14], iVar1 == 0)) {\n      iVar1 = strcmp((char *)*param_1,(char *)*param_2);\n    }\n  }" (else "else") (compound_statement "{\n    iVar1 = 1;\n    if (((int)param_2[0x13] <= (int)param_1[0x13]) &&\n       (iVar1 = param_2[0x14] - param_1[0x14], iVar1 == 0)) {\n      iVar1 = strcmp((char *)*param_1,(char *)*param_2);\n    }\n  }" ({ "{") (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" (identifier "iVar1") (= "=") (number_literal "1")) (; ";")) (if_statement "if (((int)param_2[0x13] <= (int)param_1[0x13]) &&\n       (iVar1 = param_2[0x14] - param_1[0x14], iVar1 == 0)) {\n      iVar1 = strcmp((char *)*param_1,(char *)*param_2);\n    }" (if "if") (parenthesized_expression "(((int)param_2[0x13] <= (int)param_1[0x13]) &&\n       (iVar1 = param_2[0x14] - param_1[0x14], iVar1 == 0))" (( "(") (binary_expression "((int)param_2[0x13] <= (int)param_1[0x13]) &&\n       (iVar1 = param_2[0x14] - param_1[0x14], iVar1 == 0)" (parenthesized_expression "((int)param_2[0x13] <= (int)param_1[0x13])" (( "(") (binary_expression "(int)param_2[0x13] <= (int)param_1[0x13]" (cast_expression "(int)param_2[0x13]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_2[0x13]" (identifier "param_2") ([ "[") (number_literal "0x13") (] "]"))) (<= "<=") (cast_expression "(int)param_1[0x13]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_1[0x13]" (identifier "param_1") ([ "[") (number_literal "0x13") (] "]")))) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = param_2[0x14] - param_1[0x14], iVar1 == 0)" (( "(") (comma_expression "iVar1 = param_2[0x14] - param_1[0x14], iVar1 == 0" (assignment_expression "iVar1 = param_2[0x14] - param_1[0x14]" (identifier "iVar1") (= "=") (binary_expression "param_2[0x14] - param_1[0x14]" (subscript_expression "param_2[0x14]" (identifier "param_2") ([ "[") (number_literal "0x14") (] "]")) (- "-") (subscript_expression "param_1[0x14]" (identifier "param_1") ([ "[") (number_literal "0x14") (] "]")))) (, ",") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n      iVar1 = strcmp((char *)*param_1,(char *)*param_2);\n    }" ({ "{") (expression_statement "iVar1 = strcmp((char *)*param_1,(char *)*param_2);" (assignment_expression "iVar1 = strcmp((char *)*param_1,(char *)*param_2)" (identifier "iVar1") (= "=") (call_expression "strcmp((char *)*param_1,(char *)*param_2)" (identifier "strcmp") (argument_list "((char *)*param_1,(char *)*param_2)" (( "(") (cast_expression "(char *)*param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (, ",") (cast_expression "(char *)*param_2" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) () ")")))) (; ";")) (} "}"))) (} "}")))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

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

int function_1(type_1 a,type_1 b)

{
  int var_1;
  
  if (*(int *)((int)b + 0x4c) < *(int *)((int)a + 0x4c)) {
    var_1 = -1;
  }
  else {
    var_1 = 1;
    if ((*(int *)((int)b + 0x4c) <= *(int *)((int)a + 0x4c)) &&
       (var_1 = *(int *)((int)b + 0x50) - *(int *)((int)a + 0x50), var_1 == 0)) {
                    /* WARNING: Load size is inaccurate */
                    /* WARNING: Load size is inaccurate */
      var_1 = var_2(*a,*b);
    }
  }
  return var_1;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (subscript_expression argument: (identifier) index: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (subscript_expression argument: (identifier) index: (number_literal))))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (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: (pointer_expression argument: (identifier))) (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))))))))))) (return_statement (identifier)))))

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

int MASKED(undefined4 *param_1,undefined4 *param_2)

{
  int iVar1;
  
  if ((int)param_2[0x13] < (int)param_1[0x13]) {
    iVar1 = -1;
  }
  else {
    iVar1 = 1;
    if (((int)param_2[0x13] <= (int)param_1[0x13]) &&
       (iVar1 = param_2[0x14] - param_1[0x14], iVar1 == 0)) {
      iVar1 = strcmp((char *)*param_1,(char *)*param_2);
    }
  }
  return iVar1;
}

