Esempio n. 1
0
        internal void method_0(Stream12 A_0, bool A_1)
        {
            this.class367_0 = new Class365.Class367();
            byte[] buffer = new byte[0x10];
            this.class367_0.vmethod_1(buffer, 0);
            ASCIIEncoding   encoding  = new ASCIIEncoding();
            UnicodeEncoding encoding2 = new UnicodeEncoding();
            string          s         = string.Empty;
            string          str2      = string.Empty;

            if (A_1)
            {
                StringBuilder builder = new StringBuilder(0xff);
                GetShortPathName(this.string_0, builder, builder.Capacity);
                string str3 = builder.ToString();
                s    = str3;
                str2 = str3;
            }
            else
            {
                s    = this.string_0;
                str2 = this.string_0;
            }
            byte[] bytes   = encoding.GetBytes(s);
            byte[] buffer3 = BitConverter.GetBytes(-559022081);
            byte[] buffer4 = encoding2.GetBytes(str2);
            int    num     = ((buffer.Length + bytes.Length) + buffer3.Length) + buffer4.Length;

            A_0.Write(BitConverter.GetBytes(num), 0, 4);
            A_0.Write(buffer, 0, buffer.Length);
            A_0.Write(bytes, 0, bytes.Length);
            A_0.Write(buffer3, 0, buffer3.Length);
            A_0.Write(buffer4, 0, buffer4.Length);
        }
Esempio n. 2
0
    private void method_4(Stream12 A_0, string A_1)
    {
        byte[]        buffer   = new byte[4];
        ASCIIEncoding encoding = new ASCIIEncoding();
        int           num      = 0;

        byte[] bytes = encoding.GetBytes(A_1);
        Class364.smethod_8(buffer, ref num, bytes.Length);
        A_0.Write(buffer, 0, buffer.Length);
        if (bytes.Length > 0)
        {
            A_0.Write(bytes, 0, bytes.Length);
        }
    }
Esempio n. 3
0
 internal void method_0(Stream12 A_0)
 {
     byte[] bytes = BitConverter.GetBytes(this.int_2);
     A_0.Write(bytes, 0, 4);
     bytes = BitConverter.GetBytes(this.int_3);
     A_0.Write(bytes, 0, 4);
     if (this.byte_0 == null)
     {
         A_0.Write(new byte[20], 0, 20);
     }
     else
     {
         A_0.Write(this.byte_0, 0, 20);
     }
 }
Esempio n. 4
0
    private void method_21(Stream12 A_0, Stream A_1)
    {
        Class1004 class2 = new Class1004(A_1);

        string[] strArray = class2.Interface51.imethod_0().imethod_9();
        int      index    = 0;
        int      length   = strArray.Length;

        while (true)
        {
            if (index >= length)
            {
                break;
            }
            Stream1 stream = class2.Interface51.imethod_0().imethod_0(strArray[index]);
            A_0.method_15(strArray[index]);
            byte[] buffer = new byte[stream.Length];
            stream.Read(buffer, 0, buffer.Length);
            A_0.Write(buffer, 0, buffer.Length);
            try
            {
                A_0.Flush();
            }
            catch
            {
            }
            A_0.Close();
            stream.Close();
            index++;
        }
        class2.System.IDisposable.Dispose();
    }
Esempio n. 5
0
    internal void method_1(Stream12 A_0)
    {
        int num = 0;

        byte[] buffer = new byte[20];
        Class364.smethod_8(buffer, ref num, this.int_7);
        Class364.smethod_8(buffer, ref num, this.int_8);
        Class364.smethod_8(buffer, ref num, this.int_9);
        Class364.smethod_8(buffer, ref num, this.int_10);
        Class364.smethod_8(buffer, ref num, this.int_11);
        A_0.Write(buffer, 0, buffer.Length);
        if (this.oleLinkType_0 == OleLinkType.Link)
        {
            this.method_2(A_0, 4);
            string[] strArray = this.string_0.Split(new char[] { '\\' });
            string   str      = strArray[strArray.Length - 1];
            this.class366_1 = new Class366(str);
            this.class366_1.method_0(A_0, false);
            this.class366_2 = new Class366(this.string_0);
            this.class366_2.method_0(A_0, true);
            this.method_2(A_0, 0x10);
            this.method_2(A_0, 4);
            this.method_2(A_0, 4);
            this.method_2(A_0, 4);
            this.method_2(A_0, 4);
            this.method_2(A_0, 4);
        }
    }
Esempio n. 6
0
    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++;
        }
    }
Esempio n. 7
0
    private void method_28(Stream12 A_0, string A_1, byte[] A_2)
    {
        int num = 14;

        if (string.IsNullOrEmpty(A_1))
        {
            A_1 = this.string_22;
        }
        Encoding encoding = Encoding.Default;
        string   fileName = Path.GetFileName(A_1);

        byte[] bytes   = encoding.GetBytes(fileName);
        byte[] buffer2 = encoding.GetBytes(A_1);
        byte[] buffer3 = new byte[2];
        buffer3[0] = 2;
        byte[] buffer4 = buffer3;
        byte[] buffer5 = new byte[4];
        buffer5[2] = 3;
        byte[] buffer6 = buffer5;
        int    num2    = 4;

        num2  = 4 + buffer4.Length;
        num2 += bytes.Length + 1;
        num2 += buffer2.Length + 1;
        num2 += buffer6.Length;
        num2 += 4;
        num2 += buffer2.Length + 1;
        num2 += 4;
        num2 += A_2.Length;
        num2 += 2;
        int num3 = 0;

        byte[] buffer7 = new byte[num2];
        Class364.smethod_8(buffer7, ref num3, num2 - 4);
        Class364.smethod_11(buffer7, ref num3, buffer4);
        Class364.smethod_11(buffer7, ref num3, bytes);
        num3++;
        Class364.smethod_11(buffer7, ref num3, buffer2);
        num3++;
        Class364.smethod_11(buffer7, ref num3, buffer6);
        Class364.smethod_8(buffer7, ref num3, buffer2.Length + 1);
        Class364.smethod_11(buffer7, ref num3, buffer2);
        num3++;
        Class364.smethod_8(buffer7, ref num3, A_2.Length);
        Class364.smethod_11(buffer7, ref num3, A_2);
        A_0.method_15(BookmarkStart.b("㔳礵吷弹഻฽฿⍁ぃ⽅㹇⽉", num));
        A_0.Write(buffer7, 0, buffer7.Length);
        A_0.Close();
    }
Esempio n. 8
0
    internal void method_0(Stream12 A_0)
    {
        byte[] buffer = new byte[this.vmethod_2()];
        int    num    = 0;

        buffer[0] = (byte)this.byte_0.Length;
        num       = 2;
        Class364.smethod_11(buffer, ref num, this.byte_0);
        num += 2;
        Class364.smethod_11(buffer, ref num, BitConverter.GetBytes(-858997829));
        buffer[num] = (byte)this.byte_0.Length;
        num        += 2;
        Class364.smethod_11(buffer, ref num, this.byte_1);
        A_0.Write(buffer, 0, buffer.Length);
    }
Esempio n. 9
0
    private void method_20(Stream12 A_0, byte[] A_1)
    {
        int num  = 0x10;
        int num2 = 0;
        int num3 = (A_1 == null) ? 0 : A_1.Length;

        byte[] buffer = new byte[num3 + 4];
        Class364.smethod_8(buffer, ref num2, num3);
        if (A_1 != null)
        {
            Class364.smethod_11(buffer, ref num2, A_1);
        }
        A_0.method_15(BookmarkStart.b("㜵眷嘹夻༽瀿ు╃㉅ⅇ㱉⥋", num));
        A_0.Write(buffer, 0, buffer.Length);
        A_0.Close();
    }
Esempio n. 10
0
 internal void method_0(Stream12 A_0, OleLinkType A_1, OleObjectType A_2)
 {
     this.byte_0 = smethod_13(A_1, A_2, true);
     A_0.Write(this.byte_0, 0, this.byte_0.Length);
 }
Esempio n. 11
0
 private void method_3(Stream12 A_0, int A_1)
 {
     byte[] buffer = new byte[A_1];
     A_0.Write(buffer, 0, A_1);
 }
Esempio n. 12
0
 private void method_18(Stream12 A_0, string A_1, byte[] A_2)
 {
     A_0.method_15(A_1);
     A_0.Write(A_2, 0, A_2.Length);
     A_0.Close();
 }