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

int cref_sort_array(void *a1,void *a2)

{
  int iVar1;
  
                    /* WARNING: Load size is inaccurate */
                    /* WARNING: Load size is inaccurate */
  if (demangling != 0) {
    iVar1 = strcmp(*(char **)(*a1 + 0xc),*(char **)(*a2 + 0xc));
    return iVar1;
  }
  iVar1 = strcmp(*(char **)(*a1 + 4),*(char **)(*a2 + 4));
  return iVar1;
}



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

void FUN_00034220(int *param_1,int *param_2)

{
  if (DAT_00084ba4 != 0) {
    strcmp(*(char **)(*param_1 + 0xc),*(char **)(*param_2 + 0xc));
    return;
  }
  strcmp(*(char **)(*param_1 + 4),*(char **)(*param_2 + 4));
  return;
}


PUSH EBX
CALL 0x000159c0
ADD EBX,0x4fdda
SUB ESP,0x8
MOV EAX,dword ptr [ESP + 0x14]
MOV EDX,dword ptr [EAX]
MOV EAX,dword ptr [ESP + 0x10]
LEA ECX,[EBX + 0xba4]
MOV EAX,dword ptr [EAX]
MOV ECX,dword ptr [ECX]
TEST ECX,ECX
JZ 0x00034260
SUB ESP,0x8
PUSH dword ptr [EDX + 0xc]
PUSH dword ptr [EAX + 0xc]
CALL 0x000140c0
ADD ESP,0x10
ADD ESP,0x8
POP EBX
RET
SUB ESP,0x8
PUSH dword ptr [EDX + 0x4]
PUSH dword ptr [EAX + 0x4]
CALL 0x000140c0
ADD ESP,0x10
ADD ESP,0x8
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00034220(int *param_1,int *param_2)\n\n{\n  if (DAT_00084ba4 != 0) {\n    strcmp(*(char **)(*param_1 + 0xc),*(char **)(*param_2 + 0xc));\n    return;\n  }\n  strcmp(*(char **)(*param_1 + 4),*(char **)(*param_2 + 4));\n  return;\n}\n\n" comment (function_definition "void FUN_00034220(int *param_1,int *param_2)\n\n{\n  if (DAT_00084ba4 != 0) {\n    strcmp(*(char **)(*param_1 + 0xc),*(char **)(*param_2 + 0xc));\n    return;\n  }\n  strcmp(*(char **)(*param_1 + 4),*(char **)(*param_2 + 4));\n  return;\n}" primitive_type (function_declarator "FUN_00034220(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  if (DAT_00084ba4 != 0) {\n    strcmp(*(char **)(*param_1 + 0xc),*(char **)(*param_2 + 0xc));\n    return;\n  }\n  strcmp(*(char **)(*param_1 + 4),*(char **)(*param_2 + 4));\n  return;\n}" { (if_statement "if (DAT_00084ba4 != 0) {\n    strcmp(*(char **)(*param_1 + 0xc),*(char **)(*param_2 + 0xc));\n    return;\n  }" if (parenthesized_expression "(DAT_00084ba4 != 0)" ( (binary_expression "DAT_00084ba4 != 0" identifier != number_literal) )) (compound_statement "{\n    strcmp(*(char **)(*param_1 + 0xc),*(char **)(*param_2 + 0xc));\n    return;\n  }" { (expression_statement "strcmp(*(char **)(*param_1 + 0xc),*(char **)(*param_2 + 0xc));" (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" (pointer_expression "*param_1" * 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" (pointer_expression "*param_2" * identifier) + number_literal) )))) ))) ;) (return_statement "return;" return ;) })) (expression_statement "strcmp(*(char **)(*param_1 + 4),*(char **)(*param_2 + 4));" (call_expression "strcmp(*(char **)(*param_1 + 4),*(char **)(*param_2 + 4))" identifier (argument_list "(*(char **)(*param_1 + 4),*(char **)(*param_2 + 4))" ( (pointer_expression "*(char **)(*param_1 + 4)" * (cast_expression "(char **)(*param_1 + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 4)" ( (binary_expression "*param_1 + 4" (pointer_expression "*param_1" * identifier) + number_literal) )))) , (pointer_expression "*(char **)(*param_2 + 4)" * (cast_expression "(char **)(*param_2 + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 4)" ( (binary_expression "*param_2 + 4" (pointer_expression "*param_2" * identifier) + number_literal) )))) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint cref_sort_array(void *a1,void *a2)\n\n{\n  int iVar1;\n  \n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n  if (demangling != 0) {\n    iVar1 = strcmp(*(char **)(*a1 + 0xc),*(char **)(*a2 + 0xc));\n    return iVar1;\n  }\n  iVar1 = strcmp(*(char **)(*a1 + 4),*(char **)(*a2 + 4));\n  return iVar1;\n}\n\n" comment comment (function_definition "int cref_sort_array(void *a1,void *a2)\n\n{\n  int iVar1;\n  \n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n  if (demangling != 0) {\n    iVar1 = strcmp(*(char **)(*a1 + 0xc),*(char **)(*a2 + 0xc));\n    return iVar1;\n  }\n  iVar1 = strcmp(*(char **)(*a1 + 4),*(char **)(*a2 + 4));\n  return iVar1;\n}" primitive_type (function_declarator "cref_sort_array(void *a1,void *a2)" identifier (parameter_list "(void *a1,void *a2)" ( (parameter_declaration "void *a1" primitive_type (pointer_declarator "*a1" * identifier)) , (parameter_declaration "void *a2" primitive_type (pointer_declarator "*a2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n  if (demangling != 0) {\n    iVar1 = strcmp(*(char **)(*a1 + 0xc),*(char **)(*a2 + 0xc));\n    return iVar1;\n  }\n  iVar1 = strcmp(*(char **)(*a1 + 4),*(char **)(*a2 + 4));\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) comment comment (if_statement "if (demangling != 0) {\n    iVar1 = strcmp(*(char **)(*a1 + 0xc),*(char **)(*a2 + 0xc));\n    return iVar1;\n  }" if (parenthesized_expression "(demangling != 0)" ( (binary_expression "demangling != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = strcmp(*(char **)(*a1 + 0xc),*(char **)(*a2 + 0xc));\n    return iVar1;\n  }" { (expression_statement "iVar1 = strcmp(*(char **)(*a1 + 0xc),*(char **)(*a2 + 0xc));" (assignment_expression "iVar1 = strcmp(*(char **)(*a1 + 0xc),*(char **)(*a2 + 0xc))" identifier = (call_expression "strcmp(*(char **)(*a1 + 0xc),*(char **)(*a2 + 0xc))" identifier (argument_list "(*(char **)(*a1 + 0xc),*(char **)(*a2 + 0xc))" ( (pointer_expression "*(char **)(*a1 + 0xc)" * (cast_expression "(char **)(*a1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*a1 + 0xc)" ( (binary_expression "*a1 + 0xc" (pointer_expression "*a1" * identifier) + number_literal) )))) , (pointer_expression "*(char **)(*a2 + 0xc)" * (cast_expression "(char **)(*a2 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*a2 + 0xc)" ( (binary_expression "*a2 + 0xc" (pointer_expression "*a2" * identifier) + number_literal) )))) )))) ;) (return_statement "return iVar1;" return identifier ;) })) (expression_statement "iVar1 = strcmp(*(char **)(*a1 + 4),*(char **)(*a2 + 4));" (assignment_expression "iVar1 = strcmp(*(char **)(*a1 + 4),*(char **)(*a2 + 4))" identifier = (call_expression "strcmp(*(char **)(*a1 + 4),*(char **)(*a2 + 4))" identifier (argument_list "(*(char **)(*a1 + 4),*(char **)(*a2 + 4))" ( (pointer_expression "*(char **)(*a1 + 4)" * (cast_expression "(char **)(*a1 + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*a1 + 4)" ( (binary_expression "*a1 + 4" (pointer_expression "*a1" * identifier) + number_literal) )))) , (pointer_expression "*(char **)(*a2 + 4)" * (cast_expression "(char **)(*a2 + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*a2 + 4)" ( (binary_expression "*a2 + 4" (pointer_expression "*a2" * identifier) + number_literal) )))) )))) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "void FUN_00034220(int *param_1,int *param_2)\n\n{\n  if (DAT_00084ba4 != 0) {\n    strcmp(*(char **)(*param_1 + 0xc),*(char **)(*param_2 + 0xc));\n    return;\n  }\n  strcmp(*(char **)(*param_1 + 4),*(char **)(*param_2 + 4));\n  return;\n}\n\n" (function_definition "void FUN_00034220(int *param_1,int *param_2)\n\n{\n  if (DAT_00084ba4 != 0) {\n    strcmp(*(char **)(*param_1 + 0xc),*(char **)(*param_2 + 0xc));\n    return;\n  }\n  strcmp(*(char **)(*param_1 + 4),*(char **)(*param_2 + 4));\n  return;\n}" primitive_type (function_declarator "FUN_00034220(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  if (DAT_00084ba4 != 0) {\n    strcmp(*(char **)(*param_1 + 0xc),*(char **)(*param_2 + 0xc));\n    return;\n  }\n  strcmp(*(char **)(*param_1 + 4),*(char **)(*param_2 + 4));\n  return;\n}" { (if_statement "if (DAT_00084ba4 != 0) {\n    strcmp(*(char **)(*param_1 + 0xc),*(char **)(*param_2 + 0xc));\n    return;\n  }" if (parenthesized_expression "(DAT_00084ba4 != 0)" ( (binary_expression "DAT_00084ba4 != 0" identifier != number_literal) )) (compound_statement "{\n    strcmp(*(char **)(*param_1 + 0xc),*(char **)(*param_2 + 0xc));\n    return;\n  }" { (expression_statement "strcmp(*(char **)(*param_1 + 0xc),*(char **)(*param_2 + 0xc));" (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" (pointer_expression "*param_1" * 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" (pointer_expression "*param_2" * identifier) + number_literal) )))) ))) ;) (return_statement "return;" return ;) })) (expression_statement "strcmp(*(char **)(*param_1 + 4),*(char **)(*param_2 + 4));" (call_expression "strcmp(*(char **)(*param_1 + 4),*(char **)(*param_2 + 4))" identifier (argument_list "(*(char **)(*param_1 + 4),*(char **)(*param_2 + 4))" ( (pointer_expression "*(char **)(*param_1 + 4)" * (cast_expression "(char **)(*param_1 + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 4)" ( (binary_expression "*param_1 + 4" (pointer_expression "*param_1" * identifier) + number_literal) )))) , (pointer_expression "*(char **)(*param_2 + 4)" * (cast_expression "(char **)(*param_2 + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 4)" ( (binary_expression "*param_2 + 4" (pointer_expression "*param_2" * identifier) + number_literal) )))) ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00034220(int *param_1,int *param_2)\n\n{\n  if (DAT_00084ba4 != 0) {\n    strcmp(*(char **)(*param_1 + 0xc),*(char **)(*param_2 + 0xc));\n    return;\n  }\n  strcmp(*(char **)(*param_1 + 4),*(char **)(*param_2 + 4));\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00034220(int *param_1,int *param_2)" (identifier "FUN_00034220") (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  if (DAT_00084ba4 != 0) {\n    strcmp(*(char **)(*param_1 + 0xc),*(char **)(*param_2 + 0xc));\n    return;\n  }\n  strcmp(*(char **)(*param_1 + 4),*(char **)(*param_2 + 4));\n  return;\n}" ({ "{") (if_statement "if (DAT_00084ba4 != 0) {\n    strcmp(*(char **)(*param_1 + 0xc),*(char **)(*param_2 + 0xc));\n    return;\n  }" (if "if") (parenthesized_expression "(DAT_00084ba4 != 0)" (( "(") (binary_expression "DAT_00084ba4 != 0" (identifier "DAT_00084ba4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    strcmp(*(char **)(*param_1 + 0xc),*(char **)(*param_2 + 0xc));\n    return;\n  }" ({ "{") (expression_statement "strcmp(*(char **)(*param_1 + 0xc),*(char **)(*param_2 + 0xc));" (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" (pointer_expression "*param_1" (* "*") (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" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "strcmp(*(char **)(*param_1 + 4),*(char **)(*param_2 + 4));" (call_expression "strcmp(*(char **)(*param_1 + 4),*(char **)(*param_2 + 4))" (identifier "strcmp") (argument_list "(*(char **)(*param_1 + 4),*(char **)(*param_2 + 4))" (( "(") (pointer_expression "*(char **)(*param_1 + 4)" (* "*") (cast_expression "(char **)(*param_1 + 4)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 4)" (( "(") (binary_expression "*param_1 + 4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "4")) () ")")))) (, ",") (pointer_expression "*(char **)(*param_2 + 4)" (* "*") (cast_expression "(char **)(*param_2 + 4)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_2 + 4)" (( "(") (binary_expression "*param_2 + 4" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "4")) () ")")))) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

int function_1(void *a1,void *a2)

{
  int iVar1;
  
                    /* WARNING: Load size is inaccurate */
                    /* WARNING: Load size is inaccurate */
  if (var_1 != 0) {
    iVar1 = var_2(*(char **)(*a1 + 0xc),*(char **)(*a2 + 0xc));
    return iVar1;
  }
  iVar1 = var_2(*(char **)(*a1 + 4),*(char **)(*a2 + 4));
  return iVar1;
}


(translation_unit (function_definition type: (primitive_type) 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 (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (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: (pointer_expression argument: (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: (pointer_expression argument: (identifier)) right: (number_literal)))))))) (return_statement))) (expression_statement (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: (pointer_expression argument: (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: (pointer_expression argument: (identifier)) right: (number_literal)))))))) (return_statement))))

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

void MASKED(int *param_1,int *param_2)

{
  if (DAT_00084ba4 != 0) {
    strcmp(*(char **)(*param_1 + 0xc),*(char **)(*param_2 + 0xc));
    return;
  }
  strcmp(*(char **)(*param_1 + 4),*(char **)(*param_2 + 4));
  return;
}

