Beispiel #1
0
 public Class363(Stream A_0, bool A_1)
 {
     this.byte_0 = new byte[] {
         1, 0, 0xfe, 0xff, 3, 10, 0, 0, 0xff, 0xff, 0xff, 0xff, 6, 9, 2, 0,
         0, 0, 0, 0, 0xc0, 0, 0, 0, 0, 0, 0, 70, 0x27, 0, 0, 0,
         0x4d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x6f, 0x66, 0x74, 0x20, 0x4f, 0x66, 0x66, 0x69, 0x63, 0x65,
         0x20, 0x57, 0x6f, 0x72, 100, 0x20, 0x39, 0x37, 0x2d, 50, 0x30, 0x30, 0x33, 0x20, 0x44, 0x6f,
         0x63, 0x75, 0x6d, 0x65, 110, 0x74, 0, 10, 0, 0, 0, 0x4d, 0x53, 0x57, 0x6f, 0x72,
         100, 0x44, 0x6f, 0x63, 0, 0x10, 0, 0, 0, 0x57, 0x6f, 0x72, 100, 0x2e, 0x44, 0x6f,
         0x63, 0x75, 0x6d, 0x65, 110, 0x74, 0x2e, 0x38, 0, 0xf4, 0x39, 0xb2, 0x71, 0, 0, 0,
         0, 0, 0, 0, 0, 0, 0, 0, 0
     };
     this.stream_0 = A_0;
     if (A_1)
     {
         this.method_42();
         if (this.bool_0)
         {
             this.interface51_0 = new Class1004();
         }
         else
         {
             this.stream12_0 = Stream12.smethod_2();
         }
     }
     else
     {
         this.method_30(A_0);
     }
 }
Beispiel #2
0
        private Stream method_77(byte[] A_0)
        {
            int num = 10;

            if ((A_0 == null) || (A_0.Length == 0))
            {
                return(null);
            }
            MemoryStream stream  = null;
            Stream12     stream2 = null;
            Stream12     stream3 = null;
            Stream12     stream4 = null;
            Stream12     stream5 = null;
            MemoryStream stream6 = null;

            try
            {
                stream  = new MemoryStream(A_0);
                stream2 = new Stream12(stream);
                stream3 = stream2.method_11(BookmarkStart.b("缯倱帳匵嬷丹氻儽⼿⹁", num));
                stream4 = stream3.method_11(BookmarkStart.b("漯", num) + this.Interface49.get_OleStorageName().ToString());
                stream5 = Stream12.smethod_2();
                Stream12.smethod_0(stream4, stream5);
                stream6 = new MemoryStream();
                stream5.method_17(stream6);
                stream6.Position = 0L;
            }
            catch (Exception)
            {
            }
            finally
            {
                if (stream != null)
                {
                    stream.Close();
                    stream.Dispose();
                }
                if (stream2 != null)
                {
                    stream2.Close();
                    stream3.Dispose();
                }
                if (stream3 != null)
                {
                    stream3.Close();
                    stream3.Dispose();
                }
                if (stream4 != null)
                {
                    stream4.Close();
                    stream4.Dispose();
                }
                if (stream5 != null)
                {
                    stream5.Close();
                    stream5.Dispose();
                }
            }
            return(stream6);
        }
    private byte[] method_5(Interface61 A_0)
    {
        int          num     = 6;
        MemoryStream stream  = new MemoryStream();
        Stream12     stream2 = Stream12.smethod_2();
        int          num2    = this.method_6(A_0);
        int          index   = 0;
        int          length  = A_0.imethod_9().Length;

        while (true)
        {
            if (index >= length)
            {
                stream2.Flush();
                if (stream2.Length > 0L)
                {
                    long num1 = stream2.Length;
                    stream2.method_17(stream);
                    stream2.Close();
                    stream2.Dispose();
                    return(stream.ToArray());
                }
                stream2.Close();
                stream2.Dispose();
                stream.Dispose();
                return(null);
            }
            string str = A_0.imethod_9().GetValue(index).ToString();
            if ((((str != BookmarkStart.b("⴫愭尯圱", num)) && (str != BookmarkStart.b("⼫愭刯報紳堵帷唹", num))) && ((str != BookmarkStart.b("⴫洭弯弱䐳礵娷倹", num)) && (str != BookmarkStart.b("⼫戭夯就弳缵嘷尹医", num)))) && (((str != BookmarkStart.b("⴫愭尯圱Գص瘷嬹䠻圽㘿❁", num)) && (str != BookmarkStart.b("⼫欭怯怱紳砵氷", num))) && (str != BookmarkStart.b("⸫愭尯圱搳䐵崷䤹఻฽瀿", num))))
            {
                Stream1 stream3 = A_0.imethod_0(str);
                if ((num2 == 1) || (str.ToLower() == BookmarkStart.b("簫伭匯失唳儵崷", num).ToLower()))
                {
                    byte[] buffer = new byte[stream3.Length];
                    stream3.Read(buffer, 0, buffer.Length);
                    stream3.Flush();
                    stream3.Close();
                    A_0.Dispose();
                    stream2.Close();
                    stream2.Dispose();
                    return(buffer);
                }
                stream2.method_15(stream3.method_0());
                byte[] buffer2 = new byte[stream3.Length];
                stream3.Read(buffer2, 0, buffer2.Length);
                stream2.Write(buffer2, 0, buffer2.Length);
                try
                {
                    stream2.Flush();
                }
                catch
                {
                }
                stream2.Close();
                stream3.Close();
            }
            index++;
        }
    }
Beispiel #4
0
    internal static void smethod_1(Stream A_0, int A_1, Document A_2)
    {
        int num = 2;

        if (((A_0 != null) && (A_0.Length != 0L)) && (A_1 != 0))
        {
            string item = BookmarkStart.b("眧", num) + A_1;
            if (!A_2.ObjPoolContainers.Contains(item))
            {
                A_2.ObjPoolContainers.Add(item);
                A_0.Position = 0L;
                MemoryStream stream  = new MemoryStream();
                Stream12     stream2 = Stream12.smethod_2();
                Stream12     stream3 = stream2.method_13(BookmarkStart.b("朧䠩䘫䬭匯䘱搳夵圷嘹", num));
                byte[]       buffer  = new byte[A_0.Length];
                A_0.Read(buffer, 0, buffer.Length);
                A_0.Position = 0L;
                MemoryStream stream4 = new MemoryStream(buffer);
                Stream12     stream5 = new Stream12(stream4);
                Stream12     stream6 = stream5.method_11(item);
                Stream12.smethod_0(stream6, stream3);
                stream2.Flush();
                stream2.method_17(stream);
                stream.Position = 0L;
                if (A_2.ObjectPool == null)
                {
                    A_2.ObjectPool = stream.GetBuffer();
                }
                else
                {
                    byte[] objectPool = A_2.ObjectPool;
                    smethod_0(stream, A_1, new MemoryStream(A_2.ObjectPool), out objectPool);
                    A_2.ObjectPool = objectPool;
                }
                stream2.Close();
                stream2.Dispose();
                stream3.Close();
                stream3.Dispose();
                stream5.Close();
                stream5.Dispose();
                stream6.Close();
                stream6.Dispose();
                stream.Close();
                stream.Dispose();
            }
        }
    }
Beispiel #5
0
 internal MemoryStream method_46(string A_0)
 {
     if (this.stream12_0.method_20(A_0))
     {
         Stream12 stream  = this.stream12_0.method_11(A_0);
         Stream12 stream2 = Stream12.smethod_2();
         Stream12.smethod_0(stream, stream2);
         MemoryStream stream3 = new MemoryStream();
         stream2.method_17(stream3);
         stream2.Close();
         stream2.Dispose();
         stream.Close();
         stream.Dispose();
         return(stream3);
     }
     return(null);
 }
Beispiel #6
0
        internal static byte[] smethod_3(List <DocOleObject> A_0)
        {
            int num = 3;

            byte[] buffer = new byte[0];
            if ((A_0 != null) && (A_0.Count > 0))
            {
                List <string> list = new List <string>();
                using (MemoryStream stream5 = new MemoryStream())
                {
                    using (Stream12 stream = Stream12.smethod_2())
                    {
                        using (Stream12 stream2 = stream.method_13(BookmarkStart.b("昨䤪䜬䨮到䜲攴堶嘸场", num)))
                        {
                            foreach (DocOleObject obj2 in A_0)
                            {
                                string item = BookmarkStart.b("瘨", num) + obj2.Interface49.get_OleStorageName();
                                if (!list.Contains(item))
                                {
                                    list.Add(item);
                                    if (obj2.Interface49.get_Container() != null)
                                    {
                                        obj2.Interface49.get_Container().Position = 0L;
                                        using (Stream12 stream3 = new Stream12(obj2.Interface49.get_Container()))
                                        {
                                            using (Stream12 stream4 = stream3.method_11(item))
                                            {
                                                Stream12.smethod_0(stream4, stream2);
                                            }
                                        }
                                    }
                                }
                            }
                            stream.Flush();
                            stream.method_17(stream5);
                            stream5.Position = 0L;
                            buffer           = stream5.ToArray();
                        }
                    }
                }
                list = null;
            }
            return(buffer);
        }
Beispiel #7
0
        private byte[] method_90(string A_0, byte[] A_1)
        {
            int num = 0x11;

            if ((this.stream_1 != null) && (this.OleObjectType == Spire.Doc.Documents.OleObjectType.Undefined))
            {
                A_1 = this.method_92(A_0, A_1);
                return(A_1);
            }
            MemoryStream stream  = null;
            Class1004    class2  = null;
            Stream12     stream2 = null;
            Stream12     stream3 = null;

            if ((A_1 != null) && (A_1.Length != 0))
            {
                stream  = new MemoryStream(A_1);
                stream2 = new Stream12(stream, STGM.STGM_SHARE_EXCLUSIVE | STGM.STGM_READWRITE);
                stream3 = stream2.method_12(BookmarkStart.b("砶嬸儺堼尾㕀ፂ⩄⡆╈", num), STGM.STGM_SHARE_EXCLUSIVE | STGM.STGM_READWRITE);
            }
            else
            {
                stream2 = Stream12.smethod_2();
                stream3 = stream2.method_13(BookmarkStart.b("砶嬸儺堼尾㕀ፂ⩄⡆╈", num));
            }
            class2 = new Class1004(BookmarkStart.b("搶䴸吺似帾♀♂", num), true);
            class2.Interface51.imethod_0().imethod_4(A_0);
            class2.Interface51.imethod_1().method_0()[1].method_13(Class1117.smethod_2(this.OleObjectType));
            MemoryStream stream4 = new MemoryStream();

            class2.Interface51.imethod_2();
            class2.Interface51.imethod_3(stream4);
            class2.System.IDisposable.Dispose();
            stream4.Flush();
            byte[] buffer = stream4.ToArray();
            stream4.Close();
            stream4 = new MemoryStream(buffer);
            MemoryStream stream5 = new MemoryStream();
            Stream12     stream6 = new Stream12(stream4);
            Stream12     stream7 = stream6.method_11(A_0);

            Stream12.smethod_0(stream7, stream3);
            stream2.Flush();
            stream2.method_17(stream5);
            stream5.Position = 0L;
            A_1 = stream5.ToArray();
            stream6.Close();
            stream6.Dispose();
            stream7.Close();
            stream7.Dispose();
            stream2.Close();
            stream2.Dispose();
            stream3.Close();
            stream3.Dispose();
            stream5.Close();
            stream5.Dispose();
            stream4.Close();
            stream4.Dispose();
            if (stream != null)
            {
                stream.Close();
                stream.Dispose();
            }
            return(A_1);
        }