Beispiel #1
0
        public byte[] ReadDataToSend(bool isAuthPacket = false)
        {
            byte[] array = new byte[PacketWriter.smethod_2(PacketWriter.smethod_1(this))];
            while (true)
            {
IL_157:
                uint arg_11E_0 = 1778740614u;
                while (true)
                {
                    uint num;
                    switch ((num = (arg_11E_0 ^ 1877401841u)) % 11u)
                    {
                    case 0u:
                    {
                        int num2;
                        arg_11E_0 = (((long)num2 >= PacketWriter.smethod_2(PacketWriter.smethod_1(this))) ? 1093790467u : 1743095117u);
                        continue;
                    }

                    case 1u:
                        arg_11E_0 = (num * 2838672913u ^ 2341229985u);
                        continue;

                    case 2u:
                        array[0]  = (byte)(255u & this.Size);
                        arg_11E_0 = (num * 1119933883u ^ 3466367558u);
                        continue;

                    case 3u:
                    {
                        PacketWriter.smethod_3(this, 0, SeekOrigin.Begin);
                        int num2 = 0;
                        arg_11E_0 = (num * 3158397280u ^ 3757425747u);
                        continue;
                    }

                    case 4u:
                        goto IL_157;

                    case 5u:
                        arg_11E_0 = (((!isAuthPacket) ? 1910176589u : 1261149097u) ^ num * 3420629264u);
                        continue;

                    case 6u:
                    {
                        int num2;
                        num2++;
                        arg_11E_0 = (num * 406199060u ^ 611498539u);
                        continue;
                    }

                    case 8u:
                    {
                        int num2;
                        array[num2] = (byte)PacketWriter.smethod_4(PacketWriter.smethod_1(this));
                        arg_11E_0   = 204451283u;
                        continue;
                    }

                    case 9u:
                        this.Size = (uint)(array.Length - 4);
                        arg_11E_0 = (num * 2660983120u ^ 3795151527u);
                        continue;

                    case 10u:
                        array[1]  = (byte)(255u & this.Size >> 8);
                        arg_11E_0 = (num * 3804110805u ^ 3371470262u);
                        continue;
                    }
                    return(array);
                }
            }
            return(array);
        }