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

int rev_xstrcoll_df_extension(V a,V b)

{
  int iVar1;
  int iVar2;
  char *a_00;
  char *b_00;
  
  iVar2 = *(int *)((int)a + 0x6c);
  iVar1 = *(int *)((int)b + 0x6c);
  if ((iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9)) {
    if ((iVar2 == 3 || iVar2 == 9) || (iVar2 = 1, iVar1 != 9 && iVar1 != 3)) {
                    /* 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 = "";
      }
      iVar2 = xstrcoll(a_00,b_00);
      if (iVar2 == 0) {
                    /* WARNING: Load size is inaccurate */
                    /* WARNING: Load size is inaccurate */
        iVar2 = xstrcoll(*b,*a);
        return iVar2;
      }
    }
  }
  else {
    iVar2 = -1;
  }
  return iVar2;
}



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

int FUN_0001a7f0(undefined4 *param_1,undefined4 *param_2)

{
  int iVar1;
  int iVar2;
  
  iVar2 = param_1[0x1b];
  iVar1 = param_2[0x1b];
  if ((iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9)) {
    if ((iVar2 == 3 || iVar2 == 9) || (iVar2 = 1, iVar1 != 9 && iVar1 != 3)) {
      strrchr((char *)*param_2,0x2e);
      strrchr((char *)*param_1,0x2e);
      iVar2 = FUN_00014f20();
      if (iVar2 == 0) {
        iVar2 = FUN_00014f20();
        return iVar2;
      }
    }
  }
  else {
    iVar2 = -1;
  }
  return iVar2;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014250
ADD EBX,0x20807
SUB ESP,0xc
MOV EDI,dword ptr [ESP + 0x20]
MOV ESI,dword ptr [ESP + 0x24]
MOV EAX,dword ptr [EDI + 0x6c]
MOV EDX,dword ptr [ESI + 0x6c]
CMP EAX,0x3
SETZ CL
CMP EAX,0x9
SETZ AL
OR ECX,EAX
CMP EDX,0x3
SETZ AL
CMP EDX,0x9
SETZ DL
OR DL,AL
JNZ 0x0001a832
TEST CL,CL
JNZ 0x0001a8a0
TEST CL,CL
JNZ 0x0001a850
MOV EAX,0x1
TEST DL,DL
JZ 0x0001a850
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
PUSH 0x2e
PUSH dword ptr [ESI]
CALL 0x00012590
POP EDX
POP ECX
PUSH 0x2e
PUSH dword ptr [EDI]
MOV EBP,EAX
CALL 0x00012590
LEA EDX,[EBX + 0xffff29a1]
ADD ESP,0x10
TEST EAX,EAX
CMOVZ EAX,EDX
TEST EBP,EBP
CMOVZ EBP,EDX
MOV EDX,EAX
MOV EAX,EBP
CALL 0x00014f20
TEST EAX,EAX
JNZ 0x0001a83f
MOV EDX,dword ptr [EDI]
MOV EAX,dword ptr [ESI]
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
JMP 0x00014f20
MOV EAX,0xffffffff
JMP 0x0001a83f
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_0001a7f0(undefined4 *param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = param_1[0x1b];\n  iVar1 = param_2[0x1b];\n  if ((iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9)) {\n    if ((iVar2 == 3 || iVar2 == 9) || (iVar2 = 1, iVar1 != 9 && iVar1 != 3)) {\n      strrchr((char *)*param_2,0x2e);\n      strrchr((char *)*param_1,0x2e);\n      iVar2 = FUN_00014f20();\n      if (iVar2 == 0) {\n        iVar2 = FUN_00014f20();\n        return iVar2;\n      }\n    }\n  }\n  else {\n    iVar2 = -1;\n  }\n  return iVar2;\n}\n\n" comment (function_definition "int FUN_0001a7f0(undefined4 *param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = param_1[0x1b];\n  iVar1 = param_2[0x1b];\n  if ((iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9)) {\n    if ((iVar2 == 3 || iVar2 == 9) || (iVar2 = 1, iVar1 != 9 && iVar1 != 3)) {\n      strrchr((char *)*param_2,0x2e);\n      strrchr((char *)*param_1,0x2e);\n      iVar2 = FUN_00014f20();\n      if (iVar2 == 0) {\n        iVar2 = FUN_00014f20();\n        return iVar2;\n      }\n    }\n  }\n  else {\n    iVar2 = -1;\n  }\n  return iVar2;\n}" primitive_type (function_declarator "FUN_0001a7f0(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  int iVar2;\n  \n  iVar2 = param_1[0x1b];\n  iVar1 = param_2[0x1b];\n  if ((iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9)) {\n    if ((iVar2 == 3 || iVar2 == 9) || (iVar2 = 1, iVar1 != 9 && iVar1 != 3)) {\n      strrchr((char *)*param_2,0x2e);\n      strrchr((char *)*param_1,0x2e);\n      iVar2 = FUN_00014f20();\n      if (iVar2 == 0) {\n        iVar2 = FUN_00014f20();\n        return iVar2;\n      }\n    }\n  }\n  else {\n    iVar2 = -1;\n  }\n  return iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = param_1[0x1b];" (assignment_expression "iVar2 = param_1[0x1b]" identifier = (subscript_expression "param_1[0x1b]" identifier [ number_literal ])) ;) (expression_statement "iVar1 = param_2[0x1b];" (assignment_expression "iVar1 = param_2[0x1b]" identifier = (subscript_expression "param_2[0x1b]" identifier [ number_literal ])) ;) (if_statement "if ((iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9)) {\n    if ((iVar2 == 3 || iVar2 == 9) || (iVar2 = 1, iVar1 != 9 && iVar1 != 3)) {\n      strrchr((char *)*param_2,0x2e);\n      strrchr((char *)*param_1,0x2e);\n      iVar2 = FUN_00014f20();\n      if (iVar2 == 0) {\n        iVar2 = FUN_00014f20();\n        return iVar2;\n      }\n    }\n  }\n  else {\n    iVar2 = -1;\n  }" if (parenthesized_expression "((iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9))" ( (binary_expression "(iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9)" (parenthesized_expression "(iVar1 == 9 || iVar1 == 3)" ( (binary_expression "iVar1 == 9 || iVar1 == 3" (binary_expression "iVar1 == 9" identifier == number_literal) || (binary_expression "iVar1 == 3" identifier == number_literal)) )) || (parenthesized_expression "(iVar2 != 3 && iVar2 != 9)" ( (binary_expression "iVar2 != 3 && iVar2 != 9" (binary_expression "iVar2 != 3" identifier != number_literal) && (binary_expression "iVar2 != 9" identifier != number_literal)) ))) )) (compound_statement "{\n    if ((iVar2 == 3 || iVar2 == 9) || (iVar2 = 1, iVar1 != 9 && iVar1 != 3)) {\n      strrchr((char *)*param_2,0x2e);\n      strrchr((char *)*param_1,0x2e);\n      iVar2 = FUN_00014f20();\n      if (iVar2 == 0) {\n        iVar2 = FUN_00014f20();\n        return iVar2;\n      }\n    }\n  }" { (if_statement "if ((iVar2 == 3 || iVar2 == 9) || (iVar2 = 1, iVar1 != 9 && iVar1 != 3)) {\n      strrchr((char *)*param_2,0x2e);\n      strrchr((char *)*param_1,0x2e);\n      iVar2 = FUN_00014f20();\n      if (iVar2 == 0) {\n        iVar2 = FUN_00014f20();\n        return iVar2;\n      }\n    }" if (parenthesized_expression "((iVar2 == 3 || iVar2 == 9) || (iVar2 = 1, iVar1 != 9 && iVar1 != 3))" ( (binary_expression "(iVar2 == 3 || iVar2 == 9) || (iVar2 = 1, iVar1 != 9 && iVar1 != 3)" (parenthesized_expression "(iVar2 == 3 || iVar2 == 9)" ( (binary_expression "iVar2 == 3 || iVar2 == 9" (binary_expression "iVar2 == 3" identifier == number_literal) || (binary_expression "iVar2 == 9" identifier == number_literal)) )) || (parenthesized_expression "(iVar2 = 1, iVar1 != 9 && iVar1 != 3)" ( (comma_expression "iVar2 = 1, iVar1 != 9 && iVar1 != 3" (assignment_expression "iVar2 = 1" identifier = number_literal) , (binary_expression "iVar1 != 9 && iVar1 != 3" (binary_expression "iVar1 != 9" identifier != number_literal) && (binary_expression "iVar1 != 3" identifier != number_literal))) ))) )) (compound_statement "{\n      strrchr((char *)*param_2,0x2e);\n      strrchr((char *)*param_1,0x2e);\n      iVar2 = FUN_00014f20();\n      if (iVar2 == 0) {\n        iVar2 = FUN_00014f20();\n        return iVar2;\n      }\n    }" { (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 "iVar2 = FUN_00014f20();" (assignment_expression "iVar2 = FUN_00014f20()" identifier = (call_expression "FUN_00014f20()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 == 0) {\n        iVar2 = FUN_00014f20();\n        return iVar2;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar2 = FUN_00014f20();\n        return iVar2;\n      }" { (expression_statement "iVar2 = FUN_00014f20();" (assignment_expression "iVar2 = FUN_00014f20()" identifier = (call_expression "FUN_00014f20()" identifier (argument_list "()" ( )))) ;) (return_statement "return iVar2;" return identifier ;) })) })) }) (else_clause "else {\n    iVar2 = -1;\n  }" else (compound_statement "{\n    iVar2 = -1;\n  }" { (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" identifier = number_literal) ;) }))) (return_statement "return iVar2;" 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 rev_xstrcoll_df_extension(V a,V b)\n\n{\n  int iVar1;\n  int iVar2;\n  char *a_00;\n  char *b_00;\n  \n  iVar2 = *(int *)((int)a + 0x6c);\n  iVar1 = *(int *)((int)b + 0x6c);\n  if ((iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9)) {\n    if ((iVar2 == 3 || iVar2 == 9) || (iVar2 = 1, iVar1 != 9 && iVar1 != 3)) {\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      iVar2 = xstrcoll(a_00,b_00);\n      if (iVar2 == 0) {\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n        iVar2 = xstrcoll(*b,*a);\n        return iVar2;\n      }\n    }\n  }\n  else {\n    iVar2 = -1;\n  }\n  return iVar2;\n}\n\n" comment comment (function_definition "int rev_xstrcoll_df_extension(V a,V b)\n\n{\n  int iVar1;\n  int iVar2;\n  char *a_00;\n  char *b_00;\n  \n  iVar2 = *(int *)((int)a + 0x6c);\n  iVar1 = *(int *)((int)b + 0x6c);\n  if ((iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9)) {\n    if ((iVar2 == 3 || iVar2 == 9) || (iVar2 = 1, iVar1 != 9 && iVar1 != 3)) {\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      iVar2 = xstrcoll(a_00,b_00);\n      if (iVar2 == 0) {\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n        iVar2 = xstrcoll(*b,*a);\n        return iVar2;\n      }\n    }\n  }\n  else {\n    iVar2 = -1;\n  }\n  return iVar2;\n}" primitive_type (function_declarator "rev_xstrcoll_df_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  int iVar1;\n  int iVar2;\n  char *a_00;\n  char *b_00;\n  \n  iVar2 = *(int *)((int)a + 0x6c);\n  iVar1 = *(int *)((int)b + 0x6c);\n  if ((iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9)) {\n    if ((iVar2 == 3 || iVar2 == 9) || (iVar2 = 1, iVar1 != 9 && iVar1 != 3)) {\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      iVar2 = xstrcoll(a_00,b_00);\n      if (iVar2 == 0) {\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n        iVar2 = xstrcoll(*b,*a);\n        return iVar2;\n      }\n    }\n  }\n  else {\n    iVar2 = -1;\n  }\n  return iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *a_00;" primitive_type (pointer_declarator "*a_00" * identifier) ;) (declaration "char *b_00;" primitive_type (pointer_declarator "*b_00" * identifier) ;) (expression_statement "iVar2 = *(int *)((int)a + 0x6c);" (assignment_expression "iVar2 = *(int *)((int)a + 0x6c)" identifier = (pointer_expression "*(int *)((int)a + 0x6c)" * (cast_expression "(int *)((int)a + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)a + 0x6c)" ( (binary_expression "(int)a + 0x6c" (cast_expression "(int)a" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "iVar1 = *(int *)((int)b + 0x6c);" (assignment_expression "iVar1 = *(int *)((int)b + 0x6c)" identifier = (pointer_expression "*(int *)((int)b + 0x6c)" * (cast_expression "(int *)((int)b + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)b + 0x6c)" ( (binary_expression "(int)b + 0x6c" (cast_expression "(int)b" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (if_statement "if ((iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9)) {\n    if ((iVar2 == 3 || iVar2 == 9) || (iVar2 = 1, iVar1 != 9 && iVar1 != 3)) {\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      iVar2 = xstrcoll(a_00,b_00);\n      if (iVar2 == 0) {\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n        iVar2 = xstrcoll(*b,*a);\n        return iVar2;\n      }\n    }\n  }\n  else {\n    iVar2 = -1;\n  }" if (parenthesized_expression "((iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9))" ( (binary_expression "(iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9)" (parenthesized_expression "(iVar1 == 9 || iVar1 == 3)" ( (binary_expression "iVar1 == 9 || iVar1 == 3" (binary_expression "iVar1 == 9" identifier == number_literal) || (binary_expression "iVar1 == 3" identifier == number_literal)) )) || (parenthesized_expression "(iVar2 != 3 && iVar2 != 9)" ( (binary_expression "iVar2 != 3 && iVar2 != 9" (binary_expression "iVar2 != 3" identifier != number_literal) && (binary_expression "iVar2 != 9" identifier != number_literal)) ))) )) (compound_statement "{\n    if ((iVar2 == 3 || iVar2 == 9) || (iVar2 = 1, iVar1 != 9 && iVar1 != 3)) {\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      iVar2 = xstrcoll(a_00,b_00);\n      if (iVar2 == 0) {\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n        iVar2 = xstrcoll(*b,*a);\n        return iVar2;\n      }\n    }\n  }" { (if_statement "if ((iVar2 == 3 || iVar2 == 9) || (iVar2 = 1, iVar1 != 9 && iVar1 != 3)) {\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      iVar2 = xstrcoll(a_00,b_00);\n      if (iVar2 == 0) {\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n        iVar2 = xstrcoll(*b,*a);\n        return iVar2;\n      }\n    }" if (parenthesized_expression "((iVar2 == 3 || iVar2 == 9) || (iVar2 = 1, iVar1 != 9 && iVar1 != 3))" ( (binary_expression "(iVar2 == 3 || iVar2 == 9) || (iVar2 = 1, iVar1 != 9 && iVar1 != 3)" (parenthesized_expression "(iVar2 == 3 || iVar2 == 9)" ( (binary_expression "iVar2 == 3 || iVar2 == 9" (binary_expression "iVar2 == 3" identifier == number_literal) || (binary_expression "iVar2 == 9" identifier == number_literal)) )) || (parenthesized_expression "(iVar2 = 1, iVar1 != 9 && iVar1 != 3)" ( (comma_expression "iVar2 = 1, iVar1 != 9 && iVar1 != 3" (assignment_expression "iVar2 = 1" identifier = number_literal) , (binary_expression "iVar1 != 9 && iVar1 != 3" (binary_expression "iVar1 != 9" identifier != number_literal) && (binary_expression "iVar1 != 3" identifier != number_literal))) ))) )) (compound_statement "{\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      iVar2 = xstrcoll(a_00,b_00);\n      if (iVar2 == 0) {\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n        iVar2 = xstrcoll(*b,*a);\n        return iVar2;\n      }\n    }" { 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 "iVar2 = xstrcoll(a_00,b_00);" (assignment_expression "iVar2 = 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 (iVar2 == 0) {\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n        iVar2 = xstrcoll(*b,*a);\n        return iVar2;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n        iVar2 = xstrcoll(*b,*a);\n        return iVar2;\n      }" { comment comment (expression_statement "iVar2 = xstrcoll(*b,*a);" (assignment_expression "iVar2 = 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 iVar2;" return identifier ;) })) })) }) (else_clause "else {\n    iVar2 = -1;\n  }" else (compound_statement "{\n    iVar2 = -1;\n  }" { (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" identifier = number_literal) ;) }))) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "int FUN_0001a7f0(undefined4 *param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = param_1[0x1b];\n  iVar1 = param_2[0x1b];\n  if ((iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9)) {\n    if ((iVar2 == 3 || iVar2 == 9) || (iVar2 = 1, iVar1 != 9 && iVar1 != 3)) {\n      strrchr((char *)*param_2,0x2e);\n      strrchr((char *)*param_1,0x2e);\n      iVar2 = FUN_00014f20();\n      if (iVar2 == 0) {\n        iVar2 = FUN_00014f20();\n        return iVar2;\n      }\n    }\n  }\n  else {\n    iVar2 = -1;\n  }\n  return iVar2;\n}\n\n" (function_definition "int FUN_0001a7f0(undefined4 *param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = param_1[0x1b];\n  iVar1 = param_2[0x1b];\n  if ((iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9)) {\n    if ((iVar2 == 3 || iVar2 == 9) || (iVar2 = 1, iVar1 != 9 && iVar1 != 3)) {\n      strrchr((char *)*param_2,0x2e);\n      strrchr((char *)*param_1,0x2e);\n      iVar2 = FUN_00014f20();\n      if (iVar2 == 0) {\n        iVar2 = FUN_00014f20();\n        return iVar2;\n      }\n    }\n  }\n  else {\n    iVar2 = -1;\n  }\n  return iVar2;\n}" primitive_type (function_declarator "FUN_0001a7f0(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  int iVar2;\n  \n  iVar2 = param_1[0x1b];\n  iVar1 = param_2[0x1b];\n  if ((iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9)) {\n    if ((iVar2 == 3 || iVar2 == 9) || (iVar2 = 1, iVar1 != 9 && iVar1 != 3)) {\n      strrchr((char *)*param_2,0x2e);\n      strrchr((char *)*param_1,0x2e);\n      iVar2 = FUN_00014f20();\n      if (iVar2 == 0) {\n        iVar2 = FUN_00014f20();\n        return iVar2;\n      }\n    }\n  }\n  else {\n    iVar2 = -1;\n  }\n  return iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = param_1[0x1b];" (assignment_expression "iVar2 = param_1[0x1b]" identifier = (subscript_expression "param_1[0x1b]" identifier [ number_literal ])) ;) (expression_statement "iVar1 = param_2[0x1b];" (assignment_expression "iVar1 = param_2[0x1b]" identifier = (subscript_expression "param_2[0x1b]" identifier [ number_literal ])) ;) (if_statement "if ((iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9)) {\n    if ((iVar2 == 3 || iVar2 == 9) || (iVar2 = 1, iVar1 != 9 && iVar1 != 3)) {\n      strrchr((char *)*param_2,0x2e);\n      strrchr((char *)*param_1,0x2e);\n      iVar2 = FUN_00014f20();\n      if (iVar2 == 0) {\n        iVar2 = FUN_00014f20();\n        return iVar2;\n      }\n    }\n  }\n  else {\n    iVar2 = -1;\n  }" if (parenthesized_expression "((iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9))" ( (binary_expression "(iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9)" (parenthesized_expression "(iVar1 == 9 || iVar1 == 3)" ( (binary_expression "iVar1 == 9 || iVar1 == 3" (binary_expression "iVar1 == 9" identifier == number_literal) || (binary_expression "iVar1 == 3" identifier == number_literal)) )) || (parenthesized_expression "(iVar2 != 3 && iVar2 != 9)" ( (binary_expression "iVar2 != 3 && iVar2 != 9" (binary_expression "iVar2 != 3" identifier != number_literal) && (binary_expression "iVar2 != 9" identifier != number_literal)) ))) )) (compound_statement "{\n    if ((iVar2 == 3 || iVar2 == 9) || (iVar2 = 1, iVar1 != 9 && iVar1 != 3)) {\n      strrchr((char *)*param_2,0x2e);\n      strrchr((char *)*param_1,0x2e);\n      iVar2 = FUN_00014f20();\n      if (iVar2 == 0) {\n        iVar2 = FUN_00014f20();\n        return iVar2;\n      }\n    }\n  }" { (if_statement "if ((iVar2 == 3 || iVar2 == 9) || (iVar2 = 1, iVar1 != 9 && iVar1 != 3)) {\n      strrchr((char *)*param_2,0x2e);\n      strrchr((char *)*param_1,0x2e);\n      iVar2 = FUN_00014f20();\n      if (iVar2 == 0) {\n        iVar2 = FUN_00014f20();\n        return iVar2;\n      }\n    }" if (parenthesized_expression "((iVar2 == 3 || iVar2 == 9) || (iVar2 = 1, iVar1 != 9 && iVar1 != 3))" ( (binary_expression "(iVar2 == 3 || iVar2 == 9) || (iVar2 = 1, iVar1 != 9 && iVar1 != 3)" (parenthesized_expression "(iVar2 == 3 || iVar2 == 9)" ( (binary_expression "iVar2 == 3 || iVar2 == 9" (binary_expression "iVar2 == 3" identifier == number_literal) || (binary_expression "iVar2 == 9" identifier == number_literal)) )) || (parenthesized_expression "(iVar2 = 1, iVar1 != 9 && iVar1 != 3)" ( (comma_expression "iVar2 = 1, iVar1 != 9 && iVar1 != 3" (assignment_expression "iVar2 = 1" identifier = number_literal) , (binary_expression "iVar1 != 9 && iVar1 != 3" (binary_expression "iVar1 != 9" identifier != number_literal) && (binary_expression "iVar1 != 3" identifier != number_literal))) ))) )) (compound_statement "{\n      strrchr((char *)*param_2,0x2e);\n      strrchr((char *)*param_1,0x2e);\n      iVar2 = FUN_00014f20();\n      if (iVar2 == 0) {\n        iVar2 = FUN_00014f20();\n        return iVar2;\n      }\n    }" { (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 "iVar2 = FUN_00014f20();" (assignment_expression "iVar2 = FUN_00014f20()" identifier = (call_expression "FUN_00014f20()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 == 0) {\n        iVar2 = FUN_00014f20();\n        return iVar2;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar2 = FUN_00014f20();\n        return iVar2;\n      }" { (expression_statement "iVar2 = FUN_00014f20();" (assignment_expression "iVar2 = FUN_00014f20()" identifier = (call_expression "FUN_00014f20()" identifier (argument_list "()" ( )))) ;) (return_statement "return iVar2;" return identifier ;) })) })) }) (else_clause "else {\n    iVar2 = -1;\n  }" else (compound_statement "{\n    iVar2 = -1;\n  }" { (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" identifier = number_literal) ;) }))) (return_statement "return iVar2;" 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 ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT == LIT) || (binary_expression IDENT == LIT)) )) || (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) && (binary_expression IDENT != LIT)) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT == LIT) || (binary_expression IDENT == LIT)) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = LIT) , (binary_expression (binary_expression IDENT != LIT) && (binary_expression IDENT != LIT))) ))) )) (compound_statement { (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 (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (return_statement return IDENT ;) })) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) (return_statement return IDENT ;) })))
(function_definition "int FUN_0001a7f0(undefined4 *param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = param_1[0x1b];\n  iVar1 = param_2[0x1b];\n  if ((iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9)) {\n    if ((iVar2 == 3 || iVar2 == 9) || (iVar2 = 1, iVar1 != 9 && iVar1 != 3)) {\n      strrchr((char *)*param_2,0x2e);\n      strrchr((char *)*param_1,0x2e);\n      iVar2 = FUN_00014f20();\n      if (iVar2 == 0) {\n        iVar2 = FUN_00014f20();\n        return iVar2;\n      }\n    }\n  }\n  else {\n    iVar2 = -1;\n  }\n  return iVar2;\n}" (primitive_type "int") (function_declarator "FUN_0001a7f0(undefined4 *param_1,undefined4 *param_2)" (identifier "FUN_0001a7f0") (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  int iVar2;\n  \n  iVar2 = param_1[0x1b];\n  iVar1 = param_2[0x1b];\n  if ((iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9)) {\n    if ((iVar2 == 3 || iVar2 == 9) || (iVar2 = 1, iVar1 != 9 && iVar1 != 3)) {\n      strrchr((char *)*param_2,0x2e);\n      strrchr((char *)*param_1,0x2e);\n      iVar2 = FUN_00014f20();\n      if (iVar2 == 0) {\n        iVar2 = FUN_00014f20();\n        return iVar2;\n      }\n    }\n  }\n  else {\n    iVar2 = -1;\n  }\n  return iVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "iVar2 = param_1[0x1b];" (assignment_expression "iVar2 = param_1[0x1b]" (identifier "iVar2") (= "=") (subscript_expression "param_1[0x1b]" (identifier "param_1") ([ "[") (number_literal "0x1b") (] "]"))) (; ";")) (expression_statement "iVar1 = param_2[0x1b];" (assignment_expression "iVar1 = param_2[0x1b]" (identifier "iVar1") (= "=") (subscript_expression "param_2[0x1b]" (identifier "param_2") ([ "[") (number_literal "0x1b") (] "]"))) (; ";")) (if_statement "if ((iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9)) {\n    if ((iVar2 == 3 || iVar2 == 9) || (iVar2 = 1, iVar1 != 9 && iVar1 != 3)) {\n      strrchr((char *)*param_2,0x2e);\n      strrchr((char *)*param_1,0x2e);\n      iVar2 = FUN_00014f20();\n      if (iVar2 == 0) {\n        iVar2 = FUN_00014f20();\n        return iVar2;\n      }\n    }\n  }\n  else {\n    iVar2 = -1;\n  }" (if "if") (parenthesized_expression "((iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9))" (( "(") (binary_expression "(iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9)" (parenthesized_expression "(iVar1 == 9 || iVar1 == 3)" (( "(") (binary_expression "iVar1 == 9 || iVar1 == 3" (binary_expression "iVar1 == 9" (identifier "iVar1") (== "==") (number_literal "9")) (|| "||") (binary_expression "iVar1 == 3" (identifier "iVar1") (== "==") (number_literal "3"))) () ")")) (|| "||") (parenthesized_expression "(iVar2 != 3 && iVar2 != 9)" (( "(") (binary_expression "iVar2 != 3 && iVar2 != 9" (binary_expression "iVar2 != 3" (identifier "iVar2") (!= "!=") (number_literal "3")) (&& "&&") (binary_expression "iVar2 != 9" (identifier "iVar2") (!= "!=") (number_literal "9"))) () ")"))) () ")")) (compound_statement "{\n    if ((iVar2 == 3 || iVar2 == 9) || (iVar2 = 1, iVar1 != 9 && iVar1 != 3)) {\n      strrchr((char *)*param_2,0x2e);\n      strrchr((char *)*param_1,0x2e);\n      iVar2 = FUN_00014f20();\n      if (iVar2 == 0) {\n        iVar2 = FUN_00014f20();\n        return iVar2;\n      }\n    }\n  }" ({ "{") (if_statement "if ((iVar2 == 3 || iVar2 == 9) || (iVar2 = 1, iVar1 != 9 && iVar1 != 3)) {\n      strrchr((char *)*param_2,0x2e);\n      strrchr((char *)*param_1,0x2e);\n      iVar2 = FUN_00014f20();\n      if (iVar2 == 0) {\n        iVar2 = FUN_00014f20();\n        return iVar2;\n      }\n    }" (if "if") (parenthesized_expression "((iVar2 == 3 || iVar2 == 9) || (iVar2 = 1, iVar1 != 9 && iVar1 != 3))" (( "(") (binary_expression "(iVar2 == 3 || iVar2 == 9) || (iVar2 = 1, iVar1 != 9 && iVar1 != 3)" (parenthesized_expression "(iVar2 == 3 || iVar2 == 9)" (( "(") (binary_expression "iVar2 == 3 || iVar2 == 9" (binary_expression "iVar2 == 3" (identifier "iVar2") (== "==") (number_literal "3")) (|| "||") (binary_expression "iVar2 == 9" (identifier "iVar2") (== "==") (number_literal "9"))) () ")")) (|| "||") (parenthesized_expression "(iVar2 = 1, iVar1 != 9 && iVar1 != 3)" (( "(") (comma_expression "iVar2 = 1, iVar1 != 9 && iVar1 != 3" (assignment_expression "iVar2 = 1" (identifier "iVar2") (= "=") (number_literal "1")) (, ",") (binary_expression "iVar1 != 9 && iVar1 != 3" (binary_expression "iVar1 != 9" (identifier "iVar1") (!= "!=") (number_literal "9")) (&& "&&") (binary_expression "iVar1 != 3" (identifier "iVar1") (!= "!=") (number_literal "3")))) () ")"))) () ")")) (compound_statement "{\n      strrchr((char *)*param_2,0x2e);\n      strrchr((char *)*param_1,0x2e);\n      iVar2 = FUN_00014f20();\n      if (iVar2 == 0) {\n        iVar2 = FUN_00014f20();\n        return iVar2;\n      }\n    }" ({ "{") (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 "iVar2 = FUN_00014f20();" (assignment_expression "iVar2 = FUN_00014f20()" (identifier "iVar2") (= "=") (call_expression "FUN_00014f20()" (identifier "FUN_00014f20") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n        iVar2 = FUN_00014f20();\n        return iVar2;\n      }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        iVar2 = FUN_00014f20();\n        return iVar2;\n      }" ({ "{") (expression_statement "iVar2 = FUN_00014f20();" (assignment_expression "iVar2 = FUN_00014f20()" (identifier "iVar2") (= "=") (call_expression "FUN_00014f20()" (identifier "FUN_00014f20") (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}"))) (} "}"))) (} "}")) (else_clause "else {\n    iVar2 = -1;\n  }" (else "else") (compound_statement "{\n    iVar2 = -1;\n  }" ({ "{") (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" (identifier "iVar2") (= "=") (number_literal "-1")) (; ";")) (} "}")))) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}")))

/* 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;
  int var_2;
  char *var_5;
  char *var_4;
  
  var_2 = *(int *)((int)a + 0x6c);
  var_1 = *(int *)((int)b + 0x6c);
  if ((var_1 == 9 || var_1 == 3) || (var_2 != 3 && var_2 != 9)) {
    if ((var_2 == 3 || var_2 == 9) || (var_2 = 1, var_1 != 9 && var_1 != 3)) {
                    /* WARNING: Load size is inaccurate */
      var_5 = var_3(*b,0x2e);
                    /* WARNING: Load size is inaccurate */
      var_4 = var_3(*a,0x2e);
      if (var_4 == (char *)0x0) {
        var_4 = "";
      }
      if (var_5 == (char *)0x0) {
        var_5 = "";
      }
      var_2 = var_6(var_5,var_4);
      if (var_2 == 0) {
                    /* WARNING: Load size is inaccurate */
                    /* WARNING: Load size is inaccurate */
        var_2 = var_6(*b,*a);
        return var_2;
      }
    }
  }
  else {
    var_2 = -1;
  }
  return var_2;
}


(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)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) right: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (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 (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (return_statement (identifier))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (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;
  int iVar2;
  
  iVar2 = param_1[0x1b];
  iVar1 = param_2[0x1b];
  if ((iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9)) {
    if ((iVar2 == 3 || iVar2 == 9) || (iVar2 = 1, iVar1 != 9 && iVar1 != 3)) {
      strrchr((char *)*param_2,0x2e);
      strrchr((char *)*param_1,0x2e);
      iVar2 = FUN_00014f20();
      if (iVar2 == 0) {
        iVar2 = FUN_00014f20();
        return iVar2;
      }
    }
  }
  else {
    iVar2 = -1;
  }
  return iVar2;
}

