// Token: 0x06000791 RID: 1937 RVA: 0x00018254 File Offset: 0x00016454
 internal static bool TryParseCookieValue(string cookieValue, out string userContextId, out string mailboxUniqueKey)
 {
     userContextId    = null;
     mailboxUniqueKey = null;
     if (cookieValue.Length == 32)
     {
         userContextId = cookieValue;
     }
     else
     {
         if (cookieValue.Length < 34)
         {
             return(false);
         }
         int num = cookieValue.IndexOf('&');
         if (num != 32)
         {
             return(false);
         }
         num++;
         userContextId = cookieValue.Substring(0, num - 1);
         string tokenValidBase64String = cookieValue.Substring(num, cookieValue.Length - num);
         byte[] bytes = null;
         try
         {
             bytes = UserContextUtilities.ValidTokenBase64Decode(tokenValidBase64String);
         }
         catch (FormatException)
         {
             return(false);
         }
         UTF8Encoding utf8Encoding = new UTF8Encoding();
         mailboxUniqueKey = utf8Encoding.GetString(bytes);
     }
     return(UserContextCookie.IsValidUserContextId(userContextId));
 }