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

char * glob_dirscan(char *pat,int dirsep)

{
  uchar uVar1;
  uchar *puVar2;
  size_t sVar3;
  uchar *puVar4;
  uchar *local_24;
  
  if ((pat == (char *)0x0) || (uVar1 = *pat, uVar1 == '\0')) {
    return (char *)0x0;
  }
  local_24 = (uchar *)0x0;
  puVar4 = (uchar *)0x0;
  do {
    if ((((byte)(uVar1 - 0x21) < 0x20) && ((1 << (uVar1 - 0x21 & 0x1f) & 0xc0000601U) != 0)) &&
       (((uchar *)pat)[1] == '(')) {
      if (local_24 == (uchar *)0x0) {
        sVar3 = strlen(pat);
        local_24 = (uchar *)pat + (sVar3 - 1);
      }
      puVar2 = glob_patscan((uchar *)pat + 2,local_24,0);
      if (puVar2 == (uchar *)0x0) goto LAB_000bbb0a;
      if (*puVar2 == '\0') {
        return (char *)puVar4;
      }
      pat = (char *)(puVar2 + -1);
    }
    else {
      if ((char)uVar1 == dirsep) {
        puVar4 = (uchar *)pat;
      }
LAB_000bbb0a:
      puVar2 = (uchar *)pat + 1;
      if (puVar2 == (uchar *)0x0) {
        return (char *)puVar4;
      }
    }
    uVar1 = ((uchar *)pat)[1];
    pat = (char *)puVar2;
    if (uVar1 == '\0') {
      return (char *)puVar4;
    }
  } while( true );
}



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

char * glob_dirscan(char *param_1,int param_2)

{
  char cVar1;
  char *pcVar2;
  size_t sVar3;
  char *pcVar4;
  char *local_24;
  
  if ((param_1 == (char *)0x0) || (cVar1 = *param_1, cVar1 == '\0')) {
    return (char *)0x0;
  }
  local_24 = (char *)0x0;
  pcVar4 = (char *)0x0;
  do {
    if ((((byte)(cVar1 - 0x21U) < 0x20) && ((1 << (cVar1 - 0x21U & 0x1f) & 0xc0000601U) != 0)) &&
       (param_1[1] == '(')) {
      if (local_24 == (char *)0x0) {
        sVar3 = strlen(param_1);
        local_24 = param_1 + (sVar3 - 1);
      }
      pcVar2 = (char *)glob_patscan(param_1 + 2,local_24,0);
      if (pcVar2 == (char *)0x0) goto LAB_000bbb0a;
      if (*pcVar2 == '\0') {
        return pcVar4;
      }
      param_1 = pcVar2 + -1;
    }
    else {
      if (cVar1 == param_2) {
        pcVar4 = param_1;
      }
LAB_000bbb0a:
      pcVar2 = param_1 + 1;
      if (pcVar2 == (char *)0x0) {
        return pcVar4;
      }
    }
    cVar1 = param_1[1];
    param_1 = pcVar2;
    if (cVar1 == '\0') {
      return pcVar4;
    }
  } while( true );
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00031ed0
ADD EBX,0x8e597
SUB ESP,0x1c
MOV ESI,dword ptr [ESP + 0x30]
TEST ESI,ESI
JZ 0x000bbb5d
MOVSX EAX,byte ptr [ESI]
TEST AL,AL
JZ 0x000bbb5d
MOV dword ptr [ESP + 0x8],0x0
XOR EDI,EDI
MOV EDX,0x1
LEA ESI,[ESI]
NOP
LEA ECX,[EAX + -0x21]
CMP CL,0x1f
JA 0x000bbb00
MOV EBP,EDX
SHL EBP,CL
MOV ECX,EBP
AND ECX,0xc0000601
JZ 0x000bbb00
CMP byte ptr [ESI + 0x1],0x28
JNZ 0x000bbb00
MOV EAX,dword ptr [ESP + 0x8]
TEST EAX,EAX
JZ 0x000bbb30
MOV dword ptr [ESP + 0xc],EDX
LEA EAX,[ESI + 0x2]
SUB ESP,0x4
PUSH 0x0
PUSH dword ptr [ESP + 0x10]
PUSH EAX
CALL 0x000ba7c0
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
TEST EAX,EAX
MOV ECX,EAX
JZ 0x000bbb58
CMP byte ptr [EAX],0x0
JNZ 0x000bbb28
ADD ESP,0x1c
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
POP EBP
RET
CMP EAX,dword ptr [ESP + 0x34]
LEA ECX,[ESI + 0x1]
CMOVZ EDI,ESI
TEST ECX,ECX
JZ 0x000bbaec
MOVSX EAX,byte ptr [ESI + 0x1]
MOV ESI,ECX
TEST AL,AL
JNZ 0x000bbaa0
ADD ESP,0x1c
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA ESI,[EAX + -0x1]
JMP 0x000bbb0e
MOV dword ptr [ESP + 0xc],EDX
SUB ESP,0xc
PUSH ESI
CALL 0x0002f760
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
LEA EAX,[ESI + EAX*0x1 + -0x1]
MOV dword ptr [ESP + 0x8],EAX
JMP 0x000bbac4
LEA ECX,[ESI + 0x1]
JMP 0x000bbb0a
XOR EDI,EDI
JMP 0x000bbaec
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * glob_dirscan(char *param_1,int param_2)\n\n{\n  char cVar1;\n  char *pcVar2;\n  size_t sVar3;\n  char *pcVar4;\n  char *local_24;\n  \n  if ((param_1 == (char *)0x0) || (cVar1 = *param_1, cVar1 == '\0')) {\n    return (char *)0x0;\n  }\n  local_24 = (char *)0x0;\n  pcVar4 = (char *)0x0;\n  do {\n    if ((((byte)(cVar1 - 0x21U) < 0x20) && ((1 << (cVar1 - 0x21U & 0x1f) & 0xc0000601U) != 0)) &&\n       (param_1[1] == '(')) {\n      if (local_24 == (char *)0x0) {\n        sVar3 = strlen(param_1);\n        local_24 = param_1 + (sVar3 - 1);\n      }\n      pcVar2 = (char *)glob_patscan(param_1 + 2,local_24,0);\n      if (pcVar2 == (char *)0x0) goto LAB_000bbb0a;\n      if (*pcVar2 == '\0') {\n        return pcVar4;\n      }\n      param_1 = pcVar2 + -1;\n    }\n    else {\n      if (cVar1 == param_2) {\n        pcVar4 = param_1;\n      }\nLAB_000bbb0a:\n      pcVar2 = param_1 + 1;\n      if (pcVar2 == (char *)0x0) {\n        return pcVar4;\n      }\n    }\n    cVar1 = param_1[1];\n    param_1 = pcVar2;\n    if (cVar1 == '\0') {\n      return pcVar4;\n    }\n  } while( true );\n}\n\n" comment (function_definition "char * glob_dirscan(char *param_1,int param_2)\n\n{\n  char cVar1;\n  char *pcVar2;\n  size_t sVar3;\n  char *pcVar4;\n  char *local_24;\n  \n  if ((param_1 == (char *)0x0) || (cVar1 = *param_1, cVar1 == '\0')) {\n    return (char *)0x0;\n  }\n  local_24 = (char *)0x0;\n  pcVar4 = (char *)0x0;\n  do {\n    if ((((byte)(cVar1 - 0x21U) < 0x20) && ((1 << (cVar1 - 0x21U & 0x1f) & 0xc0000601U) != 0)) &&\n       (param_1[1] == '(')) {\n      if (local_24 == (char *)0x0) {\n        sVar3 = strlen(param_1);\n        local_24 = param_1 + (sVar3 - 1);\n      }\n      pcVar2 = (char *)glob_patscan(param_1 + 2,local_24,0);\n      if (pcVar2 == (char *)0x0) goto LAB_000bbb0a;\n      if (*pcVar2 == '\0') {\n        return pcVar4;\n      }\n      param_1 = pcVar2 + -1;\n    }\n    else {\n      if (cVar1 == param_2) {\n        pcVar4 = param_1;\n      }\nLAB_000bbb0a:\n      pcVar2 = param_1 + 1;\n      if (pcVar2 == (char *)0x0) {\n        return pcVar4;\n      }\n    }\n    cVar1 = param_1[1];\n    param_1 = pcVar2;\n    if (cVar1 == '\0') {\n      return pcVar4;\n    }\n  } while( true );\n}" primitive_type (pointer_declarator "* glob_dirscan(char *param_1,int param_2)" * (function_declarator "glob_dirscan(char *param_1,int param_2)" identifier (parameter_list "(char *param_1,int param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  char cVar1;\n  char *pcVar2;\n  size_t sVar3;\n  char *pcVar4;\n  char *local_24;\n  \n  if ((param_1 == (char *)0x0) || (cVar1 = *param_1, cVar1 == '\0')) {\n    return (char *)0x0;\n  }\n  local_24 = (char *)0x0;\n  pcVar4 = (char *)0x0;\n  do {\n    if ((((byte)(cVar1 - 0x21U) < 0x20) && ((1 << (cVar1 - 0x21U & 0x1f) & 0xc0000601U) != 0)) &&\n       (param_1[1] == '(')) {\n      if (local_24 == (char *)0x0) {\n        sVar3 = strlen(param_1);\n        local_24 = param_1 + (sVar3 - 1);\n      }\n      pcVar2 = (char *)glob_patscan(param_1 + 2,local_24,0);\n      if (pcVar2 == (char *)0x0) goto LAB_000bbb0a;\n      if (*pcVar2 == '\0') {\n        return pcVar4;\n      }\n      param_1 = pcVar2 + -1;\n    }\n    else {\n      if (cVar1 == param_2) {\n        pcVar4 = param_1;\n      }\nLAB_000bbb0a:\n      pcVar2 = param_1 + 1;\n      if (pcVar2 == (char *)0x0) {\n        return pcVar4;\n      }\n    }\n    cVar1 = param_1[1];\n    param_1 = pcVar2;\n    if (cVar1 == '\0') {\n      return pcVar4;\n    }\n  } while( true );\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "char *local_24;" primitive_type (pointer_declarator "*local_24" * identifier) ;) (if_statement "if ((param_1 == (char *)0x0) || (cVar1 = *param_1, cVar1 == '\0')) {\n    return (char *)0x0;\n  }" if (parenthesized_expression "((param_1 == (char *)0x0) || (cVar1 = *param_1, cVar1 == '\0'))" ( (binary_expression "(param_1 == (char *)0x0) || (cVar1 = *param_1, cVar1 == '\0')" (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)) )) || (parenthesized_expression "(cVar1 = *param_1, cVar1 == '\0')" ( (comma_expression "cVar1 = *param_1, cVar1 == '\0'" (assignment_expression "cVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) , (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence '))) ))) )) (compound_statement "{\n    return (char *)0x0;\n  }" { (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "local_24 = (char *)0x0;" (assignment_expression "local_24 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pcVar4 = (char *)0x0;" (assignment_expression "pcVar4 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (do_statement "do {\n    if ((((byte)(cVar1 - 0x21U) < 0x20) && ((1 << (cVar1 - 0x21U & 0x1f) & 0xc0000601U) != 0)) &&\n       (param_1[1] == '(')) {\n      if (local_24 == (char *)0x0) {\n        sVar3 = strlen(param_1);\n        local_24 = param_1 + (sVar3 - 1);\n      }\n      pcVar2 = (char *)glob_patscan(param_1 + 2,local_24,0);\n      if (pcVar2 == (char *)0x0) goto LAB_000bbb0a;\n      if (*pcVar2 == '\0') {\n        return pcVar4;\n      }\n      param_1 = pcVar2 + -1;\n    }\n    else {\n      if (cVar1 == param_2) {\n        pcVar4 = param_1;\n      }\nLAB_000bbb0a:\n      pcVar2 = param_1 + 1;\n      if (pcVar2 == (char *)0x0) {\n        return pcVar4;\n      }\n    }\n    cVar1 = param_1[1];\n    param_1 = pcVar2;\n    if (cVar1 == '\0') {\n      return pcVar4;\n    }\n  } while( true );" do (compound_statement "{\n    if ((((byte)(cVar1 - 0x21U) < 0x20) && ((1 << (cVar1 - 0x21U & 0x1f) & 0xc0000601U) != 0)) &&\n       (param_1[1] == '(')) {\n      if (local_24 == (char *)0x0) {\n        sVar3 = strlen(param_1);\n        local_24 = param_1 + (sVar3 - 1);\n      }\n      pcVar2 = (char *)glob_patscan(param_1 + 2,local_24,0);\n      if (pcVar2 == (char *)0x0) goto LAB_000bbb0a;\n      if (*pcVar2 == '\0') {\n        return pcVar4;\n      }\n      param_1 = pcVar2 + -1;\n    }\n    else {\n      if (cVar1 == param_2) {\n        pcVar4 = param_1;\n      }\nLAB_000bbb0a:\n      pcVar2 = param_1 + 1;\n      if (pcVar2 == (char *)0x0) {\n        return pcVar4;\n      }\n    }\n    cVar1 = param_1[1];\n    param_1 = pcVar2;\n    if (cVar1 == '\0') {\n      return pcVar4;\n    }\n  }" { (if_statement "if ((((byte)(cVar1 - 0x21U) < 0x20) && ((1 << (cVar1 - 0x21U & 0x1f) & 0xc0000601U) != 0)) &&\n       (param_1[1] == '(')) {\n      if (local_24 == (char *)0x0) {\n        sVar3 = strlen(param_1);\n        local_24 = param_1 + (sVar3 - 1);\n      }\n      pcVar2 = (char *)glob_patscan(param_1 + 2,local_24,0);\n      if (pcVar2 == (char *)0x0) goto LAB_000bbb0a;\n      if (*pcVar2 == '\0') {\n        return pcVar4;\n      }\n      param_1 = pcVar2 + -1;\n    }\n    else {\n      if (cVar1 == param_2) {\n        pcVar4 = param_1;\n      }\nLAB_000bbb0a:\n      pcVar2 = param_1 + 1;\n      if (pcVar2 == (char *)0x0) {\n        return pcVar4;\n      }\n    }" if (parenthesized_expression "((((byte)(cVar1 - 0x21U) < 0x20) && ((1 << (cVar1 - 0x21U & 0x1f) & 0xc0000601U) != 0)) &&\n       (param_1[1] == '('))" ( (binary_expression "(((byte)(cVar1 - 0x21U) < 0x20) && ((1 << (cVar1 - 0x21U & 0x1f) & 0xc0000601U) != 0)) &&\n       (param_1[1] == '(')" (parenthesized_expression "(((byte)(cVar1 - 0x21U) < 0x20) && ((1 << (cVar1 - 0x21U & 0x1f) & 0xc0000601U) != 0))" ( (binary_expression "((byte)(cVar1 - 0x21U) < 0x20) && ((1 << (cVar1 - 0x21U & 0x1f) & 0xc0000601U) != 0)" (parenthesized_expression "((byte)(cVar1 - 0x21U) < 0x20)" ( (binary_expression "(byte)(cVar1 - 0x21U) < 0x20" (call_expression "(byte)(cVar1 - 0x21U)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(cVar1 - 0x21U)" ( (binary_expression "cVar1 - 0x21U" identifier - number_literal) ))) < number_literal) )) && (parenthesized_expression "((1 << (cVar1 - 0x21U & 0x1f) & 0xc0000601U) != 0)" ( (binary_expression "(1 << (cVar1 - 0x21U & 0x1f) & 0xc0000601U) != 0" (parenthesized_expression "(1 << (cVar1 - 0x21U & 0x1f) & 0xc0000601U)" ( (binary_expression "1 << (cVar1 - 0x21U & 0x1f) & 0xc0000601U" (binary_expression "1 << (cVar1 - 0x21U & 0x1f)" number_literal << (parenthesized_expression "(cVar1 - 0x21U & 0x1f)" ( (binary_expression "cVar1 - 0x21U & 0x1f" (binary_expression "cVar1 - 0x21U" identifier - number_literal) & number_literal) ))) & number_literal) )) != number_literal) ))) )) && (parenthesized_expression "(param_1[1] == '(')" ( (binary_expression "param_1[1] == '('" (subscript_expression "param_1[1]" identifier [ number_literal ]) == (char_literal "'('" ' character ')) ))) )) (compound_statement "{\n      if (local_24 == (char *)0x0) {\n        sVar3 = strlen(param_1);\n        local_24 = param_1 + (sVar3 - 1);\n      }\n      pcVar2 = (char *)glob_patscan(param_1 + 2,local_24,0);\n      if (pcVar2 == (char *)0x0) goto LAB_000bbb0a;\n      if (*pcVar2 == '\0') {\n        return pcVar4;\n      }\n      param_1 = pcVar2 + -1;\n    }" { (if_statement "if (local_24 == (char *)0x0) {\n        sVar3 = strlen(param_1);\n        local_24 = param_1 + (sVar3 - 1);\n      }" if (parenthesized_expression "(local_24 == (char *)0x0)" ( (binary_expression "local_24 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        sVar3 = strlen(param_1);\n        local_24 = param_1 + (sVar3 - 1);\n      }" { (expression_statement "sVar3 = strlen(param_1);" (assignment_expression "sVar3 = strlen(param_1)" identifier = (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "local_24 = param_1 + (sVar3 - 1);" (assignment_expression "local_24 = param_1 + (sVar3 - 1)" identifier = (binary_expression "param_1 + (sVar3 - 1)" identifier + (parenthesized_expression "(sVar3 - 1)" ( (binary_expression "sVar3 - 1" identifier - number_literal) )))) ;) })) (expression_statement "pcVar2 = (char *)glob_patscan(param_1 + 2,local_24,0);" (assignment_expression "pcVar2 = (char *)glob_patscan(param_1 + 2,local_24,0)" identifier = (cast_expression "(char *)glob_patscan(param_1 + 2,local_24,0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "glob_patscan(param_1 + 2,local_24,0)" identifier (argument_list "(param_1 + 2,local_24,0)" ( (binary_expression "param_1 + 2" identifier + number_literal) , identifier , number_literal ))))) ;) (if_statement "if (pcVar2 == (char *)0x0) goto LAB_000bbb0a;" if (parenthesized_expression "(pcVar2 == (char *)0x0)" ( (binary_expression "pcVar2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000bbb0a;" goto statement_identifier ;)) (if_statement "if (*pcVar2 == '\0') {\n        return pcVar4;\n      }" if (parenthesized_expression "(*pcVar2 == '\0')" ( (binary_expression "*pcVar2 == '\0'" (pointer_expression "*pcVar2" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        return pcVar4;\n      }" { (return_statement "return pcVar4;" return identifier ;) })) (expression_statement "param_1 = pcVar2 + -1;" (assignment_expression "param_1 = pcVar2 + -1" identifier = (binary_expression "pcVar2 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n      if (cVar1 == param_2) {\n        pcVar4 = param_1;\n      }\nLAB_000bbb0a:\n      pcVar2 = param_1 + 1;\n      if (pcVar2 == (char *)0x0) {\n        return pcVar4;\n      }\n    }" else (compound_statement "{\n      if (cVar1 == param_2) {\n        pcVar4 = param_1;\n      }\nLAB_000bbb0a:\n      pcVar2 = param_1 + 1;\n      if (pcVar2 == (char *)0x0) {\n        return pcVar4;\n      }\n    }" { (if_statement "if (cVar1 == param_2) {\n        pcVar4 = param_1;\n      }" if (parenthesized_expression "(cVar1 == param_2)" ( (binary_expression "cVar1 == param_2" identifier == identifier) )) (compound_statement "{\n        pcVar4 = param_1;\n      }" { (expression_statement "pcVar4 = param_1;" (assignment_expression "pcVar4 = param_1" identifier = identifier) ;) })) (labeled_statement "LAB_000bbb0a:\n      pcVar2 = param_1 + 1;" statement_identifier : (expression_statement "pcVar2 = param_1 + 1;" (assignment_expression "pcVar2 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;)) (if_statement "if (pcVar2 == (char *)0x0) {\n        return pcVar4;\n      }" if (parenthesized_expression "(pcVar2 == (char *)0x0)" ( (binary_expression "pcVar2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return pcVar4;\n      }" { (return_statement "return pcVar4;" return identifier ;) })) }))) (expression_statement "cVar1 = param_1[1];" (assignment_expression "cVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "param_1 = pcVar2;" (assignment_expression "param_1 = pcVar2" identifier = identifier) ;) (if_statement "if (cVar1 == '\0') {\n      return pcVar4;\n    }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return pcVar4;\n    }" { (return_statement "return pcVar4;" return identifier ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nchar * glob_dirscan(char *pat,int dirsep)\n\n{\n  uchar uVar1;\n  uchar *puVar2;\n  size_t sVar3;\n  uchar *puVar4;\n  uchar *local_24;\n  \n  if ((pat == (char *)0x0) || (uVar1 = *pat, uVar1 == '\0')) {\n    return (char *)0x0;\n  }\n  local_24 = (uchar *)0x0;\n  puVar4 = (uchar *)0x0;\n  do {\n    if ((((byte)(uVar1 - 0x21) < 0x20) && ((1 << (uVar1 - 0x21 & 0x1f) & 0xc0000601U) != 0)) &&\n       (((uchar *)pat)[1] == '(')) {\n      if (local_24 == (uchar *)0x0) {\n        sVar3 = strlen(pat);\n        local_24 = (uchar *)pat + (sVar3 - 1);\n      }\n      puVar2 = glob_patscan((uchar *)pat + 2,local_24,0);\n      if (puVar2 == (uchar *)0x0) goto LAB_000bbb0a;\n      if (*puVar2 == '\0') {\n        return (char *)puVar4;\n      }\n      pat = (char *)(puVar2 + -1);\n    }\n    else {\n      if ((char)uVar1 == dirsep) {\n        puVar4 = (uchar *)pat;\n      }\nLAB_000bbb0a:\n      puVar2 = (uchar *)pat + 1;\n      if (puVar2 == (uchar *)0x0) {\n        return (char *)puVar4;\n      }\n    }\n    uVar1 = ((uchar *)pat)[1];\n    pat = (char *)puVar2;\n    if (uVar1 == '\0') {\n      return (char *)puVar4;\n    }\n  } while( true );\n}\n\n" comment comment (function_definition "char * glob_dirscan(char *pat,int dirsep)\n\n{\n  uchar uVar1;\n  uchar *puVar2;\n  size_t sVar3;\n  uchar *puVar4;\n  uchar *local_24;\n  \n  if ((pat == (char *)0x0) || (uVar1 = *pat, uVar1 == '\0')) {\n    return (char *)0x0;\n  }\n  local_24 = (uchar *)0x0;\n  puVar4 = (uchar *)0x0;\n  do {\n    if ((((byte)(uVar1 - 0x21) < 0x20) && ((1 << (uVar1 - 0x21 & 0x1f) & 0xc0000601U) != 0)) &&\n       (((uchar *)pat)[1] == '(')) {\n      if (local_24 == (uchar *)0x0) {\n        sVar3 = strlen(pat);\n        local_24 = (uchar *)pat + (sVar3 - 1);\n      }\n      puVar2 = glob_patscan((uchar *)pat + 2,local_24,0);\n      if (puVar2 == (uchar *)0x0) goto LAB_000bbb0a;\n      if (*puVar2 == '\0') {\n        return (char *)puVar4;\n      }\n      pat = (char *)(puVar2 + -1);\n    }\n    else {\n      if ((char)uVar1 == dirsep) {\n        puVar4 = (uchar *)pat;\n      }\nLAB_000bbb0a:\n      puVar2 = (uchar *)pat + 1;\n      if (puVar2 == (uchar *)0x0) {\n        return (char *)puVar4;\n      }\n    }\n    uVar1 = ((uchar *)pat)[1];\n    pat = (char *)puVar2;\n    if (uVar1 == '\0') {\n      return (char *)puVar4;\n    }\n  } while( true );\n}" primitive_type (pointer_declarator "* glob_dirscan(char *pat,int dirsep)" * (function_declarator "glob_dirscan(char *pat,int dirsep)" identifier (parameter_list "(char *pat,int dirsep)" ( (parameter_declaration "char *pat" primitive_type (pointer_declarator "*pat" * identifier)) , (parameter_declaration "int dirsep" primitive_type identifier) )))) (compound_statement "{\n  uchar uVar1;\n  uchar *puVar2;\n  size_t sVar3;\n  uchar *puVar4;\n  uchar *local_24;\n  \n  if ((pat == (char *)0x0) || (uVar1 = *pat, uVar1 == '\0')) {\n    return (char *)0x0;\n  }\n  local_24 = (uchar *)0x0;\n  puVar4 = (uchar *)0x0;\n  do {\n    if ((((byte)(uVar1 - 0x21) < 0x20) && ((1 << (uVar1 - 0x21 & 0x1f) & 0xc0000601U) != 0)) &&\n       (((uchar *)pat)[1] == '(')) {\n      if (local_24 == (uchar *)0x0) {\n        sVar3 = strlen(pat);\n        local_24 = (uchar *)pat + (sVar3 - 1);\n      }\n      puVar2 = glob_patscan((uchar *)pat + 2,local_24,0);\n      if (puVar2 == (uchar *)0x0) goto LAB_000bbb0a;\n      if (*puVar2 == '\0') {\n        return (char *)puVar4;\n      }\n      pat = (char *)(puVar2 + -1);\n    }\n    else {\n      if ((char)uVar1 == dirsep) {\n        puVar4 = (uchar *)pat;\n      }\nLAB_000bbb0a:\n      puVar2 = (uchar *)pat + 1;\n      if (puVar2 == (uchar *)0x0) {\n        return (char *)puVar4;\n      }\n    }\n    uVar1 = ((uchar *)pat)[1];\n    pat = (char *)puVar2;\n    if (uVar1 == '\0') {\n      return (char *)puVar4;\n    }\n  } while( true );\n}" { (declaration "uchar uVar1;" type_identifier identifier ;) (declaration "uchar *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "uchar *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "uchar *local_24;" type_identifier (pointer_declarator "*local_24" * identifier) ;) (if_statement "if ((pat == (char *)0x0) || (uVar1 = *pat, uVar1 == '\0')) {\n    return (char *)0x0;\n  }" if (parenthesized_expression "((pat == (char *)0x0) || (uVar1 = *pat, uVar1 == '\0'))" ( (binary_expression "(pat == (char *)0x0) || (uVar1 = *pat, uVar1 == '\0')" (parenthesized_expression "(pat == (char *)0x0)" ( (binary_expression "pat == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(uVar1 = *pat, uVar1 == '\0')" ( (comma_expression "uVar1 = *pat, uVar1 == '\0'" (assignment_expression "uVar1 = *pat" identifier = (pointer_expression "*pat" * identifier)) , (binary_expression "uVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence '))) ))) )) (compound_statement "{\n    return (char *)0x0;\n  }" { (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "local_24 = (uchar *)0x0;" (assignment_expression "local_24 = (uchar *)0x0" identifier = (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "puVar4 = (uchar *)0x0;" (assignment_expression "puVar4 = (uchar *)0x0" identifier = (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (do_statement "do {\n    if ((((byte)(uVar1 - 0x21) < 0x20) && ((1 << (uVar1 - 0x21 & 0x1f) & 0xc0000601U) != 0)) &&\n       (((uchar *)pat)[1] == '(')) {\n      if (local_24 == (uchar *)0x0) {\n        sVar3 = strlen(pat);\n        local_24 = (uchar *)pat + (sVar3 - 1);\n      }\n      puVar2 = glob_patscan((uchar *)pat + 2,local_24,0);\n      if (puVar2 == (uchar *)0x0) goto LAB_000bbb0a;\n      if (*puVar2 == '\0') {\n        return (char *)puVar4;\n      }\n      pat = (char *)(puVar2 + -1);\n    }\n    else {\n      if ((char)uVar1 == dirsep) {\n        puVar4 = (uchar *)pat;\n      }\nLAB_000bbb0a:\n      puVar2 = (uchar *)pat + 1;\n      if (puVar2 == (uchar *)0x0) {\n        return (char *)puVar4;\n      }\n    }\n    uVar1 = ((uchar *)pat)[1];\n    pat = (char *)puVar2;\n    if (uVar1 == '\0') {\n      return (char *)puVar4;\n    }\n  } while( true );" do (compound_statement "{\n    if ((((byte)(uVar1 - 0x21) < 0x20) && ((1 << (uVar1 - 0x21 & 0x1f) & 0xc0000601U) != 0)) &&\n       (((uchar *)pat)[1] == '(')) {\n      if (local_24 == (uchar *)0x0) {\n        sVar3 = strlen(pat);\n        local_24 = (uchar *)pat + (sVar3 - 1);\n      }\n      puVar2 = glob_patscan((uchar *)pat + 2,local_24,0);\n      if (puVar2 == (uchar *)0x0) goto LAB_000bbb0a;\n      if (*puVar2 == '\0') {\n        return (char *)puVar4;\n      }\n      pat = (char *)(puVar2 + -1);\n    }\n    else {\n      if ((char)uVar1 == dirsep) {\n        puVar4 = (uchar *)pat;\n      }\nLAB_000bbb0a:\n      puVar2 = (uchar *)pat + 1;\n      if (puVar2 == (uchar *)0x0) {\n        return (char *)puVar4;\n      }\n    }\n    uVar1 = ((uchar *)pat)[1];\n    pat = (char *)puVar2;\n    if (uVar1 == '\0') {\n      return (char *)puVar4;\n    }\n  }" { (if_statement "if ((((byte)(uVar1 - 0x21) < 0x20) && ((1 << (uVar1 - 0x21 & 0x1f) & 0xc0000601U) != 0)) &&\n       (((uchar *)pat)[1] == '(')) {\n      if (local_24 == (uchar *)0x0) {\n        sVar3 = strlen(pat);\n        local_24 = (uchar *)pat + (sVar3 - 1);\n      }\n      puVar2 = glob_patscan((uchar *)pat + 2,local_24,0);\n      if (puVar2 == (uchar *)0x0) goto LAB_000bbb0a;\n      if (*puVar2 == '\0') {\n        return (char *)puVar4;\n      }\n      pat = (char *)(puVar2 + -1);\n    }\n    else {\n      if ((char)uVar1 == dirsep) {\n        puVar4 = (uchar *)pat;\n      }\nLAB_000bbb0a:\n      puVar2 = (uchar *)pat + 1;\n      if (puVar2 == (uchar *)0x0) {\n        return (char *)puVar4;\n      }\n    }" if (parenthesized_expression "((((byte)(uVar1 - 0x21) < 0x20) && ((1 << (uVar1 - 0x21 & 0x1f) & 0xc0000601U) != 0)) &&\n       (((uchar *)pat)[1] == '('))" ( (binary_expression "(((byte)(uVar1 - 0x21) < 0x20) && ((1 << (uVar1 - 0x21 & 0x1f) & 0xc0000601U) != 0)) &&\n       (((uchar *)pat)[1] == '(')" (parenthesized_expression "(((byte)(uVar1 - 0x21) < 0x20) && ((1 << (uVar1 - 0x21 & 0x1f) & 0xc0000601U) != 0))" ( (binary_expression "((byte)(uVar1 - 0x21) < 0x20) && ((1 << (uVar1 - 0x21 & 0x1f) & 0xc0000601U) != 0)" (parenthesized_expression "((byte)(uVar1 - 0x21) < 0x20)" ( (binary_expression "(byte)(uVar1 - 0x21) < 0x20" (call_expression "(byte)(uVar1 - 0x21)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar1 - 0x21)" ( (binary_expression "uVar1 - 0x21" identifier - number_literal) ))) < number_literal) )) && (parenthesized_expression "((1 << (uVar1 - 0x21 & 0x1f) & 0xc0000601U) != 0)" ( (binary_expression "(1 << (uVar1 - 0x21 & 0x1f) & 0xc0000601U) != 0" (parenthesized_expression "(1 << (uVar1 - 0x21 & 0x1f) & 0xc0000601U)" ( (binary_expression "1 << (uVar1 - 0x21 & 0x1f) & 0xc0000601U" (binary_expression "1 << (uVar1 - 0x21 & 0x1f)" number_literal << (parenthesized_expression "(uVar1 - 0x21 & 0x1f)" ( (binary_expression "uVar1 - 0x21 & 0x1f" (binary_expression "uVar1 - 0x21" identifier - number_literal) & number_literal) ))) & number_literal) )) != number_literal) ))) )) && (parenthesized_expression "(((uchar *)pat)[1] == '(')" ( (binary_expression "((uchar *)pat)[1] == '('" (subscript_expression "((uchar *)pat)[1]" (parenthesized_expression "((uchar *)pat)" ( (cast_expression "(uchar *)pat" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )) [ number_literal ]) == (char_literal "'('" ' character ')) ))) )) (compound_statement "{\n      if (local_24 == (uchar *)0x0) {\n        sVar3 = strlen(pat);\n        local_24 = (uchar *)pat + (sVar3 - 1);\n      }\n      puVar2 = glob_patscan((uchar *)pat + 2,local_24,0);\n      if (puVar2 == (uchar *)0x0) goto LAB_000bbb0a;\n      if (*puVar2 == '\0') {\n        return (char *)puVar4;\n      }\n      pat = (char *)(puVar2 + -1);\n    }" { (if_statement "if (local_24 == (uchar *)0x0) {\n        sVar3 = strlen(pat);\n        local_24 = (uchar *)pat + (sVar3 - 1);\n      }" if (parenthesized_expression "(local_24 == (uchar *)0x0)" ( (binary_expression "local_24 == (uchar *)0x0" identifier == (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        sVar3 = strlen(pat);\n        local_24 = (uchar *)pat + (sVar3 - 1);\n      }" { (expression_statement "sVar3 = strlen(pat);" (assignment_expression "sVar3 = strlen(pat)" identifier = (call_expression "strlen(pat)" identifier (argument_list "(pat)" ( identifier )))) ;) (expression_statement "local_24 = (uchar *)pat + (sVar3 - 1);" (assignment_expression "local_24 = (uchar *)pat + (sVar3 - 1)" identifier = (binary_expression "(uchar *)pat + (sVar3 - 1)" (cast_expression "(uchar *)pat" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) + (parenthesized_expression "(sVar3 - 1)" ( (binary_expression "sVar3 - 1" identifier - number_literal) )))) ;) })) (expression_statement "puVar2 = glob_patscan((uchar *)pat + 2,local_24,0);" (assignment_expression "puVar2 = glob_patscan((uchar *)pat + 2,local_24,0)" identifier = (call_expression "glob_patscan((uchar *)pat + 2,local_24,0)" identifier (argument_list "((uchar *)pat + 2,local_24,0)" ( (binary_expression "(uchar *)pat + 2" (cast_expression "(uchar *)pat" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) + number_literal) , identifier , number_literal )))) ;) (if_statement "if (puVar2 == (uchar *)0x0) goto LAB_000bbb0a;" if (parenthesized_expression "(puVar2 == (uchar *)0x0)" ( (binary_expression "puVar2 == (uchar *)0x0" identifier == (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000bbb0a;" goto statement_identifier ;)) (if_statement "if (*puVar2 == '\0') {\n        return (char *)puVar4;\n      }" if (parenthesized_expression "(*puVar2 == '\0')" ( (binary_expression "*puVar2 == '\0'" (pointer_expression "*puVar2" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        return (char *)puVar4;\n      }" { (return_statement "return (char *)puVar4;" return (cast_expression "(char *)puVar4" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) ;) })) (expression_statement "pat = (char *)(puVar2 + -1);" (assignment_expression "pat = (char *)(puVar2 + -1)" identifier = (cast_expression "(char *)(puVar2 + -1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + -1)" ( (binary_expression "puVar2 + -1" identifier + number_literal) )))) ;) }) (else_clause "else {\n      if ((char)uVar1 == dirsep) {\n        puVar4 = (uchar *)pat;\n      }\nLAB_000bbb0a:\n      puVar2 = (uchar *)pat + 1;\n      if (puVar2 == (uchar *)0x0) {\n        return (char *)puVar4;\n      }\n    }" else (compound_statement "{\n      if ((char)uVar1 == dirsep) {\n        puVar4 = (uchar *)pat;\n      }\nLAB_000bbb0a:\n      puVar2 = (uchar *)pat + 1;\n      if (puVar2 == (uchar *)0x0) {\n        return (char *)puVar4;\n      }\n    }" { (if_statement "if ((char)uVar1 == dirsep) {\n        puVar4 = (uchar *)pat;\n      }" if (parenthesized_expression "((char)uVar1 == dirsep)" ( (binary_expression "(char)uVar1 == dirsep" (cast_expression "(char)uVar1" ( (type_descriptor "char" primitive_type) ) identifier) == identifier) )) (compound_statement "{\n        puVar4 = (uchar *)pat;\n      }" { (expression_statement "puVar4 = (uchar *)pat;" (assignment_expression "puVar4 = (uchar *)pat" identifier = (cast_expression "(uchar *)pat" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) (labeled_statement "LAB_000bbb0a:\n      puVar2 = (uchar *)pat + 1;" statement_identifier : (expression_statement "puVar2 = (uchar *)pat + 1;" (assignment_expression "puVar2 = (uchar *)pat + 1" identifier = (binary_expression "(uchar *)pat + 1" (cast_expression "(uchar *)pat" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) + number_literal)) ;)) (if_statement "if (puVar2 == (uchar *)0x0) {\n        return (char *)puVar4;\n      }" if (parenthesized_expression "(puVar2 == (uchar *)0x0)" ( (binary_expression "puVar2 == (uchar *)0x0" identifier == (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return (char *)puVar4;\n      }" { (return_statement "return (char *)puVar4;" return (cast_expression "(char *)puVar4" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) ;) })) }))) (expression_statement "uVar1 = ((uchar *)pat)[1];" (assignment_expression "uVar1 = ((uchar *)pat)[1]" identifier = (subscript_expression "((uchar *)pat)[1]" (parenthesized_expression "((uchar *)pat)" ( (cast_expression "(uchar *)pat" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )) [ number_literal ])) ;) (expression_statement "pat = (char *)puVar2;" (assignment_expression "pat = (char *)puVar2" identifier = (cast_expression "(char *)puVar2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (uVar1 == '\0') {\n      return (char *)puVar4;\n    }" if (parenthesized_expression "(uVar1 == '\0')" ( (binary_expression "uVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return (char *)puVar4;\n    }" { (return_statement "return (char *)puVar4;" return (cast_expression "(char *)puVar4" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "char * glob_dirscan(char *param_1,int param_2)\n\n{\n  char cVar1;\n  char *pcVar2;\n  size_t sVar3;\n  char *pcVar4;\n  char *local_24;\n  \n  if ((param_1 == (char *)0x0) || (cVar1 = *param_1, cVar1 == '\0')) {\n    return (char *)0x0;\n  }\n  local_24 = (char *)0x0;\n  pcVar4 = (char *)0x0;\n  do {\n    if ((((byte)(cVar1 - 0x21U) < 0x20) && ((1 << (cVar1 - 0x21U & 0x1f) & 0xc0000601U) != 0)) &&\n       (param_1[1] == '(')) {\n      if (local_24 == (char *)0x0) {\n        sVar3 = strlen(param_1);\n        local_24 = param_1 + (sVar3 - 1);\n      }\n      pcVar2 = (char *)glob_patscan(param_1 + 2,local_24,0);\n      if (pcVar2 == (char *)0x0) goto LAB_000bbb0a;\n      if (*pcVar2 == '\0') {\n        return pcVar4;\n      }\n      param_1 = pcVar2 + -1;\n    }\n    else {\n      if (cVar1 == param_2) {\n        pcVar4 = param_1;\n      }\nLAB_000bbb0a:\n      pcVar2 = param_1 + 1;\n      if (pcVar2 == (char *)0x0) {\n        return pcVar4;\n      }\n    }\n    cVar1 = param_1[1];\n    param_1 = pcVar2;\n    if (cVar1 == '\0') {\n      return pcVar4;\n    }\n  } while( true );\n}\n\n" (function_definition "char * glob_dirscan(char *param_1,int param_2)\n\n{\n  char cVar1;\n  char *pcVar2;\n  size_t sVar3;\n  char *pcVar4;\n  char *local_24;\n  \n  if ((param_1 == (char *)0x0) || (cVar1 = *param_1, cVar1 == '\0')) {\n    return (char *)0x0;\n  }\n  local_24 = (char *)0x0;\n  pcVar4 = (char *)0x0;\n  do {\n    if ((((byte)(cVar1 - 0x21U) < 0x20) && ((1 << (cVar1 - 0x21U & 0x1f) & 0xc0000601U) != 0)) &&\n       (param_1[1] == '(')) {\n      if (local_24 == (char *)0x0) {\n        sVar3 = strlen(param_1);\n        local_24 = param_1 + (sVar3 - 1);\n      }\n      pcVar2 = (char *)glob_patscan(param_1 + 2,local_24,0);\n      if (pcVar2 == (char *)0x0) goto LAB_000bbb0a;\n      if (*pcVar2 == '\0') {\n        return pcVar4;\n      }\n      param_1 = pcVar2 + -1;\n    }\n    else {\n      if (cVar1 == param_2) {\n        pcVar4 = param_1;\n      }\nLAB_000bbb0a:\n      pcVar2 = param_1 + 1;\n      if (pcVar2 == (char *)0x0) {\n        return pcVar4;\n      }\n    }\n    cVar1 = param_1[1];\n    param_1 = pcVar2;\n    if (cVar1 == '\0') {\n      return pcVar4;\n    }\n  } while( true );\n}" primitive_type (pointer_declarator "* glob_dirscan(char *param_1,int param_2)" * (function_declarator "glob_dirscan(char *param_1,int param_2)" identifier (parameter_list "(char *param_1,int param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  char cVar1;\n  char *pcVar2;\n  size_t sVar3;\n  char *pcVar4;\n  char *local_24;\n  \n  if ((param_1 == (char *)0x0) || (cVar1 = *param_1, cVar1 == '\0')) {\n    return (char *)0x0;\n  }\n  local_24 = (char *)0x0;\n  pcVar4 = (char *)0x0;\n  do {\n    if ((((byte)(cVar1 - 0x21U) < 0x20) && ((1 << (cVar1 - 0x21U & 0x1f) & 0xc0000601U) != 0)) &&\n       (param_1[1] == '(')) {\n      if (local_24 == (char *)0x0) {\n        sVar3 = strlen(param_1);\n        local_24 = param_1 + (sVar3 - 1);\n      }\n      pcVar2 = (char *)glob_patscan(param_1 + 2,local_24,0);\n      if (pcVar2 == (char *)0x0) goto LAB_000bbb0a;\n      if (*pcVar2 == '\0') {\n        return pcVar4;\n      }\n      param_1 = pcVar2 + -1;\n    }\n    else {\n      if (cVar1 == param_2) {\n        pcVar4 = param_1;\n      }\nLAB_000bbb0a:\n      pcVar2 = param_1 + 1;\n      if (pcVar2 == (char *)0x0) {\n        return pcVar4;\n      }\n    }\n    cVar1 = param_1[1];\n    param_1 = pcVar2;\n    if (cVar1 == '\0') {\n      return pcVar4;\n    }\n  } while( true );\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "char *local_24;" primitive_type (pointer_declarator "*local_24" * identifier) ;) (if_statement "if ((param_1 == (char *)0x0) || (cVar1 = *param_1, cVar1 == '\0')) {\n    return (char *)0x0;\n  }" if (parenthesized_expression "((param_1 == (char *)0x0) || (cVar1 = *param_1, cVar1 == '\0'))" ( (binary_expression "(param_1 == (char *)0x0) || (cVar1 = *param_1, cVar1 == '\0')" (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)) )) || (parenthesized_expression "(cVar1 = *param_1, cVar1 == '\0')" ( (comma_expression "cVar1 = *param_1, cVar1 == '\0'" (assignment_expression "cVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) , (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence '))) ))) )) (compound_statement "{\n    return (char *)0x0;\n  }" { (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "local_24 = (char *)0x0;" (assignment_expression "local_24 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pcVar4 = (char *)0x0;" (assignment_expression "pcVar4 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (do_statement "do {\n    if ((((byte)(cVar1 - 0x21U) < 0x20) && ((1 << (cVar1 - 0x21U & 0x1f) & 0xc0000601U) != 0)) &&\n       (param_1[1] == '(')) {\n      if (local_24 == (char *)0x0) {\n        sVar3 = strlen(param_1);\n        local_24 = param_1 + (sVar3 - 1);\n      }\n      pcVar2 = (char *)glob_patscan(param_1 + 2,local_24,0);\n      if (pcVar2 == (char *)0x0) goto LAB_000bbb0a;\n      if (*pcVar2 == '\0') {\n        return pcVar4;\n      }\n      param_1 = pcVar2 + -1;\n    }\n    else {\n      if (cVar1 == param_2) {\n        pcVar4 = param_1;\n      }\nLAB_000bbb0a:\n      pcVar2 = param_1 + 1;\n      if (pcVar2 == (char *)0x0) {\n        return pcVar4;\n      }\n    }\n    cVar1 = param_1[1];\n    param_1 = pcVar2;\n    if (cVar1 == '\0') {\n      return pcVar4;\n    }\n  } while( true );" do (compound_statement "{\n    if ((((byte)(cVar1 - 0x21U) < 0x20) && ((1 << (cVar1 - 0x21U & 0x1f) & 0xc0000601U) != 0)) &&\n       (param_1[1] == '(')) {\n      if (local_24 == (char *)0x0) {\n        sVar3 = strlen(param_1);\n        local_24 = param_1 + (sVar3 - 1);\n      }\n      pcVar2 = (char *)glob_patscan(param_1 + 2,local_24,0);\n      if (pcVar2 == (char *)0x0) goto LAB_000bbb0a;\n      if (*pcVar2 == '\0') {\n        return pcVar4;\n      }\n      param_1 = pcVar2 + -1;\n    }\n    else {\n      if (cVar1 == param_2) {\n        pcVar4 = param_1;\n      }\nLAB_000bbb0a:\n      pcVar2 = param_1 + 1;\n      if (pcVar2 == (char *)0x0) {\n        return pcVar4;\n      }\n    }\n    cVar1 = param_1[1];\n    param_1 = pcVar2;\n    if (cVar1 == '\0') {\n      return pcVar4;\n    }\n  }" { (if_statement "if ((((byte)(cVar1 - 0x21U) < 0x20) && ((1 << (cVar1 - 0x21U & 0x1f) & 0xc0000601U) != 0)) &&\n       (param_1[1] == '(')) {\n      if (local_24 == (char *)0x0) {\n        sVar3 = strlen(param_1);\n        local_24 = param_1 + (sVar3 - 1);\n      }\n      pcVar2 = (char *)glob_patscan(param_1 + 2,local_24,0);\n      if (pcVar2 == (char *)0x0) goto LAB_000bbb0a;\n      if (*pcVar2 == '\0') {\n        return pcVar4;\n      }\n      param_1 = pcVar2 + -1;\n    }\n    else {\n      if (cVar1 == param_2) {\n        pcVar4 = param_1;\n      }\nLAB_000bbb0a:\n      pcVar2 = param_1 + 1;\n      if (pcVar2 == (char *)0x0) {\n        return pcVar4;\n      }\n    }" if (parenthesized_expression "((((byte)(cVar1 - 0x21U) < 0x20) && ((1 << (cVar1 - 0x21U & 0x1f) & 0xc0000601U) != 0)) &&\n       (param_1[1] == '('))" ( (binary_expression "(((byte)(cVar1 - 0x21U) < 0x20) && ((1 << (cVar1 - 0x21U & 0x1f) & 0xc0000601U) != 0)) &&\n       (param_1[1] == '(')" (parenthesized_expression "(((byte)(cVar1 - 0x21U) < 0x20) && ((1 << (cVar1 - 0x21U & 0x1f) & 0xc0000601U) != 0))" ( (binary_expression "((byte)(cVar1 - 0x21U) < 0x20) && ((1 << (cVar1 - 0x21U & 0x1f) & 0xc0000601U) != 0)" (parenthesized_expression "((byte)(cVar1 - 0x21U) < 0x20)" ( (binary_expression "(byte)(cVar1 - 0x21U) < 0x20" (call_expression "(byte)(cVar1 - 0x21U)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(cVar1 - 0x21U)" ( (binary_expression "cVar1 - 0x21U" identifier - number_literal) ))) < number_literal) )) && (parenthesized_expression "((1 << (cVar1 - 0x21U & 0x1f) & 0xc0000601U) != 0)" ( (binary_expression "(1 << (cVar1 - 0x21U & 0x1f) & 0xc0000601U) != 0" (parenthesized_expression "(1 << (cVar1 - 0x21U & 0x1f) & 0xc0000601U)" ( (binary_expression "1 << (cVar1 - 0x21U & 0x1f) & 0xc0000601U" (binary_expression "1 << (cVar1 - 0x21U & 0x1f)" number_literal << (parenthesized_expression "(cVar1 - 0x21U & 0x1f)" ( (binary_expression "cVar1 - 0x21U & 0x1f" (binary_expression "cVar1 - 0x21U" identifier - number_literal) & number_literal) ))) & number_literal) )) != number_literal) ))) )) && (parenthesized_expression "(param_1[1] == '(')" ( (binary_expression "param_1[1] == '('" (subscript_expression "param_1[1]" identifier [ number_literal ]) == (char_literal "'('" ' character ')) ))) )) (compound_statement "{\n      if (local_24 == (char *)0x0) {\n        sVar3 = strlen(param_1);\n        local_24 = param_1 + (sVar3 - 1);\n      }\n      pcVar2 = (char *)glob_patscan(param_1 + 2,local_24,0);\n      if (pcVar2 == (char *)0x0) goto LAB_000bbb0a;\n      if (*pcVar2 == '\0') {\n        return pcVar4;\n      }\n      param_1 = pcVar2 + -1;\n    }" { (if_statement "if (local_24 == (char *)0x0) {\n        sVar3 = strlen(param_1);\n        local_24 = param_1 + (sVar3 - 1);\n      }" if (parenthesized_expression "(local_24 == (char *)0x0)" ( (binary_expression "local_24 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        sVar3 = strlen(param_1);\n        local_24 = param_1 + (sVar3 - 1);\n      }" { (expression_statement "sVar3 = strlen(param_1);" (assignment_expression "sVar3 = strlen(param_1)" identifier = (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "local_24 = param_1 + (sVar3 - 1);" (assignment_expression "local_24 = param_1 + (sVar3 - 1)" identifier = (binary_expression "param_1 + (sVar3 - 1)" identifier + (parenthesized_expression "(sVar3 - 1)" ( (binary_expression "sVar3 - 1" identifier - number_literal) )))) ;) })) (expression_statement "pcVar2 = (char *)glob_patscan(param_1 + 2,local_24,0);" (assignment_expression "pcVar2 = (char *)glob_patscan(param_1 + 2,local_24,0)" identifier = (cast_expression "(char *)glob_patscan(param_1 + 2,local_24,0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "glob_patscan(param_1 + 2,local_24,0)" identifier (argument_list "(param_1 + 2,local_24,0)" ( (binary_expression "param_1 + 2" identifier + number_literal) , identifier , number_literal ))))) ;) (if_statement "if (pcVar2 == (char *)0x0) goto LAB_000bbb0a;" if (parenthesized_expression "(pcVar2 == (char *)0x0)" ( (binary_expression "pcVar2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000bbb0a;" goto statement_identifier ;)) (if_statement "if (*pcVar2 == '\0') {\n        return pcVar4;\n      }" if (parenthesized_expression "(*pcVar2 == '\0')" ( (binary_expression "*pcVar2 == '\0'" (pointer_expression "*pcVar2" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        return pcVar4;\n      }" { (return_statement "return pcVar4;" return identifier ;) })) (expression_statement "param_1 = pcVar2 + -1;" (assignment_expression "param_1 = pcVar2 + -1" identifier = (binary_expression "pcVar2 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n      if (cVar1 == param_2) {\n        pcVar4 = param_1;\n      }\nLAB_000bbb0a:\n      pcVar2 = param_1 + 1;\n      if (pcVar2 == (char *)0x0) {\n        return pcVar4;\n      }\n    }" else (compound_statement "{\n      if (cVar1 == param_2) {\n        pcVar4 = param_1;\n      }\nLAB_000bbb0a:\n      pcVar2 = param_1 + 1;\n      if (pcVar2 == (char *)0x0) {\n        return pcVar4;\n      }\n    }" { (if_statement "if (cVar1 == param_2) {\n        pcVar4 = param_1;\n      }" if (parenthesized_expression "(cVar1 == param_2)" ( (binary_expression "cVar1 == param_2" identifier == identifier) )) (compound_statement "{\n        pcVar4 = param_1;\n      }" { (expression_statement "pcVar4 = param_1;" (assignment_expression "pcVar4 = param_1" identifier = identifier) ;) })) (labeled_statement "LAB_000bbb0a:\n      pcVar2 = param_1 + 1;" statement_identifier : (expression_statement "pcVar2 = param_1 + 1;" (assignment_expression "pcVar2 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;)) (if_statement "if (pcVar2 == (char *)0x0) {\n        return pcVar4;\n      }" if (parenthesized_expression "(pcVar2 == (char *)0x0)" ( (binary_expression "pcVar2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return pcVar4;\n      }" { (return_statement "return pcVar4;" return identifier ;) })) }))) (expression_statement "cVar1 = param_1[1];" (assignment_expression "cVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "param_1 = pcVar2;" (assignment_expression "param_1 = pcVar2" identifier = identifier) ;) (if_statement "if (cVar1 == '\0') {\n      return pcVar4;\n    }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return pcVar4;\n    }" { (return_statement "return pcVar4;" return identifier ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * IDENT)) , (binary_expression IDENT == (char_literal ' escape_sequence '))) ))) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT - LIT) ))) < LIT) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression LIT << (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) & LIT) ))) & LIT) )) != LIT) ))) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' character ')) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (parenthesized_expression ( (binary_expression IDENT - LIT) )))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return IDENT ;) })) }))) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return IDENT ;) })) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "char * glob_dirscan(char *param_1,int param_2)\n\n{\n  char cVar1;\n  char *pcVar2;\n  size_t sVar3;\n  char *pcVar4;\n  char *local_24;\n  \n  if ((param_1 == (char *)0x0) || (cVar1 = *param_1, cVar1 == '\0')) {\n    return (char *)0x0;\n  }\n  local_24 = (char *)0x0;\n  pcVar4 = (char *)0x0;\n  do {\n    if ((((byte)(cVar1 - 0x21U) < 0x20) && ((1 << (cVar1 - 0x21U & 0x1f) & 0xc0000601U) != 0)) &&\n       (param_1[1] == '(')) {\n      if (local_24 == (char *)0x0) {\n        sVar3 = strlen(param_1);\n        local_24 = param_1 + (sVar3 - 1);\n      }\n      pcVar2 = (char *)glob_patscan(param_1 + 2,local_24,0);\n      if (pcVar2 == (char *)0x0) goto LAB_000bbb0a;\n      if (*pcVar2 == '\0') {\n        return pcVar4;\n      }\n      param_1 = pcVar2 + -1;\n    }\n    else {\n      if (cVar1 == param_2) {\n        pcVar4 = param_1;\n      }\nLAB_000bbb0a:\n      pcVar2 = param_1 + 1;\n      if (pcVar2 == (char *)0x0) {\n        return pcVar4;\n      }\n    }\n    cVar1 = param_1[1];\n    param_1 = pcVar2;\n    if (cVar1 == '\0') {\n      return pcVar4;\n    }\n  } while( true );\n}" (primitive_type "char") (pointer_declarator "* glob_dirscan(char *param_1,int param_2)" (* "*") (function_declarator "glob_dirscan(char *param_1,int param_2)" (identifier "glob_dirscan") (parameter_list "(char *param_1,int param_2)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")")))) (compound_statement "{\n  char cVar1;\n  char *pcVar2;\n  size_t sVar3;\n  char *pcVar4;\n  char *local_24;\n  \n  if ((param_1 == (char *)0x0) || (cVar1 = *param_1, cVar1 == '\0')) {\n    return (char *)0x0;\n  }\n  local_24 = (char *)0x0;\n  pcVar4 = (char *)0x0;\n  do {\n    if ((((byte)(cVar1 - 0x21U) < 0x20) && ((1 << (cVar1 - 0x21U & 0x1f) & 0xc0000601U) != 0)) &&\n       (param_1[1] == '(')) {\n      if (local_24 == (char *)0x0) {\n        sVar3 = strlen(param_1);\n        local_24 = param_1 + (sVar3 - 1);\n      }\n      pcVar2 = (char *)glob_patscan(param_1 + 2,local_24,0);\n      if (pcVar2 == (char *)0x0) goto LAB_000bbb0a;\n      if (*pcVar2 == '\0') {\n        return pcVar4;\n      }\n      param_1 = pcVar2 + -1;\n    }\n    else {\n      if (cVar1 == param_2) {\n        pcVar4 = param_1;\n      }\nLAB_000bbb0a:\n      pcVar2 = param_1 + 1;\n      if (pcVar2 == (char *)0x0) {\n        return pcVar4;\n      }\n    }\n    cVar1 = param_1[1];\n    param_1 = pcVar2;\n    if (cVar1 == '\0') {\n      return pcVar4;\n    }\n  } while( true );\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "size_t sVar3;" (primitive_type "size_t") (identifier "sVar3") (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "char *local_24;" (primitive_type "char") (pointer_declarator "*local_24" (* "*") (identifier "local_24")) (; ";")) (if_statement "if ((param_1 == (char *)0x0) || (cVar1 = *param_1, cVar1 == '\0')) {\n    return (char *)0x0;\n  }" (if "if") (parenthesized_expression "((param_1 == (char *)0x0) || (cVar1 = *param_1, cVar1 == '\0'))" (( "(") (binary_expression "(param_1 == (char *)0x0) || (cVar1 = *param_1, cVar1 == '\0')" (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"))) () ")")) (|| "||") (parenthesized_expression "(cVar1 = *param_1, cVar1 == '\0')" (( "(") (comma_expression "cVar1 = *param_1, cVar1 == '\0'" (assignment_expression "cVar1 = *param_1" (identifier "cVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (, ",") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'")))) () ")"))) () ")")) (compound_statement "{\n    return (char *)0x0;\n  }" ({ "{") (return_statement "return (char *)0x0;" (return "return") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (expression_statement "local_24 = (char *)0x0;" (assignment_expression "local_24 = (char *)0x0" (identifier "local_24") (= "=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "pcVar4 = (char *)0x0;" (assignment_expression "pcVar4 = (char *)0x0" (identifier "pcVar4") (= "=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (do_statement "do {\n    if ((((byte)(cVar1 - 0x21U) < 0x20) && ((1 << (cVar1 - 0x21U & 0x1f) & 0xc0000601U) != 0)) &&\n       (param_1[1] == '(')) {\n      if (local_24 == (char *)0x0) {\n        sVar3 = strlen(param_1);\n        local_24 = param_1 + (sVar3 - 1);\n      }\n      pcVar2 = (char *)glob_patscan(param_1 + 2,local_24,0);\n      if (pcVar2 == (char *)0x0) goto LAB_000bbb0a;\n      if (*pcVar2 == '\0') {\n        return pcVar4;\n      }\n      param_1 = pcVar2 + -1;\n    }\n    else {\n      if (cVar1 == param_2) {\n        pcVar4 = param_1;\n      }\nLAB_000bbb0a:\n      pcVar2 = param_1 + 1;\n      if (pcVar2 == (char *)0x0) {\n        return pcVar4;\n      }\n    }\n    cVar1 = param_1[1];\n    param_1 = pcVar2;\n    if (cVar1 == '\0') {\n      return pcVar4;\n    }\n  } while( true );" (do "do") (compound_statement "{\n    if ((((byte)(cVar1 - 0x21U) < 0x20) && ((1 << (cVar1 - 0x21U & 0x1f) & 0xc0000601U) != 0)) &&\n       (param_1[1] == '(')) {\n      if (local_24 == (char *)0x0) {\n        sVar3 = strlen(param_1);\n        local_24 = param_1 + (sVar3 - 1);\n      }\n      pcVar2 = (char *)glob_patscan(param_1 + 2,local_24,0);\n      if (pcVar2 == (char *)0x0) goto LAB_000bbb0a;\n      if (*pcVar2 == '\0') {\n        return pcVar4;\n      }\n      param_1 = pcVar2 + -1;\n    }\n    else {\n      if (cVar1 == param_2) {\n        pcVar4 = param_1;\n      }\nLAB_000bbb0a:\n      pcVar2 = param_1 + 1;\n      if (pcVar2 == (char *)0x0) {\n        return pcVar4;\n      }\n    }\n    cVar1 = param_1[1];\n    param_1 = pcVar2;\n    if (cVar1 == '\0') {\n      return pcVar4;\n    }\n  }" ({ "{") (if_statement "if ((((byte)(cVar1 - 0x21U) < 0x20) && ((1 << (cVar1 - 0x21U & 0x1f) & 0xc0000601U) != 0)) &&\n       (param_1[1] == '(')) {\n      if (local_24 == (char *)0x0) {\n        sVar3 = strlen(param_1);\n        local_24 = param_1 + (sVar3 - 1);\n      }\n      pcVar2 = (char *)glob_patscan(param_1 + 2,local_24,0);\n      if (pcVar2 == (char *)0x0) goto LAB_000bbb0a;\n      if (*pcVar2 == '\0') {\n        return pcVar4;\n      }\n      param_1 = pcVar2 + -1;\n    }\n    else {\n      if (cVar1 == param_2) {\n        pcVar4 = param_1;\n      }\nLAB_000bbb0a:\n      pcVar2 = param_1 + 1;\n      if (pcVar2 == (char *)0x0) {\n        return pcVar4;\n      }\n    }" (if "if") (parenthesized_expression "((((byte)(cVar1 - 0x21U) < 0x20) && ((1 << (cVar1 - 0x21U & 0x1f) & 0xc0000601U) != 0)) &&\n       (param_1[1] == '('))" (( "(") (binary_expression "(((byte)(cVar1 - 0x21U) < 0x20) && ((1 << (cVar1 - 0x21U & 0x1f) & 0xc0000601U) != 0)) &&\n       (param_1[1] == '(')" (parenthesized_expression "(((byte)(cVar1 - 0x21U) < 0x20) && ((1 << (cVar1 - 0x21U & 0x1f) & 0xc0000601U) != 0))" (( "(") (binary_expression "((byte)(cVar1 - 0x21U) < 0x20) && ((1 << (cVar1 - 0x21U & 0x1f) & 0xc0000601U) != 0)" (parenthesized_expression "((byte)(cVar1 - 0x21U) < 0x20)" (( "(") (binary_expression "(byte)(cVar1 - 0x21U) < 0x20" (call_expression "(byte)(cVar1 - 0x21U)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(cVar1 - 0x21U)" (( "(") (binary_expression "cVar1 - 0x21U" (identifier "cVar1") (- "-") (number_literal "0x21U")) () ")"))) (< "<") (number_literal "0x20")) () ")")) (&& "&&") (parenthesized_expression "((1 << (cVar1 - 0x21U & 0x1f) & 0xc0000601U) != 0)" (( "(") (binary_expression "(1 << (cVar1 - 0x21U & 0x1f) & 0xc0000601U) != 0" (parenthesized_expression "(1 << (cVar1 - 0x21U & 0x1f) & 0xc0000601U)" (( "(") (binary_expression "1 << (cVar1 - 0x21U & 0x1f) & 0xc0000601U" (binary_expression "1 << (cVar1 - 0x21U & 0x1f)" (number_literal "1") (<< "<<") (parenthesized_expression "(cVar1 - 0x21U & 0x1f)" (( "(") (binary_expression "cVar1 - 0x21U & 0x1f" (binary_expression "cVar1 - 0x21U" (identifier "cVar1") (- "-") (number_literal "0x21U")) (& "&") (number_literal "0x1f")) () ")"))) (& "&") (number_literal "0xc0000601U")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(param_1[1] == '(')" (( "(") (binary_expression "param_1[1] == '('" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (== "==") (char_literal "'('" (' "'") (character "(") (' "'"))) () ")"))) () ")")) (compound_statement "{\n      if (local_24 == (char *)0x0) {\n        sVar3 = strlen(param_1);\n        local_24 = param_1 + (sVar3 - 1);\n      }\n      pcVar2 = (char *)glob_patscan(param_1 + 2,local_24,0);\n      if (pcVar2 == (char *)0x0) goto LAB_000bbb0a;\n      if (*pcVar2 == '\0') {\n        return pcVar4;\n      }\n      param_1 = pcVar2 + -1;\n    }" ({ "{") (if_statement "if (local_24 == (char *)0x0) {\n        sVar3 = strlen(param_1);\n        local_24 = param_1 + (sVar3 - 1);\n      }" (if "if") (parenthesized_expression "(local_24 == (char *)0x0)" (( "(") (binary_expression "local_24 == (char *)0x0" (identifier "local_24") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        sVar3 = strlen(param_1);\n        local_24 = param_1 + (sVar3 - 1);\n      }" ({ "{") (expression_statement "sVar3 = strlen(param_1);" (assignment_expression "sVar3 = strlen(param_1)" (identifier "sVar3") (= "=") (call_expression "strlen(param_1)" (identifier "strlen") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "local_24 = param_1 + (sVar3 - 1);" (assignment_expression "local_24 = param_1 + (sVar3 - 1)" (identifier "local_24") (= "=") (binary_expression "param_1 + (sVar3 - 1)" (identifier "param_1") (+ "+") (parenthesized_expression "(sVar3 - 1)" (( "(") (binary_expression "sVar3 - 1" (identifier "sVar3") (- "-") (number_literal "1")) () ")")))) (; ";")) (} "}"))) (expression_statement "pcVar2 = (char *)glob_patscan(param_1 + 2,local_24,0);" (assignment_expression "pcVar2 = (char *)glob_patscan(param_1 + 2,local_24,0)" (identifier "pcVar2") (= "=") (cast_expression "(char *)glob_patscan(param_1 + 2,local_24,0)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "glob_patscan(param_1 + 2,local_24,0)" (identifier "glob_patscan") (argument_list "(param_1 + 2,local_24,0)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) (, ",") (identifier "local_24") (, ",") (number_literal "0") () ")"))))) (; ";")) (if_statement "if (pcVar2 == (char *)0x0) goto LAB_000bbb0a;" (if "if") (parenthesized_expression "(pcVar2 == (char *)0x0)" (( "(") (binary_expression "pcVar2 == (char *)0x0" (identifier "pcVar2") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_000bbb0a;" (goto "goto") (statement_identifier "LAB_000bbb0a") (; ";"))) (if_statement "if (*pcVar2 == '\0') {\n        return pcVar4;\n      }" (if "if") (parenthesized_expression "(*pcVar2 == '\0')" (( "(") (binary_expression "*pcVar2 == '\0'" (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        return pcVar4;\n      }" ({ "{") (return_statement "return pcVar4;" (return "return") (identifier "pcVar4") (; ";")) (} "}"))) (expression_statement "param_1 = pcVar2 + -1;" (assignment_expression "param_1 = pcVar2 + -1" (identifier "param_1") (= "=") (binary_expression "pcVar2 + -1" (identifier "pcVar2") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (else_clause "else {\n      if (cVar1 == param_2) {\n        pcVar4 = param_1;\n      }\nLAB_000bbb0a:\n      pcVar2 = param_1 + 1;\n      if (pcVar2 == (char *)0x0) {\n        return pcVar4;\n      }\n    }" (else "else") (compound_statement "{\n      if (cVar1 == param_2) {\n        pcVar4 = param_1;\n      }\nLAB_000bbb0a:\n      pcVar2 = param_1 + 1;\n      if (pcVar2 == (char *)0x0) {\n        return pcVar4;\n      }\n    }" ({ "{") (if_statement "if (cVar1 == param_2) {\n        pcVar4 = param_1;\n      }" (if "if") (parenthesized_expression "(cVar1 == param_2)" (( "(") (binary_expression "cVar1 == param_2" (identifier "cVar1") (== "==") (identifier "param_2")) () ")")) (compound_statement "{\n        pcVar4 = param_1;\n      }" ({ "{") (expression_statement "pcVar4 = param_1;" (assignment_expression "pcVar4 = param_1" (identifier "pcVar4") (= "=") (identifier "param_1")) (; ";")) (} "}"))) (labeled_statement "LAB_000bbb0a:\n      pcVar2 = param_1 + 1;" (statement_identifier "LAB_000bbb0a") (: ":") (expression_statement "pcVar2 = param_1 + 1;" (assignment_expression "pcVar2 = param_1 + 1" (identifier "pcVar2") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";"))) (if_statement "if (pcVar2 == (char *)0x0) {\n        return pcVar4;\n      }" (if "if") (parenthesized_expression "(pcVar2 == (char *)0x0)" (( "(") (binary_expression "pcVar2 == (char *)0x0" (identifier "pcVar2") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        return pcVar4;\n      }" ({ "{") (return_statement "return pcVar4;" (return "return") (identifier "pcVar4") (; ";")) (} "}"))) (} "}")))) (expression_statement "cVar1 = param_1[1];" (assignment_expression "cVar1 = param_1[1]" (identifier "cVar1") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "param_1 = pcVar2;" (assignment_expression "param_1 = pcVar2" (identifier "param_1") (= "=") (identifier "pcVar2")) (; ";")) (if_statement "if (cVar1 == '\0') {\n      return pcVar4;\n    }" (if "if") (parenthesized_expression "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      return pcVar4;\n    }" ({ "{") (return_statement "return pcVar4;" (return "return") (identifier "pcVar4") (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

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

char * function_1(char *var_1,int var_8)

{
  type_1 var_2;
  type_1 *var_7;
  size_t var_5;
  type_1 *puVar4;
  type_1 *var_3;
  
  if ((var_1 == (char *)0x0) || (var_2 = *var_1, var_2 == '\0')) {
    return (char *)0x0;
  }
  var_3 = (type_1 *)0x0;
  puVar4 = (type_1 *)0x0;
  do {
    if ((((byte)(var_2 - 0x21) < 0x20) && ((1 << (var_2 - 0x21 & 0x1f) & 0xc0000601U) != 0)) &&
       (((type_1 *)var_1)[1] == '(')) {
      if (var_3 == (type_1 *)0x0) {
        var_5 = var_4(var_1);
        var_3 = (type_1 *)var_1 + (var_5 - 1);
      }
      var_7 = var_6((type_1 *)var_1 + 2,var_3,0);
      if (var_7 == (type_1 *)0x0) goto LAB_000bbb0a;
      if (*var_7 == '\0') {
        return (char *)puVar4;
      }
      var_1 = (char *)(var_7 + -1);
    }
    else {
      if ((char)var_2 == var_8) {
        puVar4 = (type_1 *)var_1;
      }
LAB_000bbb0a:
      var_7 = (type_1 *)var_1 + 1;
      if (var_7 == (type_1 *)0x0) {
        return (char *)puVar4;
      }
    }
    var_2 = ((type_1 *)var_1)[1];
    var_1 = (char *)var_7;
    if (var_2 == '\0') {
      return (char *)puVar4;
    }
  } while( true );
}


(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))) right: (binary_expression left: (identifier) right: (char_literal (escape_sequence))))))) consequence: (compound_statement (return_statement (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (number_literal) right: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal)))) right: (number_literal))) right: (number_literal))))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (character)))))) consequence: (compound_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: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (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: (goto_statement label: (statement_identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (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 (return_statement (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (return_statement (identifier))))) condition: (parenthesized_expression (true))))))

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

char * MASKED(char *param_1,int param_2)

{
  char cVar1;
  char *pcVar2;
  size_t sVar3;
  char *pcVar4;
  char *local_24;
  
  if ((param_1 == (char *)0x0) || (cVar1 = *param_1, cVar1 == '\0')) {
    return (char *)0x0;
  }
  local_24 = (char *)0x0;
  pcVar4 = (char *)0x0;
  do {
    if ((((byte)(cVar1 - 0x21U) < 0x20) && ((1 << (cVar1 - 0x21U & 0x1f) & 0xc0000601U) != 0)) &&
       (param_1[1] == '(')) {
      if (local_24 == (char *)0x0) {
        sVar3 = strlen(param_1);
        local_24 = param_1 + (sVar3 - 1);
      }
      pcVar2 = (char *)glob_patscan(param_1 + 2,local_24,0);
      if (pcVar2 == (char *)0x0) goto LAB_000bbb0a;
      if (*pcVar2 == '\0') {
        return pcVar4;
      }
      param_1 = pcVar2 + -1;
    }
    else {
      if (cVar1 == param_2) {
        pcVar4 = param_1;
      }
LAB_000bbb0a:
      pcVar2 = param_1 + 1;
      if (pcVar2 == (char *)0x0) {
        return pcVar4;
      }
    }
    cVar1 = param_1[1];
    param_1 = pcVar2;
    if (cVar1 == '\0') {
      return pcVar4;
    }
  } while( true );
}

