
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

_Bool imap_endofresp(connectdata *conn,char *line,size_t len,int *resp)

{
  Curl_easy *data;
  void *pvVar1;
  _Bool _Var2;
  size_t __n;
  int iVar3;
  uint uVar4;
  int *piVar5;
  char *pcVar6;
  
  data = conn->data;
  pcVar6 = &(conn->proto).ftpc.transfertype;
  pvVar1 = (data->req).protop;
  __n = strlen(pcVar6);
  if (((__n + 1 <= len) && (iVar3 = memcmp(pcVar6,line,__n), iVar3 == 0)) && (line[__n] == ' ')) {
    uVar4 = (len - 1) - __n;
    if (1 < uVar4) {
      piVar5 = (int *)(line + __n + 1);
      if ((short)*piVar5 == 0x4b4f) {
        *resp = 1;
        return true;
      }
      if (((6 < uVar4) && (*piVar5 == 0x41455250)) &&
         (((short)piVar5[1] == 0x5455 && (*(char *)((int)piVar5 + 6) == 'H')))) {
        *resp = 3;
        return true;
      }
    }
    *resp = 2;
    return true;
  }
  if ((len < 2) || (*(short *)line != 0x202a)) {
    if (pvVar1 == (void *)0x0) {
      return false;
    }
    if (*(int *)((int)pvVar1 + 0x20) != 0) {
      return false;
    }
    if (len == 3) {
      if (*line == '+') goto LAB_0005361d;
    }
    else if (len < 2) {
      return false;
    }
    if (*(short *)line != 0x202b) {
      return false;
    }
LAB_0005361d:
    pcVar6 = (conn->proto).ftpc.entrypath;
    if ((pcVar6 != (char *)0x5) && (pcVar6 != (char *)0xb)) {
      Curl_failf(data,"Unexpected continuation response");
      *resp = -1;
      return true;
    }
    *resp = 0x2b;
    return true;
  }
  switch((conn->proto).sshc.readdir_totalLen) {
  default:
    goto LAB_000535ad;
  case 2:
    pcVar6 = "CAPABILITY";
    break;
  case 7:
    pcVar6 = *(char **)((int)pvVar1 + 0x20);
    if (pcVar6 == (char *)0x0) {
      _Var2 = imap_matchresp(line,len,"LIST");
      if (!_Var2) {
        return false;
      }
      pcVar6 = *(char **)((int)pvVar1 + 0x20);
      if (pcVar6 == (char *)0x0) goto _L192;
    }
    _Var2 = imap_matchresp(line,len,pcVar6);
    if (((!_Var2) &&
        ((((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"STORE"), iVar3 == 0 ||
           (_Var2 = imap_matchresp(line,len,"FETCH"), !_Var2)) &&
          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"SELECT"), iVar3 == 0)) &&
         ((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"EXAMINE"), iVar3 == 0 &&
          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"SEARCH"), iVar3 == 0)))))) &&
       ((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"EXPUNGE"), iVar3 == 0 &&
        (((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"LSUB"), iVar3 == 0 &&
          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"UID"), iVar3 == 0)) &&
         (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"NOOP"), iVar3 == 0)))))) {
      return false;
    }
  case 8:
    goto _L192;
  case 9:
    pcVar6 = "FETCH";
    break;
  case 0xd:
    pcVar6 = "SEARCH";
  }
  _Var2 = imap_matchresp(line,len,pcVar6);
  if (!_Var2) {
LAB_000535ad:
    return false;
  }
_L192:
  *resp = 0x2a;
  return true;
}



undefined4 __regparm2
FUN_00053510(undefined4 param_1,undefined4 param_2,short *param_3,uint param_4,undefined4 *param_5)

{
  int iVar1;
  int iVar2;
  size_t __n;
  int iVar3;
  undefined4 uVar4;
  uint uVar5;
  int *piVar6;
  int unaff_EBX;
  int *unaff_retaddr;
  
  entry(param_2,0x53519);
  iVar1 = *unaff_retaddr;
  iVar2 = *(int *)(iVar1 + 0x148);
  __n = strlen((char *)(unaff_retaddr + 0x141));
  if (((__n + 1 <= param_4) && (iVar3 = memcmp(unaff_retaddr + 0x141,param_3,__n), iVar3 == 0)) &&
     (*(char *)((int)param_3 + __n) == ' ')) {
    uVar5 = (param_4 - 1) - __n;
    if (1 < uVar5) {
      piVar6 = (int *)(__n + 1 + (int)param_3);
      if ((short)*piVar6 == 0x4b4f) {
        *param_5 = 1;
        return 1;
      }
      if (((6 < uVar5) && (*piVar6 == 0x41455250)) &&
         (((short)piVar6[1] == 0x5455 && (*(char *)((int)piVar6 + 6) == 'H')))) {
        *param_5 = 3;
        return 1;
      }
    }
    *param_5 = 2;
    return 1;
  }
  if ((param_4 < 2) || (*param_3 != 0x202a)) {
    if (iVar2 == 0) {
      return 0;
    }
    if (*(int *)(iVar2 + 0x20) != 0) {
      return 0;
    }
    if (param_4 == 3) {
      if ((char)*param_3 == '+') goto LAB_0005361d;
    }
    else if (param_4 < 2) {
      return 0;
    }
    if (*param_3 == 0x202b) {
LAB_0005361d:
      if ((unaff_retaddr[0x137] != 5) && (unaff_retaddr[0x137] != 0xb)) {
        FUN_00027240(iVar1,unaff_EBX + 0x31dd3);
        *param_5 = 0xffffffff;
        return 1;
      }
      *param_5 = 0x2b;
      return 1;
    }
  }
  else if ((uint)unaff_retaddr[0x137] < 0xe) {
                    /* WARNING: Could not recover jumptable at 0x00053597. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    uVar4 = (*(code *)(*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4) +
                      unaff_EBX + 0x5d2c7))();
    return uVar4;
  }
  return 0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00019ed0
ADD EBX,0x5d2c7
SUB ESP,0x28
MOV EAX,dword ptr [ESP + 0x3c]
MOV EBP,dword ptr [EAX]
LEA EDX,[EAX + 0x504]
MOV EDI,dword ptr [EBP + 0x148]
PUSH EDX
MOV dword ptr [ESP + 0x18],EDX
CALL 0x00018850
ADD ESP,0x10
LEA ECX,[EAX + 0x1]
CMP ECX,dword ptr [ESP + 0x38]
MOV dword ptr [ESP + 0xc],ECX
JA 0x00053569
SUB ESP,0x4
MOV ESI,EAX
PUSH EAX
PUSH dword ptr [ESP + 0x3c]
MOV EDX,dword ptr [ESP + 0x14]
PUSH EDX
CALL 0x00018c40
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000535b8
CMP dword ptr [ESP + 0x38],0x1
JBE 0x000535a0
MOV EAX,dword ptr [ESP + 0x34]
CMP word ptr [EAX],0x202a
JNZ 0x000535a0
MOV EAX,dword ptr [ESP + 0x30]
CMP dword ptr [EAX + 0x4dc],0xd
JA 0x000535ab
MOV EAX,dword ptr [EAX + 0x4dc]
MOV ESI,dword ptr [EBX + EAX*0x4 + 0xfffd4cc0]
ADD ESI,EBX
JMP ESI
TEST EDI,EDI
JZ 0x000535ab
MOV EAX,dword ptr [EDI + 0x20]
TEST EAX,EAX
JZ 0x00053600
XOR EAX,EAX
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESP + 0x34]
MOV ECX,dword ptr [ESP + 0xc]
CMP byte ptr [EAX + ESI*0x1],0x20
JNZ 0x00053569
MOV EAX,dword ptr [ESP + 0x38]
SUB EAX,0x1
SUB EAX,ESI
CMP EAX,0x1
JBE 0x00053800
ADD ECX,dword ptr [ESP + 0x34]
CMP word ptr [ECX],0x4b4f
JNZ 0x00053848
MOV EAX,dword ptr [ESP + 0x3c]
MOV dword ptr [EAX],0x1
MOV EAX,0x1
JMP 0x000535ad
CMP dword ptr [ESP + 0x38],0x3
JZ 0x00053818
CMP dword ptr [ESP + 0x38],0x1
JBE 0x000535ab
MOV EAX,dword ptr [ESP + 0x34]
CMP word ptr [EAX],0x202b
JNZ 0x000535ab
MOV EAX,dword ptr [ESP + 0x30]
MOV EAX,dword ptr [EAX + 0x4dc]
CMP EAX,0x5
JZ 0x00053830
CMP EAX,0xb
JZ 0x00053830
SUB ESP,0x8
LEA EAX,[EBX + 0xfffd4b0c]
PUSH EAX
PUSH EBP
CALL 0x00027240
MOV EAX,dword ptr [ESP + 0x4c]
ADD ESP,0x10
MOV dword ptr [EAX],0xffffffff
MOV EAX,0x1
JMP 0x000535ad
MOV EAX,dword ptr [ESP + 0x3c]
MOV dword ptr [EAX],0x2
MOV EAX,0x1
JMP 0x000535ad
MOV EAX,dword ptr [ESP + 0x34]
CMP byte ptr [EAX],0x2b
JNZ 0x00053612
JMP 0x0005361d
MOV EAX,dword ptr [ESP + 0x3c]
MOV dword ptr [EAX],0x2b
MOV EAX,0x1
JMP 0x000535ad
CMP EAX,0x6
JBE 0x00053800
CMP dword ptr [ECX],0x41455250
JNZ 0x00053800
CMP word ptr [ECX + 0x4],0x5455
JNZ 0x00053800
CMP byte ptr [ECX + 0x6],0x48
JNZ 0x00053800
MOV EAX,dword ptr [ESP + 0x3c]
MOV dword ptr [EAX],0x3
MOV EAX,0x1
JMP 0x000535ad
(translation_unit "undefined4 __regparm2\nFUN_00053510(undefined4 param_1,undefined4 param_2,short *param_3,uint param_4,undefined4 *param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  size_t __n;\n  int iVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  int *piVar6;\n  int unaff_EBX;\n  int *unaff_retaddr;\n  \n  entry(param_2,0x53519);\n  iVar1 = *unaff_retaddr;\n  iVar2 = *(int *)(iVar1 + 0x148);\n  __n = strlen((char *)(unaff_retaddr + 0x141));\n  if (((__n + 1 <= param_4) && (iVar3 = memcmp(unaff_retaddr + 0x141,param_3,__n), iVar3 == 0)) &&\n     (*(char *)((int)param_3 + __n) == ' ')) {\n    uVar5 = (param_4 - 1) - __n;\n    if (1 < uVar5) {\n      piVar6 = (int *)(__n + 1 + (int)param_3);\n      if ((short)*piVar6 == 0x4b4f) {\n        *param_5 = 1;\n        return 1;\n      }\n      if (((6 < uVar5) && (*piVar6 == 0x41455250)) &&\n         (((short)piVar6[1] == 0x5455 && (*(char *)((int)piVar6 + 6) == 'H')))) {\n        *param_5 = 3;\n        return 1;\n      }\n    }\n    *param_5 = 2;\n    return 1;\n  }\n  if ((param_4 < 2) || (*param_3 != 0x202a)) {\n    if (iVar2 == 0) {\n      return 0;\n    }\n    if (*(int *)(iVar2 + 0x20) != 0) {\n      return 0;\n    }\n    if (param_4 == 3) {\n      if ((char)*param_3 == '+') goto LAB_0005361d;\n    }\n    else if (param_4 < 2) {\n      return 0;\n    }\n    if (*param_3 == 0x202b) {\nLAB_0005361d:\n      if ((unaff_retaddr[0x137] != 5) && (unaff_retaddr[0x137] != 0xb)) {\n        FUN_00027240(iVar1,unaff_EBX + 0x31dd3);\n        *param_5 = 0xffffffff;\n        return 1;\n      }\n      *param_5 = 0x2b;\n      return 1;\n    }\n  }\n  else if ((uint)unaff_retaddr[0x137] < 0xe) {\n                    /* WARNING: Could not recover jumptable at 0x00053597. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar4 = (*(code *)(*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4) +\n                      unaff_EBX + 0x5d2c7))();\n    return uVar4;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 __regparm2\nFUN_00053510(undefined4 param_1,undefined4 param_2,short *param_3,uint param_4,undefined4 *param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  size_t __n;\n  int iVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  int *piVar6;\n  int unaff_EBX;\n  int *unaff_retaddr;\n  \n  entry(param_2,0x53519);\n  iVar1 = *unaff_retaddr;\n  iVar2 = *(int *)(iVar1 + 0x148);\n  __n = strlen((char *)(unaff_retaddr + 0x141));\n  if (((__n + 1 <= param_4) && (iVar3 = memcmp(unaff_retaddr + 0x141,param_3,__n), iVar3 == 0)) &&\n     (*(char *)((int)param_3 + __n) == ' ')) {\n    uVar5 = (param_4 - 1) - __n;\n    if (1 < uVar5) {\n      piVar6 = (int *)(__n + 1 + (int)param_3);\n      if ((short)*piVar6 == 0x4b4f) {\n        *param_5 = 1;\n        return 1;\n      }\n      if (((6 < uVar5) && (*piVar6 == 0x41455250)) &&\n         (((short)piVar6[1] == 0x5455 && (*(char *)((int)piVar6 + 6) == 'H')))) {\n        *param_5 = 3;\n        return 1;\n      }\n    }\n    *param_5 = 2;\n    return 1;\n  }\n  if ((param_4 < 2) || (*param_3 != 0x202a)) {\n    if (iVar2 == 0) {\n      return 0;\n    }\n    if (*(int *)(iVar2 + 0x20) != 0) {\n      return 0;\n    }\n    if (param_4 == 3) {\n      if ((char)*param_3 == '+') goto LAB_0005361d;\n    }\n    else if (param_4 < 2) {\n      return 0;\n    }\n    if (*param_3 == 0x202b) {\nLAB_0005361d:\n      if ((unaff_retaddr[0x137] != 5) && (unaff_retaddr[0x137] != 0xb)) {\n        FUN_00027240(iVar1,unaff_EBX + 0x31dd3);\n        *param_5 = 0xffffffff;\n        return 1;\n      }\n      *param_5 = 0x2b;\n      return 1;\n    }\n  }\n  else if ((uint)unaff_retaddr[0x137] < 0xe) {\n                    /* WARNING: Could not recover jumptable at 0x00053597. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar4 = (*(code *)(*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4) +\n                      unaff_EBX + 0x5d2c7))();\n    return uVar4;\n  }\n  return 0;\n}" type_identifier (ERROR "__regparm2" identifier) (function_declarator "FUN_00053510(undefined4 param_1,undefined4 param_2,short *param_3,uint param_4,undefined4 *param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,short *param_3,uint param_4,undefined4 *param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "short *param_3" (sized_type_specifier "short" short) (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "uint param_4" type_identifier identifier) , (parameter_declaration "undefined4 *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  size_t __n;\n  int iVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  int *piVar6;\n  int unaff_EBX;\n  int *unaff_retaddr;\n  \n  entry(param_2,0x53519);\n  iVar1 = *unaff_retaddr;\n  iVar2 = *(int *)(iVar1 + 0x148);\n  __n = strlen((char *)(unaff_retaddr + 0x141));\n  if (((__n + 1 <= param_4) && (iVar3 = memcmp(unaff_retaddr + 0x141,param_3,__n), iVar3 == 0)) &&\n     (*(char *)((int)param_3 + __n) == ' ')) {\n    uVar5 = (param_4 - 1) - __n;\n    if (1 < uVar5) {\n      piVar6 = (int *)(__n + 1 + (int)param_3);\n      if ((short)*piVar6 == 0x4b4f) {\n        *param_5 = 1;\n        return 1;\n      }\n      if (((6 < uVar5) && (*piVar6 == 0x41455250)) &&\n         (((short)piVar6[1] == 0x5455 && (*(char *)((int)piVar6 + 6) == 'H')))) {\n        *param_5 = 3;\n        return 1;\n      }\n    }\n    *param_5 = 2;\n    return 1;\n  }\n  if ((param_4 < 2) || (*param_3 != 0x202a)) {\n    if (iVar2 == 0) {\n      return 0;\n    }\n    if (*(int *)(iVar2 + 0x20) != 0) {\n      return 0;\n    }\n    if (param_4 == 3) {\n      if ((char)*param_3 == '+') goto LAB_0005361d;\n    }\n    else if (param_4 < 2) {\n      return 0;\n    }\n    if (*param_3 == 0x202b) {\nLAB_0005361d:\n      if ((unaff_retaddr[0x137] != 5) && (unaff_retaddr[0x137] != 0xb)) {\n        FUN_00027240(iVar1,unaff_EBX + 0x31dd3);\n        *param_5 = 0xffffffff;\n        return 1;\n      }\n      *param_5 = 0x2b;\n      return 1;\n    }\n  }\n  else if ((uint)unaff_retaddr[0x137] < 0xe) {\n                    /* WARNING: Could not recover jumptable at 0x00053597. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar4 = (*(code *)(*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4) +\n                      unaff_EBX + 0x5d2c7))();\n    return uVar4;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "int unaff_EBX;" primitive_type identifier ;) (declaration "int *unaff_retaddr;" primitive_type (pointer_declarator "*unaff_retaddr" * identifier) ;) (expression_statement "entry(param_2,0x53519);" (call_expression "entry(param_2,0x53519)" identifier (argument_list "(param_2,0x53519)" ( identifier , number_literal ))) ;) (expression_statement "iVar1 = *unaff_retaddr;" (assignment_expression "iVar1 = *unaff_retaddr" identifier = (pointer_expression "*unaff_retaddr" * identifier)) ;) (expression_statement "iVar2 = *(int *)(iVar1 + 0x148);" (assignment_expression "iVar2 = *(int *)(iVar1 + 0x148)" identifier = (pointer_expression "*(int *)(iVar1 + 0x148)" * (cast_expression "(int *)(iVar1 + 0x148)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x148)" ( (binary_expression "iVar1 + 0x148" identifier + number_literal) ))))) ;) (expression_statement "__n = strlen((char *)(unaff_retaddr + 0x141));" (assignment_expression "__n = strlen((char *)(unaff_retaddr + 0x141))" identifier = (call_expression "strlen((char *)(unaff_retaddr + 0x141))" identifier (argument_list "((char *)(unaff_retaddr + 0x141))" ( (cast_expression "(char *)(unaff_retaddr + 0x141)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x141)" ( (binary_expression "unaff_retaddr + 0x141" identifier + number_literal) ))) )))) ;) (if_statement "if (((__n + 1 <= param_4) && (iVar3 = memcmp(unaff_retaddr + 0x141,param_3,__n), iVar3 == 0)) &&\n     (*(char *)((int)param_3 + __n) == ' ')) {\n    uVar5 = (param_4 - 1) - __n;\n    if (1 < uVar5) {\n      piVar6 = (int *)(__n + 1 + (int)param_3);\n      if ((short)*piVar6 == 0x4b4f) {\n        *param_5 = 1;\n        return 1;\n      }\n      if (((6 < uVar5) && (*piVar6 == 0x41455250)) &&\n         (((short)piVar6[1] == 0x5455 && (*(char *)((int)piVar6 + 6) == 'H')))) {\n        *param_5 = 3;\n        return 1;\n      }\n    }\n    *param_5 = 2;\n    return 1;\n  }" if (parenthesized_expression "(((__n + 1 <= param_4) && (iVar3 = memcmp(unaff_retaddr + 0x141,param_3,__n), iVar3 == 0)) &&\n     (*(char *)((int)param_3 + __n) == ' '))" ( (binary_expression "((__n + 1 <= param_4) && (iVar3 = memcmp(unaff_retaddr + 0x141,param_3,__n), iVar3 == 0)) &&\n     (*(char *)((int)param_3 + __n) == ' ')" (parenthesized_expression "((__n + 1 <= param_4) && (iVar3 = memcmp(unaff_retaddr + 0x141,param_3,__n), iVar3 == 0))" ( (binary_expression "(__n + 1 <= param_4) && (iVar3 = memcmp(unaff_retaddr + 0x141,param_3,__n), iVar3 == 0)" (parenthesized_expression "(__n + 1 <= param_4)" ( (binary_expression "__n + 1 <= param_4" (binary_expression "__n + 1" identifier + number_literal) <= identifier) )) && (parenthesized_expression "(iVar3 = memcmp(unaff_retaddr + 0x141,param_3,__n), iVar3 == 0)" ( (comma_expression "iVar3 = memcmp(unaff_retaddr + 0x141,param_3,__n), iVar3 == 0" (assignment_expression "iVar3 = memcmp(unaff_retaddr + 0x141,param_3,__n)" identifier = (call_expression "memcmp(unaff_retaddr + 0x141,param_3,__n)" identifier (argument_list "(unaff_retaddr + 0x141,param_3,__n)" ( (binary_expression "unaff_retaddr + 0x141" identifier + number_literal) , identifier , identifier )))) , (binary_expression "iVar3 == 0" identifier == number_literal)) ))) )) && (parenthesized_expression "(*(char *)((int)param_3 + __n) == ' ')" ( (binary_expression "*(char *)((int)param_3 + __n) == ' '" (pointer_expression "*(char *)((int)param_3 + __n)" * (cast_expression "(char *)((int)param_3 + __n)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_3 + __n)" ( (binary_expression "(int)param_3 + __n" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) == (char_literal "' '" ' character ')) ))) )) (compound_statement "{\n    uVar5 = (param_4 - 1) - __n;\n    if (1 < uVar5) {\n      piVar6 = (int *)(__n + 1 + (int)param_3);\n      if ((short)*piVar6 == 0x4b4f) {\n        *param_5 = 1;\n        return 1;\n      }\n      if (((6 < uVar5) && (*piVar6 == 0x41455250)) &&\n         (((short)piVar6[1] == 0x5455 && (*(char *)((int)piVar6 + 6) == 'H')))) {\n        *param_5 = 3;\n        return 1;\n      }\n    }\n    *param_5 = 2;\n    return 1;\n  }" { (expression_statement "uVar5 = (param_4 - 1) - __n;" (assignment_expression "uVar5 = (param_4 - 1) - __n" identifier = (binary_expression "(param_4 - 1) - __n" (parenthesized_expression "(param_4 - 1)" ( (binary_expression "param_4 - 1" identifier - number_literal) )) - identifier)) ;) (if_statement "if (1 < uVar5) {\n      piVar6 = (int *)(__n + 1 + (int)param_3);\n      if ((short)*piVar6 == 0x4b4f) {\n        *param_5 = 1;\n        return 1;\n      }\n      if (((6 < uVar5) && (*piVar6 == 0x41455250)) &&\n         (((short)piVar6[1] == 0x5455 && (*(char *)((int)piVar6 + 6) == 'H')))) {\n        *param_5 = 3;\n        return 1;\n      }\n    }" if (parenthesized_expression "(1 < uVar5)" ( (binary_expression "1 < uVar5" number_literal < identifier) )) (compound_statement "{\n      piVar6 = (int *)(__n + 1 + (int)param_3);\n      if ((short)*piVar6 == 0x4b4f) {\n        *param_5 = 1;\n        return 1;\n      }\n      if (((6 < uVar5) && (*piVar6 == 0x41455250)) &&\n         (((short)piVar6[1] == 0x5455 && (*(char *)((int)piVar6 + 6) == 'H')))) {\n        *param_5 = 3;\n        return 1;\n      }\n    }" { (expression_statement "piVar6 = (int *)(__n + 1 + (int)param_3);" (assignment_expression "piVar6 = (int *)(__n + 1 + (int)param_3)" identifier = (cast_expression "(int *)(__n + 1 + (int)param_3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(__n + 1 + (int)param_3)" ( (binary_expression "__n + 1 + (int)param_3" (binary_expression "__n + 1" identifier + number_literal) + (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (if_statement "if ((short)*piVar6 == 0x4b4f) {\n        *param_5 = 1;\n        return 1;\n      }" if (parenthesized_expression "((short)*piVar6 == 0x4b4f)" ( (binary_expression "(short)*piVar6 == 0x4b4f" (cast_expression "(short)*piVar6" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) (pointer_expression "*piVar6" * identifier)) == number_literal) )) (compound_statement "{\n        *param_5 = 1;\n        return 1;\n      }" { (expression_statement "*param_5 = 1;" (assignment_expression "*param_5 = 1" (pointer_expression "*param_5" * identifier) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })) (if_statement "if (((6 < uVar5) && (*piVar6 == 0x41455250)) &&\n         (((short)piVar6[1] == 0x5455 && (*(char *)((int)piVar6 + 6) == 'H')))) {\n        *param_5 = 3;\n        return 1;\n      }" if (parenthesized_expression "(((6 < uVar5) && (*piVar6 == 0x41455250)) &&\n         (((short)piVar6[1] == 0x5455 && (*(char *)((int)piVar6 + 6) == 'H'))))" ( (binary_expression "((6 < uVar5) && (*piVar6 == 0x41455250)) &&\n         (((short)piVar6[1] == 0x5455 && (*(char *)((int)piVar6 + 6) == 'H')))" (parenthesized_expression "((6 < uVar5) && (*piVar6 == 0x41455250))" ( (binary_expression "(6 < uVar5) && (*piVar6 == 0x41455250)" (parenthesized_expression "(6 < uVar5)" ( (binary_expression "6 < uVar5" number_literal < identifier) )) && (parenthesized_expression "(*piVar6 == 0x41455250)" ( (binary_expression "*piVar6 == 0x41455250" (pointer_expression "*piVar6" * identifier) == number_literal) ))) )) && (parenthesized_expression "(((short)piVar6[1] == 0x5455 && (*(char *)((int)piVar6 + 6) == 'H')))" ( (parenthesized_expression "((short)piVar6[1] == 0x5455 && (*(char *)((int)piVar6 + 6) == 'H'))" ( (binary_expression "(short)piVar6[1] == 0x5455 && (*(char *)((int)piVar6 + 6) == 'H')" (binary_expression "(short)piVar6[1] == 0x5455" (cast_expression "(short)piVar6[1]" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) (subscript_expression "piVar6[1]" identifier [ number_literal ])) == number_literal) && (parenthesized_expression "(*(char *)((int)piVar6 + 6) == 'H')" ( (binary_expression "*(char *)((int)piVar6 + 6) == 'H'" (pointer_expression "*(char *)((int)piVar6 + 6)" * (cast_expression "(char *)((int)piVar6 + 6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar6 + 6)" ( (binary_expression "(int)piVar6 + 6" (cast_expression "(int)piVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == (char_literal "'H'" ' character ')) ))) )) ))) )) (compound_statement "{\n        *param_5 = 3;\n        return 1;\n      }" { (expression_statement "*param_5 = 3;" (assignment_expression "*param_5 = 3" (pointer_expression "*param_5" * identifier) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })) })) (expression_statement "*param_5 = 2;" (assignment_expression "*param_5 = 2" (pointer_expression "*param_5" * identifier) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })) (if_statement "if ((param_4 < 2) || (*param_3 != 0x202a)) {\n    if (iVar2 == 0) {\n      return 0;\n    }\n    if (*(int *)(iVar2 + 0x20) != 0) {\n      return 0;\n    }\n    if (param_4 == 3) {\n      if ((char)*param_3 == '+') goto LAB_0005361d;\n    }\n    else if (param_4 < 2) {\n      return 0;\n    }\n    if (*param_3 == 0x202b) {\nLAB_0005361d:\n      if ((unaff_retaddr[0x137] != 5) && (unaff_retaddr[0x137] != 0xb)) {\n        FUN_00027240(iVar1,unaff_EBX + 0x31dd3);\n        *param_5 = 0xffffffff;\n        return 1;\n      }\n      *param_5 = 0x2b;\n      return 1;\n    }\n  }\n  else if ((uint)unaff_retaddr[0x137] < 0xe) {\n                    /* WARNING: Could not recover jumptable at 0x00053597. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar4 = (*(code *)(*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4) +\n                      unaff_EBX + 0x5d2c7))();\n    return uVar4;\n  }" if (parenthesized_expression "((param_4 < 2) || (*param_3 != 0x202a))" ( (binary_expression "(param_4 < 2) || (*param_3 != 0x202a)" (parenthesized_expression "(param_4 < 2)" ( (binary_expression "param_4 < 2" identifier < number_literal) )) || (parenthesized_expression "(*param_3 != 0x202a)" ( (binary_expression "*param_3 != 0x202a" (pointer_expression "*param_3" * identifier) != number_literal) ))) )) (compound_statement "{\n    if (iVar2 == 0) {\n      return 0;\n    }\n    if (*(int *)(iVar2 + 0x20) != 0) {\n      return 0;\n    }\n    if (param_4 == 3) {\n      if ((char)*param_3 == '+') goto LAB_0005361d;\n    }\n    else if (param_4 < 2) {\n      return 0;\n    }\n    if (*param_3 == 0x202b) {\nLAB_0005361d:\n      if ((unaff_retaddr[0x137] != 5) && (unaff_retaddr[0x137] != 0xb)) {\n        FUN_00027240(iVar1,unaff_EBX + 0x31dd3);\n        *param_5 = 0xffffffff;\n        return 1;\n      }\n      *param_5 = 0x2b;\n      return 1;\n    }\n  }" { (if_statement "if (iVar2 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (*(int *)(iVar2 + 0x20) != 0) {\n      return 0;\n    }" if (parenthesized_expression "(*(int *)(iVar2 + 0x20) != 0)" ( (binary_expression "*(int *)(iVar2 + 0x20) != 0" (pointer_expression "*(int *)(iVar2 + 0x20)" * (cast_expression "(int *)(iVar2 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x20)" ( (binary_expression "iVar2 + 0x20" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_4 == 3) {\n      if ((char)*param_3 == '+') goto LAB_0005361d;\n    }\n    else if (param_4 < 2) {\n      return 0;\n    }" if (parenthesized_expression "(param_4 == 3)" ( (binary_expression "param_4 == 3" identifier == number_literal) )) (compound_statement "{\n      if ((char)*param_3 == '+') goto LAB_0005361d;\n    }" { (if_statement "if ((char)*param_3 == '+') goto LAB_0005361d;" if (parenthesized_expression "((char)*param_3 == '+')" ( (binary_expression "(char)*param_3 == '+'" (cast_expression "(char)*param_3" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*param_3" * identifier)) == (char_literal "'+'" ' character ')) )) (goto_statement "goto LAB_0005361d;" goto statement_identifier ;)) }) (else_clause "else if (param_4 < 2) {\n      return 0;\n    }" else (if_statement "if (param_4 < 2) {\n      return 0;\n    }" if (parenthesized_expression "(param_4 < 2)" ( (binary_expression "param_4 < 2" identifier < number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })))) (if_statement "if (*param_3 == 0x202b) {\nLAB_0005361d:\n      if ((unaff_retaddr[0x137] != 5) && (unaff_retaddr[0x137] != 0xb)) {\n        FUN_00027240(iVar1,unaff_EBX + 0x31dd3);\n        *param_5 = 0xffffffff;\n        return 1;\n      }\n      *param_5 = 0x2b;\n      return 1;\n    }" if (parenthesized_expression "(*param_3 == 0x202b)" ( (binary_expression "*param_3 == 0x202b" (pointer_expression "*param_3" * identifier) == number_literal) )) (compound_statement "{\nLAB_0005361d:\n      if ((unaff_retaddr[0x137] != 5) && (unaff_retaddr[0x137] != 0xb)) {\n        FUN_00027240(iVar1,unaff_EBX + 0x31dd3);\n        *param_5 = 0xffffffff;\n        return 1;\n      }\n      *param_5 = 0x2b;\n      return 1;\n    }" { (labeled_statement "LAB_0005361d:\n      if ((unaff_retaddr[0x137] != 5) && (unaff_retaddr[0x137] != 0xb)) {\n        FUN_00027240(iVar1,unaff_EBX + 0x31dd3);\n        *param_5 = 0xffffffff;\n        return 1;\n      }" statement_identifier : (if_statement "if ((unaff_retaddr[0x137] != 5) && (unaff_retaddr[0x137] != 0xb)) {\n        FUN_00027240(iVar1,unaff_EBX + 0x31dd3);\n        *param_5 = 0xffffffff;\n        return 1;\n      }" if (parenthesized_expression "((unaff_retaddr[0x137] != 5) && (unaff_retaddr[0x137] != 0xb))" ( (binary_expression "(unaff_retaddr[0x137] != 5) && (unaff_retaddr[0x137] != 0xb)" (parenthesized_expression "(unaff_retaddr[0x137] != 5)" ( (binary_expression "unaff_retaddr[0x137] != 5" (subscript_expression "unaff_retaddr[0x137]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(unaff_retaddr[0x137] != 0xb)" ( (binary_expression "unaff_retaddr[0x137] != 0xb" (subscript_expression "unaff_retaddr[0x137]" identifier [ number_literal ]) != number_literal) ))) )) (compound_statement "{\n        FUN_00027240(iVar1,unaff_EBX + 0x31dd3);\n        *param_5 = 0xffffffff;\n        return 1;\n      }" { (expression_statement "FUN_00027240(iVar1,unaff_EBX + 0x31dd3);" (call_expression "FUN_00027240(iVar1,unaff_EBX + 0x31dd3)" identifier (argument_list "(iVar1,unaff_EBX + 0x31dd3)" ( identifier , (binary_expression "unaff_EBX + 0x31dd3" identifier + number_literal) ))) ;) (expression_statement "*param_5 = 0xffffffff;" (assignment_expression "*param_5 = 0xffffffff" (pointer_expression "*param_5" * identifier) = number_literal) ;) (return_statement "return 1;" return number_literal ;) }))) (expression_statement "*param_5 = 0x2b;" (assignment_expression "*param_5 = 0x2b" (pointer_expression "*param_5" * identifier) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })) }) (else_clause "else if ((uint)unaff_retaddr[0x137] < 0xe) {\n                    /* WARNING: Could not recover jumptable at 0x00053597. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar4 = (*(code *)(*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4) +\n                      unaff_EBX + 0x5d2c7))();\n    return uVar4;\n  }" else (if_statement "if ((uint)unaff_retaddr[0x137] < 0xe) {\n                    /* WARNING: Could not recover jumptable at 0x00053597. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar4 = (*(code *)(*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4) +\n                      unaff_EBX + 0x5d2c7))();\n    return uVar4;\n  }" if (parenthesized_expression "((uint)unaff_retaddr[0x137] < 0xe)" ( (binary_expression "(uint)unaff_retaddr[0x137] < 0xe" (cast_expression "(uint)unaff_retaddr[0x137]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "unaff_retaddr[0x137]" identifier [ number_literal ])) < number_literal) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x00053597. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar4 = (*(code *)(*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4) +\n                      unaff_EBX + 0x5d2c7))();\n    return uVar4;\n  }" { comment comment (expression_statement "uVar4 = (*(code *)(*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4) +\n                      unaff_EBX + 0x5d2c7))();" (assignment_expression "uVar4 = (*(code *)(*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4) +\n                      unaff_EBX + 0x5d2c7))()" identifier = (call_expression "(*(code *)(*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4) +\n                      unaff_EBX + 0x5d2c7))()" (parenthesized_expression "(*(code *)(*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4) +\n                      unaff_EBX + 0x5d2c7))" ( (pointer_expression "*(code *)(*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4) +\n                      unaff_EBX + 0x5d2c7)" * (cast_expression "(code *)(*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4) +\n                      unaff_EBX + 0x5d2c7)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4) +\n                      unaff_EBX + 0x5d2c7)" ( (binary_expression "*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4) +\n                      unaff_EBX + 0x5d2c7" (binary_expression "*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4) +\n                      unaff_EBX" (pointer_expression "*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4)" * (cast_expression "(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4)" ( (binary_expression "unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4" (binary_expression "unaff_EBX + 0x31f87" identifier + number_literal) + (binary_expression "unaff_retaddr[0x137] * 4" (subscript_expression "unaff_retaddr[0x137]" identifier [ number_literal ]) * number_literal)) )))) + identifier) + number_literal) )))) )) (argument_list "()" ( )))) ;) (return_statement "return uVar4;" return identifier ;) })))) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\n_Bool imap_endofresp(connectdata *conn,char *line,size_t len,int *resp)\n\n{\n  Curl_easy *data;\n  void *pvVar1;\n  _Bool _Var2;\n  size_t __n;\n  int iVar3;\n  uint uVar4;\n  int *piVar5;\n  char *pcVar6;\n  \n  data = conn->data;\n  pcVar6 = &(conn->proto).ftpc.transfertype;\n  pvVar1 = (data->req).protop;\n  __n = strlen(pcVar6);\n  if (((__n + 1 <= len) && (iVar3 = memcmp(pcVar6,line,__n), iVar3 == 0)) && (line[__n] == ' ')) {\n    uVar4 = (len - 1) - __n;\n    if (1 < uVar4) {\n      piVar5 = (int *)(line + __n + 1);\n      if ((short)*piVar5 == 0x4b4f) {\n        *resp = 1;\n        return true;\n      }\n      if (((6 < uVar4) && (*piVar5 == 0x41455250)) &&\n         (((short)piVar5[1] == 0x5455 && (*(char *)((int)piVar5 + 6) == 'H')))) {\n        *resp = 3;\n        return true;\n      }\n    }\n    *resp = 2;\n    return true;\n  }\n  if ((len < 2) || (*(short *)line != 0x202a)) {\n    if (pvVar1 == (void *)0x0) {\n      return false;\n    }\n    if (*(int *)((int)pvVar1 + 0x20) != 0) {\n      return false;\n    }\n    if (len == 3) {\n      if (*line == '+') goto LAB_0005361d;\n    }\n    else if (len < 2) {\n      return false;\n    }\n    if (*(short *)line != 0x202b) {\n      return false;\n    }\nLAB_0005361d:\n    pcVar6 = (conn->proto).ftpc.entrypath;\n    if ((pcVar6 != (char *)0x5) && (pcVar6 != (char *)0xb)) {\n      Curl_failf(data,"Unexpected continuation response");\n      *resp = -1;\n      return true;\n    }\n    *resp = 0x2b;\n    return true;\n  }\n  switch((conn->proto).sshc.readdir_totalLen) {\n  default:\n    goto LAB_000535ad;\n  case 2:\n    pcVar6 = "CAPABILITY";\n    break;\n  case 7:\n    pcVar6 = *(char **)((int)pvVar1 + 0x20);\n    if (pcVar6 == (char *)0x0) {\n      _Var2 = imap_matchresp(line,len,"LIST");\n      if (!_Var2) {\n        return false;\n      }\n      pcVar6 = *(char **)((int)pvVar1 + 0x20);\n      if (pcVar6 == (char *)0x0) goto _L192;\n    }\n    _Var2 = imap_matchresp(line,len,pcVar6);\n    if (((!_Var2) &&\n        ((((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"STORE"), iVar3 == 0 ||\n           (_Var2 = imap_matchresp(line,len,"FETCH"), !_Var2)) &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"SELECT"), iVar3 == 0)) &&\n         ((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"EXAMINE"), iVar3 == 0 &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"SEARCH"), iVar3 == 0)))))) &&\n       ((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"EXPUNGE"), iVar3 == 0 &&\n        (((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"LSUB"), iVar3 == 0 &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"UID"), iVar3 == 0)) &&\n         (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"NOOP"), iVar3 == 0)))))) {\n      return false;\n    }\n  case 8:\n    goto _L192;\n  case 9:\n    pcVar6 = "FETCH";\n    break;\n  case 0xd:\n    pcVar6 = "SEARCH";\n  }\n  _Var2 = imap_matchresp(line,len,pcVar6);\n  if (!_Var2) {\nLAB_000535ad:\n    return false;\n  }\n_L192:\n  *resp = 0x2a;\n  return true;\n}\n\n" comment comment (function_definition "_Bool imap_endofresp(connectdata *conn,char *line,size_t len,int *resp)\n\n{\n  Curl_easy *data;\n  void *pvVar1;\n  _Bool _Var2;\n  size_t __n;\n  int iVar3;\n  uint uVar4;\n  int *piVar5;\n  char *pcVar6;\n  \n  data = conn->data;\n  pcVar6 = &(conn->proto).ftpc.transfertype;\n  pvVar1 = (data->req).protop;\n  __n = strlen(pcVar6);\n  if (((__n + 1 <= len) && (iVar3 = memcmp(pcVar6,line,__n), iVar3 == 0)) && (line[__n] == ' ')) {\n    uVar4 = (len - 1) - __n;\n    if (1 < uVar4) {\n      piVar5 = (int *)(line + __n + 1);\n      if ((short)*piVar5 == 0x4b4f) {\n        *resp = 1;\n        return true;\n      }\n      if (((6 < uVar4) && (*piVar5 == 0x41455250)) &&\n         (((short)piVar5[1] == 0x5455 && (*(char *)((int)piVar5 + 6) == 'H')))) {\n        *resp = 3;\n        return true;\n      }\n    }\n    *resp = 2;\n    return true;\n  }\n  if ((len < 2) || (*(short *)line != 0x202a)) {\n    if (pvVar1 == (void *)0x0) {\n      return false;\n    }\n    if (*(int *)((int)pvVar1 + 0x20) != 0) {\n      return false;\n    }\n    if (len == 3) {\n      if (*line == '+') goto LAB_0005361d;\n    }\n    else if (len < 2) {\n      return false;\n    }\n    if (*(short *)line != 0x202b) {\n      return false;\n    }\nLAB_0005361d:\n    pcVar6 = (conn->proto).ftpc.entrypath;\n    if ((pcVar6 != (char *)0x5) && (pcVar6 != (char *)0xb)) {\n      Curl_failf(data,"Unexpected continuation response");\n      *resp = -1;\n      return true;\n    }\n    *resp = 0x2b;\n    return true;\n  }\n  switch((conn->proto).sshc.readdir_totalLen) {\n  default:\n    goto LAB_000535ad;\n  case 2:\n    pcVar6 = "CAPABILITY";\n    break;\n  case 7:\n    pcVar6 = *(char **)((int)pvVar1 + 0x20);\n    if (pcVar6 == (char *)0x0) {\n      _Var2 = imap_matchresp(line,len,"LIST");\n      if (!_Var2) {\n        return false;\n      }\n      pcVar6 = *(char **)((int)pvVar1 + 0x20);\n      if (pcVar6 == (char *)0x0) goto _L192;\n    }\n    _Var2 = imap_matchresp(line,len,pcVar6);\n    if (((!_Var2) &&\n        ((((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"STORE"), iVar3 == 0 ||\n           (_Var2 = imap_matchresp(line,len,"FETCH"), !_Var2)) &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"SELECT"), iVar3 == 0)) &&\n         ((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"EXAMINE"), iVar3 == 0 &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"SEARCH"), iVar3 == 0)))))) &&\n       ((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"EXPUNGE"), iVar3 == 0 &&\n        (((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"LSUB"), iVar3 == 0 &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"UID"), iVar3 == 0)) &&\n         (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"NOOP"), iVar3 == 0)))))) {\n      return false;\n    }\n  case 8:\n    goto _L192;\n  case 9:\n    pcVar6 = "FETCH";\n    break;\n  case 0xd:\n    pcVar6 = "SEARCH";\n  }\n  _Var2 = imap_matchresp(line,len,pcVar6);\n  if (!_Var2) {\nLAB_000535ad:\n    return false;\n  }\n_L192:\n  *resp = 0x2a;\n  return true;\n}" type_identifier (function_declarator "imap_endofresp(connectdata *conn,char *line,size_t len,int *resp)" identifier (parameter_list "(connectdata *conn,char *line,size_t len,int *resp)" ( (parameter_declaration "connectdata *conn" type_identifier (pointer_declarator "*conn" * identifier)) , (parameter_declaration "char *line" primitive_type (pointer_declarator "*line" * identifier)) , (parameter_declaration "size_t len" primitive_type identifier) , (parameter_declaration "int *resp" primitive_type (pointer_declarator "*resp" * identifier)) ))) (compound_statement "{\n  Curl_easy *data;\n  void *pvVar1;\n  _Bool _Var2;\n  size_t __n;\n  int iVar3;\n  uint uVar4;\n  int *piVar5;\n  char *pcVar6;\n  \n  data = conn->data;\n  pcVar6 = &(conn->proto).ftpc.transfertype;\n  pvVar1 = (data->req).protop;\n  __n = strlen(pcVar6);\n  if (((__n + 1 <= len) && (iVar3 = memcmp(pcVar6,line,__n), iVar3 == 0)) && (line[__n] == ' ')) {\n    uVar4 = (len - 1) - __n;\n    if (1 < uVar4) {\n      piVar5 = (int *)(line + __n + 1);\n      if ((short)*piVar5 == 0x4b4f) {\n        *resp = 1;\n        return true;\n      }\n      if (((6 < uVar4) && (*piVar5 == 0x41455250)) &&\n         (((short)piVar5[1] == 0x5455 && (*(char *)((int)piVar5 + 6) == 'H')))) {\n        *resp = 3;\n        return true;\n      }\n    }\n    *resp = 2;\n    return true;\n  }\n  if ((len < 2) || (*(short *)line != 0x202a)) {\n    if (pvVar1 == (void *)0x0) {\n      return false;\n    }\n    if (*(int *)((int)pvVar1 + 0x20) != 0) {\n      return false;\n    }\n    if (len == 3) {\n      if (*line == '+') goto LAB_0005361d;\n    }\n    else if (len < 2) {\n      return false;\n    }\n    if (*(short *)line != 0x202b) {\n      return false;\n    }\nLAB_0005361d:\n    pcVar6 = (conn->proto).ftpc.entrypath;\n    if ((pcVar6 != (char *)0x5) && (pcVar6 != (char *)0xb)) {\n      Curl_failf(data,"Unexpected continuation response");\n      *resp = -1;\n      return true;\n    }\n    *resp = 0x2b;\n    return true;\n  }\n  switch((conn->proto).sshc.readdir_totalLen) {\n  default:\n    goto LAB_000535ad;\n  case 2:\n    pcVar6 = "CAPABILITY";\n    break;\n  case 7:\n    pcVar6 = *(char **)((int)pvVar1 + 0x20);\n    if (pcVar6 == (char *)0x0) {\n      _Var2 = imap_matchresp(line,len,"LIST");\n      if (!_Var2) {\n        return false;\n      }\n      pcVar6 = *(char **)((int)pvVar1 + 0x20);\n      if (pcVar6 == (char *)0x0) goto _L192;\n    }\n    _Var2 = imap_matchresp(line,len,pcVar6);\n    if (((!_Var2) &&\n        ((((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"STORE"), iVar3 == 0 ||\n           (_Var2 = imap_matchresp(line,len,"FETCH"), !_Var2)) &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"SELECT"), iVar3 == 0)) &&\n         ((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"EXAMINE"), iVar3 == 0 &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"SEARCH"), iVar3 == 0)))))) &&\n       ((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"EXPUNGE"), iVar3 == 0 &&\n        (((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"LSUB"), iVar3 == 0 &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"UID"), iVar3 == 0)) &&\n         (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"NOOP"), iVar3 == 0)))))) {\n      return false;\n    }\n  case 8:\n    goto _L192;\n  case 9:\n    pcVar6 = "FETCH";\n    break;\n  case 0xd:\n    pcVar6 = "SEARCH";\n  }\n  _Var2 = imap_matchresp(line,len,pcVar6);\n  if (!_Var2) {\nLAB_000535ad:\n    return false;\n  }\n_L192:\n  *resp = 0x2a;\n  return true;\n}" { (declaration "Curl_easy *data;" type_identifier (pointer_declarator "*data" * identifier) ;) (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "_Bool _Var2;" type_identifier identifier ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (expression_statement "data = conn->data;" (assignment_expression "data = conn->data" identifier = (field_expression "conn->data" identifier -> field_identifier)) ;) (expression_statement "pcVar6 = &(conn->proto).ftpc.transfertype;" (assignment_expression "pcVar6 = &(conn->proto).ftpc.transfertype" identifier = (pointer_expression "&(conn->proto).ftpc.transfertype" & (field_expression "(conn->proto).ftpc.transfertype" (field_expression "(conn->proto).ftpc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier) . field_identifier))) ;) (expression_statement "pvVar1 = (data->req).protop;" (assignment_expression "pvVar1 = (data->req).protop" identifier = (field_expression "(data->req).protop" (parenthesized_expression "(data->req)" ( (field_expression "data->req" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "__n = strlen(pcVar6);" (assignment_expression "__n = strlen(pcVar6)" identifier = (call_expression "strlen(pcVar6)" identifier (argument_list "(pcVar6)" ( identifier )))) ;) (if_statement "if (((__n + 1 <= len) && (iVar3 = memcmp(pcVar6,line,__n), iVar3 == 0)) && (line[__n] == ' ')) {\n    uVar4 = (len - 1) - __n;\n    if (1 < uVar4) {\n      piVar5 = (int *)(line + __n + 1);\n      if ((short)*piVar5 == 0x4b4f) {\n        *resp = 1;\n        return true;\n      }\n      if (((6 < uVar4) && (*piVar5 == 0x41455250)) &&\n         (((short)piVar5[1] == 0x5455 && (*(char *)((int)piVar5 + 6) == 'H')))) {\n        *resp = 3;\n        return true;\n      }\n    }\n    *resp = 2;\n    return true;\n  }" if (parenthesized_expression "(((__n + 1 <= len) && (iVar3 = memcmp(pcVar6,line,__n), iVar3 == 0)) && (line[__n] == ' '))" ( (binary_expression "((__n + 1 <= len) && (iVar3 = memcmp(pcVar6,line,__n), iVar3 == 0)) && (line[__n] == ' ')" (parenthesized_expression "((__n + 1 <= len) && (iVar3 = memcmp(pcVar6,line,__n), iVar3 == 0))" ( (binary_expression "(__n + 1 <= len) && (iVar3 = memcmp(pcVar6,line,__n), iVar3 == 0)" (parenthesized_expression "(__n + 1 <= len)" ( (binary_expression "__n + 1 <= len" (binary_expression "__n + 1" identifier + number_literal) <= identifier) )) && (parenthesized_expression "(iVar3 = memcmp(pcVar6,line,__n), iVar3 == 0)" ( (comma_expression "iVar3 = memcmp(pcVar6,line,__n), iVar3 == 0" (assignment_expression "iVar3 = memcmp(pcVar6,line,__n)" identifier = (call_expression "memcmp(pcVar6,line,__n)" identifier (argument_list "(pcVar6,line,__n)" ( identifier , identifier , identifier )))) , (binary_expression "iVar3 == 0" identifier == number_literal)) ))) )) && (parenthesized_expression "(line[__n] == ' ')" ( (binary_expression "line[__n] == ' '" (subscript_expression "line[__n]" identifier [ identifier ]) == (char_literal "' '" ' character ')) ))) )) (compound_statement "{\n    uVar4 = (len - 1) - __n;\n    if (1 < uVar4) {\n      piVar5 = (int *)(line + __n + 1);\n      if ((short)*piVar5 == 0x4b4f) {\n        *resp = 1;\n        return true;\n      }\n      if (((6 < uVar4) && (*piVar5 == 0x41455250)) &&\n         (((short)piVar5[1] == 0x5455 && (*(char *)((int)piVar5 + 6) == 'H')))) {\n        *resp = 3;\n        return true;\n      }\n    }\n    *resp = 2;\n    return true;\n  }" { (expression_statement "uVar4 = (len - 1) - __n;" (assignment_expression "uVar4 = (len - 1) - __n" identifier = (binary_expression "(len - 1) - __n" (parenthesized_expression "(len - 1)" ( (binary_expression "len - 1" identifier - number_literal) )) - identifier)) ;) (if_statement "if (1 < uVar4) {\n      piVar5 = (int *)(line + __n + 1);\n      if ((short)*piVar5 == 0x4b4f) {\n        *resp = 1;\n        return true;\n      }\n      if (((6 < uVar4) && (*piVar5 == 0x41455250)) &&\n         (((short)piVar5[1] == 0x5455 && (*(char *)((int)piVar5 + 6) == 'H')))) {\n        *resp = 3;\n        return true;\n      }\n    }" if (parenthesized_expression "(1 < uVar4)" ( (binary_expression "1 < uVar4" number_literal < identifier) )) (compound_statement "{\n      piVar5 = (int *)(line + __n + 1);\n      if ((short)*piVar5 == 0x4b4f) {\n        *resp = 1;\n        return true;\n      }\n      if (((6 < uVar4) && (*piVar5 == 0x41455250)) &&\n         (((short)piVar5[1] == 0x5455 && (*(char *)((int)piVar5 + 6) == 'H')))) {\n        *resp = 3;\n        return true;\n      }\n    }" { (expression_statement "piVar5 = (int *)(line + __n + 1);" (assignment_expression "piVar5 = (int *)(line + __n + 1)" identifier = (cast_expression "(int *)(line + __n + 1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(line + __n + 1)" ( (binary_expression "line + __n + 1" (binary_expression "line + __n" identifier + identifier) + number_literal) )))) ;) (if_statement "if ((short)*piVar5 == 0x4b4f) {\n        *resp = 1;\n        return true;\n      }" if (parenthesized_expression "((short)*piVar5 == 0x4b4f)" ( (binary_expression "(short)*piVar5 == 0x4b4f" (cast_expression "(short)*piVar5" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) (pointer_expression "*piVar5" * identifier)) == number_literal) )) (compound_statement "{\n        *resp = 1;\n        return true;\n      }" { (expression_statement "*resp = 1;" (assignment_expression "*resp = 1" (pointer_expression "*resp" * identifier) = number_literal) ;) (return_statement "return true;" return true ;) })) (if_statement "if (((6 < uVar4) && (*piVar5 == 0x41455250)) &&\n         (((short)piVar5[1] == 0x5455 && (*(char *)((int)piVar5 + 6) == 'H')))) {\n        *resp = 3;\n        return true;\n      }" if (parenthesized_expression "(((6 < uVar4) && (*piVar5 == 0x41455250)) &&\n         (((short)piVar5[1] == 0x5455 && (*(char *)((int)piVar5 + 6) == 'H'))))" ( (binary_expression "((6 < uVar4) && (*piVar5 == 0x41455250)) &&\n         (((short)piVar5[1] == 0x5455 && (*(char *)((int)piVar5 + 6) == 'H')))" (parenthesized_expression "((6 < uVar4) && (*piVar5 == 0x41455250))" ( (binary_expression "(6 < uVar4) && (*piVar5 == 0x41455250)" (parenthesized_expression "(6 < uVar4)" ( (binary_expression "6 < uVar4" number_literal < identifier) )) && (parenthesized_expression "(*piVar5 == 0x41455250)" ( (binary_expression "*piVar5 == 0x41455250" (pointer_expression "*piVar5" * identifier) == number_literal) ))) )) && (parenthesized_expression "(((short)piVar5[1] == 0x5455 && (*(char *)((int)piVar5 + 6) == 'H')))" ( (parenthesized_expression "((short)piVar5[1] == 0x5455 && (*(char *)((int)piVar5 + 6) == 'H'))" ( (binary_expression "(short)piVar5[1] == 0x5455 && (*(char *)((int)piVar5 + 6) == 'H')" (binary_expression "(short)piVar5[1] == 0x5455" (cast_expression "(short)piVar5[1]" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) (subscript_expression "piVar5[1]" identifier [ number_literal ])) == number_literal) && (parenthesized_expression "(*(char *)((int)piVar5 + 6) == 'H')" ( (binary_expression "*(char *)((int)piVar5 + 6) == 'H'" (pointer_expression "*(char *)((int)piVar5 + 6)" * (cast_expression "(char *)((int)piVar5 + 6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar5 + 6)" ( (binary_expression "(int)piVar5 + 6" (cast_expression "(int)piVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == (char_literal "'H'" ' character ')) ))) )) ))) )) (compound_statement "{\n        *resp = 3;\n        return true;\n      }" { (expression_statement "*resp = 3;" (assignment_expression "*resp = 3" (pointer_expression "*resp" * identifier) = number_literal) ;) (return_statement "return true;" return true ;) })) })) (expression_statement "*resp = 2;" (assignment_expression "*resp = 2" (pointer_expression "*resp" * identifier) = number_literal) ;) (return_statement "return true;" return true ;) })) (if_statement "if ((len < 2) || (*(short *)line != 0x202a)) {\n    if (pvVar1 == (void *)0x0) {\n      return false;\n    }\n    if (*(int *)((int)pvVar1 + 0x20) != 0) {\n      return false;\n    }\n    if (len == 3) {\n      if (*line == '+') goto LAB_0005361d;\n    }\n    else if (len < 2) {\n      return false;\n    }\n    if (*(short *)line != 0x202b) {\n      return false;\n    }\nLAB_0005361d:\n    pcVar6 = (conn->proto).ftpc.entrypath;\n    if ((pcVar6 != (char *)0x5) && (pcVar6 != (char *)0xb)) {\n      Curl_failf(data,"Unexpected continuation response");\n      *resp = -1;\n      return true;\n    }\n    *resp = 0x2b;\n    return true;\n  }" if (parenthesized_expression "((len < 2) || (*(short *)line != 0x202a))" ( (binary_expression "(len < 2) || (*(short *)line != 0x202a)" (parenthesized_expression "(len < 2)" ( (binary_expression "len < 2" identifier < number_literal) )) || (parenthesized_expression "(*(short *)line != 0x202a)" ( (binary_expression "*(short *)line != 0x202a" (pointer_expression "*(short *)line" * (cast_expression "(short *)line" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) identifier)) != number_literal) ))) )) (compound_statement "{\n    if (pvVar1 == (void *)0x0) {\n      return false;\n    }\n    if (*(int *)((int)pvVar1 + 0x20) != 0) {\n      return false;\n    }\n    if (len == 3) {\n      if (*line == '+') goto LAB_0005361d;\n    }\n    else if (len < 2) {\n      return false;\n    }\n    if (*(short *)line != 0x202b) {\n      return false;\n    }\nLAB_0005361d:\n    pcVar6 = (conn->proto).ftpc.entrypath;\n    if ((pcVar6 != (char *)0x5) && (pcVar6 != (char *)0xb)) {\n      Curl_failf(data,"Unexpected continuation response");\n      *resp = -1;\n      return true;\n    }\n    *resp = 0x2b;\n    return true;\n  }" { (if_statement "if (pvVar1 == (void *)0x0) {\n      return false;\n    }" if (parenthesized_expression "(pvVar1 == (void *)0x0)" ( (binary_expression "pvVar1 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return false;\n    }" { (return_statement "return false;" return false ;) })) (if_statement "if (*(int *)((int)pvVar1 + 0x20) != 0) {\n      return false;\n    }" if (parenthesized_expression "(*(int *)((int)pvVar1 + 0x20) != 0)" ( (binary_expression "*(int *)((int)pvVar1 + 0x20) != 0" (pointer_expression "*(int *)((int)pvVar1 + 0x20)" * (cast_expression "(int *)((int)pvVar1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar1 + 0x20)" ( (binary_expression "(int)pvVar1 + 0x20" (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != number_literal) )) (compound_statement "{\n      return false;\n    }" { (return_statement "return false;" return false ;) })) (if_statement "if (len == 3) {\n      if (*line == '+') goto LAB_0005361d;\n    }\n    else if (len < 2) {\n      return false;\n    }" if (parenthesized_expression "(len == 3)" ( (binary_expression "len == 3" identifier == number_literal) )) (compound_statement "{\n      if (*line == '+') goto LAB_0005361d;\n    }" { (if_statement "if (*line == '+') goto LAB_0005361d;" if (parenthesized_expression "(*line == '+')" ( (binary_expression "*line == '+'" (pointer_expression "*line" * identifier) == (char_literal "'+'" ' character ')) )) (goto_statement "goto LAB_0005361d;" goto statement_identifier ;)) }) (else_clause "else if (len < 2) {\n      return false;\n    }" else (if_statement "if (len < 2) {\n      return false;\n    }" if (parenthesized_expression "(len < 2)" ( (binary_expression "len < 2" identifier < number_literal) )) (compound_statement "{\n      return false;\n    }" { (return_statement "return false;" return false ;) })))) (if_statement "if (*(short *)line != 0x202b) {\n      return false;\n    }" if (parenthesized_expression "(*(short *)line != 0x202b)" ( (binary_expression "*(short *)line != 0x202b" (pointer_expression "*(short *)line" * (cast_expression "(short *)line" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) identifier)) != number_literal) )) (compound_statement "{\n      return false;\n    }" { (return_statement "return false;" return false ;) })) (labeled_statement "LAB_0005361d:\n    pcVar6 = (conn->proto).ftpc.entrypath;" statement_identifier : (expression_statement "pcVar6 = (conn->proto).ftpc.entrypath;" (assignment_expression "pcVar6 = (conn->proto).ftpc.entrypath" identifier = (field_expression "(conn->proto).ftpc.entrypath" (field_expression "(conn->proto).ftpc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;)) (if_statement "if ((pcVar6 != (char *)0x5) && (pcVar6 != (char *)0xb)) {\n      Curl_failf(data,"Unexpected continuation response");\n      *resp = -1;\n      return true;\n    }" if (parenthesized_expression "((pcVar6 != (char *)0x5) && (pcVar6 != (char *)0xb))" ( (binary_expression "(pcVar6 != (char *)0x5) && (pcVar6 != (char *)0xb)" (parenthesized_expression "(pcVar6 != (char *)0x5)" ( (binary_expression "pcVar6 != (char *)0x5" identifier != (cast_expression "(char *)0x5" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(pcVar6 != (char *)0xb)" ( (binary_expression "pcVar6 != (char *)0xb" identifier != (cast_expression "(char *)0xb" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n      Curl_failf(data,"Unexpected continuation response");\n      *resp = -1;\n      return true;\n    }" { (expression_statement "Curl_failf(data,"Unexpected continuation response");" (call_expression "Curl_failf(data,"Unexpected continuation response")" identifier (argument_list "(data,"Unexpected continuation response")" ( identifier , (string_literal ""Unexpected continuation response"" " string_content ") ))) ;) (expression_statement "*resp = -1;" (assignment_expression "*resp = -1" (pointer_expression "*resp" * identifier) = number_literal) ;) (return_statement "return true;" return true ;) })) (expression_statement "*resp = 0x2b;" (assignment_expression "*resp = 0x2b" (pointer_expression "*resp" * identifier) = number_literal) ;) (return_statement "return true;" return true ;) })) (switch_statement "switch((conn->proto).sshc.readdir_totalLen) {\n  default:\n    goto LAB_000535ad;\n  case 2:\n    pcVar6 = "CAPABILITY";\n    break;\n  case 7:\n    pcVar6 = *(char **)((int)pvVar1 + 0x20);\n    if (pcVar6 == (char *)0x0) {\n      _Var2 = imap_matchresp(line,len,"LIST");\n      if (!_Var2) {\n        return false;\n      }\n      pcVar6 = *(char **)((int)pvVar1 + 0x20);\n      if (pcVar6 == (char *)0x0) goto _L192;\n    }\n    _Var2 = imap_matchresp(line,len,pcVar6);\n    if (((!_Var2) &&\n        ((((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"STORE"), iVar3 == 0 ||\n           (_Var2 = imap_matchresp(line,len,"FETCH"), !_Var2)) &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"SELECT"), iVar3 == 0)) &&\n         ((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"EXAMINE"), iVar3 == 0 &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"SEARCH"), iVar3 == 0)))))) &&\n       ((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"EXPUNGE"), iVar3 == 0 &&\n        (((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"LSUB"), iVar3 == 0 &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"UID"), iVar3 == 0)) &&\n         (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"NOOP"), iVar3 == 0)))))) {\n      return false;\n    }\n  case 8:\n    goto _L192;\n  case 9:\n    pcVar6 = "FETCH";\n    break;\n  case 0xd:\n    pcVar6 = "SEARCH";\n  }" switch (parenthesized_expression "((conn->proto).sshc.readdir_totalLen)" ( (field_expression "(conn->proto).sshc.readdir_totalLen" (field_expression "(conn->proto).sshc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier) . field_identifier) )) (compound_statement "{\n  default:\n    goto LAB_000535ad;\n  case 2:\n    pcVar6 = "CAPABILITY";\n    break;\n  case 7:\n    pcVar6 = *(char **)((int)pvVar1 + 0x20);\n    if (pcVar6 == (char *)0x0) {\n      _Var2 = imap_matchresp(line,len,"LIST");\n      if (!_Var2) {\n        return false;\n      }\n      pcVar6 = *(char **)((int)pvVar1 + 0x20);\n      if (pcVar6 == (char *)0x0) goto _L192;\n    }\n    _Var2 = imap_matchresp(line,len,pcVar6);\n    if (((!_Var2) &&\n        ((((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"STORE"), iVar3 == 0 ||\n           (_Var2 = imap_matchresp(line,len,"FETCH"), !_Var2)) &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"SELECT"), iVar3 == 0)) &&\n         ((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"EXAMINE"), iVar3 == 0 &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"SEARCH"), iVar3 == 0)))))) &&\n       ((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"EXPUNGE"), iVar3 == 0 &&\n        (((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"LSUB"), iVar3 == 0 &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"UID"), iVar3 == 0)) &&\n         (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"NOOP"), iVar3 == 0)))))) {\n      return false;\n    }\n  case 8:\n    goto _L192;\n  case 9:\n    pcVar6 = "FETCH";\n    break;\n  case 0xd:\n    pcVar6 = "SEARCH";\n  }" { (case_statement "default:\n    goto LAB_000535ad;" default : (goto_statement "goto LAB_000535ad;" goto statement_identifier ;)) (case_statement "case 2:\n    pcVar6 = "CAPABILITY";\n    break;" case number_literal : (expression_statement "pcVar6 = "CAPABILITY";" (assignment_expression "pcVar6 = "CAPABILITY"" identifier = (string_literal ""CAPABILITY"" " string_content ")) ;) (break_statement "break;" break ;)) (case_statement "case 7:\n    pcVar6 = *(char **)((int)pvVar1 + 0x20);\n    if (pcVar6 == (char *)0x0) {\n      _Var2 = imap_matchresp(line,len,"LIST");\n      if (!_Var2) {\n        return false;\n      }\n      pcVar6 = *(char **)((int)pvVar1 + 0x20);\n      if (pcVar6 == (char *)0x0) goto _L192;\n    }\n    _Var2 = imap_matchresp(line,len,pcVar6);\n    if (((!_Var2) &&\n        ((((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"STORE"), iVar3 == 0 ||\n           (_Var2 = imap_matchresp(line,len,"FETCH"), !_Var2)) &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"SELECT"), iVar3 == 0)) &&\n         ((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"EXAMINE"), iVar3 == 0 &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"SEARCH"), iVar3 == 0)))))) &&\n       ((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"EXPUNGE"), iVar3 == 0 &&\n        (((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"LSUB"), iVar3 == 0 &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"UID"), iVar3 == 0)) &&\n         (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"NOOP"), iVar3 == 0)))))) {\n      return false;\n    }" case number_literal : (expression_statement "pcVar6 = *(char **)((int)pvVar1 + 0x20);" (assignment_expression "pcVar6 = *(char **)((int)pvVar1 + 0x20)" identifier = (pointer_expression "*(char **)((int)pvVar1 + 0x20)" * (cast_expression "(char **)((int)pvVar1 + 0x20)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar1 + 0x20)" ( (binary_expression "(int)pvVar1 + 0x20" (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (if_statement "if (pcVar6 == (char *)0x0) {\n      _Var2 = imap_matchresp(line,len,"LIST");\n      if (!_Var2) {\n        return false;\n      }\n      pcVar6 = *(char **)((int)pvVar1 + 0x20);\n      if (pcVar6 == (char *)0x0) goto _L192;\n    }" if (parenthesized_expression "(pcVar6 == (char *)0x0)" ( (binary_expression "pcVar6 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      _Var2 = imap_matchresp(line,len,"LIST");\n      if (!_Var2) {\n        return false;\n      }\n      pcVar6 = *(char **)((int)pvVar1 + 0x20);\n      if (pcVar6 == (char *)0x0) goto _L192;\n    }" { (expression_statement "_Var2 = imap_matchresp(line,len,"LIST");" (assignment_expression "_Var2 = imap_matchresp(line,len,"LIST")" identifier = (call_expression "imap_matchresp(line,len,"LIST")" identifier (argument_list "(line,len,"LIST")" ( identifier , identifier , (string_literal ""LIST"" " string_content ") )))) ;) (if_statement "if (!_Var2) {\n        return false;\n      }" if (parenthesized_expression "(!_Var2)" ( (unary_expression "!_Var2" ! identifier) )) (compound_statement "{\n        return false;\n      }" { (return_statement "return false;" return false ;) })) (expression_statement "pcVar6 = *(char **)((int)pvVar1 + 0x20);" (assignment_expression "pcVar6 = *(char **)((int)pvVar1 + 0x20)" identifier = (pointer_expression "*(char **)((int)pvVar1 + 0x20)" * (cast_expression "(char **)((int)pvVar1 + 0x20)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar1 + 0x20)" ( (binary_expression "(int)pvVar1 + 0x20" (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (if_statement "if (pcVar6 == (char *)0x0) goto _L192;" if (parenthesized_expression "(pcVar6 == (char *)0x0)" ( (binary_expression "pcVar6 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto _L192;" goto statement_identifier ;)) })) (expression_statement "_Var2 = imap_matchresp(line,len,pcVar6);" (assignment_expression "_Var2 = imap_matchresp(line,len,pcVar6)" identifier = (call_expression "imap_matchresp(line,len,pcVar6)" identifier (argument_list "(line,len,pcVar6)" ( identifier , identifier , identifier )))) ;) (if_statement "if (((!_Var2) &&\n        ((((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"STORE"), iVar3 == 0 ||\n           (_Var2 = imap_matchresp(line,len,"FETCH"), !_Var2)) &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"SELECT"), iVar3 == 0)) &&\n         ((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"EXAMINE"), iVar3 == 0 &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"SEARCH"), iVar3 == 0)))))) &&\n       ((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"EXPUNGE"), iVar3 == 0 &&\n        (((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"LSUB"), iVar3 == 0 &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"UID"), iVar3 == 0)) &&\n         (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"NOOP"), iVar3 == 0)))))) {\n      return false;\n    }" if (parenthesized_expression "(((!_Var2) &&\n        ((((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"STORE"), iVar3 == 0 ||\n           (_Var2 = imap_matchresp(line,len,"FETCH"), !_Var2)) &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"SELECT"), iVar3 == 0)) &&\n         ((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"EXAMINE"), iVar3 == 0 &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"SEARCH"), iVar3 == 0)))))) &&\n       ((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"EXPUNGE"), iVar3 == 0 &&\n        (((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"LSUB"), iVar3 == 0 &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"UID"), iVar3 == 0)) &&\n         (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"NOOP"), iVar3 == 0))))))" ( (binary_expression "((!_Var2) &&\n        ((((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"STORE"), iVar3 == 0 ||\n           (_Var2 = imap_matchresp(line,len,"FETCH"), !_Var2)) &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"SELECT"), iVar3 == 0)) &&\n         ((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"EXAMINE"), iVar3 == 0 &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"SEARCH"), iVar3 == 0)))))) &&\n       ((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"EXPUNGE"), iVar3 == 0 &&\n        (((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"LSUB"), iVar3 == 0 &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"UID"), iVar3 == 0)) &&\n         (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"NOOP"), iVar3 == 0)))))" (parenthesized_expression "((!_Var2) &&\n        ((((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"STORE"), iVar3 == 0 ||\n           (_Var2 = imap_matchresp(line,len,"FETCH"), !_Var2)) &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"SELECT"), iVar3 == 0)) &&\n         ((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"EXAMINE"), iVar3 == 0 &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"SEARCH"), iVar3 == 0))))))" ( (binary_expression "(!_Var2) &&\n        ((((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"STORE"), iVar3 == 0 ||\n           (_Var2 = imap_matchresp(line,len,"FETCH"), !_Var2)) &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"SELECT"), iVar3 == 0)) &&\n         ((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"EXAMINE"), iVar3 == 0 &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"SEARCH"), iVar3 == 0)))))" (parenthesized_expression "(!_Var2)" ( (unary_expression "!_Var2" ! identifier) )) && (parenthesized_expression "((((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"STORE"), iVar3 == 0 ||\n           (_Var2 = imap_matchresp(line,len,"FETCH"), !_Var2)) &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"SELECT"), iVar3 == 0)) &&\n         ((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"EXAMINE"), iVar3 == 0 &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"SEARCH"), iVar3 == 0)))))" ( (parenthesized_expression "(((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"STORE"), iVar3 == 0 ||\n           (_Var2 = imap_matchresp(line,len,"FETCH"), !_Var2)) &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"SELECT"), iVar3 == 0)) &&\n         ((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"EXAMINE"), iVar3 == 0 &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"SEARCH"), iVar3 == 0))))" ( (binary_expression "((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"STORE"), iVar3 == 0 ||\n           (_Var2 = imap_matchresp(line,len,"FETCH"), !_Var2)) &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"SELECT"), iVar3 == 0)) &&\n         ((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"EXAMINE"), iVar3 == 0 &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"SEARCH"), iVar3 == 0)))" (parenthesized_expression "((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"STORE"), iVar3 == 0 ||\n           (_Var2 = imap_matchresp(line,len,"FETCH"), !_Var2)) &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"SELECT"), iVar3 == 0))" ( (binary_expression "(iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"STORE"), iVar3 == 0 ||\n           (_Var2 = imap_matchresp(line,len,"FETCH"), !_Var2)) &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"SELECT"), iVar3 == 0)" (parenthesized_expression "(iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"STORE"), iVar3 == 0 ||\n           (_Var2 = imap_matchresp(line,len,"FETCH"), !_Var2))" ( (comma_expression "iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"STORE"), iVar3 == 0 ||\n           (_Var2 = imap_matchresp(line,len,"FETCH"), !_Var2)" (assignment_expression "iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"STORE")" identifier = (call_expression "Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"STORE")" identifier (argument_list "(*(char **)((int)pvVar1 + 0x20),"STORE")" ( (pointer_expression "*(char **)((int)pvVar1 + 0x20)" * (cast_expression "(char **)((int)pvVar1 + 0x20)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar1 + 0x20)" ( (binary_expression "(int)pvVar1 + 0x20" (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , (string_literal ""STORE"" " string_content ") )))) , (binary_expression "iVar3 == 0 ||\n           (_Var2 = imap_matchresp(line,len,"FETCH"), !_Var2)" (binary_expression "iVar3 == 0" identifier == number_literal) || (parenthesized_expression "(_Var2 = imap_matchresp(line,len,"FETCH"), !_Var2)" ( (comma_expression "_Var2 = imap_matchresp(line,len,"FETCH"), !_Var2" (assignment_expression "_Var2 = imap_matchresp(line,len,"FETCH")" identifier = (call_expression "imap_matchresp(line,len,"FETCH")" identifier (argument_list "(line,len,"FETCH")" ( identifier , identifier , (string_literal ""FETCH"" " string_content ") )))) , (unary_expression "!_Var2" ! identifier)) )))) )) && (parenthesized_expression "(iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"SELECT"), iVar3 == 0)" ( (comma_expression "iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"SELECT"), iVar3 == 0" (assignment_expression "iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"SELECT")" identifier = (call_expression "Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"SELECT")" identifier (argument_list "(*(char **)((int)pvVar1 + 0x20),"SELECT")" ( (pointer_expression "*(char **)((int)pvVar1 + 0x20)" * (cast_expression "(char **)((int)pvVar1 + 0x20)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar1 + 0x20)" ( (binary_expression "(int)pvVar1 + 0x20" (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , (string_literal ""SELECT"" " string_content ") )))) , (binary_expression "iVar3 == 0" identifier == number_literal)) ))) )) && (parenthesized_expression "((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"EXAMINE"), iVar3 == 0 &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"SEARCH"), iVar3 == 0)))" ( (parenthesized_expression "(iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"EXAMINE"), iVar3 == 0 &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"SEARCH"), iVar3 == 0))" ( (comma_expression "iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"EXAMINE"), iVar3 == 0 &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"SEARCH"), iVar3 == 0)" (assignment_expression "iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"EXAMINE")" identifier = (call_expression "Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"EXAMINE")" identifier (argument_list "(*(char **)((int)pvVar1 + 0x20),"EXAMINE")" ( (pointer_expression "*(char **)((int)pvVar1 + 0x20)" * (cast_expression "(char **)((int)pvVar1 + 0x20)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar1 + 0x20)" ( (binary_expression "(int)pvVar1 + 0x20" (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , (string_literal ""EXAMINE"" " string_content ") )))) , (binary_expression "iVar3 == 0 &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"SEARCH"), iVar3 == 0)" (binary_expression "iVar3 == 0" identifier == number_literal) && (parenthesized_expression "(iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"SEARCH"), iVar3 == 0)" ( (comma_expression "iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"SEARCH"), iVar3 == 0" (assignment_expression "iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"SEARCH")" identifier = (call_expression "Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"SEARCH")" identifier (argument_list "(*(char **)((int)pvVar1 + 0x20),"SEARCH")" ( (pointer_expression "*(char **)((int)pvVar1 + 0x20)" * (cast_expression "(char **)((int)pvVar1 + 0x20)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar1 + 0x20)" ( (binary_expression "(int)pvVar1 + 0x20" (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , (string_literal ""SEARCH"" " string_content ") )))) , (binary_expression "iVar3 == 0" identifier == number_literal)) )))) )) ))) )) ))) )) && (parenthesized_expression "((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"EXPUNGE"), iVar3 == 0 &&\n        (((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"LSUB"), iVar3 == 0 &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"UID"), iVar3 == 0)) &&\n         (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"NOOP"), iVar3 == 0)))))" ( (parenthesized_expression "(iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"EXPUNGE"), iVar3 == 0 &&\n        (((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"LSUB"), iVar3 == 0 &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"UID"), iVar3 == 0)) &&\n         (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"NOOP"), iVar3 == 0))))" ( (comma_expression "iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"EXPUNGE"), iVar3 == 0 &&\n        (((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"LSUB"), iVar3 == 0 &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"UID"), iVar3 == 0)) &&\n         (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"NOOP"), iVar3 == 0)))" (assignment_expression "iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"EXPUNGE")" identifier = (call_expression "Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"EXPUNGE")" identifier (argument_list "(*(char **)((int)pvVar1 + 0x20),"EXPUNGE")" ( (pointer_expression "*(char **)((int)pvVar1 + 0x20)" * (cast_expression "(char **)((int)pvVar1 + 0x20)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar1 + 0x20)" ( (binary_expression "(int)pvVar1 + 0x20" (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , (string_literal ""EXPUNGE"" " string_content ") )))) , (binary_expression "iVar3 == 0 &&\n        (((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"LSUB"), iVar3 == 0 &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"UID"), iVar3 == 0)) &&\n         (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"NOOP"), iVar3 == 0)))" (binary_expression "iVar3 == 0" identifier == number_literal) && (parenthesized_expression "(((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"LSUB"), iVar3 == 0 &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"UID"), iVar3 == 0)) &&\n         (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"NOOP"), iVar3 == 0)))" ( (parenthesized_expression "((iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"LSUB"), iVar3 == 0 &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"UID"), iVar3 == 0)) &&\n         (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"NOOP"), iVar3 == 0))" ( (binary_expression "(iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"LSUB"), iVar3 == 0 &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"UID"), iVar3 == 0)) &&\n         (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"NOOP"), iVar3 == 0)" (parenthesized_expression "(iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"LSUB"), iVar3 == 0 &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"UID"), iVar3 == 0))" ( (comma_expression "iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"LSUB"), iVar3 == 0 &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"UID"), iVar3 == 0)" (assignment_expression "iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"LSUB")" identifier = (call_expression "Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"LSUB")" identifier (argument_list "(*(char **)((int)pvVar1 + 0x20),"LSUB")" ( (pointer_expression "*(char **)((int)pvVar1 + 0x20)" * (cast_expression "(char **)((int)pvVar1 + 0x20)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar1 + 0x20)" ( (binary_expression "(int)pvVar1 + 0x20" (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , (string_literal ""LSUB"" " string_content ") )))) , (binary_expression "iVar3 == 0 &&\n          (iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"UID"), iVar3 == 0)" (binary_expression "iVar3 == 0" identifier == number_literal) && (parenthesized_expression "(iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"UID"), iVar3 == 0)" ( (comma_expression "iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"UID"), iVar3 == 0" (assignment_expression "iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"UID")" identifier = (call_expression "Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"UID")" identifier (argument_list "(*(char **)((int)pvVar1 + 0x20),"UID")" ( (pointer_expression "*(char **)((int)pvVar1 + 0x20)" * (cast_expression "(char **)((int)pvVar1 + 0x20)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar1 + 0x20)" ( (binary_expression "(int)pvVar1 + 0x20" (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , (string_literal ""UID"" " string_content ") )))) , (binary_expression "iVar3 == 0" identifier == number_literal)) )))) )) && (parenthesized_expression "(iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"NOOP"), iVar3 == 0)" ( (comma_expression "iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"NOOP"), iVar3 == 0" (assignment_expression "iVar3 = Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"NOOP")" identifier = (call_expression "Curl_strcasecompare(*(char **)((int)pvVar1 + 0x20),"NOOP")" identifier (argument_list "(*(char **)((int)pvVar1 + 0x20),"NOOP")" ( (pointer_expression "*(char **)((int)pvVar1 + 0x20)" * (cast_expression "(char **)((int)pvVar1 + 0x20)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar1 + 0x20)" ( (binary_expression "(int)pvVar1 + 0x20" (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , (string_literal ""NOOP"" " string_content ") )))) , (binary_expression "iVar3 == 0" identifier == number_literal)) ))) )) )))) )) ))) )) (compound_statement "{\n      return false;\n    }" { (return_statement "return false;" return false ;) }))) (case_statement "case 8:\n    goto _L192;" case number_literal : (goto_statement "goto _L192;" goto statement_identifier ;)) (case_statement "case 9:\n    pcVar6 = "FETCH";\n    break;" case number_literal : (expression_statement "pcVar6 = "FETCH";" (assignment_expression "pcVar6 = "FETCH"" identifier = (string_literal ""FETCH"" " string_content ")) ;) (break_statement "break;" break ;)) (case_statement "case 0xd:\n    pcVar6 = "SEARCH";" case number_literal : (expression_statement "pcVar6 = "SEARCH";" (assignment_expression "pcVar6 = "SEARCH"" identifier = (string_literal ""SEARCH"" " string_content ")) ;)) })) (expression_statement "_Var2 = imap_matchresp(line,len,pcVar6);" (assignment_expression "_Var2 = imap_matchresp(line,len,pcVar6)" identifier = (call_expression "imap_matchresp(line,len,pcVar6)" identifier (argument_list "(line,len,pcVar6)" ( identifier , identifier , identifier )))) ;) (if_statement "if (!_Var2) {\nLAB_000535ad:\n    return false;\n  }" if (parenthesized_expression "(!_Var2)" ( (unary_expression "!_Var2" ! identifier) )) (compound_statement "{\nLAB_000535ad:\n    return false;\n  }" { (labeled_statement "LAB_000535ad:\n    return false;" statement_identifier : (return_statement "return false;" return false ;)) })) (labeled_statement "_L192:\n  *resp = 0x2a;" statement_identifier : (expression_statement "*resp = 0x2a;" (assignment_expression "*resp = 0x2a" (pointer_expression "*resp" * identifier) = number_literal) ;)) (return_statement "return true;" return true ;) })))
(translation_unit "undefined4 __regparm2\nFUN_00053510(undefined4 param_1,undefined4 param_2,short *param_3,uint param_4,undefined4 *param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  size_t __n;\n  int iVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  int *piVar6;\n  int unaff_EBX;\n  int *unaff_retaddr;\n  \n  entry(param_2,0x53519);\n  iVar1 = *unaff_retaddr;\n  iVar2 = *(int *)(iVar1 + 0x148);\n  __n = strlen((char *)(unaff_retaddr + 0x141));\n  if (((__n + 1 <= param_4) && (iVar3 = memcmp(unaff_retaddr + 0x141,param_3,__n), iVar3 == 0)) &&\n     (*(char *)((int)param_3 + __n) == ' ')) {\n    uVar5 = (param_4 - 1) - __n;\n    if (1 < uVar5) {\n      piVar6 = (int *)(__n + 1 + (int)param_3);\n      if ((short)*piVar6 == 0x4b4f) {\n        *param_5 = 1;\n        return 1;\n      }\n      if (((6 < uVar5) && (*piVar6 == 0x41455250)) &&\n         (((short)piVar6[1] == 0x5455 && (*(char *)((int)piVar6 + 6) == 'H')))) {\n        *param_5 = 3;\n        return 1;\n      }\n    }\n    *param_5 = 2;\n    return 1;\n  }\n  if ((param_4 < 2) || (*param_3 != 0x202a)) {\n    if (iVar2 == 0) {\n      return 0;\n    }\n    if (*(int *)(iVar2 + 0x20) != 0) {\n      return 0;\n    }\n    if (param_4 == 3) {\n      if ((char)*param_3 == '+') goto LAB_0005361d;\n    }\n    else if (param_4 < 2) {\n      return 0;\n    }\n    if (*param_3 == 0x202b) {\nLAB_0005361d:\n      if ((unaff_retaddr[0x137] != 5) && (unaff_retaddr[0x137] != 0xb)) {\n        FUN_00027240(iVar1,unaff_EBX + 0x31dd3);\n        *param_5 = 0xffffffff;\n        return 1;\n      }\n      *param_5 = 0x2b;\n      return 1;\n    }\n  }\n  else if ((uint)unaff_retaddr[0x137] < 0xe) {\n                    \n                    \n    uVar4 = (*(code *)(*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4) +\n                      unaff_EBX + 0x5d2c7))();\n    return uVar4;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 __regparm2\nFUN_00053510(undefined4 param_1,undefined4 param_2,short *param_3,uint param_4,undefined4 *param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  size_t __n;\n  int iVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  int *piVar6;\n  int unaff_EBX;\n  int *unaff_retaddr;\n  \n  entry(param_2,0x53519);\n  iVar1 = *unaff_retaddr;\n  iVar2 = *(int *)(iVar1 + 0x148);\n  __n = strlen((char *)(unaff_retaddr + 0x141));\n  if (((__n + 1 <= param_4) && (iVar3 = memcmp(unaff_retaddr + 0x141,param_3,__n), iVar3 == 0)) &&\n     (*(char *)((int)param_3 + __n) == ' ')) {\n    uVar5 = (param_4 - 1) - __n;\n    if (1 < uVar5) {\n      piVar6 = (int *)(__n + 1 + (int)param_3);\n      if ((short)*piVar6 == 0x4b4f) {\n        *param_5 = 1;\n        return 1;\n      }\n      if (((6 < uVar5) && (*piVar6 == 0x41455250)) &&\n         (((short)piVar6[1] == 0x5455 && (*(char *)((int)piVar6 + 6) == 'H')))) {\n        *param_5 = 3;\n        return 1;\n      }\n    }\n    *param_5 = 2;\n    return 1;\n  }\n  if ((param_4 < 2) || (*param_3 != 0x202a)) {\n    if (iVar2 == 0) {\n      return 0;\n    }\n    if (*(int *)(iVar2 + 0x20) != 0) {\n      return 0;\n    }\n    if (param_4 == 3) {\n      if ((char)*param_3 == '+') goto LAB_0005361d;\n    }\n    else if (param_4 < 2) {\n      return 0;\n    }\n    if (*param_3 == 0x202b) {\nLAB_0005361d:\n      if ((unaff_retaddr[0x137] != 5) && (unaff_retaddr[0x137] != 0xb)) {\n        FUN_00027240(iVar1,unaff_EBX + 0x31dd3);\n        *param_5 = 0xffffffff;\n        return 1;\n      }\n      *param_5 = 0x2b;\n      return 1;\n    }\n  }\n  else if ((uint)unaff_retaddr[0x137] < 0xe) {\n                    \n                    \n    uVar4 = (*(code *)(*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4) +\n                      unaff_EBX + 0x5d2c7))();\n    return uVar4;\n  }\n  return 0;\n}" type_identifier (ERROR "__regparm2" identifier) (function_declarator "FUN_00053510(undefined4 param_1,undefined4 param_2,short *param_3,uint param_4,undefined4 *param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,short *param_3,uint param_4,undefined4 *param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "short *param_3" (sized_type_specifier "short" short) (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "uint param_4" type_identifier identifier) , (parameter_declaration "undefined4 *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  size_t __n;\n  int iVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  int *piVar6;\n  int unaff_EBX;\n  int *unaff_retaddr;\n  \n  entry(param_2,0x53519);\n  iVar1 = *unaff_retaddr;\n  iVar2 = *(int *)(iVar1 + 0x148);\n  __n = strlen((char *)(unaff_retaddr + 0x141));\n  if (((__n + 1 <= param_4) && (iVar3 = memcmp(unaff_retaddr + 0x141,param_3,__n), iVar3 == 0)) &&\n     (*(char *)((int)param_3 + __n) == ' ')) {\n    uVar5 = (param_4 - 1) - __n;\n    if (1 < uVar5) {\n      piVar6 = (int *)(__n + 1 + (int)param_3);\n      if ((short)*piVar6 == 0x4b4f) {\n        *param_5 = 1;\n        return 1;\n      }\n      if (((6 < uVar5) && (*piVar6 == 0x41455250)) &&\n         (((short)piVar6[1] == 0x5455 && (*(char *)((int)piVar6 + 6) == 'H')))) {\n        *param_5 = 3;\n        return 1;\n      }\n    }\n    *param_5 = 2;\n    return 1;\n  }\n  if ((param_4 < 2) || (*param_3 != 0x202a)) {\n    if (iVar2 == 0) {\n      return 0;\n    }\n    if (*(int *)(iVar2 + 0x20) != 0) {\n      return 0;\n    }\n    if (param_4 == 3) {\n      if ((char)*param_3 == '+') goto LAB_0005361d;\n    }\n    else if (param_4 < 2) {\n      return 0;\n    }\n    if (*param_3 == 0x202b) {\nLAB_0005361d:\n      if ((unaff_retaddr[0x137] != 5) && (unaff_retaddr[0x137] != 0xb)) {\n        FUN_00027240(iVar1,unaff_EBX + 0x31dd3);\n        *param_5 = 0xffffffff;\n        return 1;\n      }\n      *param_5 = 0x2b;\n      return 1;\n    }\n  }\n  else if ((uint)unaff_retaddr[0x137] < 0xe) {\n                    \n                    \n    uVar4 = (*(code *)(*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4) +\n                      unaff_EBX + 0x5d2c7))();\n    return uVar4;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "int unaff_EBX;" primitive_type identifier ;) (declaration "int *unaff_retaddr;" primitive_type (pointer_declarator "*unaff_retaddr" * identifier) ;) (expression_statement "entry(param_2,0x53519);" (call_expression "entry(param_2,0x53519)" identifier (argument_list "(param_2,0x53519)" ( identifier , number_literal ))) ;) (expression_statement "iVar1 = *unaff_retaddr;" (assignment_expression "iVar1 = *unaff_retaddr" identifier = (pointer_expression "*unaff_retaddr" * identifier)) ;) (expression_statement "iVar2 = *(int *)(iVar1 + 0x148);" (assignment_expression "iVar2 = *(int *)(iVar1 + 0x148)" identifier = (pointer_expression "*(int *)(iVar1 + 0x148)" * (cast_expression "(int *)(iVar1 + 0x148)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x148)" ( (binary_expression "iVar1 + 0x148" identifier + number_literal) ))))) ;) (expression_statement "__n = strlen((char *)(unaff_retaddr + 0x141));" (assignment_expression "__n = strlen((char *)(unaff_retaddr + 0x141))" identifier = (call_expression "strlen((char *)(unaff_retaddr + 0x141))" identifier (argument_list "((char *)(unaff_retaddr + 0x141))" ( (cast_expression "(char *)(unaff_retaddr + 0x141)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x141)" ( (binary_expression "unaff_retaddr + 0x141" identifier + number_literal) ))) )))) ;) (if_statement "if (((__n + 1 <= param_4) && (iVar3 = memcmp(unaff_retaddr + 0x141,param_3,__n), iVar3 == 0)) &&\n     (*(char *)((int)param_3 + __n) == ' ')) {\n    uVar5 = (param_4 - 1) - __n;\n    if (1 < uVar5) {\n      piVar6 = (int *)(__n + 1 + (int)param_3);\n      if ((short)*piVar6 == 0x4b4f) {\n        *param_5 = 1;\n        return 1;\n      }\n      if (((6 < uVar5) && (*piVar6 == 0x41455250)) &&\n         (((short)piVar6[1] == 0x5455 && (*(char *)((int)piVar6 + 6) == 'H')))) {\n        *param_5 = 3;\n        return 1;\n      }\n    }\n    *param_5 = 2;\n    return 1;\n  }" if (parenthesized_expression "(((__n + 1 <= param_4) && (iVar3 = memcmp(unaff_retaddr + 0x141,param_3,__n), iVar3 == 0)) &&\n     (*(char *)((int)param_3 + __n) == ' '))" ( (binary_expression "((__n + 1 <= param_4) && (iVar3 = memcmp(unaff_retaddr + 0x141,param_3,__n), iVar3 == 0)) &&\n     (*(char *)((int)param_3 + __n) == ' ')" (parenthesized_expression "((__n + 1 <= param_4) && (iVar3 = memcmp(unaff_retaddr + 0x141,param_3,__n), iVar3 == 0))" ( (binary_expression "(__n + 1 <= param_4) && (iVar3 = memcmp(unaff_retaddr + 0x141,param_3,__n), iVar3 == 0)" (parenthesized_expression "(__n + 1 <= param_4)" ( (binary_expression "__n + 1 <= param_4" (binary_expression "__n + 1" identifier + number_literal) <= identifier) )) && (parenthesized_expression "(iVar3 = memcmp(unaff_retaddr + 0x141,param_3,__n), iVar3 == 0)" ( (comma_expression "iVar3 = memcmp(unaff_retaddr + 0x141,param_3,__n), iVar3 == 0" (assignment_expression "iVar3 = memcmp(unaff_retaddr + 0x141,param_3,__n)" identifier = (call_expression "memcmp(unaff_retaddr + 0x141,param_3,__n)" identifier (argument_list "(unaff_retaddr + 0x141,param_3,__n)" ( (binary_expression "unaff_retaddr + 0x141" identifier + number_literal) , identifier , identifier )))) , (binary_expression "iVar3 == 0" identifier == number_literal)) ))) )) && (parenthesized_expression "(*(char *)((int)param_3 + __n) == ' ')" ( (binary_expression "*(char *)((int)param_3 + __n) == ' '" (pointer_expression "*(char *)((int)param_3 + __n)" * (cast_expression "(char *)((int)param_3 + __n)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_3 + __n)" ( (binary_expression "(int)param_3 + __n" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) == (char_literal "' '" ' character ')) ))) )) (compound_statement "{\n    uVar5 = (param_4 - 1) - __n;\n    if (1 < uVar5) {\n      piVar6 = (int *)(__n + 1 + (int)param_3);\n      if ((short)*piVar6 == 0x4b4f) {\n        *param_5 = 1;\n        return 1;\n      }\n      if (((6 < uVar5) && (*piVar6 == 0x41455250)) &&\n         (((short)piVar6[1] == 0x5455 && (*(char *)((int)piVar6 + 6) == 'H')))) {\n        *param_5 = 3;\n        return 1;\n      }\n    }\n    *param_5 = 2;\n    return 1;\n  }" { (expression_statement "uVar5 = (param_4 - 1) - __n;" (assignment_expression "uVar5 = (param_4 - 1) - __n" identifier = (binary_expression "(param_4 - 1) - __n" (parenthesized_expression "(param_4 - 1)" ( (binary_expression "param_4 - 1" identifier - number_literal) )) - identifier)) ;) (if_statement "if (1 < uVar5) {\n      piVar6 = (int *)(__n + 1 + (int)param_3);\n      if ((short)*piVar6 == 0x4b4f) {\n        *param_5 = 1;\n        return 1;\n      }\n      if (((6 < uVar5) && (*piVar6 == 0x41455250)) &&\n         (((short)piVar6[1] == 0x5455 && (*(char *)((int)piVar6 + 6) == 'H')))) {\n        *param_5 = 3;\n        return 1;\n      }\n    }" if (parenthesized_expression "(1 < uVar5)" ( (binary_expression "1 < uVar5" number_literal < identifier) )) (compound_statement "{\n      piVar6 = (int *)(__n + 1 + (int)param_3);\n      if ((short)*piVar6 == 0x4b4f) {\n        *param_5 = 1;\n        return 1;\n      }\n      if (((6 < uVar5) && (*piVar6 == 0x41455250)) &&\n         (((short)piVar6[1] == 0x5455 && (*(char *)((int)piVar6 + 6) == 'H')))) {\n        *param_5 = 3;\n        return 1;\n      }\n    }" { (expression_statement "piVar6 = (int *)(__n + 1 + (int)param_3);" (assignment_expression "piVar6 = (int *)(__n + 1 + (int)param_3)" identifier = (cast_expression "(int *)(__n + 1 + (int)param_3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(__n + 1 + (int)param_3)" ( (binary_expression "__n + 1 + (int)param_3" (binary_expression "__n + 1" identifier + number_literal) + (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (if_statement "if ((short)*piVar6 == 0x4b4f) {\n        *param_5 = 1;\n        return 1;\n      }" if (parenthesized_expression "((short)*piVar6 == 0x4b4f)" ( (binary_expression "(short)*piVar6 == 0x4b4f" (cast_expression "(short)*piVar6" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) (pointer_expression "*piVar6" * identifier)) == number_literal) )) (compound_statement "{\n        *param_5 = 1;\n        return 1;\n      }" { (expression_statement "*param_5 = 1;" (assignment_expression "*param_5 = 1" (pointer_expression "*param_5" * identifier) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })) (if_statement "if (((6 < uVar5) && (*piVar6 == 0x41455250)) &&\n         (((short)piVar6[1] == 0x5455 && (*(char *)((int)piVar6 + 6) == 'H')))) {\n        *param_5 = 3;\n        return 1;\n      }" if (parenthesized_expression "(((6 < uVar5) && (*piVar6 == 0x41455250)) &&\n         (((short)piVar6[1] == 0x5455 && (*(char *)((int)piVar6 + 6) == 'H'))))" ( (binary_expression "((6 < uVar5) && (*piVar6 == 0x41455250)) &&\n         (((short)piVar6[1] == 0x5455 && (*(char *)((int)piVar6 + 6) == 'H')))" (parenthesized_expression "((6 < uVar5) && (*piVar6 == 0x41455250))" ( (binary_expression "(6 < uVar5) && (*piVar6 == 0x41455250)" (parenthesized_expression "(6 < uVar5)" ( (binary_expression "6 < uVar5" number_literal < identifier) )) && (parenthesized_expression "(*piVar6 == 0x41455250)" ( (binary_expression "*piVar6 == 0x41455250" (pointer_expression "*piVar6" * identifier) == number_literal) ))) )) && (parenthesized_expression "(((short)piVar6[1] == 0x5455 && (*(char *)((int)piVar6 + 6) == 'H')))" ( (parenthesized_expression "((short)piVar6[1] == 0x5455 && (*(char *)((int)piVar6 + 6) == 'H'))" ( (binary_expression "(short)piVar6[1] == 0x5455 && (*(char *)((int)piVar6 + 6) == 'H')" (binary_expression "(short)piVar6[1] == 0x5455" (cast_expression "(short)piVar6[1]" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) (subscript_expression "piVar6[1]" identifier [ number_literal ])) == number_literal) && (parenthesized_expression "(*(char *)((int)piVar6 + 6) == 'H')" ( (binary_expression "*(char *)((int)piVar6 + 6) == 'H'" (pointer_expression "*(char *)((int)piVar6 + 6)" * (cast_expression "(char *)((int)piVar6 + 6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar6 + 6)" ( (binary_expression "(int)piVar6 + 6" (cast_expression "(int)piVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == (char_literal "'H'" ' character ')) ))) )) ))) )) (compound_statement "{\n        *param_5 = 3;\n        return 1;\n      }" { (expression_statement "*param_5 = 3;" (assignment_expression "*param_5 = 3" (pointer_expression "*param_5" * identifier) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })) })) (expression_statement "*param_5 = 2;" (assignment_expression "*param_5 = 2" (pointer_expression "*param_5" * identifier) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })) (if_statement "if ((param_4 < 2) || (*param_3 != 0x202a)) {\n    if (iVar2 == 0) {\n      return 0;\n    }\n    if (*(int *)(iVar2 + 0x20) != 0) {\n      return 0;\n    }\n    if (param_4 == 3) {\n      if ((char)*param_3 == '+') goto LAB_0005361d;\n    }\n    else if (param_4 < 2) {\n      return 0;\n    }\n    if (*param_3 == 0x202b) {\nLAB_0005361d:\n      if ((unaff_retaddr[0x137] != 5) && (unaff_retaddr[0x137] != 0xb)) {\n        FUN_00027240(iVar1,unaff_EBX + 0x31dd3);\n        *param_5 = 0xffffffff;\n        return 1;\n      }\n      *param_5 = 0x2b;\n      return 1;\n    }\n  }\n  else if ((uint)unaff_retaddr[0x137] < 0xe) {\n                    \n                    \n    uVar4 = (*(code *)(*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4) +\n                      unaff_EBX + 0x5d2c7))();\n    return uVar4;\n  }" if (parenthesized_expression "((param_4 < 2) || (*param_3 != 0x202a))" ( (binary_expression "(param_4 < 2) || (*param_3 != 0x202a)" (parenthesized_expression "(param_4 < 2)" ( (binary_expression "param_4 < 2" identifier < number_literal) )) || (parenthesized_expression "(*param_3 != 0x202a)" ( (binary_expression "*param_3 != 0x202a" (pointer_expression "*param_3" * identifier) != number_literal) ))) )) (compound_statement "{\n    if (iVar2 == 0) {\n      return 0;\n    }\n    if (*(int *)(iVar2 + 0x20) != 0) {\n      return 0;\n    }\n    if (param_4 == 3) {\n      if ((char)*param_3 == '+') goto LAB_0005361d;\n    }\n    else if (param_4 < 2) {\n      return 0;\n    }\n    if (*param_3 == 0x202b) {\nLAB_0005361d:\n      if ((unaff_retaddr[0x137] != 5) && (unaff_retaddr[0x137] != 0xb)) {\n        FUN_00027240(iVar1,unaff_EBX + 0x31dd3);\n        *param_5 = 0xffffffff;\n        return 1;\n      }\n      *param_5 = 0x2b;\n      return 1;\n    }\n  }" { (if_statement "if (iVar2 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (*(int *)(iVar2 + 0x20) != 0) {\n      return 0;\n    }" if (parenthesized_expression "(*(int *)(iVar2 + 0x20) != 0)" ( (binary_expression "*(int *)(iVar2 + 0x20) != 0" (pointer_expression "*(int *)(iVar2 + 0x20)" * (cast_expression "(int *)(iVar2 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x20)" ( (binary_expression "iVar2 + 0x20" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_4 == 3) {\n      if ((char)*param_3 == '+') goto LAB_0005361d;\n    }\n    else if (param_4 < 2) {\n      return 0;\n    }" if (parenthesized_expression "(param_4 == 3)" ( (binary_expression "param_4 == 3" identifier == number_literal) )) (compound_statement "{\n      if ((char)*param_3 == '+') goto LAB_0005361d;\n    }" { (if_statement "if ((char)*param_3 == '+') goto LAB_0005361d;" if (parenthesized_expression "((char)*param_3 == '+')" ( (binary_expression "(char)*param_3 == '+'" (cast_expression "(char)*param_3" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*param_3" * identifier)) == (char_literal "'+'" ' character ')) )) (goto_statement "goto LAB_0005361d;" goto statement_identifier ;)) }) (else_clause "else if (param_4 < 2) {\n      return 0;\n    }" else (if_statement "if (param_4 < 2) {\n      return 0;\n    }" if (parenthesized_expression "(param_4 < 2)" ( (binary_expression "param_4 < 2" identifier < number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })))) (if_statement "if (*param_3 == 0x202b) {\nLAB_0005361d:\n      if ((unaff_retaddr[0x137] != 5) && (unaff_retaddr[0x137] != 0xb)) {\n        FUN_00027240(iVar1,unaff_EBX + 0x31dd3);\n        *param_5 = 0xffffffff;\n        return 1;\n      }\n      *param_5 = 0x2b;\n      return 1;\n    }" if (parenthesized_expression "(*param_3 == 0x202b)" ( (binary_expression "*param_3 == 0x202b" (pointer_expression "*param_3" * identifier) == number_literal) )) (compound_statement "{\nLAB_0005361d:\n      if ((unaff_retaddr[0x137] != 5) && (unaff_retaddr[0x137] != 0xb)) {\n        FUN_00027240(iVar1,unaff_EBX + 0x31dd3);\n        *param_5 = 0xffffffff;\n        return 1;\n      }\n      *param_5 = 0x2b;\n      return 1;\n    }" { (labeled_statement "LAB_0005361d:\n      if ((unaff_retaddr[0x137] != 5) && (unaff_retaddr[0x137] != 0xb)) {\n        FUN_00027240(iVar1,unaff_EBX + 0x31dd3);\n        *param_5 = 0xffffffff;\n        return 1;\n      }" statement_identifier : (if_statement "if ((unaff_retaddr[0x137] != 5) && (unaff_retaddr[0x137] != 0xb)) {\n        FUN_00027240(iVar1,unaff_EBX + 0x31dd3);\n        *param_5 = 0xffffffff;\n        return 1;\n      }" if (parenthesized_expression "((unaff_retaddr[0x137] != 5) && (unaff_retaddr[0x137] != 0xb))" ( (binary_expression "(unaff_retaddr[0x137] != 5) && (unaff_retaddr[0x137] != 0xb)" (parenthesized_expression "(unaff_retaddr[0x137] != 5)" ( (binary_expression "unaff_retaddr[0x137] != 5" (subscript_expression "unaff_retaddr[0x137]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(unaff_retaddr[0x137] != 0xb)" ( (binary_expression "unaff_retaddr[0x137] != 0xb" (subscript_expression "unaff_retaddr[0x137]" identifier [ number_literal ]) != number_literal) ))) )) (compound_statement "{\n        FUN_00027240(iVar1,unaff_EBX + 0x31dd3);\n        *param_5 = 0xffffffff;\n        return 1;\n      }" { (expression_statement "FUN_00027240(iVar1,unaff_EBX + 0x31dd3);" (call_expression "FUN_00027240(iVar1,unaff_EBX + 0x31dd3)" identifier (argument_list "(iVar1,unaff_EBX + 0x31dd3)" ( identifier , (binary_expression "unaff_EBX + 0x31dd3" identifier + number_literal) ))) ;) (expression_statement "*param_5 = 0xffffffff;" (assignment_expression "*param_5 = 0xffffffff" (pointer_expression "*param_5" * identifier) = number_literal) ;) (return_statement "return 1;" return number_literal ;) }))) (expression_statement "*param_5 = 0x2b;" (assignment_expression "*param_5 = 0x2b" (pointer_expression "*param_5" * identifier) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })) }) (else_clause "else if ((uint)unaff_retaddr[0x137] < 0xe) {\n                    \n                    \n    uVar4 = (*(code *)(*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4) +\n                      unaff_EBX + 0x5d2c7))();\n    return uVar4;\n  }" else (if_statement "if ((uint)unaff_retaddr[0x137] < 0xe) {\n                    \n                    \n    uVar4 = (*(code *)(*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4) +\n                      unaff_EBX + 0x5d2c7))();\n    return uVar4;\n  }" if (parenthesized_expression "((uint)unaff_retaddr[0x137] < 0xe)" ( (binary_expression "(uint)unaff_retaddr[0x137] < 0xe" (cast_expression "(uint)unaff_retaddr[0x137]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "unaff_retaddr[0x137]" identifier [ number_literal ])) < number_literal) )) (compound_statement "{\n                    \n                    \n    uVar4 = (*(code *)(*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4) +\n                      unaff_EBX + 0x5d2c7))();\n    return uVar4;\n  }" { (expression_statement "uVar4 = (*(code *)(*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4) +\n                      unaff_EBX + 0x5d2c7))();" (assignment_expression "uVar4 = (*(code *)(*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4) +\n                      unaff_EBX + 0x5d2c7))()" identifier = (call_expression "(*(code *)(*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4) +\n                      unaff_EBX + 0x5d2c7))()" (parenthesized_expression "(*(code *)(*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4) +\n                      unaff_EBX + 0x5d2c7))" ( (pointer_expression "*(code *)(*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4) +\n                      unaff_EBX + 0x5d2c7)" * (cast_expression "(code *)(*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4) +\n                      unaff_EBX + 0x5d2c7)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4) +\n                      unaff_EBX + 0x5d2c7)" ( (binary_expression "*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4) +\n                      unaff_EBX + 0x5d2c7" (binary_expression "*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4) +\n                      unaff_EBX" (pointer_expression "*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4)" * (cast_expression "(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4)" ( (binary_expression "unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4" (binary_expression "unaff_EBX + 0x31f87" identifier + number_literal) + (binary_expression "unaff_retaddr[0x137] * 4" (subscript_expression "unaff_retaddr[0x137]" identifier [ number_literal ]) * number_literal)) )))) + identifier) + number_literal) )))) )) (argument_list "()" ( )))) ;) (return_statement "return uVar4;" return identifier ;) })))) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier short) (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) <= IDENT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT )))) , (binary_expression IDENT == LIT)) ))) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) == (char_literal ' character ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT - LIT) )) - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier short)) ) (pointer_expression * IDENT)) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < IDENT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) ))) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier short)) ) (subscript_expression IDENT [ LIT ])) == LIT) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) == (char_literal ' character ')) ))) )) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return LIT ;) })) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < LIT) )) || (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT)) == (char_literal ' character ')) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return LIT ;) })))) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return LIT ;) }))) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return LIT ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression (subscript_expression IDENT [ LIT ]) * LIT)) )))) + IDENT) + LIT) )))) )) (argument_list ( )))) ;) (return_statement return IDENT ;) })))) (return_statement return LIT ;) })))
(function_definition "undefined4 __regparm2\nFUN_00053510(undefined4 param_1,undefined4 param_2,short *param_3,uint param_4,undefined4 *param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  size_t __n;\n  int iVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  int *piVar6;\n  int unaff_EBX;\n  int *unaff_retaddr;\n  \n  entry(param_2,0x53519);\n  iVar1 = *unaff_retaddr;\n  iVar2 = *(int *)(iVar1 + 0x148);\n  __n = strlen((char *)(unaff_retaddr + 0x141));\n  if (((__n + 1 <= param_4) && (iVar3 = memcmp(unaff_retaddr + 0x141,param_3,__n), iVar3 == 0)) &&\n     (*(char *)((int)param_3 + __n) == ' ')) {\n    uVar5 = (param_4 - 1) - __n;\n    if (1 < uVar5) {\n      piVar6 = (int *)(__n + 1 + (int)param_3);\n      if ((short)*piVar6 == 0x4b4f) {\n        *param_5 = 1;\n        return 1;\n      }\n      if (((6 < uVar5) && (*piVar6 == 0x41455250)) &&\n         (((short)piVar6[1] == 0x5455 && (*(char *)((int)piVar6 + 6) == 'H')))) {\n        *param_5 = 3;\n        return 1;\n      }\n    }\n    *param_5 = 2;\n    return 1;\n  }\n  if ((param_4 < 2) || (*param_3 != 0x202a)) {\n    if (iVar2 == 0) {\n      return 0;\n    }\n    if (*(int *)(iVar2 + 0x20) != 0) {\n      return 0;\n    }\n    if (param_4 == 3) {\n      if ((char)*param_3 == '+') goto LAB_0005361d;\n    }\n    else if (param_4 < 2) {\n      return 0;\n    }\n    if (*param_3 == 0x202b) {\nLAB_0005361d:\n      if ((unaff_retaddr[0x137] != 5) && (unaff_retaddr[0x137] != 0xb)) {\n        FUN_00027240(iVar1,unaff_EBX + 0x31dd3);\n        *param_5 = 0xffffffff;\n        return 1;\n      }\n      *param_5 = 0x2b;\n      return 1;\n    }\n  }\n  else if ((uint)unaff_retaddr[0x137] < 0xe) {\n                    \n                    \n    uVar4 = (*(code *)(*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4) +\n                      unaff_EBX + 0x5d2c7))();\n    return uVar4;\n  }\n  return 0;\n}" (type_identifier "undefined4") (ERROR "__regparm2" (identifier "__regparm2")) (function_declarator "FUN_00053510(undefined4 param_1,undefined4 param_2,short *param_3,uint param_4,undefined4 *param_5)" (identifier "FUN_00053510") (parameter_list "(undefined4 param_1,undefined4 param_2,short *param_3,uint param_4,undefined4 *param_5)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "short *param_3" (sized_type_specifier "short" (short "short")) (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "uint param_4" (type_identifier "uint") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 *param_5" (type_identifier "undefined4") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  size_t __n;\n  int iVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  int *piVar6;\n  int unaff_EBX;\n  int *unaff_retaddr;\n  \n  entry(param_2,0x53519);\n  iVar1 = *unaff_retaddr;\n  iVar2 = *(int *)(iVar1 + 0x148);\n  __n = strlen((char *)(unaff_retaddr + 0x141));\n  if (((__n + 1 <= param_4) && (iVar3 = memcmp(unaff_retaddr + 0x141,param_3,__n), iVar3 == 0)) &&\n     (*(char *)((int)param_3 + __n) == ' ')) {\n    uVar5 = (param_4 - 1) - __n;\n    if (1 < uVar5) {\n      piVar6 = (int *)(__n + 1 + (int)param_3);\n      if ((short)*piVar6 == 0x4b4f) {\n        *param_5 = 1;\n        return 1;\n      }\n      if (((6 < uVar5) && (*piVar6 == 0x41455250)) &&\n         (((short)piVar6[1] == 0x5455 && (*(char *)((int)piVar6 + 6) == 'H')))) {\n        *param_5 = 3;\n        return 1;\n      }\n    }\n    *param_5 = 2;\n    return 1;\n  }\n  if ((param_4 < 2) || (*param_3 != 0x202a)) {\n    if (iVar2 == 0) {\n      return 0;\n    }\n    if (*(int *)(iVar2 + 0x20) != 0) {\n      return 0;\n    }\n    if (param_4 == 3) {\n      if ((char)*param_3 == '+') goto LAB_0005361d;\n    }\n    else if (param_4 < 2) {\n      return 0;\n    }\n    if (*param_3 == 0x202b) {\nLAB_0005361d:\n      if ((unaff_retaddr[0x137] != 5) && (unaff_retaddr[0x137] != 0xb)) {\n        FUN_00027240(iVar1,unaff_EBX + 0x31dd3);\n        *param_5 = 0xffffffff;\n        return 1;\n      }\n      *param_5 = 0x2b;\n      return 1;\n    }\n  }\n  else if ((uint)unaff_retaddr[0x137] < 0xe) {\n                    \n                    \n    uVar4 = (*(code *)(*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4) +\n                      unaff_EBX + 0x5d2c7))();\n    return uVar4;\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "int *piVar6;" (primitive_type "int") (pointer_declarator "*piVar6" (* "*") (identifier "piVar6")) (; ";")) (declaration "int unaff_EBX;" (primitive_type "int") (identifier "unaff_EBX") (; ";")) (declaration "int *unaff_retaddr;" (primitive_type "int") (pointer_declarator "*unaff_retaddr" (* "*") (identifier "unaff_retaddr")) (; ";")) (expression_statement "entry(param_2,0x53519);" (call_expression "entry(param_2,0x53519)" (identifier "entry") (argument_list "(param_2,0x53519)" (( "(") (identifier "param_2") (, ",") (number_literal "0x53519") () ")"))) (; ";")) (expression_statement "iVar1 = *unaff_retaddr;" (assignment_expression "iVar1 = *unaff_retaddr" (identifier "iVar1") (= "=") (pointer_expression "*unaff_retaddr" (* "*") (identifier "unaff_retaddr"))) (; ";")) (expression_statement "iVar2 = *(int *)(iVar1 + 0x148);" (assignment_expression "iVar2 = *(int *)(iVar1 + 0x148)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(iVar1 + 0x148)" (* "*") (cast_expression "(int *)(iVar1 + 0x148)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x148)" (( "(") (binary_expression "iVar1 + 0x148" (identifier "iVar1") (+ "+") (number_literal "0x148")) () ")"))))) (; ";")) (expression_statement "__n = strlen((char *)(unaff_retaddr + 0x141));" (assignment_expression "__n = strlen((char *)(unaff_retaddr + 0x141))" (identifier "__n") (= "=") (call_expression "strlen((char *)(unaff_retaddr + 0x141))" (identifier "strlen") (argument_list "((char *)(unaff_retaddr + 0x141))" (( "(") (cast_expression "(char *)(unaff_retaddr + 0x141)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_retaddr + 0x141)" (( "(") (binary_expression "unaff_retaddr + 0x141" (identifier "unaff_retaddr") (+ "+") (number_literal "0x141")) () ")"))) () ")")))) (; ";")) (if_statement "if (((__n + 1 <= param_4) && (iVar3 = memcmp(unaff_retaddr + 0x141,param_3,__n), iVar3 == 0)) &&\n     (*(char *)((int)param_3 + __n) == ' ')) {\n    uVar5 = (param_4 - 1) - __n;\n    if (1 < uVar5) {\n      piVar6 = (int *)(__n + 1 + (int)param_3);\n      if ((short)*piVar6 == 0x4b4f) {\n        *param_5 = 1;\n        return 1;\n      }\n      if (((6 < uVar5) && (*piVar6 == 0x41455250)) &&\n         (((short)piVar6[1] == 0x5455 && (*(char *)((int)piVar6 + 6) == 'H')))) {\n        *param_5 = 3;\n        return 1;\n      }\n    }\n    *param_5 = 2;\n    return 1;\n  }" (if "if") (parenthesized_expression "(((__n + 1 <= param_4) && (iVar3 = memcmp(unaff_retaddr + 0x141,param_3,__n), iVar3 == 0)) &&\n     (*(char *)((int)param_3 + __n) == ' '))" (( "(") (binary_expression "((__n + 1 <= param_4) && (iVar3 = memcmp(unaff_retaddr + 0x141,param_3,__n), iVar3 == 0)) &&\n     (*(char *)((int)param_3 + __n) == ' ')" (parenthesized_expression "((__n + 1 <= param_4) && (iVar3 = memcmp(unaff_retaddr + 0x141,param_3,__n), iVar3 == 0))" (( "(") (binary_expression "(__n + 1 <= param_4) && (iVar3 = memcmp(unaff_retaddr + 0x141,param_3,__n), iVar3 == 0)" (parenthesized_expression "(__n + 1 <= param_4)" (( "(") (binary_expression "__n + 1 <= param_4" (binary_expression "__n + 1" (identifier "__n") (+ "+") (number_literal "1")) (<= "<=") (identifier "param_4")) () ")")) (&& "&&") (parenthesized_expression "(iVar3 = memcmp(unaff_retaddr + 0x141,param_3,__n), iVar3 == 0)" (( "(") (comma_expression "iVar3 = memcmp(unaff_retaddr + 0x141,param_3,__n), iVar3 == 0" (assignment_expression "iVar3 = memcmp(unaff_retaddr + 0x141,param_3,__n)" (identifier "iVar3") (= "=") (call_expression "memcmp(unaff_retaddr + 0x141,param_3,__n)" (identifier "memcmp") (argument_list "(unaff_retaddr + 0x141,param_3,__n)" (( "(") (binary_expression "unaff_retaddr + 0x141" (identifier "unaff_retaddr") (+ "+") (number_literal "0x141")) (, ",") (identifier "param_3") (, ",") (identifier "__n") () ")")))) (, ",") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(*(char *)((int)param_3 + __n) == ' ')" (( "(") (binary_expression "*(char *)((int)param_3 + __n) == ' '" (pointer_expression "*(char *)((int)param_3 + __n)" (* "*") (cast_expression "(char *)((int)param_3 + __n)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_3 + __n)" (( "(") (binary_expression "(int)param_3 + __n" (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3")) (+ "+") (identifier "__n")) () ")")))) (== "==") (char_literal "' '" (' "'") (character " ") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    uVar5 = (param_4 - 1) - __n;\n    if (1 < uVar5) {\n      piVar6 = (int *)(__n + 1 + (int)param_3);\n      if ((short)*piVar6 == 0x4b4f) {\n        *param_5 = 1;\n        return 1;\n      }\n      if (((6 < uVar5) && (*piVar6 == 0x41455250)) &&\n         (((short)piVar6[1] == 0x5455 && (*(char *)((int)piVar6 + 6) == 'H')))) {\n        *param_5 = 3;\n        return 1;\n      }\n    }\n    *param_5 = 2;\n    return 1;\n  }" ({ "{") (expression_statement "uVar5 = (param_4 - 1) - __n;" (assignment_expression "uVar5 = (param_4 - 1) - __n" (identifier "uVar5") (= "=") (binary_expression "(param_4 - 1) - __n" (parenthesized_expression "(param_4 - 1)" (( "(") (binary_expression "param_4 - 1" (identifier "param_4") (- "-") (number_literal "1")) () ")")) (- "-") (identifier "__n"))) (; ";")) (if_statement "if (1 < uVar5) {\n      piVar6 = (int *)(__n + 1 + (int)param_3);\n      if ((short)*piVar6 == 0x4b4f) {\n        *param_5 = 1;\n        return 1;\n      }\n      if (((6 < uVar5) && (*piVar6 == 0x41455250)) &&\n         (((short)piVar6[1] == 0x5455 && (*(char *)((int)piVar6 + 6) == 'H')))) {\n        *param_5 = 3;\n        return 1;\n      }\n    }" (if "if") (parenthesized_expression "(1 < uVar5)" (( "(") (binary_expression "1 < uVar5" (number_literal "1") (< "<") (identifier "uVar5")) () ")")) (compound_statement "{\n      piVar6 = (int *)(__n + 1 + (int)param_3);\n      if ((short)*piVar6 == 0x4b4f) {\n        *param_5 = 1;\n        return 1;\n      }\n      if (((6 < uVar5) && (*piVar6 == 0x41455250)) &&\n         (((short)piVar6[1] == 0x5455 && (*(char *)((int)piVar6 + 6) == 'H')))) {\n        *param_5 = 3;\n        return 1;\n      }\n    }" ({ "{") (expression_statement "piVar6 = (int *)(__n + 1 + (int)param_3);" (assignment_expression "piVar6 = (int *)(__n + 1 + (int)param_3)" (identifier "piVar6") (= "=") (cast_expression "(int *)(__n + 1 + (int)param_3)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(__n + 1 + (int)param_3)" (( "(") (binary_expression "__n + 1 + (int)param_3" (binary_expression "__n + 1" (identifier "__n") (+ "+") (number_literal "1")) (+ "+") (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3"))) () ")")))) (; ";")) (if_statement "if ((short)*piVar6 == 0x4b4f) {\n        *param_5 = 1;\n        return 1;\n      }" (if "if") (parenthesized_expression "((short)*piVar6 == 0x4b4f)" (( "(") (binary_expression "(short)*piVar6 == 0x4b4f" (cast_expression "(short)*piVar6" (( "(") (type_descriptor "short" (sized_type_specifier "short" (short "short"))) () ")") (pointer_expression "*piVar6" (* "*") (identifier "piVar6"))) (== "==") (number_literal "0x4b4f")) () ")")) (compound_statement "{\n        *param_5 = 1;\n        return 1;\n      }" ({ "{") (expression_statement "*param_5 = 1;" (assignment_expression "*param_5 = 1" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (number_literal "1")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (if_statement "if (((6 < uVar5) && (*piVar6 == 0x41455250)) &&\n         (((short)piVar6[1] == 0x5455 && (*(char *)((int)piVar6 + 6) == 'H')))) {\n        *param_5 = 3;\n        return 1;\n      }" (if "if") (parenthesized_expression "(((6 < uVar5) && (*piVar6 == 0x41455250)) &&\n         (((short)piVar6[1] == 0x5455 && (*(char *)((int)piVar6 + 6) == 'H'))))" (( "(") (binary_expression "((6 < uVar5) && (*piVar6 == 0x41455250)) &&\n         (((short)piVar6[1] == 0x5455 && (*(char *)((int)piVar6 + 6) == 'H')))" (parenthesized_expression "((6 < uVar5) && (*piVar6 == 0x41455250))" (( "(") (binary_expression "(6 < uVar5) && (*piVar6 == 0x41455250)" (parenthesized_expression "(6 < uVar5)" (( "(") (binary_expression "6 < uVar5" (number_literal "6") (< "<") (identifier "uVar5")) () ")")) (&& "&&") (parenthesized_expression "(*piVar6 == 0x41455250)" (( "(") (binary_expression "*piVar6 == 0x41455250" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (== "==") (number_literal "0x41455250")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(((short)piVar6[1] == 0x5455 && (*(char *)((int)piVar6 + 6) == 'H')))" (( "(") (parenthesized_expression "((short)piVar6[1] == 0x5455 && (*(char *)((int)piVar6 + 6) == 'H'))" (( "(") (binary_expression "(short)piVar6[1] == 0x5455 && (*(char *)((int)piVar6 + 6) == 'H')" (binary_expression "(short)piVar6[1] == 0x5455" (cast_expression "(short)piVar6[1]" (( "(") (type_descriptor "short" (sized_type_specifier "short" (short "short"))) () ")") (subscript_expression "piVar6[1]" (identifier "piVar6") ([ "[") (number_literal "1") (] "]"))) (== "==") (number_literal "0x5455")) (&& "&&") (parenthesized_expression "(*(char *)((int)piVar6 + 6) == 'H')" (( "(") (binary_expression "*(char *)((int)piVar6 + 6) == 'H'" (pointer_expression "*(char *)((int)piVar6 + 6)" (* "*") (cast_expression "(char *)((int)piVar6 + 6)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar6 + 6)" (( "(") (binary_expression "(int)piVar6 + 6" (cast_expression "(int)piVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar6")) (+ "+") (number_literal "6")) () ")")))) (== "==") (char_literal "'H'" (' "'") (character "H") (' "'"))) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n        *param_5 = 3;\n        return 1;\n      }" ({ "{") (expression_statement "*param_5 = 3;" (assignment_expression "*param_5 = 3" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (number_literal "3")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (} "}"))) (expression_statement "*param_5 = 2;" (assignment_expression "*param_5 = 2" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (number_literal "2")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (if_statement "if ((param_4 < 2) || (*param_3 != 0x202a)) {\n    if (iVar2 == 0) {\n      return 0;\n    }\n    if (*(int *)(iVar2 + 0x20) != 0) {\n      return 0;\n    }\n    if (param_4 == 3) {\n      if ((char)*param_3 == '+') goto LAB_0005361d;\n    }\n    else if (param_4 < 2) {\n      return 0;\n    }\n    if (*param_3 == 0x202b) {\nLAB_0005361d:\n      if ((unaff_retaddr[0x137] != 5) && (unaff_retaddr[0x137] != 0xb)) {\n        FUN_00027240(iVar1,unaff_EBX + 0x31dd3);\n        *param_5 = 0xffffffff;\n        return 1;\n      }\n      *param_5 = 0x2b;\n      return 1;\n    }\n  }\n  else if ((uint)unaff_retaddr[0x137] < 0xe) {\n                    \n                    \n    uVar4 = (*(code *)(*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4) +\n                      unaff_EBX + 0x5d2c7))();\n    return uVar4;\n  }" (if "if") (parenthesized_expression "((param_4 < 2) || (*param_3 != 0x202a))" (( "(") (binary_expression "(param_4 < 2) || (*param_3 != 0x202a)" (parenthesized_expression "(param_4 < 2)" (( "(") (binary_expression "param_4 < 2" (identifier "param_4") (< "<") (number_literal "2")) () ")")) (|| "||") (parenthesized_expression "(*param_3 != 0x202a)" (( "(") (binary_expression "*param_3 != 0x202a" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (!= "!=") (number_literal "0x202a")) () ")"))) () ")")) (compound_statement "{\n    if (iVar2 == 0) {\n      return 0;\n    }\n    if (*(int *)(iVar2 + 0x20) != 0) {\n      return 0;\n    }\n    if (param_4 == 3) {\n      if ((char)*param_3 == '+') goto LAB_0005361d;\n    }\n    else if (param_4 < 2) {\n      return 0;\n    }\n    if (*param_3 == 0x202b) {\nLAB_0005361d:\n      if ((unaff_retaddr[0x137] != 5) && (unaff_retaddr[0x137] != 0xb)) {\n        FUN_00027240(iVar1,unaff_EBX + 0x31dd3);\n        *param_5 = 0xffffffff;\n        return 1;\n      }\n      *param_5 = 0x2b;\n      return 1;\n    }\n  }" ({ "{") (if_statement "if (iVar2 == 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (*(int *)(iVar2 + 0x20) != 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(*(int *)(iVar2 + 0x20) != 0)" (( "(") (binary_expression "*(int *)(iVar2 + 0x20) != 0" (pointer_expression "*(int *)(iVar2 + 0x20)" (* "*") (cast_expression "(int *)(iVar2 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x20)" (( "(") (binary_expression "iVar2 + 0x20" (identifier "iVar2") (+ "+") (number_literal "0x20")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (param_4 == 3) {\n      if ((char)*param_3 == '+') goto LAB_0005361d;\n    }\n    else if (param_4 < 2) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(param_4 == 3)" (( "(") (binary_expression "param_4 == 3" (identifier "param_4") (== "==") (number_literal "3")) () ")")) (compound_statement "{\n      if ((char)*param_3 == '+') goto LAB_0005361d;\n    }" ({ "{") (if_statement "if ((char)*param_3 == '+') goto LAB_0005361d;" (if "if") (parenthesized_expression "((char)*param_3 == '+')" (( "(") (binary_expression "(char)*param_3 == '+'" (cast_expression "(char)*param_3" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (== "==") (char_literal "'+'" (' "'") (character "+") (' "'"))) () ")")) (goto_statement "goto LAB_0005361d;" (goto "goto") (statement_identifier "LAB_0005361d") (; ";"))) (} "}")) (else_clause "else if (param_4 < 2) {\n      return 0;\n    }" (else "else") (if_statement "if (param_4 < 2) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(param_4 < 2)" (( "(") (binary_expression "param_4 < 2" (identifier "param_4") (< "<") (number_literal "2")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))))) (if_statement "if (*param_3 == 0x202b) {\nLAB_0005361d:\n      if ((unaff_retaddr[0x137] != 5) && (unaff_retaddr[0x137] != 0xb)) {\n        FUN_00027240(iVar1,unaff_EBX + 0x31dd3);\n        *param_5 = 0xffffffff;\n        return 1;\n      }\n      *param_5 = 0x2b;\n      return 1;\n    }" (if "if") (parenthesized_expression "(*param_3 == 0x202b)" (( "(") (binary_expression "*param_3 == 0x202b" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (== "==") (number_literal "0x202b")) () ")")) (compound_statement "{\nLAB_0005361d:\n      if ((unaff_retaddr[0x137] != 5) && (unaff_retaddr[0x137] != 0xb)) {\n        FUN_00027240(iVar1,unaff_EBX + 0x31dd3);\n        *param_5 = 0xffffffff;\n        return 1;\n      }\n      *param_5 = 0x2b;\n      return 1;\n    }" ({ "{") (labeled_statement "LAB_0005361d:\n      if ((unaff_retaddr[0x137] != 5) && (unaff_retaddr[0x137] != 0xb)) {\n        FUN_00027240(iVar1,unaff_EBX + 0x31dd3);\n        *param_5 = 0xffffffff;\n        return 1;\n      }" (statement_identifier "LAB_0005361d") (: ":") (if_statement "if ((unaff_retaddr[0x137] != 5) && (unaff_retaddr[0x137] != 0xb)) {\n        FUN_00027240(iVar1,unaff_EBX + 0x31dd3);\n        *param_5 = 0xffffffff;\n        return 1;\n      }" (if "if") (parenthesized_expression "((unaff_retaddr[0x137] != 5) && (unaff_retaddr[0x137] != 0xb))" (( "(") (binary_expression "(unaff_retaddr[0x137] != 5) && (unaff_retaddr[0x137] != 0xb)" (parenthesized_expression "(unaff_retaddr[0x137] != 5)" (( "(") (binary_expression "unaff_retaddr[0x137] != 5" (subscript_expression "unaff_retaddr[0x137]" (identifier "unaff_retaddr") ([ "[") (number_literal "0x137") (] "]")) (!= "!=") (number_literal "5")) () ")")) (&& "&&") (parenthesized_expression "(unaff_retaddr[0x137] != 0xb)" (( "(") (binary_expression "unaff_retaddr[0x137] != 0xb" (subscript_expression "unaff_retaddr[0x137]" (identifier "unaff_retaddr") ([ "[") (number_literal "0x137") (] "]")) (!= "!=") (number_literal "0xb")) () ")"))) () ")")) (compound_statement "{\n        FUN_00027240(iVar1,unaff_EBX + 0x31dd3);\n        *param_5 = 0xffffffff;\n        return 1;\n      }" ({ "{") (expression_statement "FUN_00027240(iVar1,unaff_EBX + 0x31dd3);" (call_expression "FUN_00027240(iVar1,unaff_EBX + 0x31dd3)" (identifier "FUN_00027240") (argument_list "(iVar1,unaff_EBX + 0x31dd3)" (( "(") (identifier "iVar1") (, ",") (binary_expression "unaff_EBX + 0x31dd3" (identifier "unaff_EBX") (+ "+") (number_literal "0x31dd3")) () ")"))) (; ";")) (expression_statement "*param_5 = 0xffffffff;" (assignment_expression "*param_5 = 0xffffffff" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (number_literal "0xffffffff")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))) (expression_statement "*param_5 = 0x2b;" (assignment_expression "*param_5 = 0x2b" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (number_literal "0x2b")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (} "}")) (else_clause "else if ((uint)unaff_retaddr[0x137] < 0xe) {\n                    \n                    \n    uVar4 = (*(code *)(*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4) +\n                      unaff_EBX + 0x5d2c7))();\n    return uVar4;\n  }" (else "else") (if_statement "if ((uint)unaff_retaddr[0x137] < 0xe) {\n                    \n                    \n    uVar4 = (*(code *)(*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4) +\n                      unaff_EBX + 0x5d2c7))();\n    return uVar4;\n  }" (if "if") (parenthesized_expression "((uint)unaff_retaddr[0x137] < 0xe)" (( "(") (binary_expression "(uint)unaff_retaddr[0x137] < 0xe" (cast_expression "(uint)unaff_retaddr[0x137]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "unaff_retaddr[0x137]" (identifier "unaff_retaddr") ([ "[") (number_literal "0x137") (] "]"))) (< "<") (number_literal "0xe")) () ")")) (compound_statement "{\n                    \n                    \n    uVar4 = (*(code *)(*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4) +\n                      unaff_EBX + 0x5d2c7))();\n    return uVar4;\n  }" ({ "{") (expression_statement "uVar4 = (*(code *)(*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4) +\n                      unaff_EBX + 0x5d2c7))();" (assignment_expression "uVar4 = (*(code *)(*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4) +\n                      unaff_EBX + 0x5d2c7))()" (identifier "uVar4") (= "=") (call_expression "(*(code *)(*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4) +\n                      unaff_EBX + 0x5d2c7))()" (parenthesized_expression "(*(code *)(*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4) +\n                      unaff_EBX + 0x5d2c7))" (( "(") (pointer_expression "*(code *)(*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4) +\n                      unaff_EBX + 0x5d2c7)" (* "*") (cast_expression "(code *)(*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4) +\n                      unaff_EBX + 0x5d2c7)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4) +\n                      unaff_EBX + 0x5d2c7)" (( "(") (binary_expression "*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4) +\n                      unaff_EBX + 0x5d2c7" (binary_expression "*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4) +\n                      unaff_EBX" (pointer_expression "*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4)" (* "*") (cast_expression "(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4)" (( "(") (binary_expression "unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4" (binary_expression "unaff_EBX + 0x31f87" (identifier "unaff_EBX") (+ "+") (number_literal "0x31f87")) (+ "+") (binary_expression "unaff_retaddr[0x137] * 4" (subscript_expression "unaff_retaddr[0x137]" (identifier "unaff_retaddr") ([ "[") (number_literal "0x137") (] "]")) (* "*") (number_literal "4"))) () ")")))) (+ "+") (identifier "unaff_EBX")) (+ "+") (number_literal "0x5d2c7")) () ")")))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar4;" (return "return") (identifier "uVar4") (; ";")) (} "}"))))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

type_1 function_1(type_2 *conn,char *var_7,size_t var_3,int *resp)

{
  type_3 *data;
  void *var_8;
  type_1 _Var2;
  size_t var_2;
  int var_5;
  type_4 var_6;
  int *piVar5;
  char *var_9;
  
  data = conn->data;
  var_9 = &(conn->proto).ftpc.transfertype;
  var_8 = (data->req).protop;
  var_2 = var_1(var_9);
  if (((var_2 + 1 <= var_3) && (var_5 = var_4(var_9,var_7,var_2), var_5 == 0)) && (var_7[var_2] == ' ')) {
    var_6 = (var_3 - 1) - var_2;
    if (1 < var_6) {
      piVar5 = (int *)(var_7 + var_2 + 1);
      if ((short)*piVar5 == 0x4b4f) {
        *resp = 1;
        return true;
      }
      if (((6 < var_6) && (*piVar5 == 0x41455250)) &&
         (((short)piVar5[1] == 0x5455 && (*(char *)((int)piVar5 + 6) == 'H')))) {
        *resp = 3;
        return true;
      }
    }
    *resp = 2;
    return true;
  }
  if ((var_3 < 2) || (*(short *)var_7 != 0x202a)) {
    if (var_8 == (void *)0x0) {
      return false;
    }
    if (*(int *)((int)var_8 + 0x20) != 0) {
      return false;
    }
    if (var_3 == 3) {
      if (*var_7 == '+') goto LAB_0005361d;
    }
    else if (var_3 < 2) {
      return false;
    }
    if (*(short *)var_7 != 0x202b) {
      return false;
    }
LAB_0005361d:
    var_9 = (conn->proto).ftpc.entrypath;
    if ((var_9 != (char *)0x5) && (var_9 != (char *)0xb)) {
      var_10(data,"Unexpected continuation response");
      *resp = -1;
      return true;
    }
    *resp = 0x2b;
    return true;
  }
  switch((conn->proto).sshc.readdir_totalLen) {
  default:
    goto LAB_000535ad;
  case 2:
    var_9 = "CAPABILITY";
    break;
  case 7:
    var_9 = *(char **)((int)var_8 + 0x20);
    if (var_9 == (char *)0x0) {
      _Var2 = var_11(var_7,var_3,"LIST");
      if (!_Var2) {
        return false;
      }
      var_9 = *(char **)((int)var_8 + 0x20);
      if (var_9 == (char *)0x0) goto _L192;
    }
    _Var2 = var_11(var_7,var_3,var_9);
    if (((!_Var2) &&
        ((((var_5 = var_12(*(char **)((int)var_8 + 0x20),"STORE"), var_5 == 0 ||
           (_Var2 = var_11(var_7,var_3,"FETCH"), !_Var2)) &&
          (var_5 = var_12(*(char **)((int)var_8 + 0x20),"SELECT"), var_5 == 0)) &&
         ((var_5 = var_12(*(char **)((int)var_8 + 0x20),"EXAMINE"), var_5 == 0 &&
          (var_5 = var_12(*(char **)((int)var_8 + 0x20),"SEARCH"), var_5 == 0)))))) &&
       ((var_5 = var_12(*(char **)((int)var_8 + 0x20),"EXPUNGE"), var_5 == 0 &&
        (((var_5 = var_12(*(char **)((int)var_8 + 0x20),"LSUB"), var_5 == 0 &&
          (var_5 = var_12(*(char **)((int)var_8 + 0x20),"UID"), var_5 == 0)) &&
         (var_5 = var_12(*(char **)((int)var_8 + 0x20),"NOOP"), var_5 == 0)))))) {
      return false;
    }
  case 8:
    goto _L192;
  case 9:
    var_9 = "FETCH";
    break;
  case 0xd:
    var_9 = "SEARCH";
  }
  _Var2 = var_11(var_7,var_3,var_9);
  if (!_Var2) {
LAB_000535ad:
    return false;
  }
_L192:
  *resp = 0x2a;
  return true;
}


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

undefined4 __regparm2
MASKED(undefined4 param_1,undefined4 param_2,short *param_3,uint param_4,undefined4 *param_5)

{
  int iVar1;
  int iVar2;
  size_t __n;
  int iVar3;
  undefined4 uVar4;
  uint uVar5;
  int *piVar6;
  int unaff_EBX;
  int *unaff_retaddr;
  
  entry(param_2,0x53519);
  iVar1 = *unaff_retaddr;
  iVar2 = *(int *)(iVar1 + 0x148);
  __n = strlen((char *)(unaff_retaddr + 0x141));
  if (((__n + 1 <= param_4) && (iVar3 = memcmp(unaff_retaddr + 0x141,param_3,__n), iVar3 == 0)) &&
     (*(char *)((int)param_3 + __n) == ' ')) {
    uVar5 = (param_4 - 1) - __n;
    if (1 < uVar5) {
      piVar6 = (int *)(__n + 1 + (int)param_3);
      if ((short)*piVar6 == 0x4b4f) {
        *param_5 = 1;
        return 1;
      }
      if (((6 < uVar5) && (*piVar6 == 0x41455250)) &&
         (((short)piVar6[1] == 0x5455 && (*(char *)((int)piVar6 + 6) == 'H')))) {
        *param_5 = 3;
        return 1;
      }
    }
    *param_5 = 2;
    return 1;
  }
  if ((param_4 < 2) || (*param_3 != 0x202a)) {
    if (iVar2 == 0) {
      return 0;
    }
    if (*(int *)(iVar2 + 0x20) != 0) {
      return 0;
    }
    if (param_4 == 3) {
      if ((char)*param_3 == '+') goto LAB_0005361d;
    }
    else if (param_4 < 2) {
      return 0;
    }
    if (*param_3 == 0x202b) {
LAB_0005361d:
      if ((unaff_retaddr[0x137] != 5) && (unaff_retaddr[0x137] != 0xb)) {
        FUN_00027240(iVar1,unaff_EBX + 0x31dd3);
        *param_5 = 0xffffffff;
        return 1;
      }
      *param_5 = 0x2b;
      return 1;
    }
  }
  else if ((uint)unaff_retaddr[0x137] < 0xe) {
                    /* WARNING: Could not recover jumptable at 0x00053597. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    uVar4 = (*(code *)(*(int *)(unaff_EBX + 0x31f87 + unaff_retaddr[0x137] * 4) +
                      unaff_EBX + 0x5d2c7))();
    return uVar4;
  }
  return 0;
}

