namespace ‰ { using ; using ; using ; using ; using †; using System; using System.Collections.Generic; using System.Net; using System.Net.Sockets; using System.Text; internal static class  { private static Socket ; private static int ; private static string ; private static void œ(IAsyncResult iAr) { .  = new .(((Socket) iAr.AsyncState).EndAccept(iAr)); .BeginAccept(new AsyncCallback(.œ), ); } internal static bool ž(int bindPort, string musHost) {  = bindPort;  = musHost;  = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); Ž.WriteLine("Starting up and running asynchronous socket server for MUS connections for port " + bindPort + "..."); try { .Bind(new IPEndPoint(IPAddress.Any, bindPort)); .Listen(0x19); .BeginAccept(new AsyncCallback(.œ), ); Ž.WriteLine("Listening for MUS connections from " + musHost); return true; } catch { Ž.("Error while setting up asynchronous socket server for MUS connections on port " + bindPort); Ž.("Port " + bindPort + " could be invalid or in use already."); return false; } } private class  { private Socket ; private byte[]  = new byte[0x2711]; private void () { try { this..Close(); } catch { } } private void () { throw new NotImplementedException(); } private void (IAsyncResult iAr) { try { try { int num2; int count = this..EndReceive(iAr); string str = Encoding.ASCII.GetString(this., 0, count); string str2 = str.Substring(0, 4); string[] strArray = str.Substring(4).Split(new char[] { Convert.ToChar(2) }); string str3 = Encoding.ASCII.GetString(this., 0, count); if ((((str3 == "") || str3.Contains("\x0001")) || (str3.Contains("\x0002") || str3.Contains("\x0005"))) || str3.Contains("\t")) { this.(); } else { Ž.WriteLine("DATA: " + str); string key = str2; if (key != null) { int num4; if (. == null) { Dictionary dictionary1 = new Dictionary(11); dictionary1.Add("HKTM", 0); dictionary1.Add("HKMW", 1); dictionary1.Add("HKUK", 2); dictionary1.Add("HKAR", 3); dictionary1.Add("HKSB", 4); dictionary1.Add("HKRC", 5); dictionary1.Add("UPRA", 6); dictionary1.Add("UPRC", 7); dictionary1.Add("UPRT", 8); dictionary1.Add("UPRS", 9); dictionary1.Add("UPRH", 10); . = dictionary1; } if (..TryGetValue(key, out num4)) { string str4;  ; switch (num4) { case 0: num2 = int.Parse(strArray[0]); str4 = strArray[1]; ”.—(num2).("BK" + str4); return; case 1: num2 = int.Parse(strArray[0]); str4 = strArray[1]; ”.—(num2).("B!" + str4 + Convert.ToChar(2)); return; case 2: num2 = int.Parse(strArray[0]); str4 = strArray[1];  = ”.—(num2); if (. != null) { ..(.., true, str4); } return; case 3: { byte rank = byte.Parse(strArray[0]); bool includeHigher = strArray[1] == "1"; str4 = strArray[2]; ”.˜(rank, includeHigher, "BK" + str4); return; } case 4: num2 = int.Parse(strArray[0]); str4 = strArray[1];  = ”.—(num2); .("@c" + str4); .(0x3e8); return; case 5: .ž(false); return; case 6: goto Label_02FC; case 7: ”.—(int.Parse(strArray[0])).(true, false); return; case 8: ”.—(int.Parse(strArray[0])).(false, true); return; case 9:  = ”.—(int.Parse(strArray[0])); .(); .(); return; case 10: ”.—(int.Parse(strArray[0])).("new"); return; } } } } return; Label_02FC: num2 = int.Parse(strArray[0]); ”.—(num2).(true, true, true); using (“ “ = „..ž()) { if (!“.Ž("SELECT badgeid FROM users_badges WHERE userid = '" + num2 + "' AND badgeid = 'ACH_AvatarLooks1'")) { “.‰("INSERT INTO users_badges (userid, badgeid, iscurrent) VALUES ('" + num2 + "', 'ACH_AvatarLooks1', '0')"); ”.—(num2).(); } } } catch { } } finally { this.(); } } internal (Socket Connector) { this. = Connector; Connector.BeginReceive(this., 0, this..Length, SocketFlags.None, new AsyncCallback(this.), null); } } } }