Ejemplo n.º 1
0
        public string ReadFourCC()
        {
            byte[] array = AuthPacket.smethod_16(this.Read <uint>(32));
            while (true)
            {
IL_40:
                uint arg_28_0 = 1971614857u;
                while (true)
                {
                    uint num;
                    switch ((num = (arg_28_0 ^ 546170987u)) % 3u)
                    {
                    case 0u:
                        goto IL_40;

                    case 2u:
                        AuthPacket.smethod_17(array);
                        arg_28_0 = (num * 568442981u ^ 4157547354u);
                        continue;
                    }
                    goto Block_1;
                }
            }
Block_1:
            return(AuthPacket.smethod_18(AuthPacket.smethod_13(AuthPacket.smethod_12(), array), new char[1]));
        }
Ejemplo n.º 2
0
        public void WriteString(string data, int bits, bool isCString = true, int additionalCount = 0)
        {
            byte[] array = AuthPacket.smethod_42(AuthPacket.smethod_12(), data);
            while (true)
            {
IL_BA:
                uint arg_92_0 = 88256940u;
                while (true)
                {
                    uint num;
                    switch ((num = (arg_92_0 ^ 1145632018u)) % 7u)
                    {
                    case 1u:
                        this.Write <int>(array.Length + additionalCount, bits);
                        arg_92_0 = (num * 3933157738u ^ 3858785379u);
                        continue;

                    case 2u:
                        this.Flush();
                        arg_92_0 = 1411661349u;
                        continue;

                    case 3u:
                        this.Write <byte[]>(array);
                        arg_92_0 = (num * 3707020536u ^ 2244404174u);
                        continue;

                    case 4u:
                        goto IL_BA;

                    case 5u:
                        arg_92_0 = (((!isCString) ? 3123080973u : 3522398342u) ^ num * 866731608u);
                        continue;

                    case 6u:
                        this.Write <byte[]>(new byte[1]);
                        arg_92_0 = (num * 4187764293u ^ 4101948329u);
                        continue;
                    }
                    return;
                }
            }
        }
Ejemplo n.º 3
0
        public void WriteFourCC(string data)
        {
            byte[] value = AuthPacket.smethod_42(AuthPacket.smethod_12(), data);
            while (true)
            {
IL_3F:
                uint arg_27_0 = 2115914845u;
                while (true)
                {
                    uint num;
                    switch ((num = (arg_27_0 ^ 427277530u)) % 3u)
                    {
                    case 1u:
                        this.Write <byte[]>(value);
                        arg_27_0 = (num * 1839703030u ^ 159873758u);
                        continue;

                    case 2u:
                        goto IL_3F;
                    }
                    return;
                }
            }
        }
Ejemplo n.º 4
0
 public string ReadString(int count)
 {
     return(AuthPacket.smethod_13(AuthPacket.smethod_12(), this.Read(count)));
 }