/* Class392 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import java.awt.datatransfer.DataFlavor;
import java.awt.datatransfer.StringSelection;
import java.awt.datatransfer.Transferable;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;

public class Class392
{
    Class442 this$0;
    byte[] aByteArray4530;
    
    byte[] method4710(int i) {
	return ((Class392) this).aByteArray4530;
    }
    
    Class392(Class442 class442, InputStream inputstream,
	     Class487_Sub35_Sub10_Sub3 class487_sub35_sub10_sub3, URL url) {
	((Class392) this).this$0 = class442;
	((Class392) this).aByteArray4530 = null;
	if (null != inputstream) {
	    int i = 10240;
	    Class487_Sub17 class487_sub17 = new Class487_Sub17(i, true);
	    int i_0_ = 0;
	    byte[] is = Class655.method7781(1024, (byte) 63);
	    while (i_0_ >= 0) {
		try {
		    i_0_ = inputstream.read(is);
		} catch (IOException ioexception) {
		    ioexception.printStackTrace();
		    i_0_ = -1;
		}
		if (i_0_ > 0) {
		    if (-1980757211 * class487_sub17.anInt10192 + i_0_
			>= class487_sub17.aByteArray10193.length) {
			int i_1_
			    = class487_sub17.aByteArray10193.length + 10240;
			byte[] is_2_
			    = Class655.method7780(i_1_, true, (byte) 32);
			System.arraycopy(class487_sub17.aByteArray10193, 0,
					 is_2_, 0,
					 (-1980757211
					  * class487_sub17.anInt10192));
			Class655.method7782(class487_sub17.aByteArray10193,
					    122540903);
			class487_sub17.aByteArray10193 = is_2_;
		    }
		    class487_sub17.method9213(is, 0, i_0_, (byte) 0);
		}
	    }
	    for (int i_3_ = 0;
		 (i_3_
		  < (((Class487_Sub35_Sub10_Sub3) class487_sub35_sub10_sub3)
		     .anInt11802) * 1749333897);
		 i_3_++)
		class487_sub17.method9201(0, (byte) 28);
	    byte[] is_4_ = new byte[class487_sub17.anInt10192 * -1980757211];
	    System.arraycopy(class487_sub17.aByteArray10193, 0, is_4_, 0,
			     -1980757211 * class487_sub17.anInt10192);
	    class487_sub17.method9279(611493299);
	    Object object = null;
	    Class655.method7782(is, -1100927363);
	    Object object_5_ = null;
	    ((Class392) this).aByteArray4530 = is_4_;
	    try {
		inputstream.close();
	    } catch (IOException ioexception) {
		ioexception.printStackTrace();
	    }
	}
	((Class487_Sub35_Sub10_Sub3) class487_sub35_sub10_sub3).aBool11429
	    = false;
	class442.method5357((byte) -5);
    }
    
    byte[] method4711() {
	return ((Class392) this).aByteArray4530;
    }
    
    static final void method4712(Class612 class612, int i) {
	int i_6_
	    = (((Class612) class612).anIntArray8021
	       [(((Class612) class612).anInt8022 -= 201091009) * -40654783]);
	((Class612) class612).anIntArray8021
	    [(((Class612) class612).anInt8022 += 201091009) * -40654783 - 1]
	    = Class447.aClass487_Sub42_5156.aClass637_Sub13_10501
		  .method7602(i_6_, (byte) 65);
    }
    
    static final void method4713(Class612 class612, byte i) {
	Class625 class625 = (((Class612) class612).aBool8038
			     ? ((Class612) class612).aClass625_8045
			     : ((Class612) class612).aClass625_8029);
	Class211 class211 = ((Class625) class625).aClass211_8099;
	Class203 class203 = ((Class625) class625).aClass203_8100;
	Class533.method6533(class211, class203, class612, 16711935);
    }
    
    static final void method4714(long l) {
	if (client.aClass452_10749.method5545((byte) 0) != null) {
	    if (5 == Class168.anInt1964 * -532631733
		|| Class168.anInt1964 * -532631733 == 2)
		Class487_Sub35.method9429(l);
	    else if (4 == -532631733 * Class168.anInt1964)
		Class523.method6424(l);
	}
	Class369.method4531(Class463.aClass151_5283, (long) client.anInt10698);
	if (client.anInt10870 * -1899467487 != -1)
	    Class298_Sub1.method8818(client.anInt10870 * -1899467487,
				     (byte) -93);
	for (int i = 0; i < client.anInt10928 * -1881551401; i++) {
	    client.aBoolArray10931[i] = client.aBoolArray10843[i];
	    client.aBoolArray10843[i] = false;
	}
	client.anInt10929 = 1943645395 * client.anInt10698;
	Class565.method6887(-1, -1, -813672309);
	if (-1899467487 * client.anInt10870 != -1) {
	    client.anInt10928 = 0;
	    Class539.method6592(222044686);
	}
	Class463.aClass151_5283.method2036();
	Class52.method930(Class463.aClass151_5283, 1384600186);
	int i = Class180.method2703(-657551040);
	if (i == -1)
	    i = 343772343 * client.anInt10862;
	if (i == -1)
	    i = -1648030229 * client.anInt10811;
	Class255.method3539(i, -198798947);
	int i_7_ = (Class54.aClass590_Sub1_Sub5_Sub1_Sub2_626
			.method10512(1390178159)
		    << 8);
	Class396 class396
	    = (Class54.aClass590_Sub1_Sub5_Sub1_Sub2_626.method7182()
	       .aClass396_4540);
	Class194.method2951((Class54.aClass590_Sub1_Sub5_Sub1_Sub2_626
			     .aByte10415),
			    i_7_ + (int) class396.aFloat4545,
			    (int) class396.aFloat4547 + i_7_,
			    client.anInt10785 * -53547465, (byte) 77);
	client.anInt10785 = 0;
    }
    
    static void method4715(byte i) {
	if (Class74.anInt1080 * 891309999 < 102)
	    Class74.anInt1080 += -1624085542;
	if (1697829061 * Class74.anInt1079 != -1
	    && (Class74.aLong1075 * -7470847288738310293L
		< Class222.method3225(1614798300))) {
	    for (int i_8_ = 1697829061 * Class74.anInt1079;
		 i_8_ < Class487_Sub22.aStringArray10227.length; i_8_++) {
		if (Class487_Sub22.aStringArray10227[i_8_]
			.startsWith("pause")) {
		    int i_9_ = 5;
		    try {
			i_9_
			    = Integer.parseInt(Class487_Sub22
						   .aStringArray10227[i_8_]
						   .substring(6));
		    } catch (Exception exception) {
			/* empty */
		    }
		    Class203.method3003(new StringBuilder().append
					    ("Pausing for ").append
					    (i_9_).append
					    (" seconds...").toString(),
					(byte) -25);
		    Class74.anInt1079 = 768093709 * (i_8_ + 1);
		    Class74.aLong1075
			= (Class222.method3225(1813831982)
			   + (long) (i_9_ * 1000)) * 3786625369396239683L;
		    return;
		}
		Class74.aString1074 = Class487_Sub22.aStringArray10227[i_8_];
		Class429.method5252(false, -1225064614);
	    }
	    Class74.anInt1079 = -768093709;
	}
	if (-253055507 * client.anInt10715 != 0) {
	    Class74.anInt1069 -= client.anInt10715 * -1512425717;
	    if (Class74.anInt1069 * -184905341
		>= -1268013691 * Class74.anInt1072)
		Class74.anInt1069
		    = -579967401 * Class74.anInt1072 - -2079980245;
	    if (Class74.anInt1069 * -184905341 < 0)
		Class74.anInt1069 = 0;
	    client.anInt10715 = 0;
	}
	for (int i_10_ = 0; i_10_ < client.anInt10926 * 335283011; i_10_++) {
	    Interface58 interface58 = client.anInterface58Array10747[i_10_];
	    int i_11_ = interface58.method384(1535996526);
	    char c = interface58.method379(365299834);
	    int i_12_ = interface58.method382(290485857);
	    if (84 == i_11_)
		Class429.method5252(false, -1205151303);
	    if (i_11_ == 80)
		Class429.method5252(true, 979812052);
	    else if (i_11_ == 66 && 0 != (i_12_ & 0x4)) {
		if (Class285_Sub1.aClipboard9795 != null) {
		    String string = "";
		    for (int i_13_ = Class74.aStringArray1071.length - 1;
			 i_13_ >= 0; i_13_--) {
			if (null != Class74.aStringArray1071[i_13_]
			    && Class74.aStringArray1071[i_13_].length() > 0)
			    string
				= new StringBuilder().append(string).append
				      (Class74.aStringArray1071[i_13_]).append
				      ('\n').toString();
		    }
		    Class285_Sub1.aClipboard9795
			.setContents(new StringSelection(string), null);
		}
	    } else if (67 == i_11_ && 0 != (i_12_ & 0x4)) {
		if (null != Class285_Sub1.aClipboard9795) {
		    try {
			Transferable transferable
			    = Class285_Sub1.aClipboard9795.getContents(null);
			if (transferable != null) {
			    String string
				= (String) (transferable.getTransferData
					    (DataFlavor.stringFlavor));
			    if (null != string) {
				String[] strings
				    = Class429.method5254(string, '\n',
							  (byte) -8);
				Class535.method6556(strings, 160833203);
			    }
			}
		    } catch (Exception exception) {
			/* empty */
		    }
		}
	    } else if (i_11_ == 85 && Class74.anInt1076 * -1865135523 > 0) {
		Class74.aString1074
		    = new StringBuilder().append
			  (Class74.aString1074.substring(0,
							 (Class74.anInt1076
							  * -1865135523) - 1))
			  .append
			  (Class74.aString1074
			       .substring(Class74.anInt1076 * -1865135523))
			  .toString();
		Class74.anInt1076 -= -734209547;
	    } else if (i_11_ == 101 && (Class74.anInt1076 * -1865135523
					< Class74.aString1074.length()))
		Class74.aString1074
		    = new StringBuilder().append
			  (Class74.aString1074
			       .substring(0, Class74.anInt1076 * -1865135523))
			  .append
			  (Class74.aString1074
			       .substring(1 + -1865135523 * Class74.anInt1076))
			  .toString();
	    else if (i_11_ == 96 && Class74.anInt1076 * -1865135523 > 0)
		Class74.anInt1076 -= -734209547;
	    else if (97 == i_11_ && (-1865135523 * Class74.anInt1076
				     < Class74.aString1074.length()))
		Class74.anInt1076 += -734209547;
	    else if (102 == i_11_)
		Class74.anInt1076 = 0;
	    else if (103 == i_11_)
		Class74.anInt1076 = Class74.aString1074.length() * -734209547;
	    else if (104 == i_11_ && (-1847326685 * Class74.anInt1073
				      < Class74.aStringArray1071.length)) {
		Class74.anInt1073 += 340322187;
		Class590_Sub1_Sub3.method10493((byte) -32);
		Class74.anInt1076 = Class74.aString1074.length() * -734209547;
	    } else if (105 == i_11_ && -1847326685 * Class74.anInt1073 > 0) {
		Class74.anInt1073 -= 340322187;
		Class590_Sub1_Sub3.method10493((byte) -12);
		Class74.anInt1076 = Class74.aString1074.length() * -734209547;
	    } else if (Class377.method4618(c, 1073741823)
		       || "\\/.:, _-+[]~@".indexOf(c) != -1) {
		Class74.aString1074
		    = new StringBuilder().append
			  (Class74.aString1074
			       .substring(0, Class74.anInt1076 * -1865135523))
			  .append
			  (client.anInterface58Array10747[i_10_]
			       .method379(272182301))
			  .append
			  (Class74.aString1074
			       .substring(-1865135523 * Class74.anInt1076))
			  .toString();
		Class74.anInt1076 += -734209547;
	    }
	}
	client.anInt10926 = 0;
	client.anInt10962 = 0;
	Class613.method7433(-758145146);
    }
}
