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

int is_specified_symbol_predicate(void **slot,void *data)

{
  char *__pattern;
  int iVar1;
  
  __pattern = (char *)*slot;
                    /* WARNING: Load size is inaccurate */
  if (*__pattern == '!') {
    iVar1 = fnmatch(__pattern + 1,*data,0);
    if (iVar1 == 0) {
      *(undefined4 *)((int)data + 4) = 0;
      return 0;
    }
  }
  else {
    iVar1 = fnmatch(__pattern,*data,0);
    if (iVar1 == 0) {
      *(undefined4 *)((int)data + 4) = 1;
    }
  }
  return 1;
}



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

undefined4 FUN_000169b0(undefined4 *param_1,undefined4 *param_2)

{
  char *__pattern;
  int iVar1;
  
  __pattern = (char *)*param_1;
  if (*__pattern == '!') {
    iVar1 = fnmatch(__pattern + 1,(char *)*param_2,0);
    if (iVar1 == 0) {
      param_2[1] = 0;
      return 0;
    }
  }
  else {
    iVar1 = fnmatch(__pattern,(char *)*param_2,0);
    if (iVar1 == 0) {
      param_2[1] = 1;
    }
  }
  return 1;
}


PUSH ESI
PUSH EBX
CALL 0x000166c0
ADD EBX,0x29649
SUB ESP,0x4
MOV EAX,dword ptr [ESP + 0x10]
MOV ESI,dword ptr [ESP + 0x14]
MOV EAX,dword ptr [EAX]
MOV EDX,dword ptr [ESI]
CMP byte ptr [EAX],0x21
JZ 0x00016a00
SUB ESP,0x4
PUSH 0x0
PUSH EDX
PUSH EAX
CALL 0x00013280
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000169f0
ADD ESP,0x4
MOV EAX,0x1
POP EBX
POP ESI
RET
MOV dword ptr [ESI + 0x4],0x1
JMP 0x000169e4
SUB ESP,0x4
ADD EAX,0x1
PUSH 0x0
PUSH EDX
PUSH EAX
CALL 0x00013280
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x000169e4
MOV dword ptr [ESI + 0x4],0x0
ADD ESP,0x4
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_000169b0(undefined4 *param_1,undefined4 *param_2)\n\n{\n  char *__pattern;\n  int iVar1;\n  \n  __pattern = (char *)*param_1;\n  if (*__pattern == '!') {\n    iVar1 = fnmatch(__pattern + 1,(char *)*param_2,0);\n    if (iVar1 == 0) {\n      param_2[1] = 0;\n      return 0;\n    }\n  }\n  else {\n    iVar1 = fnmatch(__pattern,(char *)*param_2,0);\n    if (iVar1 == 0) {\n      param_2[1] = 1;\n    }\n  }\n  return 1;\n}\n\n" comment (function_definition "undefined4 FUN_000169b0(undefined4 *param_1,undefined4 *param_2)\n\n{\n  char *__pattern;\n  int iVar1;\n  \n  __pattern = (char *)*param_1;\n  if (*__pattern == '!') {\n    iVar1 = fnmatch(__pattern + 1,(char *)*param_2,0);\n    if (iVar1 == 0) {\n      param_2[1] = 0;\n      return 0;\n    }\n  }\n  else {\n    iVar1 = fnmatch(__pattern,(char *)*param_2,0);\n    if (iVar1 == 0) {\n      param_2[1] = 1;\n    }\n  }\n  return 1;\n}" type_identifier (function_declarator "FUN_000169b0(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 *__pattern;\n  int iVar1;\n  \n  __pattern = (char *)*param_1;\n  if (*__pattern == '!') {\n    iVar1 = fnmatch(__pattern + 1,(char *)*param_2,0);\n    if (iVar1 == 0) {\n      param_2[1] = 0;\n      return 0;\n    }\n  }\n  else {\n    iVar1 = fnmatch(__pattern,(char *)*param_2,0);\n    if (iVar1 == 0) {\n      param_2[1] = 1;\n    }\n  }\n  return 1;\n}" { (declaration "char *__pattern;" primitive_type (pointer_declarator "*__pattern" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "__pattern = (char *)*param_1;" (assignment_expression "__pattern = (char *)*param_1" identifier = (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (*__pattern == '!') {\n    iVar1 = fnmatch(__pattern + 1,(char *)*param_2,0);\n    if (iVar1 == 0) {\n      param_2[1] = 0;\n      return 0;\n    }\n  }\n  else {\n    iVar1 = fnmatch(__pattern,(char *)*param_2,0);\n    if (iVar1 == 0) {\n      param_2[1] = 1;\n    }\n  }" if (parenthesized_expression "(*__pattern == '!')" ( (binary_expression "*__pattern == '!'" (pointer_expression "*__pattern" * identifier) == (char_literal "'!'" ' character ')) )) (compound_statement "{\n    iVar1 = fnmatch(__pattern + 1,(char *)*param_2,0);\n    if (iVar1 == 0) {\n      param_2[1] = 0;\n      return 0;\n    }\n  }" { (expression_statement "iVar1 = fnmatch(__pattern + 1,(char *)*param_2,0);" (assignment_expression "iVar1 = fnmatch(__pattern + 1,(char *)*param_2,0)" identifier = (call_expression "fnmatch(__pattern + 1,(char *)*param_2,0)" identifier (argument_list "(__pattern + 1,(char *)*param_2,0)" ( (binary_expression "__pattern + 1" identifier + number_literal) , (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)) , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n      param_2[1] = 0;\n      return 0;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      param_2[1] = 0;\n      return 0;\n    }" { (expression_statement "param_2[1] = 0;" (assignment_expression "param_2[1] = 0" (subscript_expression "param_2[1]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else {\n    iVar1 = fnmatch(__pattern,(char *)*param_2,0);\n    if (iVar1 == 0) {\n      param_2[1] = 1;\n    }\n  }" else (compound_statement "{\n    iVar1 = fnmatch(__pattern,(char *)*param_2,0);\n    if (iVar1 == 0) {\n      param_2[1] = 1;\n    }\n  }" { (expression_statement "iVar1 = fnmatch(__pattern,(char *)*param_2,0);" (assignment_expression "iVar1 = fnmatch(__pattern,(char *)*param_2,0)" identifier = (call_expression "fnmatch(__pattern,(char *)*param_2,0)" identifier (argument_list "(__pattern,(char *)*param_2,0)" ( identifier , (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)) , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n      param_2[1] = 1;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      param_2[1] = 1;\n    }" { (expression_statement "param_2[1] = 1;" (assignment_expression "param_2[1] = 1" (subscript_expression "param_2[1]" identifier [ number_literal ]) = number_literal) ;) })) }))) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint is_specified_symbol_predicate(void **slot,void *data)\n\n{\n  char *__pattern;\n  int iVar1;\n  \n  __pattern = (char *)*slot;\n                    /* WARNING: Load size is inaccurate */\n  if (*__pattern == '!') {\n    iVar1 = fnmatch(__pattern + 1,*data,0);\n    if (iVar1 == 0) {\n      *(undefined4 *)((int)data + 4) = 0;\n      return 0;\n    }\n  }\n  else {\n    iVar1 = fnmatch(__pattern,*data,0);\n    if (iVar1 == 0) {\n      *(undefined4 *)((int)data + 4) = 1;\n    }\n  }\n  return 1;\n}\n\n" comment comment (function_definition "int is_specified_symbol_predicate(void **slot,void *data)\n\n{\n  char *__pattern;\n  int iVar1;\n  \n  __pattern = (char *)*slot;\n                    /* WARNING: Load size is inaccurate */\n  if (*__pattern == '!') {\n    iVar1 = fnmatch(__pattern + 1,*data,0);\n    if (iVar1 == 0) {\n      *(undefined4 *)((int)data + 4) = 0;\n      return 0;\n    }\n  }\n  else {\n    iVar1 = fnmatch(__pattern,*data,0);\n    if (iVar1 == 0) {\n      *(undefined4 *)((int)data + 4) = 1;\n    }\n  }\n  return 1;\n}" primitive_type (function_declarator "is_specified_symbol_predicate(void **slot,void *data)" identifier (parameter_list "(void **slot,void *data)" ( (parameter_declaration "void **slot" primitive_type (pointer_declarator "**slot" * (pointer_declarator "*slot" * identifier))) , (parameter_declaration "void *data" primitive_type (pointer_declarator "*data" * identifier)) ))) (compound_statement "{\n  char *__pattern;\n  int iVar1;\n  \n  __pattern = (char *)*slot;\n                    /* WARNING: Load size is inaccurate */\n  if (*__pattern == '!') {\n    iVar1 = fnmatch(__pattern + 1,*data,0);\n    if (iVar1 == 0) {\n      *(undefined4 *)((int)data + 4) = 0;\n      return 0;\n    }\n  }\n  else {\n    iVar1 = fnmatch(__pattern,*data,0);\n    if (iVar1 == 0) {\n      *(undefined4 *)((int)data + 4) = 1;\n    }\n  }\n  return 1;\n}" { (declaration "char *__pattern;" primitive_type (pointer_declarator "*__pattern" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "__pattern = (char *)*slot;" (assignment_expression "__pattern = (char *)*slot" identifier = (cast_expression "(char *)*slot" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*slot" * identifier))) ;) comment (if_statement "if (*__pattern == '!') {\n    iVar1 = fnmatch(__pattern + 1,*data,0);\n    if (iVar1 == 0) {\n      *(undefined4 *)((int)data + 4) = 0;\n      return 0;\n    }\n  }\n  else {\n    iVar1 = fnmatch(__pattern,*data,0);\n    if (iVar1 == 0) {\n      *(undefined4 *)((int)data + 4) = 1;\n    }\n  }" if (parenthesized_expression "(*__pattern == '!')" ( (binary_expression "*__pattern == '!'" (pointer_expression "*__pattern" * identifier) == (char_literal "'!'" ' character ')) )) (compound_statement "{\n    iVar1 = fnmatch(__pattern + 1,*data,0);\n    if (iVar1 == 0) {\n      *(undefined4 *)((int)data + 4) = 0;\n      return 0;\n    }\n  }" { (expression_statement "iVar1 = fnmatch(__pattern + 1,*data,0);" (assignment_expression "iVar1 = fnmatch(__pattern + 1,*data,0)" identifier = (call_expression "fnmatch(__pattern + 1,*data,0)" identifier (argument_list "(__pattern + 1,*data,0)" ( (binary_expression "__pattern + 1" identifier + number_literal) , (pointer_expression "*data" * identifier) , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n      *(undefined4 *)((int)data + 4) = 0;\n      return 0;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      *(undefined4 *)((int)data + 4) = 0;\n      return 0;\n    }" { (expression_statement "*(undefined4 *)((int)data + 4) = 0;" (assignment_expression "*(undefined4 *)((int)data + 4) = 0" (pointer_expression "*(undefined4 *)((int)data + 4)" * (cast_expression "(undefined4 *)((int)data + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 4)" ( (binary_expression "(int)data + 4" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else {\n    iVar1 = fnmatch(__pattern,*data,0);\n    if (iVar1 == 0) {\n      *(undefined4 *)((int)data + 4) = 1;\n    }\n  }" else (compound_statement "{\n    iVar1 = fnmatch(__pattern,*data,0);\n    if (iVar1 == 0) {\n      *(undefined4 *)((int)data + 4) = 1;\n    }\n  }" { (expression_statement "iVar1 = fnmatch(__pattern,*data,0);" (assignment_expression "iVar1 = fnmatch(__pattern,*data,0)" identifier = (call_expression "fnmatch(__pattern,*data,0)" identifier (argument_list "(__pattern,*data,0)" ( identifier , (pointer_expression "*data" * identifier) , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n      *(undefined4 *)((int)data + 4) = 1;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      *(undefined4 *)((int)data + 4) = 1;\n    }" { (expression_statement "*(undefined4 *)((int)data + 4) = 1;" (assignment_expression "*(undefined4 *)((int)data + 4) = 1" (pointer_expression "*(undefined4 *)((int)data + 4)" * (cast_expression "(undefined4 *)((int)data + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 4)" ( (binary_expression "(int)data + 4" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) })) }))) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined4 FUN_000169b0(undefined4 *param_1,undefined4 *param_2)\n\n{\n  char *__pattern;\n  int iVar1;\n  \n  __pattern = (char *)*param_1;\n  if (*__pattern == '!') {\n    iVar1 = fnmatch(__pattern + 1,(char *)*param_2,0);\n    if (iVar1 == 0) {\n      param_2[1] = 0;\n      return 0;\n    }\n  }\n  else {\n    iVar1 = fnmatch(__pattern,(char *)*param_2,0);\n    if (iVar1 == 0) {\n      param_2[1] = 1;\n    }\n  }\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_000169b0(undefined4 *param_1,undefined4 *param_2)\n\n{\n  char *__pattern;\n  int iVar1;\n  \n  __pattern = (char *)*param_1;\n  if (*__pattern == '!') {\n    iVar1 = fnmatch(__pattern + 1,(char *)*param_2,0);\n    if (iVar1 == 0) {\n      param_2[1] = 0;\n      return 0;\n    }\n  }\n  else {\n    iVar1 = fnmatch(__pattern,(char *)*param_2,0);\n    if (iVar1 == 0) {\n      param_2[1] = 1;\n    }\n  }\n  return 1;\n}" type_identifier (function_declarator "FUN_000169b0(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 *__pattern;\n  int iVar1;\n  \n  __pattern = (char *)*param_1;\n  if (*__pattern == '!') {\n    iVar1 = fnmatch(__pattern + 1,(char *)*param_2,0);\n    if (iVar1 == 0) {\n      param_2[1] = 0;\n      return 0;\n    }\n  }\n  else {\n    iVar1 = fnmatch(__pattern,(char *)*param_2,0);\n    if (iVar1 == 0) {\n      param_2[1] = 1;\n    }\n  }\n  return 1;\n}" { (declaration "char *__pattern;" primitive_type (pointer_declarator "*__pattern" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "__pattern = (char *)*param_1;" (assignment_expression "__pattern = (char *)*param_1" identifier = (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (*__pattern == '!') {\n    iVar1 = fnmatch(__pattern + 1,(char *)*param_2,0);\n    if (iVar1 == 0) {\n      param_2[1] = 0;\n      return 0;\n    }\n  }\n  else {\n    iVar1 = fnmatch(__pattern,(char *)*param_2,0);\n    if (iVar1 == 0) {\n      param_2[1] = 1;\n    }\n  }" if (parenthesized_expression "(*__pattern == '!')" ( (binary_expression "*__pattern == '!'" (pointer_expression "*__pattern" * identifier) == (char_literal "'!'" ' character ')) )) (compound_statement "{\n    iVar1 = fnmatch(__pattern + 1,(char *)*param_2,0);\n    if (iVar1 == 0) {\n      param_2[1] = 0;\n      return 0;\n    }\n  }" { (expression_statement "iVar1 = fnmatch(__pattern + 1,(char *)*param_2,0);" (assignment_expression "iVar1 = fnmatch(__pattern + 1,(char *)*param_2,0)" identifier = (call_expression "fnmatch(__pattern + 1,(char *)*param_2,0)" identifier (argument_list "(__pattern + 1,(char *)*param_2,0)" ( (binary_expression "__pattern + 1" identifier + number_literal) , (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)) , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n      param_2[1] = 0;\n      return 0;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      param_2[1] = 0;\n      return 0;\n    }" { (expression_statement "param_2[1] = 0;" (assignment_expression "param_2[1] = 0" (subscript_expression "param_2[1]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else {\n    iVar1 = fnmatch(__pattern,(char *)*param_2,0);\n    if (iVar1 == 0) {\n      param_2[1] = 1;\n    }\n  }" else (compound_statement "{\n    iVar1 = fnmatch(__pattern,(char *)*param_2,0);\n    if (iVar1 == 0) {\n      param_2[1] = 1;\n    }\n  }" { (expression_statement "iVar1 = fnmatch(__pattern,(char *)*param_2,0);" (assignment_expression "iVar1 = fnmatch(__pattern,(char *)*param_2,0)" identifier = (call_expression "fnmatch(__pattern,(char *)*param_2,0)" identifier (argument_list "(__pattern,(char *)*param_2,0)" ( identifier , (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)) , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n      param_2[1] = 1;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      param_2[1] = 1;\n    }" { (expression_statement "param_2[1] = 1;" (assignment_expression "param_2[1] = 1" (subscript_expression "param_2[1]" identifier [ number_literal ]) = number_literal) ;) })) }))) (return_statement "return 1;" return number_literal ;) })))
(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 IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (return_statement return LIT ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) })) }))) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_000169b0(undefined4 *param_1,undefined4 *param_2)\n\n{\n  char *__pattern;\n  int iVar1;\n  \n  __pattern = (char *)*param_1;\n  if (*__pattern == '!') {\n    iVar1 = fnmatch(__pattern + 1,(char *)*param_2,0);\n    if (iVar1 == 0) {\n      param_2[1] = 0;\n      return 0;\n    }\n  }\n  else {\n    iVar1 = fnmatch(__pattern,(char *)*param_2,0);\n    if (iVar1 == 0) {\n      param_2[1] = 1;\n    }\n  }\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "FUN_000169b0(undefined4 *param_1,undefined4 *param_2)" (identifier "FUN_000169b0") (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 *__pattern;\n  int iVar1;\n  \n  __pattern = (char *)*param_1;\n  if (*__pattern == '!') {\n    iVar1 = fnmatch(__pattern + 1,(char *)*param_2,0);\n    if (iVar1 == 0) {\n      param_2[1] = 0;\n      return 0;\n    }\n  }\n  else {\n    iVar1 = fnmatch(__pattern,(char *)*param_2,0);\n    if (iVar1 == 0) {\n      param_2[1] = 1;\n    }\n  }\n  return 1;\n}" ({ "{") (declaration "char *__pattern;" (primitive_type "char") (pointer_declarator "*__pattern" (* "*") (identifier "__pattern")) (; ";")) (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "__pattern = (char *)*param_1;" (assignment_expression "__pattern = (char *)*param_1" (identifier "__pattern") (= "=") (cast_expression "(char *)*param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (if_statement "if (*__pattern == '!') {\n    iVar1 = fnmatch(__pattern + 1,(char *)*param_2,0);\n    if (iVar1 == 0) {\n      param_2[1] = 0;\n      return 0;\n    }\n  }\n  else {\n    iVar1 = fnmatch(__pattern,(char *)*param_2,0);\n    if (iVar1 == 0) {\n      param_2[1] = 1;\n    }\n  }" (if "if") (parenthesized_expression "(*__pattern == '!')" (( "(") (binary_expression "*__pattern == '!'" (pointer_expression "*__pattern" (* "*") (identifier "__pattern")) (== "==") (char_literal "'!'" (' "'") (character "!") (' "'"))) () ")")) (compound_statement "{\n    iVar1 = fnmatch(__pattern + 1,(char *)*param_2,0);\n    if (iVar1 == 0) {\n      param_2[1] = 0;\n      return 0;\n    }\n  }" ({ "{") (expression_statement "iVar1 = fnmatch(__pattern + 1,(char *)*param_2,0);" (assignment_expression "iVar1 = fnmatch(__pattern + 1,(char *)*param_2,0)" (identifier "iVar1") (= "=") (call_expression "fnmatch(__pattern + 1,(char *)*param_2,0)" (identifier "fnmatch") (argument_list "(__pattern + 1,(char *)*param_2,0)" (( "(") (binary_expression "__pattern + 1" (identifier "__pattern") (+ "+") (number_literal "1")) (, ",") (cast_expression "(char *)*param_2" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n      param_2[1] = 0;\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      param_2[1] = 0;\n      return 0;\n    }" ({ "{") (expression_statement "param_2[1] = 0;" (assignment_expression "param_2[1] = 0" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    iVar1 = fnmatch(__pattern,(char *)*param_2,0);\n    if (iVar1 == 0) {\n      param_2[1] = 1;\n    }\n  }" (else "else") (compound_statement "{\n    iVar1 = fnmatch(__pattern,(char *)*param_2,0);\n    if (iVar1 == 0) {\n      param_2[1] = 1;\n    }\n  }" ({ "{") (expression_statement "iVar1 = fnmatch(__pattern,(char *)*param_2,0);" (assignment_expression "iVar1 = fnmatch(__pattern,(char *)*param_2,0)" (identifier "iVar1") (= "=") (call_expression "fnmatch(__pattern,(char *)*param_2,0)" (identifier "fnmatch") (argument_list "(__pattern,(char *)*param_2,0)" (( "(") (identifier "__pattern") (, ",") (cast_expression "(char *)*param_2" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n      param_2[1] = 1;\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      param_2[1] = 1;\n    }" ({ "{") (expression_statement "param_2[1] = 1;" (assignment_expression "param_2[1] = 1" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "1")) (; ";")) (} "}"))) (} "}")))) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

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

int function_1(void **slot,void *data)

{
  char *var_2;
  int var_3;
  
  var_2 = (char *)*slot;
                    /* WARNING: Load size is inaccurate */
  if (*var_2 == '!') {
    var_3 = var_1(var_2 + 1,*data,0);
    if (var_3 == 0) {
      *(type_1 *)((int)data + 4) = 0;
      return 0;
    }
  }
  else {
    var_3 = var_1(var_2,*data,0);
    if (var_3 == 0) {
      *(type_1 *)((int)data + 4) = 1;
    }
  }
  return 1;
}


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

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

undefined4 MASKED(undefined4 *param_1,undefined4 *param_2)

{
  char *__pattern;
  int iVar1;
  
  __pattern = (char *)*param_1;
  if (*__pattern == '!') {
    iVar1 = fnmatch(__pattern + 1,(char *)*param_2,0);
    if (iVar1 == 0) {
      param_2[1] = 0;
      return 0;
    }
  }
  else {
    iVar1 = fnmatch(__pattern,(char *)*param_2,0);
    if (iVar1 == 0) {
      param_2[1] = 1;
    }
  }
  return 1;
}

