
int wc_unescape(char *output,char *wildcard)

{
  char *pcVar1;
  char cVar2;
  
  cVar2 = *wildcard;
  while (cVar2 != '\0') {
    while (cVar2 != '\\') {
      if ((cVar2 == '*' || cVar2 == '?') || ((cVar2 + 0xa5U & 0xfd) == 0)) {
        return 0;
      }
      if (output != (char *)0x0) {
        *output = cVar2;
        output = output + 1;
      }
      cVar2 = wildcard[1];
      wildcard = wildcard + 1;
      if (cVar2 == '\0') goto LAB_0008c953;
    }
    if (wildcard[1] == '\0') break;
    if (output != (char *)0x0) {
      *output = wildcard[1];
      output = output + 1;
    }
    pcVar1 = wildcard + 2;
    wildcard = wildcard + 2;
    cVar2 = *pcVar1;
  }
LAB_0008c953:
  if (output != (char *)0x0) {
    *output = '\0';
  }
  return 1;
}



undefined4 FUN_0008c900(char *param_1,char *param_2)

{
  char *pcVar1;
  char cVar2;
  
  cVar2 = *param_2;
  while (cVar2 != '\0') {
    while (cVar2 != '\\') {
      if ((cVar2 == '*' || cVar2 == '?') || ((cVar2 + 0xa5U & 0xfd) == 0)) {
        return 0;
      }
      if (param_1 != (char *)0x0) {
        *param_1 = cVar2;
        param_1 = param_1 + 1;
      }
      cVar2 = param_2[1];
      param_2 = param_2 + 1;
      if (cVar2 == '\0') goto LAB_0008c953;
    }
    if (param_2[1] == '\0') break;
    if (param_1 != (char *)0x0) {
      *param_1 = param_2[1];
      param_1 = param_1 + 1;
    }
    pcVar1 = param_2 + 2;
    param_2 = param_2 + 2;
    cVar2 = *pcVar1;
  }
LAB_0008c953:
  if (param_1 != (char *)0x0) {
    *param_1 = '\0';
  }
  return 1;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EDX,dword ptr [ESP + 0x14]
MOV EDI,dword ptr [ESP + 0x10]
MOVZX EAX,byte ptr [EDX]
TEST AL,AL
JZ 0x0008c953
CMP AL,0x5c
JZ 0x0008c94b
CMP AL,0x2a
SETZ BL
CMP AL,0x3f
MOV ESI,EBX
SETZ BL
MOV ECX,ESI
OR CL,BL
JNZ 0x0008c980
LEA EBX,[EAX + -0x5b]
AND EBX,0xfd
JZ 0x0008c980
TEST EDI,EDI
JZ 0x0008c93c
MOV byte ptr [EDI],AL
ADD EDI,0x1
MOVZX EAX,byte ptr [EDX + 0x1]
ADD EDX,0x1
TEST AL,AL
JZ 0x0008c953
CMP AL,0x5c
JNZ 0x0008c916
MOVZX EAX,byte ptr [EDX + 0x1]
TEST AL,AL
JNZ 0x0008c968
MOV EAX,0x1
TEST EDI,EDI
JZ 0x0008c95f
MOV byte ptr [EDI],0x0
POP EBX
POP ESI
POP EDI
RET
TEST EDI,EDI
JZ 0x0008c971
MOV byte ptr [EDI],AL
ADD EDI,0x1
MOVZX EAX,byte ptr [EDX + 0x2]
ADD EDX,0x2
JMP 0x0008c90e
POP EBX
XOR EAX,EAX
POP ESI
POP EDI
RET
(translation_unit "undefined4 FUN_0008c900(char *param_1,char *param_2)\n\n{\n  char *pcVar1;\n  char cVar2;\n  \n  cVar2 = *param_2;\n  while (cVar2 != '\0') {\n    while (cVar2 != '\\') {\n      if ((cVar2 == '*' || cVar2 == '?') || ((cVar2 + 0xa5U & 0xfd) == 0)) {\n        return 0;\n      }\n      if (param_1 != (char *)0x0) {\n        *param_1 = cVar2;\n        param_1 = param_1 + 1;\n      }\n      cVar2 = param_2[1];\n      param_2 = param_2 + 1;\n      if (cVar2 == '\0') goto LAB_0008c953;\n    }\n    if (param_2[1] == '\0') break;\n    if (param_1 != (char *)0x0) {\n      *param_1 = param_2[1];\n      param_1 = param_1 + 1;\n    }\n    pcVar1 = param_2 + 2;\n    param_2 = param_2 + 2;\n    cVar2 = *pcVar1;\n  }\nLAB_0008c953:\n  if (param_1 != (char *)0x0) {\n    *param_1 = '\0';\n  }\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_0008c900(char *param_1,char *param_2)\n\n{\n  char *pcVar1;\n  char cVar2;\n  \n  cVar2 = *param_2;\n  while (cVar2 != '\0') {\n    while (cVar2 != '\\') {\n      if ((cVar2 == '*' || cVar2 == '?') || ((cVar2 + 0xa5U & 0xfd) == 0)) {\n        return 0;\n      }\n      if (param_1 != (char *)0x0) {\n        *param_1 = cVar2;\n        param_1 = param_1 + 1;\n      }\n      cVar2 = param_2[1];\n      param_2 = param_2 + 1;\n      if (cVar2 == '\0') goto LAB_0008c953;\n    }\n    if (param_2[1] == '\0') break;\n    if (param_1 != (char *)0x0) {\n      *param_1 = param_2[1];\n      param_1 = param_1 + 1;\n    }\n    pcVar1 = param_2 + 2;\n    param_2 = param_2 + 2;\n    cVar2 = *pcVar1;\n  }\nLAB_0008c953:\n  if (param_1 != (char *)0x0) {\n    *param_1 = '\0';\n  }\n  return 1;\n}" type_identifier (function_declarator "FUN_0008c900(char *param_1,char *param_2)" identifier (parameter_list "(char *param_1,char *param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  char *pcVar1;\n  char cVar2;\n  \n  cVar2 = *param_2;\n  while (cVar2 != '\0') {\n    while (cVar2 != '\\') {\n      if ((cVar2 == '*' || cVar2 == '?') || ((cVar2 + 0xa5U & 0xfd) == 0)) {\n        return 0;\n      }\n      if (param_1 != (char *)0x0) {\n        *param_1 = cVar2;\n        param_1 = param_1 + 1;\n      }\n      cVar2 = param_2[1];\n      param_2 = param_2 + 1;\n      if (cVar2 == '\0') goto LAB_0008c953;\n    }\n    if (param_2[1] == '\0') break;\n    if (param_1 != (char *)0x0) {\n      *param_1 = param_2[1];\n      param_1 = param_1 + 1;\n    }\n    pcVar1 = param_2 + 2;\n    param_2 = param_2 + 2;\n    cVar2 = *pcVar1;\n  }\nLAB_0008c953:\n  if (param_1 != (char *)0x0) {\n    *param_1 = '\0';\n  }\n  return 1;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char cVar2;" primitive_type identifier ;) (expression_statement "cVar2 = *param_2;" (assignment_expression "cVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (while_statement "while (cVar2 != '\0') {\n    while (cVar2 != '\\') {\n      if ((cVar2 == '*' || cVar2 == '?') || ((cVar2 + 0xa5U & 0xfd) == 0)) {\n        return 0;\n      }\n      if (param_1 != (char *)0x0) {\n        *param_1 = cVar2;\n        param_1 = param_1 + 1;\n      }\n      cVar2 = param_2[1];\n      param_2 = param_2 + 1;\n      if (cVar2 == '\0') goto LAB_0008c953;\n    }\n    if (param_2[1] == '\0') break;\n    if (param_1 != (char *)0x0) {\n      *param_1 = param_2[1];\n      param_1 = param_1 + 1;\n    }\n    pcVar1 = param_2 + 2;\n    param_2 = param_2 + 2;\n    cVar2 = *pcVar1;\n  }" while (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    while (cVar2 != '\\') {\n      if ((cVar2 == '*' || cVar2 == '?') || ((cVar2 + 0xa5U & 0xfd) == 0)) {\n        return 0;\n      }\n      if (param_1 != (char *)0x0) {\n        *param_1 = cVar2;\n        param_1 = param_1 + 1;\n      }\n      cVar2 = param_2[1];\n      param_2 = param_2 + 1;\n      if (cVar2 == '\0') goto LAB_0008c953;\n    }\n    if (param_2[1] == '\0') break;\n    if (param_1 != (char *)0x0) {\n      *param_1 = param_2[1];\n      param_1 = param_1 + 1;\n    }\n    pcVar1 = param_2 + 2;\n    param_2 = param_2 + 2;\n    cVar2 = *pcVar1;\n  }" { (while_statement "while (cVar2 != '\\') {\n      if ((cVar2 == '*' || cVar2 == '?') || ((cVar2 + 0xa5U & 0xfd) == 0)) {\n        return 0;\n      }\n      if (param_1 != (char *)0x0) {\n        *param_1 = cVar2;\n        param_1 = param_1 + 1;\n      }\n      cVar2 = param_2[1];\n      param_2 = param_2 + 1;\n      if (cVar2 == '\0') goto LAB_0008c953;\n    }" while (parenthesized_expression "(cVar2 != '\\')" ( (binary_expression "cVar2 != '\\'" identifier != (char_literal "'\\'" ' escape_sequence ')) )) (compound_statement "{\n      if ((cVar2 == '*' || cVar2 == '?') || ((cVar2 + 0xa5U & 0xfd) == 0)) {\n        return 0;\n      }\n      if (param_1 != (char *)0x0) {\n        *param_1 = cVar2;\n        param_1 = param_1 + 1;\n      }\n      cVar2 = param_2[1];\n      param_2 = param_2 + 1;\n      if (cVar2 == '\0') goto LAB_0008c953;\n    }" { (if_statement "if ((cVar2 == '*' || cVar2 == '?') || ((cVar2 + 0xa5U & 0xfd) == 0)) {\n        return 0;\n      }" if (parenthesized_expression "((cVar2 == '*' || cVar2 == '?') || ((cVar2 + 0xa5U & 0xfd) == 0))" ( (binary_expression "(cVar2 == '*' || cVar2 == '?') || ((cVar2 + 0xa5U & 0xfd) == 0)" (parenthesized_expression "(cVar2 == '*' || cVar2 == '?')" ( (binary_expression "cVar2 == '*' || cVar2 == '?'" (binary_expression "cVar2 == '*'" identifier == (char_literal "'*'" ' character ')) || (binary_expression "cVar2 == '?'" identifier == (char_literal "'?'" ' character '))) )) || (parenthesized_expression "((cVar2 + 0xa5U & 0xfd) == 0)" ( (binary_expression "(cVar2 + 0xa5U & 0xfd) == 0" (parenthesized_expression "(cVar2 + 0xa5U & 0xfd)" ( (binary_expression "cVar2 + 0xa5U & 0xfd" (binary_expression "cVar2 + 0xa5U" identifier + number_literal) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_1 != (char *)0x0) {\n        *param_1 = cVar2;\n        param_1 = param_1 + 1;\n      }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *param_1 = cVar2;\n        param_1 = param_1 + 1;\n      }" { (expression_statement "*param_1 = cVar2;" (assignment_expression "*param_1 = cVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) })) (expression_statement "cVar2 = param_2[1];" (assignment_expression "cVar2 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (if_statement "if (cVar2 == '\0') goto LAB_0008c953;" if (parenthesized_expression "(cVar2 == '\0')" ( (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_0008c953;" goto statement_identifier ;)) })) (if_statement "if (param_2[1] == '\0') break;" if (parenthesized_expression "(param_2[1] == '\0')" ( (binary_expression "param_2[1] == '\0'" (subscript_expression "param_2[1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (break_statement "break;" break ;)) (if_statement "if (param_1 != (char *)0x0) {\n      *param_1 = param_2[1];\n      param_1 = param_1 + 1;\n    }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *param_1 = param_2[1];\n      param_1 = param_1 + 1;\n    }" { (expression_statement "*param_1 = param_2[1];" (assignment_expression "*param_1 = param_2[1]" (pointer_expression "*param_1" * identifier) = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) })) (expression_statement "pcVar1 = param_2 + 2;" (assignment_expression "pcVar1 = param_2 + 2" identifier = (binary_expression "param_2 + 2" identifier + number_literal)) ;) (expression_statement "param_2 = param_2 + 2;" (assignment_expression "param_2 = param_2 + 2" identifier = (binary_expression "param_2 + 2" identifier + number_literal)) ;) (expression_statement "cVar2 = *pcVar1;" (assignment_expression "cVar2 = *pcVar1" identifier = (pointer_expression "*pcVar1" * identifier)) ;) })) (labeled_statement "LAB_0008c953:\n  if (param_1 != (char *)0x0) {\n    *param_1 = '\0';\n  }" statement_identifier : (if_statement "if (param_1 != (char *)0x0) {\n    *param_1 = '\0';\n  }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *param_1 = '\0';\n  }" { (expression_statement "*param_1 = '\0';" (assignment_expression "*param_1 = '\0'" (pointer_expression "*param_1" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) }))) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "int wc_unescape(char *output,char *wildcard)\n\n{\n  char *pcVar1;\n  char cVar2;\n  \n  cVar2 = *wildcard;\n  while (cVar2 != '\0') {\n    while (cVar2 != '\\') {\n      if ((cVar2 == '*' || cVar2 == '?') || ((cVar2 + 0xa5U & 0xfd) == 0)) {\n        return 0;\n      }\n      if (output != (char *)0x0) {\n        *output = cVar2;\n        output = output + 1;\n      }\n      cVar2 = wildcard[1];\n      wildcard = wildcard + 1;\n      if (cVar2 == '\0') goto LAB_0008c953;\n    }\n    if (wildcard[1] == '\0') break;\n    if (output != (char *)0x0) {\n      *output = wildcard[1];\n      output = output + 1;\n    }\n    pcVar1 = wildcard + 2;\n    wildcard = wildcard + 2;\n    cVar2 = *pcVar1;\n  }\nLAB_0008c953:\n  if (output != (char *)0x0) {\n    *output = '\0';\n  }\n  return 1;\n}\n\n" (function_definition "int wc_unescape(char *output,char *wildcard)\n\n{\n  char *pcVar1;\n  char cVar2;\n  \n  cVar2 = *wildcard;\n  while (cVar2 != '\0') {\n    while (cVar2 != '\\') {\n      if ((cVar2 == '*' || cVar2 == '?') || ((cVar2 + 0xa5U & 0xfd) == 0)) {\n        return 0;\n      }\n      if (output != (char *)0x0) {\n        *output = cVar2;\n        output = output + 1;\n      }\n      cVar2 = wildcard[1];\n      wildcard = wildcard + 1;\n      if (cVar2 == '\0') goto LAB_0008c953;\n    }\n    if (wildcard[1] == '\0') break;\n    if (output != (char *)0x0) {\n      *output = wildcard[1];\n      output = output + 1;\n    }\n    pcVar1 = wildcard + 2;\n    wildcard = wildcard + 2;\n    cVar2 = *pcVar1;\n  }\nLAB_0008c953:\n  if (output != (char *)0x0) {\n    *output = '\0';\n  }\n  return 1;\n}" primitive_type (function_declarator "wc_unescape(char *output,char *wildcard)" identifier (parameter_list "(char *output,char *wildcard)" ( (parameter_declaration "char *output" primitive_type (pointer_declarator "*output" * identifier)) , (parameter_declaration "char *wildcard" primitive_type (pointer_declarator "*wildcard" * identifier)) ))) (compound_statement "{\n  char *pcVar1;\n  char cVar2;\n  \n  cVar2 = *wildcard;\n  while (cVar2 != '\0') {\n    while (cVar2 != '\\') {\n      if ((cVar2 == '*' || cVar2 == '?') || ((cVar2 + 0xa5U & 0xfd) == 0)) {\n        return 0;\n      }\n      if (output != (char *)0x0) {\n        *output = cVar2;\n        output = output + 1;\n      }\n      cVar2 = wildcard[1];\n      wildcard = wildcard + 1;\n      if (cVar2 == '\0') goto LAB_0008c953;\n    }\n    if (wildcard[1] == '\0') break;\n    if (output != (char *)0x0) {\n      *output = wildcard[1];\n      output = output + 1;\n    }\n    pcVar1 = wildcard + 2;\n    wildcard = wildcard + 2;\n    cVar2 = *pcVar1;\n  }\nLAB_0008c953:\n  if (output != (char *)0x0) {\n    *output = '\0';\n  }\n  return 1;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char cVar2;" primitive_type identifier ;) (expression_statement "cVar2 = *wildcard;" (assignment_expression "cVar2 = *wildcard" identifier = (pointer_expression "*wildcard" * identifier)) ;) (while_statement "while (cVar2 != '\0') {\n    while (cVar2 != '\\') {\n      if ((cVar2 == '*' || cVar2 == '?') || ((cVar2 + 0xa5U & 0xfd) == 0)) {\n        return 0;\n      }\n      if (output != (char *)0x0) {\n        *output = cVar2;\n        output = output + 1;\n      }\n      cVar2 = wildcard[1];\n      wildcard = wildcard + 1;\n      if (cVar2 == '\0') goto LAB_0008c953;\n    }\n    if (wildcard[1] == '\0') break;\n    if (output != (char *)0x0) {\n      *output = wildcard[1];\n      output = output + 1;\n    }\n    pcVar1 = wildcard + 2;\n    wildcard = wildcard + 2;\n    cVar2 = *pcVar1;\n  }" while (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    while (cVar2 != '\\') {\n      if ((cVar2 == '*' || cVar2 == '?') || ((cVar2 + 0xa5U & 0xfd) == 0)) {\n        return 0;\n      }\n      if (output != (char *)0x0) {\n        *output = cVar2;\n        output = output + 1;\n      }\n      cVar2 = wildcard[1];\n      wildcard = wildcard + 1;\n      if (cVar2 == '\0') goto LAB_0008c953;\n    }\n    if (wildcard[1] == '\0') break;\n    if (output != (char *)0x0) {\n      *output = wildcard[1];\n      output = output + 1;\n    }\n    pcVar1 = wildcard + 2;\n    wildcard = wildcard + 2;\n    cVar2 = *pcVar1;\n  }" { (while_statement "while (cVar2 != '\\') {\n      if ((cVar2 == '*' || cVar2 == '?') || ((cVar2 + 0xa5U & 0xfd) == 0)) {\n        return 0;\n      }\n      if (output != (char *)0x0) {\n        *output = cVar2;\n        output = output + 1;\n      }\n      cVar2 = wildcard[1];\n      wildcard = wildcard + 1;\n      if (cVar2 == '\0') goto LAB_0008c953;\n    }" while (parenthesized_expression "(cVar2 != '\\')" ( (binary_expression "cVar2 != '\\'" identifier != (char_literal "'\\'" ' escape_sequence ')) )) (compound_statement "{\n      if ((cVar2 == '*' || cVar2 == '?') || ((cVar2 + 0xa5U & 0xfd) == 0)) {\n        return 0;\n      }\n      if (output != (char *)0x0) {\n        *output = cVar2;\n        output = output + 1;\n      }\n      cVar2 = wildcard[1];\n      wildcard = wildcard + 1;\n      if (cVar2 == '\0') goto LAB_0008c953;\n    }" { (if_statement "if ((cVar2 == '*' || cVar2 == '?') || ((cVar2 + 0xa5U & 0xfd) == 0)) {\n        return 0;\n      }" if (parenthesized_expression "((cVar2 == '*' || cVar2 == '?') || ((cVar2 + 0xa5U & 0xfd) == 0))" ( (binary_expression "(cVar2 == '*' || cVar2 == '?') || ((cVar2 + 0xa5U & 0xfd) == 0)" (parenthesized_expression "(cVar2 == '*' || cVar2 == '?')" ( (binary_expression "cVar2 == '*' || cVar2 == '?'" (binary_expression "cVar2 == '*'" identifier == (char_literal "'*'" ' character ')) || (binary_expression "cVar2 == '?'" identifier == (char_literal "'?'" ' character '))) )) || (parenthesized_expression "((cVar2 + 0xa5U & 0xfd) == 0)" ( (binary_expression "(cVar2 + 0xa5U & 0xfd) == 0" (parenthesized_expression "(cVar2 + 0xa5U & 0xfd)" ( (binary_expression "cVar2 + 0xa5U & 0xfd" (binary_expression "cVar2 + 0xa5U" identifier + number_literal) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (output != (char *)0x0) {\n        *output = cVar2;\n        output = output + 1;\n      }" if (parenthesized_expression "(output != (char *)0x0)" ( (binary_expression "output != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *output = cVar2;\n        output = output + 1;\n      }" { (expression_statement "*output = cVar2;" (assignment_expression "*output = cVar2" (pointer_expression "*output" * identifier) = identifier) ;) (expression_statement "output = output + 1;" (assignment_expression "output = output + 1" identifier = (binary_expression "output + 1" identifier + number_literal)) ;) })) (expression_statement "cVar2 = wildcard[1];" (assignment_expression "cVar2 = wildcard[1]" identifier = (subscript_expression "wildcard[1]" identifier [ number_literal ])) ;) (expression_statement "wildcard = wildcard + 1;" (assignment_expression "wildcard = wildcard + 1" identifier = (binary_expression "wildcard + 1" identifier + number_literal)) ;) (if_statement "if (cVar2 == '\0') goto LAB_0008c953;" if (parenthesized_expression "(cVar2 == '\0')" ( (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_0008c953;" goto statement_identifier ;)) })) (if_statement "if (wildcard[1] == '\0') break;" if (parenthesized_expression "(wildcard[1] == '\0')" ( (binary_expression "wildcard[1] == '\0'" (subscript_expression "wildcard[1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (break_statement "break;" break ;)) (if_statement "if (output != (char *)0x0) {\n      *output = wildcard[1];\n      output = output + 1;\n    }" if (parenthesized_expression "(output != (char *)0x0)" ( (binary_expression "output != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *output = wildcard[1];\n      output = output + 1;\n    }" { (expression_statement "*output = wildcard[1];" (assignment_expression "*output = wildcard[1]" (pointer_expression "*output" * identifier) = (subscript_expression "wildcard[1]" identifier [ number_literal ])) ;) (expression_statement "output = output + 1;" (assignment_expression "output = output + 1" identifier = (binary_expression "output + 1" identifier + number_literal)) ;) })) (expression_statement "pcVar1 = wildcard + 2;" (assignment_expression "pcVar1 = wildcard + 2" identifier = (binary_expression "wildcard + 2" identifier + number_literal)) ;) (expression_statement "wildcard = wildcard + 2;" (assignment_expression "wildcard = wildcard + 2" identifier = (binary_expression "wildcard + 2" identifier + number_literal)) ;) (expression_statement "cVar2 = *pcVar1;" (assignment_expression "cVar2 = *pcVar1" identifier = (pointer_expression "*pcVar1" * identifier)) ;) })) (labeled_statement "LAB_0008c953:\n  if (output != (char *)0x0) {\n    *output = '\0';\n  }" statement_identifier : (if_statement "if (output != (char *)0x0) {\n    *output = '\0';\n  }" if (parenthesized_expression "(output != (char *)0x0)" ( (binary_expression "output != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *output = '\0';\n  }" { (expression_statement "*output = '\0';" (assignment_expression "*output = '\0'" (pointer_expression "*output" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) }))) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined4 FUN_0008c900(char *param_1,char *param_2)\n\n{\n  char *pcVar1;\n  char cVar2;\n  \n  cVar2 = *param_2;\n  while (cVar2 != '\0') {\n    while (cVar2 != '\\') {\n      if ((cVar2 == '*' || cVar2 == '?') || ((cVar2 + 0xa5U & 0xfd) == 0)) {\n        return 0;\n      }\n      if (param_1 != (char *)0x0) {\n        *param_1 = cVar2;\n        param_1 = param_1 + 1;\n      }\n      cVar2 = param_2[1];\n      param_2 = param_2 + 1;\n      if (cVar2 == '\0') goto LAB_0008c953;\n    }\n    if (param_2[1] == '\0') break;\n    if (param_1 != (char *)0x0) {\n      *param_1 = param_2[1];\n      param_1 = param_1 + 1;\n    }\n    pcVar1 = param_2 + 2;\n    param_2 = param_2 + 2;\n    cVar2 = *pcVar1;\n  }\nLAB_0008c953:\n  if (param_1 != (char *)0x0) {\n    *param_1 = '\0';\n  }\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_0008c900(char *param_1,char *param_2)\n\n{\n  char *pcVar1;\n  char cVar2;\n  \n  cVar2 = *param_2;\n  while (cVar2 != '\0') {\n    while (cVar2 != '\\') {\n      if ((cVar2 == '*' || cVar2 == '?') || ((cVar2 + 0xa5U & 0xfd) == 0)) {\n        return 0;\n      }\n      if (param_1 != (char *)0x0) {\n        *param_1 = cVar2;\n        param_1 = param_1 + 1;\n      }\n      cVar2 = param_2[1];\n      param_2 = param_2 + 1;\n      if (cVar2 == '\0') goto LAB_0008c953;\n    }\n    if (param_2[1] == '\0') break;\n    if (param_1 != (char *)0x0) {\n      *param_1 = param_2[1];\n      param_1 = param_1 + 1;\n    }\n    pcVar1 = param_2 + 2;\n    param_2 = param_2 + 2;\n    cVar2 = *pcVar1;\n  }\nLAB_0008c953:\n  if (param_1 != (char *)0x0) {\n    *param_1 = '\0';\n  }\n  return 1;\n}" type_identifier (function_declarator "FUN_0008c900(char *param_1,char *param_2)" identifier (parameter_list "(char *param_1,char *param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  char *pcVar1;\n  char cVar2;\n  \n  cVar2 = *param_2;\n  while (cVar2 != '\0') {\n    while (cVar2 != '\\') {\n      if ((cVar2 == '*' || cVar2 == '?') || ((cVar2 + 0xa5U & 0xfd) == 0)) {\n        return 0;\n      }\n      if (param_1 != (char *)0x0) {\n        *param_1 = cVar2;\n        param_1 = param_1 + 1;\n      }\n      cVar2 = param_2[1];\n      param_2 = param_2 + 1;\n      if (cVar2 == '\0') goto LAB_0008c953;\n    }\n    if (param_2[1] == '\0') break;\n    if (param_1 != (char *)0x0) {\n      *param_1 = param_2[1];\n      param_1 = param_1 + 1;\n    }\n    pcVar1 = param_2 + 2;\n    param_2 = param_2 + 2;\n    cVar2 = *pcVar1;\n  }\nLAB_0008c953:\n  if (param_1 != (char *)0x0) {\n    *param_1 = '\0';\n  }\n  return 1;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char cVar2;" primitive_type identifier ;) (expression_statement "cVar2 = *param_2;" (assignment_expression "cVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (while_statement "while (cVar2 != '\0') {\n    while (cVar2 != '\\') {\n      if ((cVar2 == '*' || cVar2 == '?') || ((cVar2 + 0xa5U & 0xfd) == 0)) {\n        return 0;\n      }\n      if (param_1 != (char *)0x0) {\n        *param_1 = cVar2;\n        param_1 = param_1 + 1;\n      }\n      cVar2 = param_2[1];\n      param_2 = param_2 + 1;\n      if (cVar2 == '\0') goto LAB_0008c953;\n    }\n    if (param_2[1] == '\0') break;\n    if (param_1 != (char *)0x0) {\n      *param_1 = param_2[1];\n      param_1 = param_1 + 1;\n    }\n    pcVar1 = param_2 + 2;\n    param_2 = param_2 + 2;\n    cVar2 = *pcVar1;\n  }" while (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    while (cVar2 != '\\') {\n      if ((cVar2 == '*' || cVar2 == '?') || ((cVar2 + 0xa5U & 0xfd) == 0)) {\n        return 0;\n      }\n      if (param_1 != (char *)0x0) {\n        *param_1 = cVar2;\n        param_1 = param_1 + 1;\n      }\n      cVar2 = param_2[1];\n      param_2 = param_2 + 1;\n      if (cVar2 == '\0') goto LAB_0008c953;\n    }\n    if (param_2[1] == '\0') break;\n    if (param_1 != (char *)0x0) {\n      *param_1 = param_2[1];\n      param_1 = param_1 + 1;\n    }\n    pcVar1 = param_2 + 2;\n    param_2 = param_2 + 2;\n    cVar2 = *pcVar1;\n  }" { (while_statement "while (cVar2 != '\\') {\n      if ((cVar2 == '*' || cVar2 == '?') || ((cVar2 + 0xa5U & 0xfd) == 0)) {\n        return 0;\n      }\n      if (param_1 != (char *)0x0) {\n        *param_1 = cVar2;\n        param_1 = param_1 + 1;\n      }\n      cVar2 = param_2[1];\n      param_2 = param_2 + 1;\n      if (cVar2 == '\0') goto LAB_0008c953;\n    }" while (parenthesized_expression "(cVar2 != '\\')" ( (binary_expression "cVar2 != '\\'" identifier != (char_literal "'\\'" ' escape_sequence ')) )) (compound_statement "{\n      if ((cVar2 == '*' || cVar2 == '?') || ((cVar2 + 0xa5U & 0xfd) == 0)) {\n        return 0;\n      }\n      if (param_1 != (char *)0x0) {\n        *param_1 = cVar2;\n        param_1 = param_1 + 1;\n      }\n      cVar2 = param_2[1];\n      param_2 = param_2 + 1;\n      if (cVar2 == '\0') goto LAB_0008c953;\n    }" { (if_statement "if ((cVar2 == '*' || cVar2 == '?') || ((cVar2 + 0xa5U & 0xfd) == 0)) {\n        return 0;\n      }" if (parenthesized_expression "((cVar2 == '*' || cVar2 == '?') || ((cVar2 + 0xa5U & 0xfd) == 0))" ( (binary_expression "(cVar2 == '*' || cVar2 == '?') || ((cVar2 + 0xa5U & 0xfd) == 0)" (parenthesized_expression "(cVar2 == '*' || cVar2 == '?')" ( (binary_expression "cVar2 == '*' || cVar2 == '?'" (binary_expression "cVar2 == '*'" identifier == (char_literal "'*'" ' character ')) || (binary_expression "cVar2 == '?'" identifier == (char_literal "'?'" ' character '))) )) || (parenthesized_expression "((cVar2 + 0xa5U & 0xfd) == 0)" ( (binary_expression "(cVar2 + 0xa5U & 0xfd) == 0" (parenthesized_expression "(cVar2 + 0xa5U & 0xfd)" ( (binary_expression "cVar2 + 0xa5U & 0xfd" (binary_expression "cVar2 + 0xa5U" identifier + number_literal) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_1 != (char *)0x0) {\n        *param_1 = cVar2;\n        param_1 = param_1 + 1;\n      }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *param_1 = cVar2;\n        param_1 = param_1 + 1;\n      }" { (expression_statement "*param_1 = cVar2;" (assignment_expression "*param_1 = cVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) })) (expression_statement "cVar2 = param_2[1];" (assignment_expression "cVar2 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (if_statement "if (cVar2 == '\0') goto LAB_0008c953;" if (parenthesized_expression "(cVar2 == '\0')" ( (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_0008c953;" goto statement_identifier ;)) })) (if_statement "if (param_2[1] == '\0') break;" if (parenthesized_expression "(param_2[1] == '\0')" ( (binary_expression "param_2[1] == '\0'" (subscript_expression "param_2[1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (break_statement "break;" break ;)) (if_statement "if (param_1 != (char *)0x0) {\n      *param_1 = param_2[1];\n      param_1 = param_1 + 1;\n    }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *param_1 = param_2[1];\n      param_1 = param_1 + 1;\n    }" { (expression_statement "*param_1 = param_2[1];" (assignment_expression "*param_1 = param_2[1]" (pointer_expression "*param_1" * identifier) = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) })) (expression_statement "pcVar1 = param_2 + 2;" (assignment_expression "pcVar1 = param_2 + 2" identifier = (binary_expression "param_2 + 2" identifier + number_literal)) ;) (expression_statement "param_2 = param_2 + 2;" (assignment_expression "param_2 = param_2 + 2" identifier = (binary_expression "param_2 + 2" identifier + number_literal)) ;) (expression_statement "cVar2 = *pcVar1;" (assignment_expression "cVar2 = *pcVar1" identifier = (pointer_expression "*pcVar1" * identifier)) ;) })) (labeled_statement "LAB_0008c953:\n  if (param_1 != (char *)0x0) {\n    *param_1 = '\0';\n  }" statement_identifier : (if_statement "if (param_1 != (char *)0x0) {\n    *param_1 = '\0';\n  }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *param_1 = '\0';\n  }" { (expression_statement "*param_1 = '\0';" (assignment_expression "*param_1 = '\0'" (pointer_expression "*param_1" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) }))) (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 = (pointer_expression * IDENT)) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (while_statement while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT == (char_literal ' character ')) || (binary_expression IDENT == (char_literal ' character '))) )) || (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) & LIT) )) == LIT) ))) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' escape_sequence ')) )) (break_statement break ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) }))) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_0008c900(char *param_1,char *param_2)\n\n{\n  char *pcVar1;\n  char cVar2;\n  \n  cVar2 = *param_2;\n  while (cVar2 != '\0') {\n    while (cVar2 != '\\') {\n      if ((cVar2 == '*' || cVar2 == '?') || ((cVar2 + 0xa5U & 0xfd) == 0)) {\n        return 0;\n      }\n      if (param_1 != (char *)0x0) {\n        *param_1 = cVar2;\n        param_1 = param_1 + 1;\n      }\n      cVar2 = param_2[1];\n      param_2 = param_2 + 1;\n      if (cVar2 == '\0') goto LAB_0008c953;\n    }\n    if (param_2[1] == '\0') break;\n    if (param_1 != (char *)0x0) {\n      *param_1 = param_2[1];\n      param_1 = param_1 + 1;\n    }\n    pcVar1 = param_2 + 2;\n    param_2 = param_2 + 2;\n    cVar2 = *pcVar1;\n  }\nLAB_0008c953:\n  if (param_1 != (char *)0x0) {\n    *param_1 = '\0';\n  }\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "FUN_0008c900(char *param_1,char *param_2)" (identifier "FUN_0008c900") (parameter_list "(char *param_1,char *param_2)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  char *pcVar1;\n  char cVar2;\n  \n  cVar2 = *param_2;\n  while (cVar2 != '\0') {\n    while (cVar2 != '\\') {\n      if ((cVar2 == '*' || cVar2 == '?') || ((cVar2 + 0xa5U & 0xfd) == 0)) {\n        return 0;\n      }\n      if (param_1 != (char *)0x0) {\n        *param_1 = cVar2;\n        param_1 = param_1 + 1;\n      }\n      cVar2 = param_2[1];\n      param_2 = param_2 + 1;\n      if (cVar2 == '\0') goto LAB_0008c953;\n    }\n    if (param_2[1] == '\0') break;\n    if (param_1 != (char *)0x0) {\n      *param_1 = param_2[1];\n      param_1 = param_1 + 1;\n    }\n    pcVar1 = param_2 + 2;\n    param_2 = param_2 + 2;\n    cVar2 = *pcVar1;\n  }\nLAB_0008c953:\n  if (param_1 != (char *)0x0) {\n    *param_1 = '\0';\n  }\n  return 1;\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "char cVar2;" (primitive_type "char") (identifier "cVar2") (; ";")) (expression_statement "cVar2 = *param_2;" (assignment_expression "cVar2 = *param_2" (identifier "cVar2") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (while_statement "while (cVar2 != '\0') {\n    while (cVar2 != '\\') {\n      if ((cVar2 == '*' || cVar2 == '?') || ((cVar2 + 0xa5U & 0xfd) == 0)) {\n        return 0;\n      }\n      if (param_1 != (char *)0x0) {\n        *param_1 = cVar2;\n        param_1 = param_1 + 1;\n      }\n      cVar2 = param_2[1];\n      param_2 = param_2 + 1;\n      if (cVar2 == '\0') goto LAB_0008c953;\n    }\n    if (param_2[1] == '\0') break;\n    if (param_1 != (char *)0x0) {\n      *param_1 = param_2[1];\n      param_1 = param_1 + 1;\n    }\n    pcVar1 = param_2 + 2;\n    param_2 = param_2 + 2;\n    cVar2 = *pcVar1;\n  }" (while "while") (parenthesized_expression "(cVar2 != '\0')" (( "(") (binary_expression "cVar2 != '\0'" (identifier "cVar2") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    while (cVar2 != '\\') {\n      if ((cVar2 == '*' || cVar2 == '?') || ((cVar2 + 0xa5U & 0xfd) == 0)) {\n        return 0;\n      }\n      if (param_1 != (char *)0x0) {\n        *param_1 = cVar2;\n        param_1 = param_1 + 1;\n      }\n      cVar2 = param_2[1];\n      param_2 = param_2 + 1;\n      if (cVar2 == '\0') goto LAB_0008c953;\n    }\n    if (param_2[1] == '\0') break;\n    if (param_1 != (char *)0x0) {\n      *param_1 = param_2[1];\n      param_1 = param_1 + 1;\n    }\n    pcVar1 = param_2 + 2;\n    param_2 = param_2 + 2;\n    cVar2 = *pcVar1;\n  }" ({ "{") (while_statement "while (cVar2 != '\\') {\n      if ((cVar2 == '*' || cVar2 == '?') || ((cVar2 + 0xa5U & 0xfd) == 0)) {\n        return 0;\n      }\n      if (param_1 != (char *)0x0) {\n        *param_1 = cVar2;\n        param_1 = param_1 + 1;\n      }\n      cVar2 = param_2[1];\n      param_2 = param_2 + 1;\n      if (cVar2 == '\0') goto LAB_0008c953;\n    }" (while "while") (parenthesized_expression "(cVar2 != '\\')" (( "(") (binary_expression "cVar2 != '\\'" (identifier "cVar2") (!= "!=") (char_literal "'\\'" (' "'") (escape_sequence "\\") (' "'"))) () ")")) (compound_statement "{\n      if ((cVar2 == '*' || cVar2 == '?') || ((cVar2 + 0xa5U & 0xfd) == 0)) {\n        return 0;\n      }\n      if (param_1 != (char *)0x0) {\n        *param_1 = cVar2;\n        param_1 = param_1 + 1;\n      }\n      cVar2 = param_2[1];\n      param_2 = param_2 + 1;\n      if (cVar2 == '\0') goto LAB_0008c953;\n    }" ({ "{") (if_statement "if ((cVar2 == '*' || cVar2 == '?') || ((cVar2 + 0xa5U & 0xfd) == 0)) {\n        return 0;\n      }" (if "if") (parenthesized_expression "((cVar2 == '*' || cVar2 == '?') || ((cVar2 + 0xa5U & 0xfd) == 0))" (( "(") (binary_expression "(cVar2 == '*' || cVar2 == '?') || ((cVar2 + 0xa5U & 0xfd) == 0)" (parenthesized_expression "(cVar2 == '*' || cVar2 == '?')" (( "(") (binary_expression "cVar2 == '*' || cVar2 == '?'" (binary_expression "cVar2 == '*'" (identifier "cVar2") (== "==") (char_literal "'*'" (' "'") (character "*") (' "'"))) (|| "||") (binary_expression "cVar2 == '?'" (identifier "cVar2") (== "==") (char_literal "'?'" (' "'") (character "?") (' "'")))) () ")")) (|| "||") (parenthesized_expression "((cVar2 + 0xa5U & 0xfd) == 0)" (( "(") (binary_expression "(cVar2 + 0xa5U & 0xfd) == 0" (parenthesized_expression "(cVar2 + 0xa5U & 0xfd)" (( "(") (binary_expression "cVar2 + 0xa5U & 0xfd" (binary_expression "cVar2 + 0xa5U" (identifier "cVar2") (+ "+") (number_literal "0xa5U")) (& "&") (number_literal "0xfd")) () ")")) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (param_1 != (char *)0x0) {\n        *param_1 = cVar2;\n        param_1 = param_1 + 1;\n      }" (if "if") (parenthesized_expression "(param_1 != (char *)0x0)" (( "(") (binary_expression "param_1 != (char *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        *param_1 = cVar2;\n        param_1 = param_1 + 1;\n      }" ({ "{") (expression_statement "*param_1 = cVar2;" (assignment_expression "*param_1 = cVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "cVar2")) (; ";")) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "cVar2 = param_2[1];" (assignment_expression "cVar2 = param_2[1]" (identifier "cVar2") (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" (identifier "param_2") (= "=") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (cVar2 == '\0') goto LAB_0008c953;" (if "if") (parenthesized_expression "(cVar2 == '\0')" (( "(") (binary_expression "cVar2 == '\0'" (identifier "cVar2") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_0008c953;" (goto "goto") (statement_identifier "LAB_0008c953") (; ";"))) (} "}"))) (if_statement "if (param_2[1] == '\0') break;" (if "if") (parenthesized_expression "(param_2[1] == '\0')" (( "(") (binary_expression "param_2[1] == '\0'" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (if_statement "if (param_1 != (char *)0x0) {\n      *param_1 = param_2[1];\n      param_1 = param_1 + 1;\n    }" (if "if") (parenthesized_expression "(param_1 != (char *)0x0)" (( "(") (binary_expression "param_1 != (char *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      *param_1 = param_2[1];\n      param_1 = param_1 + 1;\n    }" ({ "{") (expression_statement "*param_1 = param_2[1];" (assignment_expression "*param_1 = param_2[1]" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "pcVar1 = param_2 + 2;" (assignment_expression "pcVar1 = param_2 + 2" (identifier "pcVar1") (= "=") (binary_expression "param_2 + 2" (identifier "param_2") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "param_2 = param_2 + 2;" (assignment_expression "param_2 = param_2 + 2" (identifier "param_2") (= "=") (binary_expression "param_2 + 2" (identifier "param_2") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "cVar2 = *pcVar1;" (assignment_expression "cVar2 = *pcVar1" (identifier "cVar2") (= "=") (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1"))) (; ";")) (} "}"))) (labeled_statement "LAB_0008c953:\n  if (param_1 != (char *)0x0) {\n    *param_1 = '\0';\n  }" (statement_identifier "LAB_0008c953") (: ":") (if_statement "if (param_1 != (char *)0x0) {\n    *param_1 = '\0';\n  }" (if "if") (parenthesized_expression "(param_1 != (char *)0x0)" (( "(") (binary_expression "param_1 != (char *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    *param_1 = '\0';\n  }" ({ "{") (expression_statement "*param_1 = '\0';" (assignment_expression "*param_1 = '\0'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (} "}")))) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

int function_1(char *var_2,char *var_3)

{
  char *pcVar1;
  char var_1;
  
  var_1 = *var_3;
  while (var_1 != '\0') {
    while (var_1 != '\\') {
      if ((var_1 == '*' || var_1 == '?') || ((var_1 + 0xa5U & 0xfd) == 0)) {
        return 0;
      }
      if (var_2 != (char *)0x0) {
        *var_2 = var_1;
        var_2 = var_2 + 1;
      }
      var_1 = var_3[1];
      var_3 = var_3 + 1;
      if (var_1 == '\0') goto LAB_0008c953;
    }
    if (var_3[1] == '\0') break;
    if (var_2 != (char *)0x0) {
      *var_2 = var_3[1];
      var_2 = var_2 + 1;
    }
    pcVar1 = var_3 + 2;
    var_3 = var_3 + 2;
    var_1 = *pcVar1;
  }
LAB_0008c953:
  if (var_2 != (char *)0x0) {
    *var_2 = '\0';
  }
  return 1;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) 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: (pointer_expression argument: (identifier)))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) body: (compound_statement (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (char_literal (character))) right: (binary_expression left: (identifier) right: (char_literal (character))))) right: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (number_literal))))) consequence: (compound_statement (return_statement (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: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (goto_statement label: (statement_identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) consequence: (break_statement)) (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: (pointer_expression argument: (identifier)) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))))) (labeled_statement label: (statement_identifier) (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: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence))))))) (return_statement (number_literal)))))

undefined4 MASKED(char *param_1,char *param_2)

{
  char *pcVar1;
  char cVar2;
  
  cVar2 = *param_2;
  while (cVar2 != '\0') {
    while (cVar2 != '\\') {
      if ((cVar2 == '*' || cVar2 == '?') || ((cVar2 + 0xa5U & 0xfd) == 0)) {
        return 0;
      }
      if (param_1 != (char *)0x0) {
        *param_1 = cVar2;
        param_1 = param_1 + 1;
      }
      cVar2 = param_2[1];
      param_2 = param_2 + 1;
      if (cVar2 == '\0') goto LAB_0008c953;
    }
    if (param_2[1] == '\0') break;
    if (param_1 != (char *)0x0) {
      *param_1 = param_2[1];
      param_1 = param_1 + 1;
    }
    pcVar1 = param_2 + 2;
    param_2 = param_2 + 2;
    cVar2 = *pcVar1;
  }
LAB_0008c953:
  if (param_1 != (char *)0x0) {
    *param_1 = '\0';
  }
  return 1;
}

