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

int rev_strcmp_extension(V a,V b)

{
  char *__s;
  char *__s_00;
  char *__s1;
  char *__s2;
  int iVar1;
  
                    /* WARNING: Load size is inaccurate */
  __s = *b;
  __s1 = strrchr(__s,0x2e);
                    /* WARNING: Load size is inaccurate */
  __s_00 = *a;
  __s2 = strrchr(__s_00,0x2e);
  if (__s2 == (char *)0x0) {
    __s2 = "";
    if (__s1 == (char *)0x0) goto LAB_0001a91a;
  }
  else if (__s1 == (char *)0x0) {
    __s1 = "";
  }
  iVar1 = strcmp(__s1,__s2);
  if (iVar1 != 0) {
    return iVar1;
  }
LAB_0001a91a:
  iVar1 = strcmp(__s,__s_00);
  return iVar1;
}



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

void FUN_0001a8b0(undefined4 *param_1,undefined4 *param_2)

{
  char *__s;
  char *__s_00;
  char *__s1;
  char *__s2;
  int iVar1;
  
  __s = (char *)*param_2;
  __s1 = strrchr(__s,0x2e);
  __s_00 = (char *)*param_1;
  __s2 = strrchr(__s_00,0x2e);
  if (__s2 == (char *)0x0) {
    __s2 = "";
    if (__s1 == (char *)0x0) goto LAB_0001a91a;
  }
  else if (__s1 == (char *)0x0) {
    __s1 = "";
  }
  iVar1 = strcmp(__s1,__s2);
  if (iVar1 != 0) {
    return;
  }
LAB_0001a91a:
  strcmp(__s,__s_00);
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014250
ADD EBX,0x20747
SUB ESP,0x14
MOV EAX,dword ptr [ESP + 0x2c]
MOV ESI,dword ptr [EAX]
PUSH 0x2e
PUSH ESI
CALL 0x00012590
POP EDX
POP ECX
MOV EBP,EAX
MOV EAX,dword ptr [ESP + 0x28]
MOV EDI,dword ptr [EAX]
PUSH 0x2e
PUSH EDI
CALL 0x00012590
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0001a910
TEST EBP,EBP
LEA EDX,[EBX + 0xffff29a1]
CMOVZ EBP,EDX
SUB ESP,0x8
PUSH EAX
PUSH EBP
CALL 0x000120a0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0001a91a
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EAX,[EBX + 0xffff29a1]
TEST EBP,EBP
JNZ 0x0001a8f4
SUB ESP,0x8
PUSH EDI
PUSH ESI
CALL 0x000120a0
ADD ESP,0x10
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_0001a8b0(undefined4 *param_1,undefined4 *param_2)\n\n{\n  char *__s;\n  char *__s_00;\n  char *__s1;\n  char *__s2;\n  int iVar1;\n  \n  __s = (char *)*param_2;\n  __s1 = strrchr(__s,0x2e);\n  __s_00 = (char *)*param_1;\n  __s2 = strrchr(__s_00,0x2e);\n  if (__s2 == (char *)0x0) {\n    __s2 = "";\n    if (__s1 == (char *)0x0) goto LAB_0001a91a;\n  }\n  else if (__s1 == (char *)0x0) {\n    __s1 = "";\n  }\n  iVar1 = strcmp(__s1,__s2);\n  if (iVar1 != 0) {\n    return;\n  }\nLAB_0001a91a:\n  strcmp(__s,__s_00);\n  return;\n}\n\n" comment (function_definition "void FUN_0001a8b0(undefined4 *param_1,undefined4 *param_2)\n\n{\n  char *__s;\n  char *__s_00;\n  char *__s1;\n  char *__s2;\n  int iVar1;\n  \n  __s = (char *)*param_2;\n  __s1 = strrchr(__s,0x2e);\n  __s_00 = (char *)*param_1;\n  __s2 = strrchr(__s_00,0x2e);\n  if (__s2 == (char *)0x0) {\n    __s2 = "";\n    if (__s1 == (char *)0x0) goto LAB_0001a91a;\n  }\n  else if (__s1 == (char *)0x0) {\n    __s1 = "";\n  }\n  iVar1 = strcmp(__s1,__s2);\n  if (iVar1 != 0) {\n    return;\n  }\nLAB_0001a91a:\n  strcmp(__s,__s_00);\n  return;\n}" primitive_type (function_declarator "FUN_0001a8b0(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 *__s;\n  char *__s_00;\n  char *__s1;\n  char *__s2;\n  int iVar1;\n  \n  __s = (char *)*param_2;\n  __s1 = strrchr(__s,0x2e);\n  __s_00 = (char *)*param_1;\n  __s2 = strrchr(__s_00,0x2e);\n  if (__s2 == (char *)0x0) {\n    __s2 = "";\n    if (__s1 == (char *)0x0) goto LAB_0001a91a;\n  }\n  else if (__s1 == (char *)0x0) {\n    __s1 = "";\n  }\n  iVar1 = strcmp(__s1,__s2);\n  if (iVar1 != 0) {\n    return;\n  }\nLAB_0001a91a:\n  strcmp(__s,__s_00);\n  return;\n}" { (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "char *__s_00;" primitive_type (pointer_declarator "*__s_00" * identifier) ;) (declaration "char *__s1;" primitive_type (pointer_declarator "*__s1" * identifier) ;) (declaration "char *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "__s = (char *)*param_2;" (assignment_expression "__s = (char *)*param_2" identifier = (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (expression_statement "__s1 = strrchr(__s,0x2e);" (assignment_expression "__s1 = strrchr(__s,0x2e)" identifier = (call_expression "strrchr(__s,0x2e)" identifier (argument_list "(__s,0x2e)" ( identifier , number_literal )))) ;) (expression_statement "__s_00 = (char *)*param_1;" (assignment_expression "__s_00 = (char *)*param_1" identifier = (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "__s2 = strrchr(__s_00,0x2e);" (assignment_expression "__s2 = strrchr(__s_00,0x2e)" identifier = (call_expression "strrchr(__s_00,0x2e)" identifier (argument_list "(__s_00,0x2e)" ( identifier , number_literal )))) ;) (if_statement "if (__s2 == (char *)0x0) {\n    __s2 = "";\n    if (__s1 == (char *)0x0) goto LAB_0001a91a;\n  }\n  else if (__s1 == (char *)0x0) {\n    __s1 = "";\n  }" if (parenthesized_expression "(__s2 == (char *)0x0)" ( (binary_expression "__s2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    __s2 = "";\n    if (__s1 == (char *)0x0) goto LAB_0001a91a;\n  }" { (expression_statement "__s2 = "";" (assignment_expression "__s2 = """ identifier = (string_literal """" " ")) ;) (if_statement "if (__s1 == (char *)0x0) goto LAB_0001a91a;" if (parenthesized_expression "(__s1 == (char *)0x0)" ( (binary_expression "__s1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0001a91a;" goto statement_identifier ;)) }) (else_clause "else if (__s1 == (char *)0x0) {\n    __s1 = "";\n  }" else (if_statement "if (__s1 == (char *)0x0) {\n    __s1 = "";\n  }" if (parenthesized_expression "(__s1 == (char *)0x0)" ( (binary_expression "__s1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    __s1 = "";\n  }" { (expression_statement "__s1 = "";" (assignment_expression "__s1 = """ identifier = (string_literal """" " ")) ;) })))) (expression_statement "iVar1 = strcmp(__s1,__s2);" (assignment_expression "iVar1 = strcmp(__s1,__s2)" identifier = (call_expression "strcmp(__s1,__s2)" identifier (argument_list "(__s1,__s2)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n    return;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (labeled_statement "LAB_0001a91a:\n  strcmp(__s,__s_00);" statement_identifier : (expression_statement "strcmp(__s,__s_00);" (call_expression "strcmp(__s,__s_00)" identifier (argument_list "(__s,__s_00)" ( 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_strcmp_extension(V a,V b)\n\n{\n  char *__s;\n  char *__s_00;\n  char *__s1;\n  char *__s2;\n  int iVar1;\n  \n                    /* WARNING: Load size is inaccurate */\n  __s = *b;\n  __s1 = strrchr(__s,0x2e);\n                    /* WARNING: Load size is inaccurate */\n  __s_00 = *a;\n  __s2 = strrchr(__s_00,0x2e);\n  if (__s2 == (char *)0x0) {\n    __s2 = "";\n    if (__s1 == (char *)0x0) goto LAB_0001a91a;\n  }\n  else if (__s1 == (char *)0x0) {\n    __s1 = "";\n  }\n  iVar1 = strcmp(__s1,__s2);\n  if (iVar1 != 0) {\n    return iVar1;\n  }\nLAB_0001a91a:\n  iVar1 = strcmp(__s,__s_00);\n  return iVar1;\n}\n\n" comment comment (function_definition "int rev_strcmp_extension(V a,V b)\n\n{\n  char *__s;\n  char *__s_00;\n  char *__s1;\n  char *__s2;\n  int iVar1;\n  \n                    /* WARNING: Load size is inaccurate */\n  __s = *b;\n  __s1 = strrchr(__s,0x2e);\n                    /* WARNING: Load size is inaccurate */\n  __s_00 = *a;\n  __s2 = strrchr(__s_00,0x2e);\n  if (__s2 == (char *)0x0) {\n    __s2 = "";\n    if (__s1 == (char *)0x0) goto LAB_0001a91a;\n  }\n  else if (__s1 == (char *)0x0) {\n    __s1 = "";\n  }\n  iVar1 = strcmp(__s1,__s2);\n  if (iVar1 != 0) {\n    return iVar1;\n  }\nLAB_0001a91a:\n  iVar1 = strcmp(__s,__s_00);\n  return iVar1;\n}" primitive_type (function_declarator "rev_strcmp_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 *__s;\n  char *__s_00;\n  char *__s1;\n  char *__s2;\n  int iVar1;\n  \n                    /* WARNING: Load size is inaccurate */\n  __s = *b;\n  __s1 = strrchr(__s,0x2e);\n                    /* WARNING: Load size is inaccurate */\n  __s_00 = *a;\n  __s2 = strrchr(__s_00,0x2e);\n  if (__s2 == (char *)0x0) {\n    __s2 = "";\n    if (__s1 == (char *)0x0) goto LAB_0001a91a;\n  }\n  else if (__s1 == (char *)0x0) {\n    __s1 = "";\n  }\n  iVar1 = strcmp(__s1,__s2);\n  if (iVar1 != 0) {\n    return iVar1;\n  }\nLAB_0001a91a:\n  iVar1 = strcmp(__s,__s_00);\n  return iVar1;\n}" { (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "char *__s_00;" primitive_type (pointer_declarator "*__s_00" * identifier) ;) (declaration "char *__s1;" primitive_type (pointer_declarator "*__s1" * identifier) ;) (declaration "char *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) comment (expression_statement "__s = *b;" (assignment_expression "__s = *b" identifier = (pointer_expression "*b" * identifier)) ;) (expression_statement "__s1 = strrchr(__s,0x2e);" (assignment_expression "__s1 = strrchr(__s,0x2e)" identifier = (call_expression "strrchr(__s,0x2e)" identifier (argument_list "(__s,0x2e)" ( identifier , number_literal )))) ;) comment (expression_statement "__s_00 = *a;" (assignment_expression "__s_00 = *a" identifier = (pointer_expression "*a" * identifier)) ;) (expression_statement "__s2 = strrchr(__s_00,0x2e);" (assignment_expression "__s2 = strrchr(__s_00,0x2e)" identifier = (call_expression "strrchr(__s_00,0x2e)" identifier (argument_list "(__s_00,0x2e)" ( identifier , number_literal )))) ;) (if_statement "if (__s2 == (char *)0x0) {\n    __s2 = "";\n    if (__s1 == (char *)0x0) goto LAB_0001a91a;\n  }\n  else if (__s1 == (char *)0x0) {\n    __s1 = "";\n  }" if (parenthesized_expression "(__s2 == (char *)0x0)" ( (binary_expression "__s2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    __s2 = "";\n    if (__s1 == (char *)0x0) goto LAB_0001a91a;\n  }" { (expression_statement "__s2 = "";" (assignment_expression "__s2 = """ identifier = (string_literal """" " ")) ;) (if_statement "if (__s1 == (char *)0x0) goto LAB_0001a91a;" if (parenthesized_expression "(__s1 == (char *)0x0)" ( (binary_expression "__s1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0001a91a;" goto statement_identifier ;)) }) (else_clause "else if (__s1 == (char *)0x0) {\n    __s1 = "";\n  }" else (if_statement "if (__s1 == (char *)0x0) {\n    __s1 = "";\n  }" if (parenthesized_expression "(__s1 == (char *)0x0)" ( (binary_expression "__s1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    __s1 = "";\n  }" { (expression_statement "__s1 = "";" (assignment_expression "__s1 = """ identifier = (string_literal """" " ")) ;) })))) (expression_statement "iVar1 = strcmp(__s1,__s2);" (assignment_expression "iVar1 = strcmp(__s1,__s2)" identifier = (call_expression "strcmp(__s1,__s2)" identifier (argument_list "(__s1,__s2)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n    return iVar1;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) (labeled_statement "LAB_0001a91a:\n  iVar1 = strcmp(__s,__s_00);" statement_identifier : (expression_statement "iVar1 = strcmp(__s,__s_00);" (assignment_expression "iVar1 = strcmp(__s,__s_00)" identifier = (call_expression "strcmp(__s,__s_00)" identifier (argument_list "(__s,__s_00)" ( identifier , identifier )))) ;)) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "void FUN_0001a8b0(undefined4 *param_1,undefined4 *param_2)\n\n{\n  char *__s;\n  char *__s_00;\n  char *__s1;\n  char *__s2;\n  int iVar1;\n  \n  __s = (char *)*param_2;\n  __s1 = strrchr(__s,0x2e);\n  __s_00 = (char *)*param_1;\n  __s2 = strrchr(__s_00,0x2e);\n  if (__s2 == (char *)0x0) {\n    __s2 = "";\n    if (__s1 == (char *)0x0) goto LAB_0001a91a;\n  }\n  else if (__s1 == (char *)0x0) {\n    __s1 = "";\n  }\n  iVar1 = strcmp(__s1,__s2);\n  if (iVar1 != 0) {\n    return;\n  }\nLAB_0001a91a:\n  strcmp(__s,__s_00);\n  return;\n}\n\n" (function_definition "void FUN_0001a8b0(undefined4 *param_1,undefined4 *param_2)\n\n{\n  char *__s;\n  char *__s_00;\n  char *__s1;\n  char *__s2;\n  int iVar1;\n  \n  __s = (char *)*param_2;\n  __s1 = strrchr(__s,0x2e);\n  __s_00 = (char *)*param_1;\n  __s2 = strrchr(__s_00,0x2e);\n  if (__s2 == (char *)0x0) {\n    __s2 = "";\n    if (__s1 == (char *)0x0) goto LAB_0001a91a;\n  }\n  else if (__s1 == (char *)0x0) {\n    __s1 = "";\n  }\n  iVar1 = strcmp(__s1,__s2);\n  if (iVar1 != 0) {\n    return;\n  }\nLAB_0001a91a:\n  strcmp(__s,__s_00);\n  return;\n}" primitive_type (function_declarator "FUN_0001a8b0(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 *__s;\n  char *__s_00;\n  char *__s1;\n  char *__s2;\n  int iVar1;\n  \n  __s = (char *)*param_2;\n  __s1 = strrchr(__s,0x2e);\n  __s_00 = (char *)*param_1;\n  __s2 = strrchr(__s_00,0x2e);\n  if (__s2 == (char *)0x0) {\n    __s2 = "";\n    if (__s1 == (char *)0x0) goto LAB_0001a91a;\n  }\n  else if (__s1 == (char *)0x0) {\n    __s1 = "";\n  }\n  iVar1 = strcmp(__s1,__s2);\n  if (iVar1 != 0) {\n    return;\n  }\nLAB_0001a91a:\n  strcmp(__s,__s_00);\n  return;\n}" { (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "char *__s_00;" primitive_type (pointer_declarator "*__s_00" * identifier) ;) (declaration "char *__s1;" primitive_type (pointer_declarator "*__s1" * identifier) ;) (declaration "char *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "__s = (char *)*param_2;" (assignment_expression "__s = (char *)*param_2" identifier = (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (expression_statement "__s1 = strrchr(__s,0x2e);" (assignment_expression "__s1 = strrchr(__s,0x2e)" identifier = (call_expression "strrchr(__s,0x2e)" identifier (argument_list "(__s,0x2e)" ( identifier , number_literal )))) ;) (expression_statement "__s_00 = (char *)*param_1;" (assignment_expression "__s_00 = (char *)*param_1" identifier = (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "__s2 = strrchr(__s_00,0x2e);" (assignment_expression "__s2 = strrchr(__s_00,0x2e)" identifier = (call_expression "strrchr(__s_00,0x2e)" identifier (argument_list "(__s_00,0x2e)" ( identifier , number_literal )))) ;) (if_statement "if (__s2 == (char *)0x0) {\n    __s2 = "";\n    if (__s1 == (char *)0x0) goto LAB_0001a91a;\n  }\n  else if (__s1 == (char *)0x0) {\n    __s1 = "";\n  }" if (parenthesized_expression "(__s2 == (char *)0x0)" ( (binary_expression "__s2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    __s2 = "";\n    if (__s1 == (char *)0x0) goto LAB_0001a91a;\n  }" { (expression_statement "__s2 = "";" (assignment_expression "__s2 = """ identifier = (string_literal """" " ")) ;) (if_statement "if (__s1 == (char *)0x0) goto LAB_0001a91a;" if (parenthesized_expression "(__s1 == (char *)0x0)" ( (binary_expression "__s1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0001a91a;" goto statement_identifier ;)) }) (else_clause "else if (__s1 == (char *)0x0) {\n    __s1 = "";\n  }" else (if_statement "if (__s1 == (char *)0x0) {\n    __s1 = "";\n  }" if (parenthesized_expression "(__s1 == (char *)0x0)" ( (binary_expression "__s1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    __s1 = "";\n  }" { (expression_statement "__s1 = "";" (assignment_expression "__s1 = """ identifier = (string_literal """" " ")) ;) })))) (expression_statement "iVar1 = strcmp(__s1,__s2);" (assignment_expression "iVar1 = strcmp(__s1,__s2)" identifier = (call_expression "strcmp(__s1,__s2)" identifier (argument_list "(__s1,__s2)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n    return;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (labeled_statement "LAB_0001a91a:\n  strcmp(__s,__s_00);" statement_identifier : (expression_statement "strcmp(__s,__s_00);" (call_expression "strcmp(__s,__s_00)" identifier (argument_list "(__s,__s_00)" ( 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) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE 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 ( IDENT , LIT )))) ;) (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 ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " ")) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " ")) ;) })))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return ;) })) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;)) (return_statement return ;) })))
(function_definition "void FUN_0001a8b0(undefined4 *param_1,undefined4 *param_2)\n\n{\n  char *__s;\n  char *__s_00;\n  char *__s1;\n  char *__s2;\n  int iVar1;\n  \n  __s = (char *)*param_2;\n  __s1 = strrchr(__s,0x2e);\n  __s_00 = (char *)*param_1;\n  __s2 = strrchr(__s_00,0x2e);\n  if (__s2 == (char *)0x0) {\n    __s2 = "";\n    if (__s1 == (char *)0x0) goto LAB_0001a91a;\n  }\n  else if (__s1 == (char *)0x0) {\n    __s1 = "";\n  }\n  iVar1 = strcmp(__s1,__s2);\n  if (iVar1 != 0) {\n    return;\n  }\nLAB_0001a91a:\n  strcmp(__s,__s_00);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0001a8b0(undefined4 *param_1,undefined4 *param_2)" (identifier "FUN_0001a8b0") (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 *__s;\n  char *__s_00;\n  char *__s1;\n  char *__s2;\n  int iVar1;\n  \n  __s = (char *)*param_2;\n  __s1 = strrchr(__s,0x2e);\n  __s_00 = (char *)*param_1;\n  __s2 = strrchr(__s_00,0x2e);\n  if (__s2 == (char *)0x0) {\n    __s2 = "";\n    if (__s1 == (char *)0x0) goto LAB_0001a91a;\n  }\n  else if (__s1 == (char *)0x0) {\n    __s1 = "";\n  }\n  iVar1 = strcmp(__s1,__s2);\n  if (iVar1 != 0) {\n    return;\n  }\nLAB_0001a91a:\n  strcmp(__s,__s_00);\n  return;\n}" ({ "{") (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "char *__s_00;" (primitive_type "char") (pointer_declarator "*__s_00" (* "*") (identifier "__s_00")) (; ";")) (declaration "char *__s1;" (primitive_type "char") (pointer_declarator "*__s1" (* "*") (identifier "__s1")) (; ";")) (declaration "char *__s2;" (primitive_type "char") (pointer_declarator "*__s2" (* "*") (identifier "__s2")) (; ";")) (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "__s = (char *)*param_2;" (assignment_expression "__s = (char *)*param_2" (identifier "__s") (= "=") (cast_expression "(char *)*param_2" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (expression_statement "__s1 = strrchr(__s,0x2e);" (assignment_expression "__s1 = strrchr(__s,0x2e)" (identifier "__s1") (= "=") (call_expression "strrchr(__s,0x2e)" (identifier "strrchr") (argument_list "(__s,0x2e)" (( "(") (identifier "__s") (, ",") (number_literal "0x2e") () ")")))) (; ";")) (expression_statement "__s_00 = (char *)*param_1;" (assignment_expression "__s_00 = (char *)*param_1" (identifier "__s_00") (= "=") (cast_expression "(char *)*param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "__s2 = strrchr(__s_00,0x2e);" (assignment_expression "__s2 = strrchr(__s_00,0x2e)" (identifier "__s2") (= "=") (call_expression "strrchr(__s_00,0x2e)" (identifier "strrchr") (argument_list "(__s_00,0x2e)" (( "(") (identifier "__s_00") (, ",") (number_literal "0x2e") () ")")))) (; ";")) (if_statement "if (__s2 == (char *)0x0) {\n    __s2 = "";\n    if (__s1 == (char *)0x0) goto LAB_0001a91a;\n  }\n  else if (__s1 == (char *)0x0) {\n    __s1 = "";\n  }" (if "if") (parenthesized_expression "(__s2 == (char *)0x0)" (( "(") (binary_expression "__s2 == (char *)0x0" (identifier "__s2") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    __s2 = "";\n    if (__s1 == (char *)0x0) goto LAB_0001a91a;\n  }" ({ "{") (expression_statement "__s2 = "";" (assignment_expression "__s2 = """ (identifier "__s2") (= "=") (string_literal """" (" """) (" """))) (; ";")) (if_statement "if (__s1 == (char *)0x0) goto LAB_0001a91a;" (if "if") (parenthesized_expression "(__s1 == (char *)0x0)" (( "(") (binary_expression "__s1 == (char *)0x0" (identifier "__s1") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_0001a91a;" (goto "goto") (statement_identifier "LAB_0001a91a") (; ";"))) (} "}")) (else_clause "else if (__s1 == (char *)0x0) {\n    __s1 = "";\n  }" (else "else") (if_statement "if (__s1 == (char *)0x0) {\n    __s1 = "";\n  }" (if "if") (parenthesized_expression "(__s1 == (char *)0x0)" (( "(") (binary_expression "__s1 == (char *)0x0" (identifier "__s1") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    __s1 = "";\n  }" ({ "{") (expression_statement "__s1 = "";" (assignment_expression "__s1 = """ (identifier "__s1") (= "=") (string_literal """" (" """) (" """))) (; ";")) (} "}"))))) (expression_statement "iVar1 = strcmp(__s1,__s2);" (assignment_expression "iVar1 = strcmp(__s1,__s2)" (identifier "iVar1") (= "=") (call_expression "strcmp(__s1,__s2)" (identifier "strcmp") (argument_list "(__s1,__s2)" (( "(") (identifier "__s1") (, ",") (identifier "__s2") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (labeled_statement "LAB_0001a91a:\n  strcmp(__s,__s_00);" (statement_identifier "LAB_0001a91a") (: ":") (expression_statement "strcmp(__s,__s_00);" (call_expression "strcmp(__s,__s_00)" (identifier "strcmp") (argument_list "(__s,__s_00)" (( "(") (identifier "__s") (, ",") (identifier "__s_00") () ")"))) (; ";"))) (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 *__s;
  char *__s_00;
  char *var_3;
  char *var_2;
  int var_5;
  
                    /* WARNING: Load size is inaccurate */
  __s = *b;
  var_3 = var_1(__s,0x2e);
                    /* WARNING: Load size is inaccurate */
  __s_00 = *a;
  var_2 = var_1(__s_00,0x2e);
  if (var_2 == (char *)0x0) {
    var_2 = "";
    if (var_3 == (char *)0x0) goto LAB_0001a91a;
  }
  else if (var_3 == (char *)0x0) {
    var_3 = "";
  }
  var_5 = var_4(var_3,var_2);
  if (var_5 != 0) {
    return var_5;
  }
LAB_0001a91a:
  var_5 = var_4(__s,__s_00);
  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: (pointer_declarator declarator: (identifier))) (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))) (declaration type: (primitive_type) 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: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (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 (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (goto_statement label: (statement_identifier)))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement))) (labeled_statement label: (statement_identifier) (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 *__s;
  char *__s_00;
  char *__s1;
  char *__s2;
  int iVar1;
  
  __s = (char *)*param_2;
  __s1 = strrchr(__s,0x2e);
  __s_00 = (char *)*param_1;
  __s2 = strrchr(__s_00,0x2e);
  if (__s2 == (char *)0x0) {
    __s2 = "";
    if (__s1 == (char *)0x0) goto LAB_0001a91a;
  }
  else if (__s1 == (char *)0x0) {
    __s1 = "";
  }
  iVar1 = strcmp(__s1,__s2);
  if (iVar1 != 0) {
    return;
  }
LAB_0001a91a:
  strcmp(__s,__s_00);
  return;
}

