コード例 #1
0
 // Token: 0x060002E6 RID: 742 RVA: 0x000152A0 File Offset: 0x000134A0
 private bool dmethod_406(ulong arg_0)
 {
     if (this.prop_0[(int)((uint)arg_0)] == 13)
     {
         int num  = Convert.ToInt32(decimal.Subtract(new decimal(this.xmethod_401(Convert.ToInt32(decimal.Add(new decimal(arg_0), 3m)), 2)), 1m));
         int num2 = 0;
         if (this.prop_6 != null)
         {
             num2        = this.prop_6.Length;
             this.prop_6 = (Class_52[])Utils.CopyArray(this.prop_6, new Class_52[this.prop_6.Length + num + 1]);
         }
         else
         {
             this.prop_6 = new Class_52[num + 1];
         }
         int num3 = num;
         for (int i = 0; i <= num3; i++)
         {
             Class_77[] array = null;
             ulong      num4  = this.xmethod_401(Convert.ToInt32(decimal.Add(decimal.Add(new decimal(arg_0), 8m), new decimal(i * 2))), 2);
             if (decimal.Compare(new decimal(arg_0), 100m) != 0)
             {
                 num4 += arg_0;
             }
             int num5 = this.gmethod_403((int)num4);
             this.tmethod_402((int)num4, num5);
             int num6 = this.gmethod_403(Convert.ToInt32(decimal.Add(decimal.Add(new decimal(num4), decimal.Subtract(new decimal(num5), new decimal(num4))), 1m)));
             this.prop_6[num2 + i].ID = this.tmethod_402(Convert.ToInt32(decimal.Add(decimal.Add(new decimal(num4), decimal.Subtract(new decimal(num5), new decimal(num4))), 1m)), num6);
             num4 = Convert.ToUInt64(decimal.Add(decimal.Add(new decimal(num4), decimal.Subtract(new decimal(num6), new decimal(num4))), 1m));
             num5 = this.gmethod_403((int)num4);
             num6 = num5;
             long num7 = this.tmethod_402((int)num4, num5);
             long num8 = Convert.ToInt64(decimal.Add(decimal.Subtract(new decimal(num4), new decimal(num5)), 1m));
             int  num9 = 0;
             while (num8 < num7)
             {
                 array            = (Class_77[])Utils.CopyArray(array, new Class_77[num9 + 1]);
                 num5             = num6 + 1;
                 num6             = this.gmethod_403(num5);
                 array[num9].Type = this.tmethod_402(num5, num6);
                 if (array[num9].Type > 9L)
                 {
                     if (Class_108.cmethod_404(array[num9].Type))
                     {
                         array[num9].Size = (long)Math.Round((double)(array[num9].Type - 13L) / 2.0);
                     }
                     else
                     {
                         array[num9].Size = (long)Math.Round((double)(array[num9].Type - 12L) / 2.0);
                     }
                 }
                 else
                 {
                     array[num9].Size = (long)((ulong)this.prop_7[(int)array[num9].Type]);
                 }
                 num8 = num8 + (long)(num6 - num5) + 1L;
                 num9++;
             }
             this.prop_6[num2 + i].RowData = new string[array.Length - 1 + 1];
             int num10 = 0;
             int num11 = array.Length - 1;
             for (int j = 0; j <= num11; j++)
             {
                 if (array[j].Type > 9L)
                 {
                     if (!Class_108.cmethod_404(array[j].Type))
                     {
                         if (decimal.Compare(new decimal(this.prop_1), 1m) == 0)
                         {
                             this.prop_6[num2 + i].RowData[j] = Encoding.Default.GetString(this.prop_0, Convert.ToInt32(decimal.Add(decimal.Add(new decimal(num4), new decimal(num7)), new decimal(num10))), (int)array[j].Size);
                         }
                         else if (decimal.Compare(new decimal(this.prop_1), 2m) == 0)
                         {
                             this.prop_6[num2 + i].RowData[j] = Encoding.Unicode.GetString(this.prop_0, Convert.ToInt32(decimal.Add(decimal.Add(new decimal(num4), new decimal(num7)), new decimal(num10))), (int)array[j].Size);
                         }
                         else if (decimal.Compare(new decimal(this.prop_1), 3m) == 0)
                         {
                             this.prop_6[num2 + i].RowData[j] = Encoding.BigEndianUnicode.GetString(this.prop_0, Convert.ToInt32(decimal.Add(decimal.Add(new decimal(num4), new decimal(num7)), new decimal(num10))), (int)array[j].Size);
                         }
                     }
                     else
                     {
                         this.prop_6[num2 + i].RowData[j] = Encoding.Default.GetString(this.prop_0, Convert.ToInt32(decimal.Add(decimal.Add(new decimal(num4), new decimal(num7)), new decimal(num10))), (int)array[j].Size);
                     }
                 }
                 else
                 {
                     this.prop_6[num2 + i].RowData[j] = Convert.ToString(this.xmethod_401(Convert.ToInt32(decimal.Add(decimal.Add(new decimal(num4), new decimal(num7)), new decimal(num10))), (int)array[j].Size));
                 }
                 num10 += (int)array[j].Size;
             }
         }
     }
     else if (this.prop_0[(int)((uint)arg_0)] == 5)
     {
         int num12 = (int)Convert.ToUInt16(decimal.Subtract(new decimal(this.xmethod_401(Convert.ToInt32(decimal.Add(new decimal(arg_0), 3m)), 2)), 1m));
         for (int k = 0; k <= num12; k++)
         {
             ushort num13 = (ushort)this.xmethod_401(Convert.ToInt32(decimal.Add(decimal.Add(new decimal(arg_0), 12m), new decimal(k * 2))), 2);
             this.dmethod_406(Convert.ToUInt64(decimal.Multiply(decimal.Subtract(new decimal(this.xmethod_401((int)(arg_0 + (ulong)num13), 4)), 1m), new decimal((int)this.prop_4))));
         }
         this.dmethod_406(Convert.ToUInt64(decimal.Multiply(decimal.Subtract(new decimal(this.xmethod_401(Convert.ToInt32(decimal.Add(new decimal(arg_0), 8m)), 4)), 1m), new decimal((int)this.prop_4))));
     }
     return(true);
 }
コード例 #2
0
        // Token: 0x060002E5 RID: 741 RVA: 0x00014C50 File Offset: 0x00012E50
        private void vmethod_405(ulong arg_0)
        {
            if (this.prop_0[(int)((uint)arg_0)] == 13)
            {
                ushort num  = (this.xmethod_401((arg_0.ForceTo <decimal>() + 3m).ForceTo <int>(), 2).ForceTo <decimal>() - 1m).ForceTo <ushort>();
                int    num2 = 0;
                if (this.prop_5 != null)
                {
                    num2        = this.prop_5.Length;
                    this.prop_5 = (Class_21[])Utils.CopyArray(this.prop_5, new Class_21[this.prop_5.Length + (int)num + 1]);
                }
                else
                {
                    this.prop_5 = new Class_21[(int)(num + 1)];
                }
                int num3 = (int)num;
                for (int i = 0; i <= num3; i++)
                {
                    ulong num4 = this.xmethod_401((arg_0.ForceTo <decimal>() + 8m + (i * 2).ForceTo <decimal>()).ForceTo <int>(), 2);
                    if (decimal.Compare(arg_0.ForceTo <decimal>(), 100m) != 0)
                    {
                        num4 += arg_0;
                    }
                    int num5 = this.gmethod_403(num4.ForceTo <int>());
                    this.tmethod_402(num4.ForceTo <int>(), num5);
                    int num6 = this.gmethod_403((num4.ForceTo <decimal>() + num5.ForceTo <decimal>() - num4.ForceTo <decimal>() + 1m).ForceTo <int>());
                    this.prop_5[num2 + i].ID = this.tmethod_402((num4.ForceTo <decimal>() + num5.ForceTo <decimal>() - num4.ForceTo <decimal>() + 1m).ForceTo <int>(), num6);
                    num4 = (num4.ForceTo <decimal>() + num6.ForceTo <decimal>() - num4.ForceTo <decimal>() + 1m).ForceTo <ulong>();
                    num5 = this.gmethod_403(num4.ForceTo <int>());
                    num6 = num5;
                    long   value = this.tmethod_402(num4.ForceTo <int>(), num5);
                    long[] array = new long[5];
                    int    num7  = 0;
                    do
                    {
                        num5        = num6 + 1;
                        num6        = this.gmethod_403(num5);
                        array[num7] = this.tmethod_402(num5, num6);
                        if (array[num7] > 9L)
                        {
                            if (Class_108.cmethod_404(array[num7]))
                            {
                                array[num7] = (long)Math.Round((double)(array[num7] - 13L) / 2.0);
                            }
                            else
                            {
                                array[num7] = (long)Math.Round((double)(array[num7] - 12L) / 2.0);
                            }
                        }
                        else
                        {
                            array[num7] = (long)((ulong)this.prop_7[(int)array[num7]]);
                        }
                        num7++;
                    }while (num7 <= 4);
                    Encoding encoding = Encoding.Default;
                    decimal  value2   = this.prop_1.ForceTo <decimal>();
                    if (!1m.Equals(value2))
                    {
                        if (!2m.Equals(value2))
                        {
                            if (3m.Equals(value2))
                            {
                                encoding = Encoding.BigEndianUnicode;
                            }
                        }
                        else
                        {
                            encoding = Encoding.Unicode;
                        }
                    }
                    else
                    {
                        encoding = Encoding.Default;
                    }
                    this.prop_5[num2 + i].Type         = encoding.GetString(this.prop_0, Convert.ToInt32(decimal.Add(new decimal(num4), new decimal(value))), (int)array[0]);
                    this.prop_5[num2 + i].Name         = encoding.GetString(this.prop_0, Convert.ToInt32(decimal.Add(decimal.Add(new decimal(num4), new decimal(value)), new decimal(array[0]))), (int)array[1]);
                    this.prop_5[num2 + i].RootNum      = (long)this.xmethod_401(Convert.ToInt32(decimal.Add(decimal.Add(decimal.Add(decimal.Add(new decimal(num4), new decimal(value)), new decimal(array[0])), new decimal(array[1])), new decimal(array[2]))), (int)array[3]);
                    this.prop_5[num2 + i].SqlStatement = encoding.GetString(this.prop_0, Convert.ToInt32(decimal.Add(decimal.Add(decimal.Add(decimal.Add(decimal.Add(new decimal(num4), new decimal(value)), new decimal(array[0])), new decimal(array[1])), new decimal(array[2])), new decimal(array[3]))), (int)array[4]);
                }
                return;
            }
            if (this.prop_0[(int)((uint)arg_0)] != 5)
            {
                return;
            }
            int num8 = (int)Convert.ToUInt16(decimal.Subtract(new decimal(this.xmethod_401(Convert.ToInt32(decimal.Add(new decimal(arg_0), 3m)), 2)), 1m));

            for (int j = 0; j <= num8; j++)
            {
                ushort num9 = (ushort)this.xmethod_401(Convert.ToInt32(decimal.Add(decimal.Add(new decimal(arg_0), 12m), new decimal(j * 2))), 2);
                if (decimal.Compare(new decimal(arg_0), 100m) == 0)
                {
                    this.vmethod_405(Convert.ToUInt64(decimal.Multiply(decimal.Subtract(new decimal(this.xmethod_401((int)num9, 4)), 1m), new decimal((int)this.prop_4))));
                }
                else
                {
                    this.vmethod_405(Convert.ToUInt64(decimal.Multiply(decimal.Subtract(new decimal(this.xmethod_401((int)(arg_0 + (ulong)num9), 4)), 1m), new decimal((int)this.prop_4))));
                }
            }
            this.vmethod_405(Convert.ToUInt64(decimal.Multiply(decimal.Subtract(new decimal(this.xmethod_401(Convert.ToInt32(decimal.Add(new decimal(arg_0), 8m)), 4)), 1m), new decimal((int)this.prop_4))));
        }