/* Class401 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import java.net.URL;

public class Class401 {
	Class279 aClass279_5745;
	Class279 aClass279_5746;
	public int anInt5747 = 0;
	public int anInt5748 = 0;
	Class113 aClass113_5749 = new Class113(64);
	static final int anInt5750 = 1;
	static final int anInt5751 = 32768;
	Interface51 anInterface51_5752 = null;
	static int anInt5753;
	public static Class495 aClass495_5754;

	public Class587_Sub34_Sub12 method7178(int i, byte i_0_) {
		Class587_Sub34_Sub12 class587_sub34_sub12 = ((Class587_Sub34_Sub12) ((Class401) this).aClass113_5749.method2636((long) i));
		if (class587_sub34_sub12 != null)
			return class587_sub34_sub12;
		byte[] is;
		if (i >= 32768)
			is = ((Class401) this).aClass279_5746.method5578(1, i & 0x7fff, 1975206131);
		else
			is = ((Class401) this).aClass279_5745.method5578(1, i, 2144990311);
		class587_sub34_sub12 = new Class587_Sub34_Sub12();
		((Class587_Sub34_Sub12) class587_sub34_sub12).aClass401_10740 = this;
		if (null != is)
			class587_sub34_sub12.method17067(new Class587_Sub4(is), (byte) 107);
		if (i >= 32768)
			class587_sub34_sub12.method17074(1681430658);
		((Class401) this).aClass113_5749.method2662(class587_sub34_sub12, (long) i);
		return class587_sub34_sub12;
	}

	String method7179(Class506 class506, int[] is, long l) {
		if (null != ((Class401) this).anInterface51_5752) {
			String string = ((Class401) this).anInterface51_5752.method352(class506, is, l);
			if (null != string)
				return string;
		}
		return Long.toString(l);
	}

	String method7180(Class506 class506, int[] is, long l) {
		if (null != ((Class401) this).anInterface51_5752) {
			String string = ((Class401) this).anInterface51_5752.method352(class506, is, l);
			if (null != string)
				return string;
		}
		return Long.toString(l);
	}

	public Class587_Sub34_Sub12 method7181(int i) {
		Class587_Sub34_Sub12 class587_sub34_sub12 = ((Class587_Sub34_Sub12) ((Class401) this).aClass113_5749.method2636((long) i));
		if (class587_sub34_sub12 != null)
			return class587_sub34_sub12;
		byte[] is;
		if (i >= 32768)
			is = ((Class401) this).aClass279_5746.method5578(1, i & 0x7fff, 2042979050);
		else
			is = ((Class401) this).aClass279_5745.method5578(1, i, 2025986568);
		class587_sub34_sub12 = new Class587_Sub34_Sub12();
		((Class587_Sub34_Sub12) class587_sub34_sub12).aClass401_10740 = this;
		if (null != is)
			class587_sub34_sub12.method17067(new Class587_Sub4(is), (byte) 123);
		if (i >= 32768)
			class587_sub34_sub12.method17074(-1590359323);
		((Class401) this).aClass113_5749.method2662(class587_sub34_sub12, (long) i);
		return class587_sub34_sub12;
	}

	String method7182(Class506 class506, int[] is, long l) {
		if (null != ((Class401) this).anInterface51_5752) {
			String string = ((Class401) this).anInterface51_5752.method352(class506, is, l);
			if (null != string)
				return string;
		}
		return Long.toString(l);
	}

	public Class401(Class469 class469, Class279 class279, Class279 class279_1_, Interface51 interface51) {
		((Class401) this).aClass279_5745 = class279;
		((Class401) this).aClass279_5746 = class279_1_;
		((Class401) this).anInterface51_5752 = interface51;
		if (null != ((Class401) this).aClass279_5745)
			anInt5747 = (((Class401) this).aClass279_5745.method5624(1, 1033305392) * 1503593225);
		if (null != ((Class401) this).aClass279_5746)
			anInt5748 = (((Class401) this).aClass279_5746.method5624(1, 6751345) * -1501397919);
	}

	String method7183(Class506 class506, int[] is, long l) {
		if (null != ((Class401) this).anInterface51_5752) {
			String string = ((Class401) this).anInterface51_5752.method352(class506, is, l);
			if (null != string)
				return string;
		}
		return Long.toString(l);
	}

	public static boolean method7184(String string, int i, String string_2_, int i_3_) {
		if (i == 0) {
			boolean bool;
			try {
				if (!Class232.aString2720.startsWith("win"))
					throw new Exception();
				if (!string.startsWith("http://") && !string.startsWith("https://"))
					throw new Exception();
				String string_4_ = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789?&=,.%+-_#:/*";
				for (int i_5_ = 0; i_5_ < string.length(); i_5_++) {
					if (string_4_.indexOf(string.charAt(i_5_)) == -1)
						throw new Exception();
				}
				Runtime.getRuntime().exec(new StringBuilder().append("cmd /c start \"j\" \"").append(string).append("\"").toString());
				bool = true;
			} catch (Throwable throwable) {
				return false;
			}
			return bool;
		}
		if (1 == i) {
			boolean bool;
			try {
				Object object = Class407.method7248(Class232.anApplet2723, string_2_, (new Object[] { new URL(Class232.anApplet2723.getCodeBase(), string).toString() }), (byte) -6);
				bool = null != object;
			} catch (Throwable throwable) {
				return false;
			}
			return bool;
		}
		if (i == 2) {
			boolean bool;
			try {
				Class232.anApplet2723.getAppletContext().showDocument(new URL(Class232.anApplet2723.getCodeBase(), string), "_blank");
				bool = true;
			} catch (Exception exception) {
				return false;
			}
			return bool;
		}
		if (i == 3) {
			try {
				Class407.method7247(Class232.anApplet2723, "loggedout", -527110751);
			} catch (Throwable throwable) {
				/* empty */
			}
			boolean bool;
			try {
				Class232.anApplet2723.getAppletContext().showDocument(new URL(Class232.anApplet2723.getCodeBase(), string), "_top");
				bool = true;
			} catch (Exception exception) {
				return false;
			}
			return bool;
		}
		throw new IllegalArgumentException();
	}

	static final void method7185(Class477 class477, byte i) {
		Class480 class480 = (((Class477) class477).aBool6510 ? ((Class477) class477).aClass480_6506 : ((Class477) class477).aClass480_6492);
		Class35 class35 = ((Class480) class480).aClass35_6531;
		Class118 class118 = ((Class480) class480).aClass118_6532;
		Class123.method2913(class35, class118, class477, 1905891920);
	}

	static void method7186(Class477 class477, int i) {
		((Class477) class477).anIntArray6497[((Class477) class477).anInt6498 * 2028895127 - 2] = (Class356_Sub1.aClass492_10082.method11142((((Class477) class477).anIntArray6497[2028895127 * ((Class477) class477).anInt6498 - 2]), 1707347600).method11013(Class246.aClass5_3969, (((Class477) class477).anIntArray6497[((Class477) class477).anInt6498 * 2028895127 - 1]), 2144716940)) ? 1 : 0;
		((Class477) class477).anInt6498 -= 1577301031;
	}

	public static Class587_Sub34_Sub9 method7187(short i) {
		return Class578_Sub1.aClass587_Sub34_Sub9_7415;
	}
}
