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

final class Class438 implements Interface6
{
    public static boolean method5338(String string, int i, String string_0_,
				     byte i_1_) {
	if (i == 0) {
	    boolean bool;
	    try {
		if (!Class482.aString6649.startsWith("win"))
		    throw new Exception();
		if (!string.startsWith("http://")
		    && !string.startsWith("https://"))
		    throw new Exception();
		String string_2_
		    = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789?&=,.%+-_#:/*";
		for (int i_3_ = 0; i_3_ < string.length(); i_3_++) {
		    if (string_2_.indexOf(string.charAt(i_3_)) == -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
		    = Class12.method571(Class482.anApplet6650, string_0_,
					(new Object[]
					 { new URL(Class482.anApplet6650
						       .getCodeBase(),
						   string).toString() }),
					1446113050);
		bool = null != object;
	    } catch (Throwable throwable) {
		return false;
	    }
	    return bool;
	}
	if (i == 2) {
	    boolean bool;
	    try {
		Class482.anApplet6650.getAppletContext().showDocument
		    (new URL(Class482.anApplet6650.getCodeBase(), string),
		     "_blank");
		bool = true;
	    } catch (Exception exception) {
		return false;
	    }
	    return bool;
	}
	if (3 == i) {
	    try {
		Class12.method573(Class482.anApplet6650, "loggedout",
				  -1787505817);
	    } catch (Throwable throwable) {
		/* empty */
	    }
	    boolean bool;
	    try {
		Class482.anApplet6650.getAppletContext().showDocument
		    (new URL(Class482.anApplet6650.getCodeBase(), string),
		     "_top");
		bool = true;
	    } catch (Exception exception) {
		return false;
	    }
	    return bool;
	}
	throw new IllegalArgumentException();
    }
}
