Exemplo n.º 1
0
        // Token: 0x06000125 RID: 293 RVA: 0x0000904C File Offset: 0x0000724C
        private bool method_2(ulong ulong_2)
        {
            bool result;

            try
            {
                if (this.byte_1[(int)(checked ((IntPtr)ulong_2))] == 13)
                {
                    uint num  = (uint)(this.method_5((int)ulong_2 + 3, 2) - 1UL);
                    int  num2 = 0;
                    if (this.struct6_0 != null)
                    {
                        num2 = this.struct6_0.Length;
                        Array.Resize <Class7.Struct6>(ref this.struct6_0, this.struct6_0.Length + (int)num + 1);
                    }
                    else
                    {
                        this.struct6_0 = new Class7.Struct6[num + 1U];
                    }
                    for (uint num3 = 0U; num3 <= num; num3 += 1U)
                    {
                        ulong num4 = this.method_5((int)ulong_2 + 8 + (int)(num3 * 2U), 2);
                        if (ulong_2 != 100UL)
                        {
                            num4 += ulong_2;
                        }
                        int num5 = this.method_6((int)num4);
                        this.method_7((int)num4, num5);
                        int num6 = this.method_6((int)(num4 + (ulong)((long)num5 - (long)num4) + 1UL));
                        this.method_7((int)(num4 + (ulong)((long)num5 - (long)num4) + 1UL), num6);
                        ulong            num7  = num4 + (ulong)((long)num6 - (long)num4 + 1L);
                        int              num8  = this.method_6((int)num7);
                        int              num9  = num8;
                        long             num10 = this.method_7((int)num7, num8);
                        Class7.Struct5[] array = null;
                        long             num11 = (long)(num7 - (ulong)((long)num8) + 1UL);
                        int              num12 = 0;
                        while (num11 < num10)
                        {
                            Array.Resize <Class7.Struct5>(ref array, num12 + 1);
                            int num13 = num9 + 1;
                            num9 = this.method_6(num13);
                            array[num12].long_1 = this.method_7(num13, num9);
                            array[num12].long_0 = (long)((array[num12].long_1 <= 9L) ? ((ulong)this.byte_0[(int)(checked ((IntPtr)array[num12].long_1))]) : ((ulong)((!Class7.smethod_0(array[num12].long_1)) ? ((array[num12].long_1 - 12L) / 2L) : ((array[num12].long_1 - 13L) / 2L))));
                            num11 = num11 + (long)(num9 - num13) + 1L;
                            num12++;
                        }
                        if (array != null)
                        {
                            this.struct6_0[num2 + (int)num3].string_0 = new string[array.Length];
                            int num14 = 0;
                            for (int i = 0; i <= array.Length - 1; i++)
                            {
                                if (array[i].long_1 > 9L)
                                {
                                    if (!Class7.smethod_0(array[i].long_1))
                                    {
                                        if (this.ulong_0 == 1UL)
                                        {
                                            this.struct6_0[num2 + (int)num3].string_0[i] = Encoding.Default.GetString(this.byte_1, (int)(num7 + (ulong)num10 + (ulong)((long)num14)), (int)array[i].long_0);
                                        }
                                        else if (this.ulong_0 == 2UL)
                                        {
                                            this.struct6_0[num2 + (int)num3].string_0[i] = Encoding.Unicode.GetString(this.byte_1, (int)(num7 + (ulong)num10 + (ulong)((long)num14)), (int)array[i].long_0);
                                        }
                                        else if (this.ulong_0 == 3UL)
                                        {
                                            this.struct6_0[num2 + (int)num3].string_0[i] = Encoding.BigEndianUnicode.GetString(this.byte_1, (int)(num7 + (ulong)num10 + (ulong)((long)num14)), (int)array[i].long_0);
                                        }
                                    }
                                    else
                                    {
                                        this.struct6_0[num2 + (int)num3].string_0[i] = Encoding.Default.GetString(this.byte_1, (int)(num7 + (ulong)num10 + (ulong)((long)num14)), (int)array[i].long_0);
                                    }
                                }
                                else
                                {
                                    this.struct6_0[num2 + (int)num3].string_0[i] = Convert.ToString(this.method_5((int)(num7 + (ulong)num10 + (ulong)((long)num14)), (int)array[i].long_0));
                                }
                                num14 += (int)array[i].long_0;
                            }
                        }
                    }
                }
                else if (this.byte_1[(int)(checked ((IntPtr)ulong_2))] == 5)
                {
                    uint num15 = (uint)(this.method_5((int)(ulong_2 + 3UL), 2) - 1UL);
                    for (uint num16 = 0U; num16 <= num15; num16 += 1U)
                    {
                        uint num17 = (uint)this.method_5((int)ulong_2 + 12 + (int)(num16 * 2U), 2);
                        this.method_2((this.method_5((int)(ulong_2 + (ulong)num17), 4) - 1UL) * this.ulong_1);
                    }
                    this.method_2((this.method_5((int)(ulong_2 + 8UL), 4) - 1UL) * this.ulong_1);
                }
                result = true;
            }
            catch
            {
                result = false;
            }
            return(result);
        }
Exemplo n.º 2
0
 // Token: 0x06000126 RID: 294 RVA: 0x0000954C File Offset: 0x0000774C
 private void method_3(long long_0)
 {
     try
     {
         byte b = this.byte_1[(int)(checked ((IntPtr)long_0))];
         if (b != 5)
         {
             if (b == 13)
             {
                 ulong num  = this.method_5((int)long_0 + 3, 2) - 1UL;
                 int   num2 = 0;
                 if (this.struct7_0 != null)
                 {
                     num2 = this.struct7_0.Length;
                     Array.Resize <Class7.Struct7>(ref this.struct7_0, this.struct7_0.Length + (int)num + 1);
                 }
                 else
                 {
                     this.struct7_0 = new Class7.Struct7[num + 1UL];
                 }
                 for (ulong num3 = 0UL; num3 <= num; num3 += 1UL)
                 {
                     ulong num4 = this.method_5((int)long_0 + 8 + (int)num3 * 2, 2);
                     if (long_0 != 100L)
                     {
                         num4 += (ulong)long_0;
                     }
                     int num5 = this.method_6((int)num4);
                     this.method_7((int)num4, num5);
                     int num6 = this.method_6((int)(num4 + (ulong)((long)num5 - (long)num4) + 1UL));
                     this.method_7((int)(num4 + (ulong)((long)num5 - (long)num4) + 1UL), num6);
                     ulong  num7  = num4 + (ulong)((long)num6 - (long)num4 + 1L);
                     int    num8  = this.method_6((int)num7);
                     int    num9  = num8;
                     long   num10 = this.method_7((int)num7, num8);
                     long[] array = new long[5];
                     for (int i = 0; i <= 4; i++)
                     {
                         int int_ = num9 + 1;
                         num9     = this.method_6(int_);
                         array[i] = this.method_7(int_, num9);
                         array[i] = (long)((array[i] <= 9L) ? ((ulong)this.byte_0[(int)(checked ((IntPtr)array[i]))]) : ((ulong)((!Class7.smethod_0(array[i])) ? ((array[i] - 12L) / 2L) : ((array[i] - 13L) / 2L))));
                     }
                     if (this.ulong_0 != 1UL)
                     {
                     }
                     if (this.ulong_0 == 1UL)
                     {
                         this.struct7_0[num2 + (int)num3].string_0 = Encoding.Default.GetString(this.byte_1, (int)(num7 + (ulong)num10 + (ulong)array[0]), (int)array[1]);
                     }
                     else if (this.ulong_0 == 2UL)
                     {
                         this.struct7_0[num2 + (int)num3].string_0 = Encoding.Unicode.GetString(this.byte_1, (int)(num7 + (ulong)num10 + (ulong)array[0]), (int)array[1]);
                     }
                     else if (this.ulong_0 == 3UL)
                     {
                         this.struct7_0[num2 + (int)num3].string_0 = Encoding.BigEndianUnicode.GetString(this.byte_1, (int)(num7 + (ulong)num10 + (ulong)array[0]), (int)array[1]);
                     }
                     this.struct7_0[num2 + (int)num3].long_0 = (long)this.method_5((int)(num7 + (ulong)num10 + (ulong)array[0] + (ulong)array[1] + (ulong)array[2]), (int)array[3]);
                     if (this.ulong_0 == 1UL)
                     {
                         this.struct7_0[num2 + (int)num3].string_1 = Encoding.Default.GetString(this.byte_1, (int)(num7 + (ulong)num10 + (ulong)array[0] + (ulong)array[1] + (ulong)array[2] + (ulong)array[3]), (int)array[4]);
                     }
                     else if (this.ulong_0 == 2UL)
                     {
                         this.struct7_0[num2 + (int)num3].string_1 = Encoding.Unicode.GetString(this.byte_1, (int)(num7 + (ulong)num10 + (ulong)array[0] + (ulong)array[1] + (ulong)array[2] + (ulong)array[3]), (int)array[4]);
                     }
                     else if (this.ulong_0 == 3UL)
                     {
                         this.struct7_0[num2 + (int)num3].string_1 = Encoding.BigEndianUnicode.GetString(this.byte_1, (int)(num7 + (ulong)num10 + (ulong)array[0] + (ulong)array[1] + (ulong)array[2] + (ulong)array[3]), (int)array[4]);
                     }
                 }
             }
         }
         else
         {
             uint num11 = (uint)(this.method_5((int)long_0 + 3, 2) - 1UL);
             for (int j = 0; j <= (int)num11; j++)
             {
                 uint num12 = (uint)this.method_5((int)long_0 + 12 + j * 2, 2);
                 if (long_0 == 100L)
                 {
                     this.method_3((long)((this.method_5((int)num12, 4) - 1UL) * this.ulong_1));
                 }
                 else
                 {
                     this.method_3((long)((this.method_5((int)(long_0 + (long)((ulong)num12)), 4) - 1UL) * this.ulong_1));
                 }
             }
             this.method_3((long)((this.method_5((int)long_0 + 8, 4) - 1UL) * this.ulong_1));
         }
     }
     catch
     {
     }
 }