internal Class1065(Class703 A_0, BinaryReader A_1)
    {
        this.class153_0         = new Class153();
        this.class155_0         = new Class155();
        this.stringCollection_0 = new StringCollection();
        this.class162_0         = new Class162();
        this.class147_0         = new Class147(0);
        this.class344_0         = new Class344();
        this.hashtable_0        = new Hashtable();
        A_1.BaseStream.Position = A_0.class597_0.class1111_36.int_0;
        int num = A_0.class597_0.class1111_36.int_0 + A_0.class597_0.class1111_36.int_1;

        while (A_1.BaseStream.Position < num)
        {
            this.stringCollection_0.Add(Class813.smethod_1(A_1, true, false));
        }
        this.class153_0.method_23(A_1, A_0.class597_0.class1111_4);
        this.class153_0.method_26(A_1, A_0.class929_0.class1111_4.int_0, A_0.class929_0.class1111_4.int_1);
        this.class155_0.method_23(A_1, A_0.class597_0.class1111_5);
        this.class162_0.method_23(A_1, A_0.class597_0.class1111_42);
        this.class147_0.method_23(A_1, A_0.class597_0.class1111_43);
        this.class344_0.method_0(A_1, A_0.class597_0.class1111_37.int_0, A_0.class597_0.class1111_37.int_1);
        smethod_0(this.class162_0);
        smethod_0(this.class147_0);
        this.method_0();
    }
 internal void method_1(Class703 A_0, BinaryWriter A_1)
 {
     A_0.class597_0.class1111_36.int_0 = (int)A_1.BaseStream.Position;
     using (StringEnumerator enumerator = this.stringCollection_0.GetEnumerator())
     {
         while (enumerator.MoveNext())
         {
             Class813.smethod_2(enumerator.Current, 0x37, A_1, true, false);
         }
     }
     A_0.class597_0.class1111_36.int_1 = ((int)A_1.BaseStream.Position) - A_0.class597_0.class1111_36.int_0;
     A_0.class597_0.class1111_4.int_0  = (int)A_1.BaseStream.Position;
     A_0.class597_0.class1111_4.int_1  = this.class153_0.vmethod_1(A_1);
     A_0.class929_0.class1111_4.int_0  = (int)A_1.BaseStream.Position;
     A_0.class929_0.class1111_4.int_1  = this.class153_0.method_27(A_1);
     A_0.class597_0.class1111_5.int_0  = (int)A_1.BaseStream.Position;
     A_0.class597_0.class1111_5.int_1  = this.class155_0.vmethod_1(A_1);
     this.method_2();
     A_0.class597_0.class1111_42.int_0 = (int)A_1.BaseStream.Position;
     A_0.class597_0.class1111_42.int_1 = this.class162_0.vmethod_1(A_1);
     A_0.class597_0.class1111_43.int_0 = (int)A_1.BaseStream.Position;
     A_0.class597_0.class1111_43.int_1 = this.class147_0.vmethod_1(A_1);
     A_0.class597_0.class1111_37.int_0 = (int)A_1.BaseStream.Position;
     A_0.class597_0.class1111_37.int_1 = this.class344_0.method_3(A_1);
 }
Beispiel #3
0
    private static void smethod_9(Form4 A_0, BinaryWriter A_1)
    {
        int position = (int)A_1.BaseStream.Position;

        A_1.Write((byte)0);
        int num2 = 0;

        num2  = (int)(FontPitch.Default | A_0.method_41());
        num2 |= A_0.method_43() ? 4 : 0;
        num2 |= ((int)A_0.method_39()) << 4;
        A_1.Write((byte)num2);
        A_1.Write((short)A_0.method_47());
        A_1.Write((byte)A_0.method_37());
        int num3 = Class567.smethod_16(A_0.method_33()) ? (A_0.method_31().Length + 1) : 0;

        A_1.Write((byte)num3);
        A_1.Write((A_0.method_35() != null) ? A_0.method_35() : byte_0);
        A_1.Write((A_0.method_45() != null) ? A_0.method_45() : byte_1);
        Class813.smethod_8(A_0.method_31(), A_1);
        if (Class567.smethod_16(A_0.method_33()))
        {
            Class813.smethod_8(A_0.method_33(), A_1);
        }
        int num4 = (int)A_1.BaseStream.Position;
        int num5 = (num4 - position) - 1;

        A_1.BaseStream.Seek((long)position, SeekOrigin.Begin);
        A_1.Write((byte)num5);
        A_1.BaseStream.Seek((long)num4, SeekOrigin.Begin);
    }
Beispiel #4
0
    internal static void smethod_0(Class703 A_0, BinaryReader A_1, Document A_2)
    {
        int num = 14;

        if (A_0.class597_0.class1111_60.int_1 != 0)
        {
            A_1.BaseStream.Position = A_0.class597_0.class1111_60.int_0;
            if (A_1.ReadUInt16() != 0xffff)
            {
                throw new InvalidOperationException(BookmarkStart.b("挳䐵圷吹嬻ḽ㌿⭁⍃⡅⥇㹉㥋㱍㕏籑", num));
            }
            int num4 = A_1.ReadInt16();
            A_1.ReadInt16();
            string[] strArray = new string[num4];
            for (int i = 0; i < num4; i++)
            {
                strArray[i] = Class813.smethod_1(A_1, true, false);
                A_1.ReadInt32();
            }
            for (int j = 0; j < num4; j++)
            {
                if (strArray[j] != BookmarkStart.b("朳張強吹", num))
                {
                    string str = Class813.smethod_1(A_1, true, false);
                    A_2.Variables.Add(strArray[j], str);
                }
                else
                {
                    int count = A_1.ReadUInt16() * 2;
                    A_2.VbaSignature = A_1.ReadBytes(count);
                }
            }
        }
    }
Beispiel #5
0
    private void method_2(BinaryReader A_0, bool A_1)
    {
        int    num = A_1 ? A_0.ReadInt16() : A_0.ReadByte();
        string str = new string(Class813.smethod_15(A_0, A_1, num));

        this.vmethod_0(str, A_0);
    }
Beispiel #6
0
    internal override void vmethod_3(BinaryWriter A_0)
    {
        A_0.Write(byte_0);
        A_0.Write(2);
        int position = (int)A_0.BaseStream.Position;
        int num2     = 0;

        A_0.Write(0);
        if (Class567.smethod_16(this.string_2))
        {
            Class813.smethod_9(this.string_2, A_0);
            num2 |= 0x80;
        }
        if (Class567.smethod_16(this.string_0))
        {
            A_0.Write(byte_1);
            Class813.smethod_10(this.string_0, A_0);
            num2 |= 1;
            num2 |= 2;
        }
        if (Class567.smethod_16(this.string_1))
        {
            Class813.smethod_9(this.string_1, A_0);
            num2 |= 8;
        }
        int num3 = (int)A_0.BaseStream.Position;

        A_0.BaseStream.Position = position;
        A_0.Write(num2);
        A_0.BaseStream.Position = num3;
    }
Beispiel #7
0
    private void method_6(ShapeObject A_0)
    {
        this.class423_0.method_53(Class813.smethod_21(this.class423_0.method_60()));
        Class480 class2 = new Class480 {
            int_1 = 1,
            int_3 = -1,
            int_4 = A_0.Id
        };
        int      num    = this.class423_0.method_51(class2);
        Class811 class3 = new Class811 {
            int_1 = num
        };

        this.class423_0.method_52(class3);
        int num2 = Convert.ToInt32((int)((num + 1) << 0x10));

        if (A_0.IsOle)
        {
            A_0.OleFormat.OleTxid = num2;
        }
        else
        {
            while (A_0 != null)
            {
                A_0.Txid = num2++;
                int textboxNextShapeId = A_0.TextboxNextShapeId;
                A_0 = (textboxNextShapeId != 0) ? ((ShapeObject)this.class423_0.method_62().hashtable_0[textboxNextShapeId]) : null;
            }
        }
    }
Beispiel #8
0
    private void method_16(ShapeBase A_0)
    {
        Stream       baseStream = this.class423_0.method_59().BaseStream;
        BinaryWriter writer     = this.class423_0.method_59();
        int          position   = (int)baseStream.Position;
        Class1107    class2     = new Class1107 {
            bool_0 = true,
            int_1  = position
        };

        this.class423_0.method_38(Class816.string_13, A_0.CharacterFormat, class2);
        Class262 class3 = new Class262(A_0);

        class3.method_1(writer);
        if (A_0.CanHaveImage)
        {
            ShapeObject obj2 = (ShapeObject)A_0;
            if (obj2.ImageData.IsLink && !obj2.HasImageBytes)
            {
                Class813.smethod_2(obj2.ImageData.SourceFullName, 0x7fffffff, writer, false, false);
            }
        }
        Class931.smethod_1(A_0, writer);
        int num2 = (int)baseStream.Position;

        class3.int_2        = num2 - position;
        baseStream.Position = position;
        class3.method_1(writer);
        baseStream.Position = num2;
    }
Beispiel #9
0
 internal Class481(Class703 A_0, BinaryReader A_1, int A_2)
 {
     if (A_0.class597_0.class1111_70.int_1 != 0)
     {
         long position = A_1.BaseStream.Position;
         A_1.BaseStream.Position = A_0.class597_0.class1111_70.int_0;
         this.bool_0             = A_1.ReadInt16() != 0;
         this.bool_1             = A_1.ReadInt16() != 0;
         this.bool_2             = A_1.ReadInt16() != 0;
         A_1.ReadInt16();
         this.routeSlipProtectionType_0 = (RouteSlipProtectionType)A_1.ReadInt16();
         this.int_0            = A_1.ReadInt16();
         this.routeSlipOrder_0 = (RouteSlipOrder)A_1.ReadInt16();
         int num2 = A_1.ReadInt16();
         this.string_0 = Class813.smethod_17(A_1, A_2);
         this.string_1 = Class813.smethod_17(A_1, A_2);
         this.string_2 = Class813.smethod_17(A_1, A_2);
         this.string_3 = Class813.smethod_17(A_1, A_2);
         for (int i = 0; i < num2; i++)
         {
             this.class137_0.method_1(new Class138(A_1, A_2));
         }
         A_1.BaseStream.Position = position;
     }
 }
Beispiel #10
0
 private void method_24(ShapeBase A_0)
 {
     if (A_0.IsGroup)
     {
         ShapeGroup group = (ShapeGroup)A_0;
         for (int i = 0; i < group.ChildObjects.Count; i++)
         {
             this.method_24(group.ChildObjects[i] as ShapeBase);
         }
     }
     else
     {
         Class761 class3 = this.class764_0.method_19(this.subDocumentType_0).method_6(A_0.Id);
         if ((class3 != null) && (class3.method_6() > 0))
         {
             ShapeObject obj2 = (ShapeObject)A_0;
             if (obj2.ShapeType != ShapeType.OleObject)
             {
                 obj2.IsTextbox = true;
             }
             this.class764_0.method_43().imethod_19(obj2);
             new Class1108(this.class764_0, Class813.smethod_21(this.subDocumentType_0)).method_4(class3.method_2(), class3.method_6());
             this.class764_0.method_43().imethod_20(obj2);
         }
     }
 }
Beispiel #11
0
 internal void method_0(BinaryWriter A_0, int A_1)
 {
     A_0.Write((short)this.byte_0.Length);
     A_0.Write((short)(this.string_0.Length + 1));
     A_0.Write(this.byte_0);
     Class813.smethod_20(A_0, this.string_0, A_1, false);
 }
Beispiel #12
0
    private void method_6()
    {
        int    num = this.binaryReader_0.ReadUInt16();
        string str = Class813.smethod_1(this.binaryReader_0, true, true);

        this.hashtable_0[num] = str;
    }
Beispiel #13
0
    internal static int smethod_1(Document A_0, BinaryWriter A_1)
    {
        int num      = 9;
        int position = (int)A_1.BaseStream.Position;

        string[] strArray = smethod_2(A_0);
        if (strArray.Length == 0)
        {
            return(0);
        }
        A_1.Write((ushort)0xffff);
        A_1.Write((short)strArray.Length);
        A_1.Write((short)4);
        foreach (string str3 in strArray)
        {
            Class813.smethod_2(str3, 0x7fffffff, A_1, true, false);
            A_1.Write(0);
        }
        foreach (string str in strArray)
        {
            if (str != BookmarkStart.b("簮堰吲嬴", num))
            {
                string str2 = A_0.Variables[str];
                Class813.smethod_2(str2, 0x7fffffff, A_1, true, false);
            }
            else
            {
                A_1.Write((ushort)(A_0.VbaSignature.Length / 2));
                A_1.Write(A_0.VbaSignature);
            }
        }
        return(((int)A_1.BaseStream.Position) - position);
    }
Beispiel #14
0
 internal void method_0(BinaryWriter A_0)
 {
     Class813.smethod_2(this.method_3(), this.method_3().Length, A_0, true, false);
     Class813.smethod_2(this.method_4(), this.method_4().Length, A_0, true, false);
     Class343.smethod_5(A_0, this.method_5(), true);
     Class343.smethod_5(A_0, this.method_6(), true);
 }
Beispiel #15
0
 public void imethod_0(BinaryWriter A_0)
 {
     Class813.smethod_4(this.string_0, A_0, 20);
     A_0.Write((short)this.int_3);
     A_0.Write((short)0);
     A_0.Write((short)0);
     A_0.Write(this.int_4);
 }
Beispiel #16
0
    internal Class138(BinaryReader A_0, int A_1)
    {
        int count = A_0.ReadInt16();
        int num2  = A_0.ReadInt16();

        this.byte_0   = A_0.ReadBytes(count);
        this.string_0 = Class813.smethod_16(A_0, num2, A_1);
    }
Beispiel #17
0
    private void method_19(ShapeBase A_0)
    {
        this.class352_0.method_2(A_0, Class813.smethod_22(this.class423_0.method_60()));
        Class347 class2 = new Class347(A_0);

        this.class423_0.method_50(class2);
        this.class423_0.method_38(Class601.string_0, A_0.CharacterFormat, Class423.class1107_1);
    }
Beispiel #18
0
    private void method_4(BinaryReader A_0)
    {
        int num = 14;

        if (base.method_1() != 0)
        {
            A_0.ReadBytes(0x10);
            if (A_0.ReadInt32() == 2)
            {
                EscherUriFlags flags = (EscherUriFlags)A_0.ReadInt32();
                if ((flags & EscherUriFlags.HasDisplayName) != 0)
                {
                    Class813.smethod_7(A_0);
                }
                if ((flags & EscherUriFlags.HasFrameName) != 0)
                {
                    this.string_2 = Class813.smethod_7(A_0);
                }
                if ((flags & EscherUriFlags.HasMoniker) != 0)
                {
                    if ((flags & EscherUriFlags.MonikerSavedAsStr) == 0)
                    {
                        byte[] buffer = A_0.ReadBytes(0x10);
                        if (!Class85.smethod_1(buffer, byte_1))
                        {
                            if (!Class85.smethod_1(buffer, byte_2))
                            {
                                Guid guid = new Guid(buffer);
                                throw new InvalidOperationException(string.Format(BookmarkStart.b("愳堵匷吹医䤽⸿扁ⱃ㽅㡇⽉㹋≍㥏㱑㽓癕㹗㕙⹛㍝şᙡ䩣䙥╧թɫݭ᭯᝱ٳ噵㽷⽹㕻㩽ꁿꚅ몉ꂍ", num), guid.ToString()));
                            }
                            this.string_0 = smethod_1(A_0);
                        }
                        else
                        {
                            this.string_0 = smethod_0(A_0);
                        }
                    }
                    else
                    {
                        this.string_0 = Class813.smethod_7(A_0);
                    }
                }
                if ((flags & EscherUriFlags.HasLocationStr) != 0)
                {
                    this.string_1 = Class813.smethod_7(A_0);
                }
                if ((flags & EscherUriFlags.HasGUID) != 0)
                {
                    A_0.ReadBytes(0x10);
                }
                if ((flags & EscherUriFlags.HasCreationTime) != 0)
                {
                    A_0.ReadBytes(8);
                }
            }
        }
    }
Beispiel #19
0
 internal Class538(BinaryReader A_0)
 {
     this.stringCollection_0 = new StringCollection();
     this.stringCollection_1 = new StringCollection();
     this.string_0           = Class813.smethod_1(A_0, true, false);
     this.string_1           = Class813.smethod_1(A_0, true, false);
     Class343.smethod_3(A_0, this.method_5());
     Class343.smethod_3(A_0, this.method_6());
 }
Beispiel #20
0
    internal static DigitalSignature smethod_0(BinaryReader A_0, byte[] A_1)
    {
        bool             flag;
        int              num       = 12;
        DigitalSignature signature = new DigitalSignature(DigitalSignatureType.CryptoApi);

        try
        {
            int num2 = A_0.ReadInt32();
            int num3 = A_0.ReadInt32();
            smethod_1(A_0);
            uint num4     = A_0.ReadUInt32();
            uint num5     = A_0.ReadUInt32();
            long fileTime = num4;
            fileTime  = fileTime << 0x20;
            fileTime |= num5;
            signature.method_0(DateTime.FromFileTimeUtc(fileTime));
            A_0.ReadInt32();
            int count = A_0.ReadInt32();
            int num8  = A_0.ReadInt32();
            A_0.ReadInt32();
            int num9  = A_0.ReadInt32();
            int num10 = A_0.ReadInt32();
            A_0.ReadInt32();
            Class813.smethod_5(A_0, (num2 + 1) * 2);
            Class813.smethod_5(A_0, (num3 + 1) * 2);
            byte[] array   = A_0.ReadBytes(count);
            byte[] rawData = A_0.ReadBytes(num8);
            A_0.ReadBytes(num9);
            A_0.ReadBytes(num10);
            if (num8 == 0)
            {
                throw new InvalidOperationException(BookmarkStart.b("瘱崳儵儷丹崻刽怿ㅁⵃⅅ♇⭉㡋㭍≏㝑穓", num));
            }
            X509Certificate2 certificate = new X509Certificate2(rawData);
            signature.method_3(certificate);
            RSAParameters parameters = ((RSACryptoServiceProvider)certificate.PublicKey.Key).ExportParameters(false);
            Array.Reverse(array);
            byte[] buffer3          = Class1078.smethod_0(array);
            Rsa    rsa              = new Rsa(parameters.Modulus, parameters.Exponent);
            byte[] sourceArray      = Class1078.smethod_1(Class1078.smethod_2(rsa, buffer3), rsa.Modulus.method_0() >> 3);
            byte[] destinationArray = new byte[0x10];
            Array.Copy(sourceArray, sourceArray.Length - 0x10, destinationArray, 0, 0x10);
            MD5 md = new MD5();
            md.Update(A_1, A_1.Length);
            md.Update(BitConverter.GetBytes(num5), 4);
            md.Update(BitConverter.GetBytes(num4), 4);
            md.FinalUpdate();
            flag = Class85.smethod_1(destinationArray, md.Digest);
        }
        catch (Exception)
        {
            flag = false;
        }
        signature.method_2(flag);
        return(signature);
    }
Beispiel #21
0
 internal Class872(BinaryReader A_0)
 {
     this.dateTime_0 = DateTime.MinValue;
     this.string_0   = Class813.smethod_3(A_0, 20);
     this.int_3      = A_0.ReadInt16();
     A_0.ReadInt16();
     A_0.ReadInt16();
     this.int_4 = A_0.ReadInt32();
 }
Beispiel #22
0
    private bool method_12(int A_0, int A_1, bool A_2)
    {
        int num  = 5;
        int num2 = this.binaryReader_0.ReadUInt16();

        if (num2 != 0)
        {
            int   position = (int)this.binaryReader_0.BaseStream.Position;
            Style style    = this.method_14(A_0);
            if (style == null)
            {
                return(false);
            }
            if (A_1 > 10)
            {
                this.method_15(style);
            }
            this.binaryReader_0.BaseStream.Position = position + A_1;
            smethod_1(this.binaryReader_0.BaseStream, position);
            string[] sourceArray = Class813.smethod_1(this.binaryReader_0, A_2, true).Split(new char[] { ',' });
            style.method_8(sourceArray[0]);
            if ((this.binaryReader_0.BaseStream.Position - position) < num2)
            {
                this.method_16(style, position);
                smethod_1(this.binaryReader_0.BaseStream, position);
                int num4 = position + num2;
                int num5 = num4 - ((int)this.binaryReader_0.BaseStream.Position);
                if (num5 > 0)
                {
                    Stream baseStream = this.binaryReader_0.BaseStream;
                    baseStream.Position += num5;
                }
                smethod_1(this.binaryReader_0.BaseStream, position);
            }
            string[] destinationArray = new string[sourceArray.Length - 1];
            Array.Copy(sourceArray, 1, destinationArray, 0, destinationArray.Length);
            if ((style.StyleIdentifier == StyleIdentifier.Normal) && (style.BasedOnIstd != 0xfff))
            {
                style.BasedOnIstd = 0xfff;
            }
            if ((style.Name == BookmarkStart.b("䡁ꩉ", num)) || (style.StyleIdentifier == StyleIdentifier.Normal))
            {
                style.Name = BookmarkStart.b("攪䈬崮尰刲头", num);
                style.method_5(BookmarkStart.b("攪䈬崮尰刲头", num));
            }
            this.method_13(style);
            this.dictionary_0.Add(style.Name, style.StyleDocId);
            if (this.styleCollection_0.method_9(style.StyleId) == null)
            {
                this.styleCollection_0.Document.StyleNameIds.Add(style.StyleId, style.Name);
                this.styleCollection_0.method_7(style, destinationArray);
            }
        }
        return(true);
    }
Beispiel #23
0
    private void method_13(ListLevel A_0, int A_1)
    {
        string bulletCharacter;

        this.binaryWriter_0.Write(A_0.StartAt);
        this.binaryWriter_0.Write((byte)A_0.PatternType);
        int num = 0;

        num  = 0 | ((byte)A_0.NumberAlignment);
        num |= A_0.IsLegalStyleNumbering ? 4 : 0;
        num |= A_0.NoRestartByHigher ? 8 : 0;
        num |= A_0.bool_8 ? 0x10 : 0;
        num |= A_0.bool_9 ? 0x20 : 0;
        num |= A_0.Word6Legacy ? 0x40 : 0;
        num |= A_0.bool_7 ? 0x80 : 0;
        this.binaryWriter_0.Write((byte)num);
        if (A_0.PatternType == ListPatternType.Bullet)
        {
            bulletCharacter = A_0.BulletCharacter;
        }
        else
        {
            string str2 = string.Empty;
            if ((A_0.NumberPrefix != null) && (A_0.NumberPrefix.Length > 0))
            {
                str2 = this.method_14(A_0.NumberPrefix);
            }
            bulletCharacter = str2;
            if (!A_0.NoLevelText && (A_0.NumberSufix != null))
            {
                bulletCharacter = bulletCharacter + Convert.ToChar(A_1).ToString() + A_0.NumberSufix;
            }
            else if (A_0.PatternType == ListPatternType.None)
            {
                bulletCharacter = A_0.LevelText;
            }
        }
        bulletCharacter = this.method_12(bulletCharacter);
        byte[] buffer = smethod_2(bulletCharacter);
        this.binaryWriter_0.Write(buffer);
        this.binaryWriter_0.Write((byte)A_0.FollowCharacter);
        this.binaryWriter_0.Write(A_0.LegacySpace);
        this.binaryWriter_0.Write(A_0.LegacyIndent);
        smethod_1(A_0);
        Class431 class2 = this.class140_0.method_64(A_0.CharacterFormat, null, false);

        this.binaryWriter_0.Write((byte)class2.method_2().Length);
        Class430 class3 = this.class141_0.method_62(A_0.ParagraphFormat, null);

        this.binaryWriter_0.Write((byte)class3.method_2().Length);
        this.binaryWriter_0.Write((short)0);
        this.binaryWriter_0.Write(class3.method_2());
        this.binaryWriter_0.Write(class2.method_2());
        Class813.smethod_2(bulletCharacter, 0x7fffffff, this.binaryWriter_0, true, false);
    }
Beispiel #24
0
 private void method_6()
 {
     Class813.smethod_1(this.binaryReader_0, true, false);
     int num = this.binaryReader_0.ReadInt32();
     this.binaryReader_0.ReadBytes(num - 4);
     int num2 = this.binaryReader_0.ReadInt32();
     for (int i = 0; i < num2; i++)
     {
         this.method_7();
     }
 }
Beispiel #25
0
    private static string smethod_0(BinaryReader A_0)
    {
        string str   = Class813.smethod_6(A_0);
        int    index = str.IndexOf('\0');

        if (index >= 0)
        {
            return(str.Substring(0, index));
        }
        return(str);
    }
Beispiel #26
0
 private static void smethod_7(BinaryWriter A_0, Dofrt A_1, string A_2)
 {
     if (Class567.smethod_16(A_2))
     {
         long position = A_0.BaseStream.Position;
         smethod_4(A_0, 0);
         smethod_4(A_0, (int)A_1);
         Class813.smethod_2(A_2, 0x7fffffff, A_0, true, true);
         smethod_5(A_0, position);
     }
 }
Beispiel #27
0
    private static Form4 smethod_8(BinaryReader A_0)
    {
        string str;
        int    num      = 1;
        Form4  form     = new Form4();
        int    position = (int)A_0.BaseStream.Position;
        int    num3     = A_0.ReadByte();
        int    num4     = A_0.ReadByte();

        form.method_42(((FontPitch)num4) & (FontPitch.Variable | FontPitch.Fixed));
        form.method_44((num4 & 4) != 0);
        form.method_40((FontFamily)((num4 & 0x70) >> 4));
        form.method_48(A_0.ReadInt16());
        form.method_38(A_0.ReadByte());
        A_0.ReadByte();
        form.method_36(new byte[10]);
        A_0.Read(form.method_35(), 0, form.method_35().Length);
        form.method_46(new byte[0x18]);
        A_0.Read(form.method_45(), 0, form.method_45().Length);
        int num5 = ((int)A_0.BaseStream.Position) - position;

        if (num3 > 0x29)
        {
            int num6 = (num3 - num5) + 1;
            str = Class813.smethod_5(A_0, num6);
        }
        else
        {
            str = "";
        }
        int index = str.IndexOf('\0');

        if (index < 0)
        {
            if (!Class567.smethod_16(str))
            {
                str = BookmarkStart.b("猦䀨䘪䠬尮ᄰ紲倴䀶ᤸ椺刼刾⁀ⵂ", num);
            }
            form.method_57(str);
            return(form);
        }
        string str2 = str.Substring(0, index);
        string str3 = str.Substring(index + 1);

        str2 = str2.Replace(BookmarkStart.b("Ⱖ┨", num), string.Empty);
        if (!Class567.smethod_16(str2))
        {
            str2 = Class567.smethod_16(str3) ? str3 : BookmarkStart.b("猦䀨䘪䠬尮ᄰ紲倴䀶ᤸ椺刼刾⁀ⵂ", num);
        }
        form.method_57(str2);
        form.method_34(str3);
        return(form);
    }
Beispiel #28
0
    private void method_20(Class1132 A_0, string A_1)
    {
        int num = 9;

        if (A_0 == null)
        {
            throw new ArgumentNullException(BookmarkStart.b("䤮䈰", num));
        }
        this.class1132_0 = A_0;
        BinaryReader reader = new BinaryReader(this.class1132_0.method_0().method_5(BookmarkStart.b("砮帰䄲儴猶嘸堺䠼刾⑀ⵂㅄ", num)), Class813.smethod_0(true));

        this.class703_0 = new Class703(reader);
        if (this.class703_0.method_1())
        {
            throw new NotSupportedException(BookmarkStart.b("笮夰娲䘴᜶崸吺帼䨾ⱀ♂⭄㍆楈≊㹌潎㽐㱒⅔睖⩘⹚ⵜ⽞๠ᅢᅤɦ൨䕪", num));
        }
        if (this.class703_0.bool_4)
        {
            if (A_1 == null)
            {
                throw new PasswordErrorException(BookmarkStart.b("欮帰倲䀴娶尸唺䤼Ἶ⡀あ敄≆❈⡊㽌㙎⅐❒ご㍖畘筚ቜ⽞Ѡൢ䕤፦Ũ๪䵬Ὦၰrٴvᙸॺ᥼彾愈ꮊﶌレ뎜", num));
            }
            new Class987().method_1(this.class1132_0, this.class703_0, A_1);
        }
        Stream input = this.class1132_0.method_0().method_5(BookmarkStart.b("砮帰䄲儴猶嘸堺䠼刾⑀ⵂㅄ", num));

        this.binaryReader_0 = new BinaryReader(input, Class813.smethod_0(true));
        this.binaryReader_1 = new BinaryReader(input, Class813.smethod_0(false));
        this.class703_0.method_3(this.binaryReader_0);
        Stream stream2 = this.class1132_0.method_0().method_5(this.class703_0.method_0());

        this.binaryReader_2 = new BinaryReader(stream2, Encoding.Unicode);
        Stream stream3 = this.class1132_0.method_0().method_4(BookmarkStart.b("欮倰䜲吴", num));

        this.binaryReader_3 = (stream3 != null) ? new BinaryReader(stream3, Encoding.Unicode) : null;
        this.class770_0     = new Class770(this.method_5(), this.method_3());
        this.class160_0     = new Class160(this.method_5(), this.method_1(), this.method_3());
        this.method_26();
        this.method_27();
        this.class598_0  = new Class598(this.method_5(), this.method_3());
        this.class165_0  = new Class165(this.method_5(), this.method_3(), this.class160_0.method_4());
        this.class348_0  = new Class348(SubDocumentType.Main, this.method_5(), this.method_3());
        this.class348_1  = new Class348(SubDocumentType.Header, this.method_5(), this.method_3());
        this.class996_0  = new Class996(this.method_5(), this.method_3());
        this.class700_0  = new Class700(FootnoteType.Footnote, this.method_5(), this.method_3());
        this.class700_1  = new Class700(FootnoteType.Endnote, this.method_5(), this.method_3());
        this.class1065_0 = new Class1065(this.method_5(), this.method_3());
        this.class168_0  = new Class168(this.method_5(), this.method_3());
        this.class349_0  = new Class349(this.method_5(), this.method_3());
        this.class986_0  = new Class986(this.method_5(), this.method_3());
        this.method_21();
    }
Beispiel #29
0
 internal static void smethod_1(BinaryWriter A_0, string A_1)
 {
     if (Class567.smethod_16(A_1))
     {
         A_0.Write((ushort)A_1.Length);
         byte[] bytes = Class813.smethod_0(true).GetBytes(A_1);
         A_0.Write(bytes);
     }
     else
     {
         A_0.Write((ushort)0);
     }
 }
Beispiel #30
0
    internal static string smethod_0(BinaryReader A_0)
    {
        int  num  = A_0.ReadUInt16();
        int  num2 = num & 0x7fff;
        bool flag = (num & 0x8000) == 0;

        if (num2 > 0)
        {
            int    count = flag ? (num2 * 2) : num2;
            byte[] bytes = A_0.ReadBytes(count);
            return(Class813.smethod_0(flag).GetString(bytes));
        }
        return("");
    }