@SuppressWarnings("resource")
	@Override
	public void perform() throws IOException {
		JarFile gamePack = new JarFile("./data/currentGamePack.jar");
		ZipEntry zipEntry = gamePack.getEntry("inner.pack.gz");
		
		InputStream inputStream = gamePack.getInputStream(zipEntry);
		OutputStream outputStream = new FileOutputStream("./data/inner.pack.gz");
		
		int data;
		while(!((data = inputStream.read()) <= -1)) 
			outputStream.write(data);
		
		outputStream.flush();
		outputStream.close();
		inputStream.close();
		
		BufferedReader params = new BufferedReader(new FileReader("./data/params.txt"));
		
		String line, param0 = null, paramN1 = null;
		while((line = params.readLine()) != null) {
			if(line.contains("document.write('<param name=")) {
				String[] regex = line.split("value=\"");
				if(regex[0].contains("param name=\"0"))
					param0 = regex[1].replace("\">');", "");
				if(regex[0].contains("param name=\"-1"))
					paramN1 = regex[1].replace("\">');", "");
			}
		}
		params.close();		
		HashMap<String, byte[]> classes = Utils.decryptPack(param0, paramN1);
		JarOutputStream jos = new JarOutputStream(new FileOutputStream(new File("./input.jar")));
		for (String key : classes.keySet()) {
			byte[] bytes = classes.get(key);
			jos.putNextEntry(new JarEntry(key.replaceAll("\\.", "/") + ".class"));
			jos.write(bytes);
			jos.closeEntry();

		}
		jos.close();		
		
	}