// Token: 0x06006CBD RID: 27837 RVA: 0x001F4A30 File Offset: 0x001F2C30
        private string GetFilterClsid(ContentType contentType, Uri partUri)
        {
            string text = null;

            if (contentType != null && !ContentType.Empty.AreTypeAndSubTypeEqual(contentType))
            {
                text = this.FileTypeGuidFromMimeType(contentType);
            }
            else
            {
                string partExtension = this.GetPartExtension(partUri);
                if (partExtension != null)
                {
                    text = this.FileTypeGuidFromFileExtension(partExtension);
                }
            }
            if (text == null)
            {
                return(null);
            }
            RegistryKey registryKey = PackageFilter.FindSubkey(Registry.ClassesRoot, PackageFilter.MakeRegistryPath(this._IFilterAddinPath, new string[]
            {
                text
            }));

            if (registryKey == null)
            {
                return(null);
            }
            return((string)registryKey.GetValue(null));
        }
        // Token: 0x06006CC0 RID: 27840 RVA: 0x001F4B28 File Offset: 0x001F2D28
        private string FileTypeGuidFromFileExtension(string dottedExtensionName)
        {
            RegistryKey registryKey = PackageFilter.FindSubkey(Registry.ClassesRoot, PackageFilter.MakeRegistryPath(this._persistentHandlerKey, new string[]
            {
                dottedExtensionName
            }));

            if (registryKey != null)
            {
                return((string)registryKey.GetValue(null));
            }
            return(null);
        }
        // Token: 0x06006CBF RID: 27839 RVA: 0x001F4AD4 File Offset: 0x001F2CD4
        private string FileTypeGuidFromMimeType(ContentType contentType)
        {
            RegistryKey registryKey  = PackageFilter.FindSubkey(Registry.ClassesRoot, this._mimeContentTypeKey);
            RegistryKey registryKey2 = (registryKey == null) ? null : registryKey.OpenSubKey(contentType.ToString());

            if (registryKey2 == null)
            {
                return(null);
            }
            string text = (string)registryKey2.GetValue("Extension");

            if (text == null)
            {
                return(null);
            }
            return(this.FileTypeGuidFromFileExtension(text));
        }