Beispiel #1
0
    protected override void vmethod_1(BinaryWriter A_0)
    {
        byte[] buffer = Class409.smethod_30(this.byte_1);
        base.method_9(A_0);
        A_0.Write(buffer.Length);
        Class1044 class2 = Class409.smethod_9(this.byte_1);

        A_0.Write(class2.method_0());
        A_0.Write(class2.method_1());
        A_0.Write(class2.method_2());
        A_0.Write(class2.method_3());
        A_0.Write(class2.method_11());
        A_0.Write(class2.method_12());
        if (buffer.Length > 0x4000)
        {
            MemoryStream stream  = new MemoryStream(buffer);
            MemoryStream stream2 = new MemoryStream();
            Class1156.smethod_4(stream, stream2, CompressionMethod.Stored);
            A_0.Write((int)stream2.Length);
            A_0.Write((byte)0);
            A_0.Write((byte)0xfe);
            A_0.Write(stream2.GetBuffer(), 0, (int)stream2.Length);
            stream2.Close();
            stream.Close();
        }
        else
        {
            A_0.Write(buffer.Length);
            A_0.Write((byte)0xfe);
            A_0.Write((byte)0xfe);
            A_0.Write(buffer);
        }
    }
Beispiel #2
0
 internal static byte[] smethod_30(byte[] A_0)
 {
     if (smethod_34(A_0))
     {
         MemoryStream stream = new MemoryStream(A_0, 10, A_0.Length - 10);
         return(Class1156.smethod_1(stream, 0, CompressionMethod.Deflated));
     }
     return(A_0);
 }
Beispiel #3
0
    private void method_30()
    {
        Document document = base.Interface50.imethod_0();

        this.method_32();
        MemoryStream input  = new MemoryStream(this.imethod_3(BookmarkStart.b("䌥䰧䌩堫䨭儯䘱唳ᠵ唷䤹医", 0)));
        BinaryReader reader = new BinaryReader(input);

        reader.ReadBytes(10);
        while (input.Position < input.Length)
        {
            switch (reader.ReadInt32())
            {
            case -268369920:
            {
                reader.ReadInt32();
                reader.ReadInt32();
                continue;
            }

            case -267976704:
            {
                int num2 = reader.ReadInt32();
                reader.ReadBytes(8);
                int count = reader.ReadInt32();
                document.VbaDocumentEvents = (VbaDocumentEvents)reader.ReadInt32();
                if (count > 0)
                {
                    document.VbaSignature = reader.ReadBytes(count);
                }
                int num  = reader.ReadInt32();
                int num4 = (num2 - count) - 20;
                if (num4 > 0)
                {
                    MemoryStream stream2 = new MemoryStream(Class1156.smethod_0(reader.ReadBytes(num4), num, CompressionMethod.Stored));
                    document.VbaMacros = new Class1132(stream2).method_0();
                }
                break;
            }

            case -267714560:
                reader.ReadInt32();
                reader.ReadInt32();
                break;

            case -267583488:
            {
                int    num5    = reader.ReadInt32();
                byte[] buffer3 = reader.ReadBytes(num5);
                this.method_31(buffer3);
                break;
            }
            }
        }
    }
Beispiel #4
0
 internal static byte[] smethod_29(byte[] A_0)
 {
     A_0 = Class1156.smethod_2(A_0, CompressionMethod.Deflated);
     byte[] array = new byte[A_0.Length + byte_0.Length];
     A_0.CopyTo(array, byte_0.Length);
     for (int i = 0; i < byte_0.Length; i++)
     {
         array[i] = byte_0[i];
     }
     return(array);
 }
Beispiel #5
0
    private static MemoryStream smethod_0(Class1089 A_0)
    {
        Class1132    class2 = new Class1132(A_0);
        MemoryStream stream = new MemoryStream();

        class2.method_5(stream);
        stream.Position = 0L;
        MemoryStream stream2 = new MemoryStream();

        Class567.smethod_1((uint)stream.Length, stream2);
        Class1156.smethod_4(stream, stream2, CompressionMethod.Stored);
        return(stream2);
    }
Beispiel #6
0
        internal byte[] method_0()
        {
            int num = 10;

            this.binaryReader_0.BaseStream.Position = this.int_0;
            int       num2   = this.binaryReader_0.ReadInt32();
            int       num3   = this.binaryReader_0.ReadInt32();
            int       num4   = this.binaryReader_0.ReadInt32();
            int       num5   = this.binaryReader_0.ReadInt32();
            int       num6   = this.binaryReader_0.ReadInt32();
            int       num7   = this.binaryReader_0.ReadInt32();
            int       num8   = this.binaryReader_0.ReadInt32();
            Class1044 class2 = Class1044.smethod_3(num3, num4, num5, num6, num7, num8);
            int       count  = this.binaryReader_0.ReadInt32();

            if (count <= 0)
            {
                return(null);
            }
            EsBlipCompression compression = (EsBlipCompression)this.binaryReader_0.ReadByte();

            this.binaryReader_0.ReadByte();
            byte[]            buffer       = this.binaryReader_0.ReadBytes(count);
            EsBlipCompression compression2 = compression;

            if (compression2 != EsBlipCompression.Deflate)
            {
                if (compression2 != EsBlipCompression.None)
                {
                    throw new InvalidOperationException(BookmarkStart.b("礯就䈳圵吷匹堻ḽⴿ❁ぃ❅⹇⍉⁋⭍灏ㅑ㭓㭕⡗⡙㥛ⵝ፟ୡୣࡥ䡧ݩ५ᩭᡯᵱၳ塵", num));
                }
            }
            else
            {
                try
                {
                    buffer = Class1156.smethod_0(buffer, num2, CompressionMethod.Stored);
                }
                catch (Exception)
                {
                    buffer = Class567.smethod_14();
                }
            }
            if (Class409.smethod_50(buffer))
            {
                buffer = Class409.smethod_29(buffer, class2);
            }
            return(buffer);
        }
Beispiel #7
0
        internal byte[] method_0()
        {
            int num = 0x13;

            this.binaryReader_0.BaseStream.Position = this.int_0;
            int num2 = this.binaryReader_0.ReadInt32();
            int num3 = this.binaryReader_0.ReadInt32();
            int num4 = this.binaryReader_0.ReadInt32();
            int num5 = this.binaryReader_0.ReadInt32();
            int num6 = this.binaryReader_0.ReadInt32();
            int num7 = this.binaryReader_0.ReadInt32();
            int num8 = this.binaryReader_0.ReadInt32();

            Class1044.smethod_3(num3, num4, num5, num6, num7, num8);
            int count = this.binaryReader_0.ReadInt32();

            if (count <= 0)
            {
                return(null);
            }
            EscherBlipCompression compression = (EscherBlipCompression)this.binaryReader_0.ReadByte();

            this.binaryReader_0.ReadByte();
            byte[] buffer = this.binaryReader_0.ReadBytes(count);
            EscherBlipCompression compression2 = compression;

            if (compression2 != EscherBlipCompression.Deflate)
            {
                if (compression2 != EscherBlipCompression.None)
                {
                    throw new InvalidOperationException(BookmarkStart.b("瀸唺䬼帾ⵀ⩂⅄杆⩈⑊⁌㽎⍐㙒♔⑖じ㑚㍜罞ౠ٢ᅤས٨ཪ䍬", num));
                }
                return(buffer);
            }
            try
            {
                return(Class1156.smethod_0(buffer, num2, CompressionMethod.Stored));
            }
            catch (Exception)
            {
                return(Class567.smethod_14());
            }
        }
Beispiel #8
0
 private static byte[] smethod_1(Stream A_0)
 {
     A_0.Position = 4L;
     return(Class1156.smethod_1(A_0, 0, CompressionMethod.Stored));
 }