// Token: 0x06000123 RID: 291 RVA: 0x0000C6C8 File Offset: 0x0000A8C8 private bool method_12(ulong ulong_1) { if (this.method_0()[(int)((uint)ulong_1)] == 13) { int num = Convert.ToInt32(decimal.Subtract(new decimal(this.method_8(Convert.ToInt32(decimal.Add(new decimal(ulong_1), 3m)), 2)), 1m)); int num2 = 0; if (this.method_5() != null) { num2 = this.method_5().Length; this.method_6((ROW[])Utils.CopyArray(this.method_5(), new ROW[this.method_5().Length + num + 1])); } else { this.method_6(new ROW[num + 1]); } int num3 = num; for (int i = 0; i <= num3; i++) { SZ[] array = null; ulong num4 = this.method_8(Convert.ToInt32(decimal.Add(decimal.Add(new decimal(ulong_1), 8m), new decimal(i * 2))), 2); if (decimal.Compare(new decimal(ulong_1), 100m) != 0) { num4 += ulong_1; } int num5 = this.method_10((int)num4); this.method_9((int)num4, num5); int num6 = this.method_10(Convert.ToInt32(decimal.Add(decimal.Add(new decimal(num4), decimal.Subtract(new decimal(num5), new decimal(num4))), 1m))); this.method_5()[num2 + i].ID = this.method_9(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.method_10((int)num4); num6 = num5; long num7 = this.method_9((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 = (SZ[])Utils.CopyArray(array, new SZ[num9 + 1]); num5 = num6 + 1; num6 = this.method_10(num5); array[num9].Type = this.method_9(num5, num6); if (array[num9].Type > 9L) { if (CNT.ItIsOdd(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.method_7()[(int)array[num9].Type]); } num8 = num8 + (long)(num6 - num5) + 1L; num9++; } this.method_5()[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 (!CNT.ItIsOdd(array[j].Type)) { if (decimal.Compare(new decimal(this.method_1()), 1m) == 0) { this.method_5()[num2 + i].RowData[j] = Encoding.Default.GetString(this.method_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.method_1()), 2m) == 0) { this.method_5()[num2 + i].RowData[j] = Encoding.Unicode.GetString(this.method_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.method_1()), 3m) == 0) { this.method_5()[num2 + i].RowData[j] = Encoding.BigEndianUnicode.GetString(this.method_0(), Convert.ToInt32(decimal.Add(decimal.Add(new decimal(num4), new decimal(num7)), new decimal(num10))), (int)array[j].Size); } } else { this.method_5()[num2 + i].RowData[j] = Encoding.Default.GetString(this.method_0(), Convert.ToInt32(decimal.Add(decimal.Add(new decimal(num4), new decimal(num7)), new decimal(num10))), (int)array[j].Size); } } else { this.method_5()[num2 + i].RowData[j] = Convert.ToString(this.method_8(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.method_0()[(int)((uint)ulong_1)] == 5) { int num12 = (int)Convert.ToUInt16(decimal.Subtract(new decimal(this.method_8(Convert.ToInt32(decimal.Add(new decimal(ulong_1), 3m)), 2)), 1m)); for (int k = 0; k <= num12; k++) { ushort num13 = (ushort)this.method_8(Convert.ToInt32(decimal.Add(decimal.Add(new decimal(ulong_1), 12m), new decimal(k * 2))), 2); this.method_12(Convert.ToUInt64(decimal.Multiply(decimal.Subtract(new decimal(this.method_8((int)(ulong_1 + (ulong)num13), 4)), 1m), new decimal((int)this.method_2())))); } this.method_12(Convert.ToUInt64(decimal.Multiply(decimal.Subtract(new decimal(this.method_8(Convert.ToInt32(decimal.Add(new decimal(ulong_1), 8m)), 4)), 1m), new decimal((int)this.method_2())))); } return(true); }
// Token: 0x06000122 RID: 290 RVA: 0x0000C064 File Offset: 0x0000A264 private void method_11(ulong ulong_1) { if (this.method_0()[(int)((uint)ulong_1)] == 13) { ushort num = (this.method_8((ulong_1.ForceTo <decimal>() + 3m).ForceTo <int>(), 2).ForceTo <decimal>() - 1m).ForceTo <ushort>(); int num2 = 0; if (this.method_3() != null) { num2 = this.method_3().Length; this.method_4((FF[])Utils.CopyArray(this.method_3(), new FF[this.method_3().Length + (int)num + 1])); } else { this.method_4(new FF[(int)(num + 1)]); } int num3 = (int)num; for (int i = 0; i <= num3; i++) { ulong num4 = this.method_8((ulong_1.ForceTo <decimal>() + 8m + (i * 2).ForceTo <decimal>()).ForceTo <int>(), 2); if (decimal.Compare(ulong_1.ForceTo <decimal>(), 100m) != 0) { num4 += ulong_1; } int num5 = this.method_10(num4.ForceTo <int>()); this.method_9(num4.ForceTo <int>(), num5); int num6 = this.method_10((num4.ForceTo <decimal>() + num5.ForceTo <decimal>() - num4.ForceTo <decimal>() + 1m).ForceTo <int>()); this.method_3()[num2 + i].ID = this.method_9((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.method_10(num4.ForceTo <int>()); num6 = num5; long value = this.method_9(num4.ForceTo <int>(), num5); long[] array = new long[5]; int num7 = 0; do { num5 = num6 + 1; num6 = this.method_10(num5); array[num7] = this.method_9(num5, num6); if (array[num7] > 9L) { if (CNT.ItIsOdd(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.method_7()[(int)array[num7]]); } num7++; }while (num7 <= 4); Encoding encoding = Encoding.Default; decimal value2 = this.method_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.method_3()[num2 + i].Type = encoding.GetString(this.method_0(), Convert.ToInt32(decimal.Add(new decimal(num4), new decimal(value))), (int)array[0]); this.method_3()[num2 + i].Name = encoding.GetString(this.method_0(), Convert.ToInt32(decimal.Add(decimal.Add(new decimal(num4), new decimal(value)), new decimal(array[0]))), (int)array[1]); this.method_3()[num2 + i].RootNum = (long)this.method_8(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.method_3()[num2 + i].SqlStatement = encoding.GetString(this.method_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]); } } else if (this.method_0()[(int)((uint)ulong_1)] == 5) { int num8 = (int)Convert.ToUInt16(decimal.Subtract(new decimal(this.method_8(Convert.ToInt32(decimal.Add(new decimal(ulong_1), 3m)), 2)), 1m)); for (int j = 0; j <= num8; j++) { ushort num9 = (ushort)this.method_8(Convert.ToInt32(decimal.Add(decimal.Add(new decimal(ulong_1), 12m), new decimal(j * 2))), 2); if (decimal.Compare(new decimal(ulong_1), 100m) == 0) { this.method_11(Convert.ToUInt64(decimal.Multiply(decimal.Subtract(new decimal(this.method_8((int)num9, 4)), 1m), new decimal((int)this.method_2())))); } else { this.method_11(Convert.ToUInt64(decimal.Multiply(decimal.Subtract(new decimal(this.method_8((int)(ulong_1 + (ulong)num9), 4)), 1m), new decimal((int)this.method_2())))); } } this.method_11(Convert.ToUInt64(decimal.Multiply(decimal.Subtract(new decimal(this.method_8(Convert.ToInt32(decimal.Add(new decimal(ulong_1), 8m)), 4)), 1m), new decimal((int)this.method_2())))); } }