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

int rev_xstrcoll_extension(V a,V b)

{
  char *a_00;
  char *b_00;
  int iVar1;
  
                    /* WARNING: Load size is inaccurate */
  a_00 = strrchr(*b,0x2e);
                    /* WARNING: Load size is inaccurate */
  b_00 = strrchr(*a,0x2e);
  if (b_00 == (char *)0x0) {
    b_00 = "";
  }
  if (a_00 == (char *)0x0) {
    a_00 = "";
  }
  iVar1 = xstrcoll(a_00,b_00);
  if (iVar1 == 0) {
                    /* WARNING: Load size is inaccurate */
                    /* WARNING: Load size is inaccurate */
    iVar1 = xstrcoll(*b,*a);
    return iVar1;
  }
  return iVar1;
}



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

void FUN_0001a1e0(undefined4 *param_1,undefined4 *param_2)

{
  int iVar1;
  
  strrchr((char *)*param_2,0x2e);
  strrchr((char *)*param_1,0x2e);
  iVar1 = FUN_00014f20();
  if (iVar1 == 0) {
    FUN_00014f20();
    return;
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014250
ADD EBX,0x20e17
SUB ESP,0x14
MOV EBP,dword ptr [ESP + 0x2c]
MOV EDI,dword ptr [ESP + 0x28]
PUSH 0x2e
PUSH dword ptr [EBP]
CALL 0x00012590
POP EDX
POP ECX
PUSH 0x2e
PUSH dword ptr [EDI]
MOV ESI,EAX
CALL 0x00012590
LEA EDX,[EBX + 0xffff29a1]
ADD ESP,0x10
TEST EAX,EAX
CMOVZ EAX,EDX
TEST ESI,ESI
CMOVZ ESI,EDX
MOV EDX,EAX
MOV EAX,ESI
CALL 0x00014f20
TEST EAX,EAX
JNZ 0x0001a248
MOV EDX,dword ptr [EDI]
MOV EAX,dword ptr [EBP]
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
JMP 0x00014f20
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0001a1e0(undefined4 *param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  \n  strrchr((char *)*param_2,0x2e);\n  strrchr((char *)*param_1,0x2e);\n  iVar1 = FUN_00014f20();\n  if (iVar1 == 0) {\n    FUN_00014f20();\n    return;\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_0001a1e0(undefined4 *param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  \n  strrchr((char *)*param_2,0x2e);\n  strrchr((char *)*param_1,0x2e);\n  iVar1 = FUN_00014f20();\n  if (iVar1 == 0) {\n    FUN_00014f20();\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0001a1e0(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  strrchr((char *)*param_2,0x2e);\n  strrchr((char *)*param_1,0x2e);\n  iVar1 = FUN_00014f20();\n  if (iVar1 == 0) {\n    FUN_00014f20();\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "strrchr((char *)*param_2,0x2e);" (call_expression "strrchr((char *)*param_2,0x2e)" identifier (argument_list "((char *)*param_2,0x2e)" ( (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)) , number_literal ))) ;) (expression_statement "strrchr((char *)*param_1,0x2e);" (call_expression "strrchr((char *)*param_1,0x2e)" identifier (argument_list "((char *)*param_1,0x2e)" ( (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) , number_literal ))) ;) (expression_statement "iVar1 = FUN_00014f20();" (assignment_expression "iVar1 = FUN_00014f20()" identifier = (call_expression "FUN_00014f20()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n    FUN_00014f20();\n    return;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    FUN_00014f20();\n    return;\n  }" { (expression_statement "FUN_00014f20();" (call_expression "FUN_00014f20()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (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_extension(V a,V b)\n\n{\n  char *a_00;\n  char *b_00;\n  int iVar1;\n  \n                    /* WARNING: Load size is inaccurate */\n  a_00 = strrchr(*b,0x2e);\n                    /* WARNING: Load size is inaccurate */\n  b_00 = strrchr(*a,0x2e);\n  if (b_00 == (char *)0x0) {\n    b_00 = "";\n  }\n  if (a_00 == (char *)0x0) {\n    a_00 = "";\n  }\n  iVar1 = xstrcoll(a_00,b_00);\n  if (iVar1 == 0) {\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n    iVar1 = xstrcoll(*b,*a);\n    return iVar1;\n  }\n  return iVar1;\n}\n\n" comment comment (function_definition "int rev_xstrcoll_extension(V a,V b)\n\n{\n  char *a_00;\n  char *b_00;\n  int iVar1;\n  \n                    /* WARNING: Load size is inaccurate */\n  a_00 = strrchr(*b,0x2e);\n                    /* WARNING: Load size is inaccurate */\n  b_00 = strrchr(*a,0x2e);\n  if (b_00 == (char *)0x0) {\n    b_00 = "";\n  }\n  if (a_00 == (char *)0x0) {\n    a_00 = "";\n  }\n  iVar1 = xstrcoll(a_00,b_00);\n  if (iVar1 == 0) {\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n    iVar1 = xstrcoll(*b,*a);\n    return iVar1;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "rev_xstrcoll_extension(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 *a_00;\n  char *b_00;\n  int iVar1;\n  \n                    /* WARNING: Load size is inaccurate */\n  a_00 = strrchr(*b,0x2e);\n                    /* WARNING: Load size is inaccurate */\n  b_00 = strrchr(*a,0x2e);\n  if (b_00 == (char *)0x0) {\n    b_00 = "";\n  }\n  if (a_00 == (char *)0x0) {\n    a_00 = "";\n  }\n  iVar1 = xstrcoll(a_00,b_00);\n  if (iVar1 == 0) {\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n    iVar1 = xstrcoll(*b,*a);\n    return iVar1;\n  }\n  return iVar1;\n}" { (declaration "char *a_00;" primitive_type (pointer_declarator "*a_00" * identifier) ;) (declaration "char *b_00;" primitive_type (pointer_declarator "*b_00" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) comment (expression_statement "a_00 = strrchr(*b,0x2e);" (assignment_expression "a_00 = strrchr(*b,0x2e)" identifier = (call_expression "strrchr(*b,0x2e)" identifier (argument_list "(*b,0x2e)" ( (pointer_expression "*b" * identifier) , number_literal )))) ;) comment (expression_statement "b_00 = strrchr(*a,0x2e);" (assignment_expression "b_00 = strrchr(*a,0x2e)" identifier = (call_expression "strrchr(*a,0x2e)" identifier (argument_list "(*a,0x2e)" ( (pointer_expression "*a" * identifier) , number_literal )))) ;) (if_statement "if (b_00 == (char *)0x0) {\n    b_00 = "";\n  }" if (parenthesized_expression "(b_00 == (char *)0x0)" ( (binary_expression "b_00 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    b_00 = "";\n  }" { (expression_statement "b_00 = "";" (assignment_expression "b_00 = """ identifier = (string_literal """" " ")) ;) })) (if_statement "if (a_00 == (char *)0x0) {\n    a_00 = "";\n  }" if (parenthesized_expression "(a_00 == (char *)0x0)" ( (binary_expression "a_00 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    a_00 = "";\n  }" { (expression_statement "a_00 = "";" (assignment_expression "a_00 = """ identifier = (string_literal """" " ")) ;) })) (expression_statement "iVar1 = xstrcoll(a_00,b_00);" (assignment_expression "iVar1 = xstrcoll(a_00,b_00)" identifier = (call_expression "xstrcoll(a_00,b_00)" identifier (argument_list "(a_00,b_00)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n    iVar1 = xstrcoll(*b,*a);\n    return iVar1;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n    iVar1 = xstrcoll(*b,*a);\n    return iVar1;\n  }" { comment comment (expression_statement "iVar1 = xstrcoll(*b,*a);" (assignment_expression "iVar1 = xstrcoll(*b,*a)" identifier = (call_expression "xstrcoll(*b,*a)" identifier (argument_list "(*b,*a)" ( (pointer_expression "*b" * identifier) , (pointer_expression "*a" * identifier) )))) ;) (return_statement "return iVar1;" return identifier ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "void FUN_0001a1e0(undefined4 *param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  \n  strrchr((char *)*param_2,0x2e);\n  strrchr((char *)*param_1,0x2e);\n  iVar1 = FUN_00014f20();\n  if (iVar1 == 0) {\n    FUN_00014f20();\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0001a1e0(undefined4 *param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  \n  strrchr((char *)*param_2,0x2e);\n  strrchr((char *)*param_1,0x2e);\n  iVar1 = FUN_00014f20();\n  if (iVar1 == 0) {\n    FUN_00014f20();\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0001a1e0(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  strrchr((char *)*param_2,0x2e);\n  strrchr((char *)*param_1,0x2e);\n  iVar1 = FUN_00014f20();\n  if (iVar1 == 0) {\n    FUN_00014f20();\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "strrchr((char *)*param_2,0x2e);" (call_expression "strrchr((char *)*param_2,0x2e)" identifier (argument_list "((char *)*param_2,0x2e)" ( (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)) , number_literal ))) ;) (expression_statement "strrchr((char *)*param_1,0x2e);" (call_expression "strrchr((char *)*param_1,0x2e)" identifier (argument_list "((char *)*param_1,0x2e)" ( (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) , number_literal ))) ;) (expression_statement "iVar1 = FUN_00014f20();" (assignment_expression "iVar1 = FUN_00014f20()" identifier = (call_expression "FUN_00014f20()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n    FUN_00014f20();\n    return;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    FUN_00014f20();\n    return;\n  }" { (expression_statement "FUN_00014f20();" (call_expression "FUN_00014f20()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (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 IDENT ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void FUN_0001a1e0(undefined4 *param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  \n  strrchr((char *)*param_2,0x2e);\n  strrchr((char *)*param_1,0x2e);\n  iVar1 = FUN_00014f20();\n  if (iVar1 == 0) {\n    FUN_00014f20();\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0001a1e0(undefined4 *param_1,undefined4 *param_2)" (identifier "FUN_0001a1e0") (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  strrchr((char *)*param_2,0x2e);\n  strrchr((char *)*param_1,0x2e);\n  iVar1 = FUN_00014f20();\n  if (iVar1 == 0) {\n    FUN_00014f20();\n    return;\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "strrchr((char *)*param_2,0x2e);" (call_expression "strrchr((char *)*param_2,0x2e)" (identifier "strrchr") (argument_list "((char *)*param_2,0x2e)" (( "(") (cast_expression "(char *)*param_2" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (, ",") (number_literal "0x2e") () ")"))) (; ";")) (expression_statement "strrchr((char *)*param_1,0x2e);" (call_expression "strrchr((char *)*param_1,0x2e)" (identifier "strrchr") (argument_list "((char *)*param_1,0x2e)" (( "(") (cast_expression "(char *)*param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (, ",") (number_literal "0x2e") () ")"))) (; ";")) (expression_statement "iVar1 = FUN_00014f20();" (assignment_expression "iVar1 = FUN_00014f20()" (identifier "iVar1") (= "=") (call_expression "FUN_00014f20()" (identifier "FUN_00014f20") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    FUN_00014f20();\n    return;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_00014f20();\n    return;\n  }" ({ "{") (expression_statement "FUN_00014f20();" (call_expression "FUN_00014f20()" (identifier "FUN_00014f20") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (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 *var_3;
  char *var_2;
  int var_5;
  
                    /* WARNING: Load size is inaccurate */
  var_3 = var_1(*b,0x2e);
                    /* WARNING: Load size is inaccurate */
  var_2 = var_1(*a,0x2e);
  if (var_2 == (char *)0x0) {
    var_2 = "";
  }
  if (var_3 == (char *)0x0) {
    var_3 = "";
  }
  var_5 = var_4(var_3,var_2);
  if (var_5 == 0) {
                    /* WARNING: Load size is inaccurate */
                    /* WARNING: Load size is inaccurate */
    var_5 = var_4(*b,*a);
    return var_5;
  }
  return var_5;
}


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

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

void MASKED(undefined4 *param_1,undefined4 *param_2)

{
  int iVar1;
  
  strrchr((char *)*param_2,0x2e);
  strrchr((char *)*param_1,0x2e);
  iVar1 = FUN_00014f20();
  if (iVar1 == 0) {
    FUN_00014f20();
    return;
  }
  return;
}

