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

int rev_xstrcoll_name(V a,V b)

{
  char *__s1;
  char *__s2;
  int *piVar1;
  int iVar2;
  
                    /* WARNING: Load size is inaccurate */
  __s1 = *b;
                    /* WARNING: Load size is inaccurate */
  __s2 = *a;
  piVar1 = __errno_location();
  *piVar1 = 0;
  iVar2 = strcoll(__s1,__s2);
  return iVar2;
}



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

void FUN_00016560(undefined4 *param_1,undefined4 *param_2)

{
  char *__s1;
  char *__s2;
  int *piVar1;
  
  __s1 = (char *)*param_2;
  __s2 = (char *)*param_1;
  piVar1 = __errno_location();
  *piVar1 = 0;
  strcoll(__s1,__s2);
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EAX,dword ptr [ESP + 0x14]
CALL 0x000142a0
ADD EBX,0x26a94
MOV ESI,dword ptr [EAX]
MOV EAX,dword ptr [ESP + 0x10]
MOV EDI,dword ptr [EAX]
CALL 0x000124a0
SUB ESP,0x8
MOV dword ptr [EAX],0x0
PUSH EDI
PUSH ESI
CALL 0x00012360
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00016560(undefined4 *param_1,undefined4 *param_2)\n\n{\n  char *__s1;\n  char *__s2;\n  int *piVar1;\n  \n  __s1 = (char *)*param_2;\n  __s2 = (char *)*param_1;\n  piVar1 = __errno_location();\n  *piVar1 = 0;\n  strcoll(__s1,__s2);\n  return;\n}\n\n" comment (function_definition "void FUN_00016560(undefined4 *param_1,undefined4 *param_2)\n\n{\n  char *__s1;\n  char *__s2;\n  int *piVar1;\n  \n  __s1 = (char *)*param_2;\n  __s2 = (char *)*param_1;\n  piVar1 = __errno_location();\n  *piVar1 = 0;\n  strcoll(__s1,__s2);\n  return;\n}" primitive_type (function_declarator "FUN_00016560(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  char *__s1;\n  char *__s2;\n  int *piVar1;\n  \n  __s1 = (char *)*param_2;\n  __s2 = (char *)*param_1;\n  piVar1 = __errno_location();\n  *piVar1 = 0;\n  strcoll(__s1,__s2);\n  return;\n}" { (declaration "char *__s1;" primitive_type (pointer_declarator "*__s1" * identifier) ;) (declaration "char *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (expression_statement "__s1 = (char *)*param_2;" (assignment_expression "__s1 = (char *)*param_2" identifier = (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (expression_statement "__s2 = (char *)*param_1;" (assignment_expression "__s2 = (char *)*param_1" identifier = (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "piVar1 = __errno_location();" (assignment_expression "piVar1 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "*piVar1 = 0;" (assignment_expression "*piVar1 = 0" (pointer_expression "*piVar1" * identifier) = number_literal) ;) (expression_statement "strcoll(__s1,__s2);" (call_expression "strcoll(__s1,__s2)" identifier (argument_list "(__s1,__s2)" ( identifier , identifier ))) ;) (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 rev_xstrcoll_name(V a,V b)\n\n{\n  char *__s1;\n  char *__s2;\n  int *piVar1;\n  int iVar2;\n  \n                    /* WARNING: Load size is inaccurate */\n  __s1 = *b;\n                    /* WARNING: Load size is inaccurate */\n  __s2 = *a;\n  piVar1 = __errno_location();\n  *piVar1 = 0;\n  iVar2 = strcoll(__s1,__s2);\n  return iVar2;\n}\n\n" comment comment (function_definition "int rev_xstrcoll_name(V a,V b)\n\n{\n  char *__s1;\n  char *__s2;\n  int *piVar1;\n  int iVar2;\n  \n                    /* WARNING: Load size is inaccurate */\n  __s1 = *b;\n                    /* WARNING: Load size is inaccurate */\n  __s2 = *a;\n  piVar1 = __errno_location();\n  *piVar1 = 0;\n  iVar2 = strcoll(__s1,__s2);\n  return iVar2;\n}" primitive_type (function_declarator "rev_xstrcoll_name(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  char *__s1;\n  char *__s2;\n  int *piVar1;\n  int iVar2;\n  \n                    /* WARNING: Load size is inaccurate */\n  __s1 = *b;\n                    /* WARNING: Load size is inaccurate */\n  __s2 = *a;\n  piVar1 = __errno_location();\n  *piVar1 = 0;\n  iVar2 = strcoll(__s1,__s2);\n  return iVar2;\n}" { (declaration "char *__s1;" primitive_type (pointer_declarator "*__s1" * identifier) ;) (declaration "char *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) comment (expression_statement "__s1 = *b;" (assignment_expression "__s1 = *b" identifier = (pointer_expression "*b" * identifier)) ;) comment (expression_statement "__s2 = *a;" (assignment_expression "__s2 = *a" identifier = (pointer_expression "*a" * identifier)) ;) (expression_statement "piVar1 = __errno_location();" (assignment_expression "piVar1 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "*piVar1 = 0;" (assignment_expression "*piVar1 = 0" (pointer_expression "*piVar1" * identifier) = number_literal) ;) (expression_statement "iVar2 = strcoll(__s1,__s2);" (assignment_expression "iVar2 = strcoll(__s1,__s2)" identifier = (call_expression "strcoll(__s1,__s2)" identifier (argument_list "(__s1,__s2)" ( identifier , identifier )))) ;) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "void FUN_00016560(undefined4 *param_1,undefined4 *param_2)\n\n{\n  char *__s1;\n  char *__s2;\n  int *piVar1;\n  \n  __s1 = (char *)*param_2;\n  __s2 = (char *)*param_1;\n  piVar1 = __errno_location();\n  *piVar1 = 0;\n  strcoll(__s1,__s2);\n  return;\n}\n\n" (function_definition "void FUN_00016560(undefined4 *param_1,undefined4 *param_2)\n\n{\n  char *__s1;\n  char *__s2;\n  int *piVar1;\n  \n  __s1 = (char *)*param_2;\n  __s2 = (char *)*param_1;\n  piVar1 = __errno_location();\n  *piVar1 = 0;\n  strcoll(__s1,__s2);\n  return;\n}" primitive_type (function_declarator "FUN_00016560(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  char *__s1;\n  char *__s2;\n  int *piVar1;\n  \n  __s1 = (char *)*param_2;\n  __s2 = (char *)*param_1;\n  piVar1 = __errno_location();\n  *piVar1 = 0;\n  strcoll(__s1,__s2);\n  return;\n}" { (declaration "char *__s1;" primitive_type (pointer_declarator "*__s1" * identifier) ;) (declaration "char *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (expression_statement "__s1 = (char *)*param_2;" (assignment_expression "__s1 = (char *)*param_2" identifier = (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (expression_statement "__s2 = (char *)*param_1;" (assignment_expression "__s2 = (char *)*param_1" identifier = (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "piVar1 = __errno_location();" (assignment_expression "piVar1 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "*piVar1 = 0;" (assignment_expression "*piVar1 = 0" (pointer_expression "*piVar1" * identifier) = number_literal) ;) (expression_statement "strcoll(__s1,__s2);" (call_expression "strcoll(__s1,__s2)" identifier (argument_list "(__s1,__s2)" ( identifier , identifier ))) ;) (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 { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00016560(undefined4 *param_1,undefined4 *param_2)\n\n{\n  char *__s1;\n  char *__s2;\n  int *piVar1;\n  \n  __s1 = (char *)*param_2;\n  __s2 = (char *)*param_1;\n  piVar1 = __errno_location();\n  *piVar1 = 0;\n  strcoll(__s1,__s2);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00016560(undefined4 *param_1,undefined4 *param_2)" (identifier "FUN_00016560") (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  char *__s1;\n  char *__s2;\n  int *piVar1;\n  \n  __s1 = (char *)*param_2;\n  __s2 = (char *)*param_1;\n  piVar1 = __errno_location();\n  *piVar1 = 0;\n  strcoll(__s1,__s2);\n  return;\n}" ({ "{") (declaration "char *__s1;" (primitive_type "char") (pointer_declarator "*__s1" (* "*") (identifier "__s1")) (; ";")) (declaration "char *__s2;" (primitive_type "char") (pointer_declarator "*__s2" (* "*") (identifier "__s2")) (; ";")) (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (expression_statement "__s1 = (char *)*param_2;" (assignment_expression "__s1 = (char *)*param_2" (identifier "__s1") (= "=") (cast_expression "(char *)*param_2" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (expression_statement "__s2 = (char *)*param_1;" (assignment_expression "__s2 = (char *)*param_1" (identifier "__s2") (= "=") (cast_expression "(char *)*param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "piVar1 = __errno_location();" (assignment_expression "piVar1 = __errno_location()" (identifier "piVar1") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*piVar1 = 0;" (assignment_expression "*piVar1 = 0" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "strcoll(__s1,__s2);" (call_expression "strcoll(__s1,__s2)" (identifier "strcoll") (argument_list "(__s1,__s2)" (( "(") (identifier "__s1") (, ",") (identifier "__s2") () ")"))) (; ";")) (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(type_1 a,type_1 b)

{
  char *__s1;
  char *__s2;
  int *piVar1;
  int iVar2;
  
                    /* WARNING: Load size is inaccurate */
  __s1 = *b;
                    /* WARNING: Load size is inaccurate */
  __s2 = *a;
  piVar1 = var_1();
  *piVar1 = 0;
  iVar2 = var_2(__s1,__s2);
  return iVar2;
}


(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: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (return_statement))))

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

void MASKED(undefined4 *param_1,undefined4 *param_2)

{
  char *__s1;
  char *__s2;
  int *piVar1;
  
  __s1 = (char *)*param_2;
  __s2 = (char *)*param_1;
  piVar1 = __errno_location();
  *piVar1 = 0;
  strcoll(__s1,__s2);
  return;
}

