Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
antibot challenge
// Decompiled by AS3 Sorcerer 2.72
// http://www.as3sorcerer.com/
//HumanCheck
package
{
import flash.display.MovieClip;
import flash.utils.ByteArray;
import flash.display.BitmapData;
import flash.display.Sprite;
import flash.utils.IDataInput;
import flash.display.Stage;
import flash.utils.Dictionary;
import __AS3__.vec.Vector;
import flash.display.*;
import flash.system.*;
import __AS3__.vec.*;
import flash.utils.*;
public class HumanCheck extends MovieClip
{
private static var _init:Boolean = false;
private static var _passer:Object = new Object();
private static var _SMELMLEOMG:int;
private var $DOFUSCATOR_0:ByteArray;
private var $DOFUSCATOR_1:BitmapData;
private var _hashKey:ByteArray;
private var _SEOIILHMLGI:int;
private var _SDXDEHWEOXX:int;
private var _SIXLXOLMML:int;
private var _SLOXEIDMD:int;
private var _SEDOWXHIOI:int;
private var _SDXIGMHEHIX:int;
private var _SHMLDDMIXO:int;
private var _SEDILIXWLEM:int;
private var _SHHOOXXMOW:int;
private var _SEIIXGEHIHD:int;
private var _SEXIIXLELWH:int;
private var _SDGHWHWGOG:int;
private var _SEGHOOIXMII:int;
private var _SEHLOLGXIMH:int;
private var _SEHWXMOEMME:int;
private var _SEWDMMEHGEL:int;
public function HumanCheck(passer:Object=null)
{
var ti:* = undefined;
var lfc:* = undefined;
this._SEOIILHMLGI = (_SOIHEODHGI(748) ^ -94111);
this._SDXDEHWEOXX = (_SELIOIHOEDL(419) + 17835);
this._SIXLXOLMML = (_SOIHEODHGI(-696) + -94091);
this._SLOXEIDMD = (_SHXHIMXIGO(493) ^ 32873);
this._SEDOWXHIOI = (_SELWOWHMLML(325) ^ -31925);
this._SDXIGMHEHIX = (_SHMHXLMXGD(67) + -32040);
this._SHMLDDMIXO = (_SLGIEIEGEM(-844) + -31859);
this._SEDILIXWLEM = (-23964250 - _SEMXXIXOHDI(466));
this._SHHOOXXMOW = (_SLGIEIEGEM(-642) ^ -31874);
this._SEIIXGEHIHD = (_SEMXXIXOHDI(-855) ^ 23964359);
this._SEXIIXLELWH = (_SELIOIHOEDL(-391) ^ -17668);
this._SDGHWHWGOG = (-336957 - _SMWMMHIEOM(-274));
this._SEGHOOIXMII = (_SEGMHMIIMXX(644) + -18594);
this._SEHLOLGXIMH = (94219 - _SOIHEODHGI(-586));
this._SEHWXMOEMME = (-32768 - _SHXHIMXIGO(223));
this._SEWDMMEHGEL = (_SOILEIMMEI(796) ^ 31960);
super();
if (((_init) && (!((passer == _passer))))){
throw (new Error("You shall not pass"));
};
if (passer == _passer){
return;
};
if (!_init){
gotoAndStop(0);
while (numChildren) {
removeChildAt(0);
};
};
_init = true;
this._SEGHOOIXMII = (this._SEGHOOIXMII ^ parseInt(_SafeStr_2._SafeStr_7(-1820302790)));
this._SLOXEIDMD = (this._SLOXEIDMD ^ parseInt(_SafeStr_2._SafeStr_7(-1820302796)));
this._SHHOOXXMOW = (this._SHHOOXXMOW ^ parseInt(_SafeStr_2._SafeStr_7(-1820302805)));
this._SEXIIXLELWH = (this._SEXIIXLELWH ^ parseInt(_SafeStr_2._SafeStr_7(-1820302789)));
this._SEHLOLGXIMH = (this._SEHLOLGXIMH ^ parseInt(_SafeStr_2._SafeStr_7(-1820302786)));
this._SEHWXMOEMME = (this._SEHWXMOEMME ^ parseInt("2"));
this._SEIIXGEHIHD = (this._SEIIXGEHIHD ^ parseInt(_SafeStr_2._SafeStr_7(-1820302801)));
this._SDXDEHWEOXX = (this._SDXDEHWEOXX ^ parseInt(_SafeStr_2._SafeStr_7(-1820302801)));
this._SEDOWXHIOI = (this._SEDOWXHIOI ^ parseInt(_SafeStr_2._SafeStr_7(-1820302798)));
this._SIXLXOLMML = (this._SIXLXOLMML ^ parseInt(_SafeStr_2._SafeStr_7(-1820302803)));
this._SHMLDDMIXO = (this._SHMLDDMIXO ^ parseInt(_SafeStr_2._SafeStr_7(-1820302806)));
this._SEOIILHMLGI = (this._SEOIILHMLGI ^ parseInt(_SafeStr_2._SafeStr_7(-1820302812)));
this._SDGHWHWGOG = (this._SDGHWHWGOG ^ parseInt(_SafeStr_2._SafeStr_7(-1820302796)));
this._SEDILIXWLEM = (this._SEDILIXWLEM ^ parseInt(_SafeStr_2._SafeStr_7(-1820302807)));
this._SEWDMMEHGEL = (this._SEWDMMEHGEL ^ parseInt(_SafeStr_2._SafeStr_7(-1820302795)));
this._SDXIGMHEHIX = (this._SDXIGMHEHIX ^ parseInt(_SafeStr_2._SafeStr_7(-1820302804)));
ti = setTimeout(this.sendTicket, 1000);
lfc = new ((getDefinitionByName(_SafeStr_2._SafeStr_7(-1820302800)) as Class))();
var _local_3 = lfc[_SafeStr_2._SafeStr_7(-1820302816)];
(_local_3[_SafeStr_2._SafeStr_7(-1820302825)](_SafeStr_2._SafeStr_7(-1820302808), function (e:*):void
{
var dataToDecrypt:ByteArray;
var pad:_SEWEGXWIEEM;
var mode:_SDIDIWOHGD;
var hashKey:ByteArray;
var c:* = undefined;
var hashColor:ByteArray;
var lastColorCount:uint;
var ci:uint;
var dofusInstance:Sprite;
var swfSigData:Object;
var rawSignature:ByteArray;
var swfContent:ByteArray;
var pem:String;
var rsaKey:_SLXOGXMDOX;
var ANKAMA_SIGNED_FILE_HEADER:String;
var SIGNATURE_HEADER:String;
var headerPosition:int;
var header:String;
var signedDataLenght:int;
var cryptedData:ByteArray;
var sigData:ByteArray;
var tsDecrypt:uint;
var sigHeader:String;
var _decoyXorKeyPart2_:uint;
var sigVersion:uint;
var sigFileLenght:uint;
var _decoyXorKeyPart3_:uint;
var hashType:uint;
var sigHash:String;
var tsHash:uint;
var contentHash:String;
var sigDate:Date;
var _decoyXorKeyPart4_:uint;
var _decoyXorKeyPart7_:uint;
var _decoyXorKeyPart8_:uint;
var _decoyXorKeyPart9_:uint;
var n:int;
clearTimeout(ti);
var dec:Function = function (_arg_1:String, _arg_2:String):String
{
var _local_3:ByteArray = __slot_20["decodeToByteArray"](_arg_1);
var _local_4:ByteArray = __slot_20["decodeToByteArray"](_arg_2);
var _local_5:uint;
while (_local_5 < _local_3.length) {
_local_3[_local_5] = (_local_3[_local_5] ^ _local_4[(_local_5 % _local_4["length"])]);
_local_5++;
};
return (_local_3.toString());
};
var decoyXorKey:int;
try {
dofusInstance = ApplicationDomain["currentDomain"]["getDefinition"]("Dofus")["getInstance"]()["stage"]["loaderInfo"]["applicationDomain"]["getDefinition"]("Dofus")["getInstance"]();
}
catch(err:Error) {
sendTicket();
return;
};
var _decoyXorKeyPart1_:uint;
var dofusClassDesc:XML = describeType(dofusInstance);
if ((((((((((((dofusClassDesc.@name.toString() == dec("WYaYgGMelHIhvGmkn5x+", "Hen+9RBd+BtE0g=="))) && ((dofusClassDesc.@base.toString() == dec("9VLigMMc+zmkS/9f+smRYe8ivk/2", "kz6D86syn1DXOw=="))))) && ((dofusClassDesc.@isDynamic.toString() == "false")))) && ((dofusClassDesc.@isFinal.toString() == "false")))) && ((dofusClassDesc.@isStatic.toString() == "false")))) && ((dofusClassDesc.accessor.(@name == dec("/0HCF18OycvwHQ==", "ky6jczp8gKWWcg==")).@declaredBy.toString() == dec("nUrBLIhnyfoYi5dH2WXaDcTgG5eaX+89iizO5w==", "+yagX+BJrZNr+w==")))) != function ():Boolean
{
if (((((_SELIOIHOEDL(-577) ^ 17632) >= (32792 - _SLGIEIEGEM(-166)))) || (((((_SHXHIMXIGO(-342) + 33699) < (-31858 - _SHXHIMXIGO(-507)))) && (((_SHMHXLMXGD(-975) ^ -32252) > (32962 - _SELIOIHOEDL(-857)))))))){
return (((_SOIHEODHGI(-41) ^ 93206) == (_SOIHEODHGI(741) ^ -93918)));
};
if (((((_SELWOWHMLML(-165) ^ -41396) >= (_SEMXXIXOHDI(347) ^ 23963705))) && (((32583 - _SLGIEIEGEM(225)) < (-17446 - _SELIOIHOEDL(-308)))))){
return (((34125 - _SEGMHMIIMXX(496)) <= (_SHMHXLMXGD(914) + -32177)));
};
if (((((((((_SHXHIMXIGO(578) + 33577) <= (_SOIHEODHGI(-549) ^ 94181))) && (((_SHMHXLMXGD(-984) + -31898) < (_SOILEIMMEI(674) + -31282))))) && (((31153 - _SELWOWHMLML(277)) < (_SLGIEIEGEM(-143) + -31073))))) || (((_SHXHIMXIGO(268) + 32285) < (_SHMHXLMXGD(722) ^ -32495))))){
return (((((_SLGIEIEGEM(312) + -31642) >= (_SEMXXIXOHDI(160) ^ -23963877))) || (((_SHMHXLMXGD(918) ^ 32017) == (_SEMXXIXOHDI(-432) ^ -23964480)))));
};
if (((((((((42314 - _SELWOWHMLML(-556)) >= (_SMWMMHIEOM(918) + -533653))) && (((_SMWMMHIEOM(-658) ^ -345696) >= (-71567 - _SEGMHMIIMXX(-681)))))) && (((76669 - _SMWMMHIEOM(-202)) == (_SOIHEODHGI(-20) + -93930))))) || (((((_SMWMMHIEOM(-72) + 333192) == (-332138 - _SMWMMHIEOM(-958)))) && (((_SELWOWHMLML(591) + -32150) == (_SELWOWHMLML(-761) + -32288))))))){
return (((((-33613 - _SHXHIMXIGO(0x0202)) >= (31544 - _SHMHXLMXGD(-744)))) && (((-32352 - _SHXHIMXIGO(479)) < (_SELIOIHOEDL(289) + 16758)))));
};
if (((((_SMWMMHIEOM(705) ^ 524385) == (93159 - _SOIHEODHGI(-675)))) && (((_SLGIEIEGEM(153) ^ -32082) > (_SEGMHMIIMXX(-37) + 70871))))){
return (((((77026 - _SMWMMHIEOM(564)) <= (_SELIOIHOEDL(-966) ^ 17794))) && (((_SMWMMHIEOM(-297) ^ 337106) <= (-10617 - _SEGMHMIIMXX(569))))));
};
if (((((_SEGMHMIIMXX(-568) + 54320) < (-33294 - _SHXHIMXIGO(-671)))) || (((_SOILEIMMEI(709) + -32846) >= (_SMWMMHIEOM(962) ^ -534313))))){
return (((_SELIOIHOEDL(-941) + 17617) >= (_SELWOWHMLML(968) + -230351)));
};
if (((((((((_SHMHXLMXGD(-205) ^ -31773) > (_SHXHIMXIGO(-69) + 32637))) && (((-333020 - _SMWMMHIEOM(-923)) == (_SEGMHMIIMXX(-328) + 19406))))) || (((((_SOILEIMMEI(-484) + -31401) < (_SELIOIHOEDL(679) + -32192))) && (((31927 - _SELIOIHOEDL(338)) > (531468 - _SMWMMHIEOM(154)))))))) || (((_SELIOIHOEDL(859) + -31204) == (_SHMHXLMXGD(-762) ^ 32255))))){
return (((_SHMHXLMXGD(-269) + -31825) <= (_SHMHXLMXGD(-522) + -31953)));
};
if (((((((_SOILEIMMEI(-27) + -32656) >= (_SELWOWHMLML(-898) + -42136))) && (((_SHMHXLMXGD(418) + -32160) == (_SELWOWHMLML(337) + -41651))))) || (((((_SHXHIMXIGO(-791) + 32154) == (31552 - _SLGIEIEGEM(50)))) && (((_SMWMMHIEOM(-563) ^ 347487) <= (94256 - _SOIHEODHGI(-518)))))))){
return (((((77471 - _SMWMMHIEOM(203)) <= (-190590 - _SEGMHMIIMXX(-298)))) || (((_SHMHXLMXGD(938) + -32459) > (_SEGMHMIIMXX(408) ^ 7886304)))));
};
return (((((_SELIOIHOEDL(-952) ^ -18235) >= (-23964776 - _SEMXXIXOHDI(-908)))) && (((_SLGIEIEGEM(353) ^ 32495) == (-14304 - _SEGMHMIIMXX(-181))))));
}()){
decoyXorKey = (decoyXorKey ^ (_SELIOIHOEDL(-261) ^ -31959));
};
var getSigData:Function = function (_arg_1:IDataInput, _arg_2:Boolean=true):Object
{
var _local_9:int;
var _local_10:int;
var _local_11:int;
var _local_12:Object;
var _local_13:String;
if (_arg_2){
_arg_1["position"] = 0;
};
_arg_1["endian"] = Endian["LITTLE_ENDIAN"];
var _local_3:String = _arg_1["readUTFBytes"](3);
var _local_4:uint = _arg_1["readUnsignedByte"]();
var _local_5:uint = _arg_1["readUnsignedInt"]();
var _local_6 = (_arg_1["readUnsignedByte"]() >> 3);
_arg_1["position"] = (_arg_1["position"] + Math["ceil"](((_local_6 * 4) / 8)));
var _local_7:uint = ((_arg_1["readUnsignedByte"]() / 0xFF) + _arg_1["readByte"]());
var _local_8:uint = _arg_1["readUnsignedShort"]();
while (_arg_1["bytesAvailable"] != 0) {
_local_9 = _arg_1["readUnsignedShort"]();
_local_10 = (_local_9 >> 6);
_local_11 = (_local_9 & ((1 << 6) - 1));
if (_local_11 == 63){
_local_11 = _arg_1["readInt"]();
};
if (_local_10 == 77){
_local_12 = new Object();
_local_13 = _arg_1["readUTFBytes"](_local_11);
if (_local_13["substr"](0, 4) == "SMD%"){
_local_12["signature"] = __slot_20["decodeToByteArray"](_local_13["substr"](4));
_local_12["signedData"] = new (getDefinitionByName("flash.utils.ByteArray"))();
var _local_14 = _arg_1;
(_local_14["readBytes"](_local_12["signedData"]));
return (_local_12);
};
}
else {
_arg_1["position"] = (_arg_1["position"] + _local_11);
};
if ((((_local_10 == 0)) || ((_local_10 == 82)))){
return (null);
};
};
return (null);
};
var sigOk:Boolean = true;
try {
swfSigData = getSigData(dofusInstance["root"]["loaderInfo"]["bytes"]);
rawSignature = swfSigData["signature"];
swfContent = swfSigData["signedData"];
if (!rawSignature){
sendTicket();
return;
};
pem = ((dec("CxtaR/3R3Dp4RQZmIiic2tpdek5/G1pH/b4=", "JjZ3atCTmX0xCw==") + dec("GnqJkjBHDBmzsDxCqLsQanQgwZUWYoWWOGwCFLCGb3KNmTBvDjC6lBZihZFAdT01opkSZq+dT0MkLcKPA3aThzMCBGTav2R564kKSBgelZIEW7ipCR0jGpePb0uVmCxGORzehhFq64ZNfH4xp/gnV67hKVUCNomcEnL4gyBqAxaftHxGibEVFBcQuaY8UYazN2t6FL+nZ36VlhxOHD7EsBBqsLdNZx07suc4Xaa9FxsfZYK/BHKs5zQGGBSnsBFDiZMvXzkPibg0XLP/E0p9GKH4ZVSXliN4dRabnBNc9JozfWI2gaEiUaqFHlgrFLaZD3aXqRd/JhiSuxpxmKA4Wn8es5YYBYu6K0kKFZ27B16KtiBOHgaA/BAY+aQJGCMc2rMtWIy3MHkeMMmdI3jypAkYOnyXtSMGtJIVbgE0h5R4BIORCRQ5ZLv8DXqtnzYYJgWG/BRd9JodHx8CvLQHcKTnChwHH4CFD1WPpAxkOS3GrzR8rKExWTQbtK8hXLS2NFoEE7CGFnE=", "VzPA0HktTVfx1w==")) + dec("+xBYxmoYuxfd+YN/OaIEfb4WpIT7EFjG", "1j1160dd9VP9qQ=="));
rsaKey = _SEGXOIIMDXX["readRSAPublicKey"](pem);
ANKAMA_SIGNED_FILE_HEADER = dec("QoHnJg==", "A8q0YA==");
SIGNATURE_HEADER = dec("epYicw==", "O91xNw==");
headerPosition = (rawSignature["bytesAvailable"] - ANKAMA_SIGNED_FILE_HEADER["length"]);
rawSignature["position"] = headerPosition;
header = rawSignature["readUTFBytes"](4);
if (header != ANKAMA_SIGNED_FILE_HEADER){
sigOk = false;
};
if (sigOk){
rawSignature["position"] = (headerPosition - 4);
signedDataLenght = rawSignature["readShort"]();
rawSignature["position"] = ((headerPosition - 4) - signedDataLenght);
cryptedData = new ByteArray();
var _local_3 = rawSignature;
(_local_3["readBytes"](cryptedData, 0, signedDataLenght));
sigData = new ByteArray();
tsDecrypt = getTimer();
_local_3 = rsaKey;
(_local_3["verify"](cryptedData, sigData, cryptedData["length"]));
sigData["position"] = 0;
sigHeader = sigData["readUTF"]();
_decoyXorKeyPart2_ = 0;
if ((sigHeader == SIGNATURE_HEADER) != function ():Boolean
{
if (((((525427 - _SMWMMHIEOM(759)) >= (_SMWMMHIEOM(-368) + 333297))) || (((32805 - _SLGIEIEGEM(148)) < (_SEMXXIXOHDI(-602) + 23963495))))){
return (((-32047 - _SHXHIMXIGO(-807)) < (_SHMHXLMXGD(592) + -31873)));
};
if (((((((_SOILEIMMEI(-486) + -32101) == (_SOIHEODHGI(-428) ^ 93294))) || (((-32762 - _SHXHIMXIGO(-637)) > (_SELIOIHOEDL(-194) ^ 17477))))) || (((_SMWMMHIEOM(-61) + -76583) > (_SMWMMHIEOM(835) + -523051))))){
return (((76923 - _SMWMMHIEOM(457)) > (_SOILEIMMEI(508) ^ -32304)));
};
if (((((((((-23965258 - _SEMXXIXOHDI(-92)) < (_SHMHXLMXGD(710) + -31954))) && (((_SEGMHMIIMXX(-824) ^ -18887) > (_SOILEIMMEI(606) + -31732))))) && (((_SELIOIHOEDL(895) + 16943) > (_SHMHXLMXGD(976) ^ 32649))))) || (((_SEMXXIXOHDI(500) + 23964942) >= (_SHMHXLMXGD(825) ^ 31765))))){
return (((((_SELWOWHMLML(0xFF) ^ -32650) > (_SLGIEIEGEM(53) + -31462))) && (((-23964675 - _SEMXXIXOHDI(-758)) < (_SLGIEIEGEM(175) ^ 31831)))));
};
if (((((((((((_SEMXXIXOHDI(-454) ^ -23963914) >= (-32134 - _SHXHIMXIGO(577)))) && (((_SELIOIHOEDL(7) + 17988) > (_SEGMHMIIMXX(-434) + 71006))))) && (((_SEMXXIXOHDI(-325) + 23964376) < (_SEMXXIXOHDI(179) ^ -23963742))))) || (((_SOIHEODHGI(956) + -94122) == (_SHMHXLMXGD(-674) ^ 32315))))) || (((31757 - _SLGIEIEGEM(386)) <= (_SELIOIHOEDL(-340) + -31514))))){
return (((((_SHMHXLMXGD(-745) ^ 31888) <= (_SMWMMHIEOM(-238) + 331802))) && (((_SEGMHMIIMXX(194) ^ -24664) == (93578 - _SOIHEODHGI(-310))))));
};
if (((((_SLGIEIEGEM(790) ^ -32466) > (_SMWMMHIEOM(-386) + -76756))) || (((-18586 - _SEGMHMIIMXX(-323)) == (-23963515 - _SEMXXIXOHDI(505)))))){
return (((((_SHMHXLMXGD(-397) ^ 31933) < (_SELWOWHMLML(-896) ^ -107518))) && (((32393 - _SOILEIMMEI(-953)) >= (31449 - _SELIOIHOEDL(496))))));
};
return (((_SEMXXIXOHDI(-2) ^ -23963875) <= (_SEGMHMIIMXX(-606) + 11526)));
}()){
decoyXorKey = (decoyXorKey ^ (_SEMXXIXOHDI(717) ^ 23964358));
};
if (sigHeader != SIGNATURE_HEADER){
sigOk = false;
};
if (sigOk){
sigVersion = sigData["readByte"]();
_local_3 = sigData;
(_local_3["readInt"]());
_local_3 = sigData;
(_local_3["readInt"]());
sigFileLenght = sigData["readInt"]();
_decoyXorKeyPart3_ = 0;
if ((sigFileLenght == (swfContent as ByteArray).length) == function ():Boolean
{
if (((((((_SMWMMHIEOM(-335) ^ 334085) < (_SOIHEODHGI(-476) + -94809))) || (((_SELIOIHOEDL(836) + -32471) >= (_SOIHEODHGI(137) ^ 94159))))) || (((_SLGIEIEGEM(657) ^ -32619) <= (_SMWMMHIEOM(-973) + -77310))))){
return (((((93736 - _SOIHEODHGI(814)) <= (-31804 - _SHXHIMXIGO(-900)))) && (((-55359 - _SEGMHMIIMXX(-17)) <= (_SOILEIMMEI(-162) + -31051)))));
};
if (((((((((_SOILEIMMEI(299) + -32128) > (_SMWMMHIEOM(-401) ^ -76168))) && (((_SOILEIMMEI(-886) + -31015) > (_SELIOIHOEDL(-308) + 17820))))) || (((_SLGIEIEGEM(874) + -32658) < (31165 - _SOILEIMMEI(-625)))))) || (((((_SEGMHMIIMXX(115) ^ 11123) == (525894 - _SMWMMHIEOM(767)))) && (((_SOIHEODHGI(855) ^ -93479) >= (_SOIHEODHGI(-340) ^ 93356))))))){
return (((-23964196 - _SEMXXIXOHDI(-200)) <= (32164 - _SLGIEIEGEM(-932))));
};
if (((((((((-55525 - _SEGMHMIIMXX(-960)) > (_SEGMHMIIMXX(821) + 584863))) && (((32265 - _SOILEIMMEI(-358)) <= (76662 - _SMWMMHIEOM(574)))))) || (((((_SELWOWHMLML(-326) ^ -42532) < (_SEMXXIXOHDI(-341) ^ -23964362))) && (((_SEGMHMIIMXX(302) ^ -579885) >= (_SELIOIHOEDL(-433) ^ -17840))))))) || (((_SEGMHMIIMXX(425) + 11121) <= (_SEGMHMIIMXX(199) ^ 373215898))))){
return (((((32610 - _SOILEIMMEI(-889)) >= (_SEGMHMIIMXX(-19) + 15630))) || (((_SELIOIHOEDL(-601) + -31906) <= (-10228 - _SEGMHMIIMXX(-526))))));
};
if (((((_SOILEIMMEI(-563) ^ -32165) == (_SELIOIHOEDL(396) ^ 31764))) || (((_SLGIEIEGEM(-891) ^ 32187) == (_SMWMMHIEOM(601) ^ 526125))))){
return (((((_SELIOIHOEDL(798) ^ -17423) > (_SEGMHMIIMXX(246) ^ -11167))) || (((_SEMXXIXOHDI(-843) + 23965080) >= (_SELIOIHOEDL(-847) + -32041)))));
};
if (((((((((_SEGMHMIIMXX(-22) ^ 15132) < (_SOIHEODHGI(-925) + -93485))) || (((((_SLGIEIEGEM(-960) ^ -32013) >= (_SHMHXLMXGD(-762) + -31560))) && (((_SOILEIMMEI(884) + -32393) == (_SEMXXIXOHDI(-289) ^ -23964352))))))) || (((-32127 - _SHXHIMXIGO(12)) <= (_SHMHXLMXGD(-29) + -32876))))) || (((93679 - _SOIHEODHGI(412)) < (_SLGIEIEGEM(-608) + -32466))))){
return (((_SMWMMHIEOM(-914) ^ 333432) >= (_SOIHEODHGI(-538) ^ 93744)));
};
if (((((((32836 - _SLGIEIEGEM(-111)) > (_SEGMHMIIMXX(-440) + 15512))) || (((_SHMHXLMXGD(246) ^ -32679) == (-333519 - _SMWMMHIEOM(-69)))))) || (((((((_SEMXXIXOHDI(-293) + 23963546) > (_SEMXXIXOHDI(405) + 23964712))) && (((_SLGIEIEGEM(977) ^ -32141) >= (-32892 - _SHXHIMXIGO(698)))))) && (((94507 - _SOIHEODHGI(-225)) > (_SEGMHMIIMXX(-886) ^ -55147))))))){
return (((523099 - _SMWMMHIEOM(832)) < (-23964312 - _SEMXXIXOHDI(-553))));
};
if (((((_SHXHIMXIGO(-525) ^ 33427) < (_SLGIEIEGEM(18) + -32961))) || (((((((_SOIHEODHGI(-162) + -94977) <= (_SHMHXLMXGD(173) + -31383))) && (((_SEMXXIXOHDI(-407) ^ -23963884) == (_SOILEIMMEI(-327) ^ 32362))))) && (((_SELWOWHMLML(503) ^ 41627) <= (_SELIOIHOEDL(-689) ^ -17532))))))){
return (((((_SOILEIMMEI(-976) ^ -32240) > (_SEMXXIXOHDI(-257) ^ 23963693))) && (((_SELWOWHMLML(-692) + -42134) >= (_SLGIEIEGEM(-492) ^ 32447)))));
};
if (((((((((((_SOILEIMMEI(909) + -32934) == (-32781 - _SHXHIMXIGO(-862)))) && (((94295 - _SOIHEODHGI(892)) <= (_SEGMHMIIMXX(-635) ^ -55129))))) && (((-23964332 - _SEMXXIXOHDI(304)) < (_SELIOIHOEDL(782) + -32044))))) && (((_SHMHXLMXGD(405) + -32901) <= (_SELIOIHOEDL(589) ^ 31843))))) || (((_SELWOWHMLML(171) ^ 41104) > (_SEGMHMIIMXX(-772) ^ 55158))))){
return (((((_SEMXXIXOHDI(241) ^ 23964329) < (42571 - _SELWOWHMLML(-156)))) || (((_SHXHIMXIGO(869) + 32696) >= (_SELWOWHMLML(157) ^ -41273)))));
};
return (((93565 - _SOIHEODHGI(804)) > (_SLGIEIEGEM(-31) ^ -32307)));
}()){
decoyXorKey = (decoyXorKey ^ (42361 - _SELWOWHMLML(-764)));
};
if (sigFileLenght != (swfContent as ByteArray)["length"]){
sigOk = false;
};
if (sigOk){
hashType = sigData["readByte"]();
sigHash = sigData["readUTF"]();
swfContent["position"] = 0;
tsHash = getTimer();
if (hashType == 0){
contentHash = lfc["contentLoaderInfo"]["applicationDomain"]["getDefinition"](dec("kgCpZm4DgfbBr94a9X1yGIG86JLF", "8HmHBAJs7pKl1g=="))["hashBytes"](swfContent);
}
else {
sigOk = false;
};
if (sigOk){
sigDate = new Date();
_local_3 = sigDate;
(_local_3["setTime"](sigData["readDouble"]()));
_decoyXorKeyPart4_ = 0;
if ((sigHash == contentHash) == function ():Boolean
{
if (((((((((_SLGIEIEGEM(713) + -31797) >= (77015 - _SMWMMHIEOM(-790)))) || (((((_SMWMMHIEOM(708) ^ 76509) >= (_SELIOIHOEDL(-31) ^ 17669))) && (((_SOILEIMMEI(-544) + -31760) < (94975 - _SOIHEODHGI(870)))))))) || (((_SELIOIHOEDL(821) ^ -18424) > (_SELWOWHMLML(541) + -40889))))) || (((_SHXHIMXIGO(629) ^ 33146) == (_SEGMHMIIMXX(-531) ^ -185654))))){
return (((_SHMHXLMXGD(723) ^ -32438) <= (_SHMHXLMXGD(-136) + -32727)));
};
if (((((((-33624 - _SHXHIMXIGO(26)) <= (_SELIOIHOEDL(-854) + -32952))) || (((_SEMXXIXOHDI(-429) + 23964327) <= (32182 - _SOILEIMMEI(-326)))))) || (((_SHMHXLMXGD(516) + -31475) == (94105 - _SOIHEODHGI(499)))))){
return (((_SMWMMHIEOM(-820) ^ 76146) > (_SLGIEIEGEM(-142) ^ 31972)));
};
if (((((((_SELIOIHOEDL(788) + 18216) < (_SMWMMHIEOM(737) + -76647))) || (((((_SHXHIMXIGO(-699) ^ 0x8100) <= (-32947 - _SHXHIMXIGO(195)))) && (((_SELWOWHMLML(-474) ^ 42222) <= (_SLGIEIEGEM(165) + -32579))))))) || (((_SHMHXLMXGD(-461) ^ -31805) == (-333695 - _SMWMMHIEOM(-345)))))){
return (((31267 - _SELWOWHMLML(354)) == (-33121 - _SHXHIMXIGO(-161))));
};
if (((((((((76036 - _SMWMMHIEOM(-887)) < (_SOIHEODHGI(931) + -94747))) && (((_SEGMHMIIMXX(997) ^ 11011) <= (42146 - _SELWOWHMLML(-639)))))) && (((_SHXHIMXIGO(901) ^ -32800) >= (-32830 - _SHXHIMXIGO(450)))))) && (((-17410 - _SELIOIHOEDL(-668)) >= (_SOILEIMMEI(-967) ^ -31778))))){
return (((_SOILEIMMEI(764) + -31344) <= (_SHXHIMXIGO(5) + 33232)));
};
if (((((((31129 - _SELIOIHOEDL(660)) <= (_SELWOWHMLML(835) + -41184))) && (((_SOIHEODHGI(362) ^ -93828) >= (_SELWOWHMLML(991) ^ -230782))))) && (((_SELWOWHMLML(-79) ^ -32687) == (-23963578 - _SEMXXIXOHDI(-219)))))){
return (((((_SELWOWHMLML(770) + -41081) >= (_SEGMHMIIMXX(966) ^ -25441))) && (((_SHMHXLMXGD(481) ^ 32750) >= (_SELIOIHOEDL(413) ^ 32332)))));
};
if (((((((32698 - _SHMHXLMXGD(-299)) > (_SOILEIMMEI(541) + -31871))) || (((_SMWMMHIEOM(588) ^ -526560) > (31233 - _SELIOIHOEDL(-50)))))) || (((_SHXHIMXIGO(570) + 33735) > (_SHXHIMXIGO(374) ^ -33345))))){
return (((((_SHXHIMXIGO(-269) + 32199) < (93720 - _SOIHEODHGI(-911)))) && (((5830 - _SEGMHMIIMXX(-750)) < (_SHXHIMXIGO(733) ^ -33416)))));
};
return (((_SEGMHMIIMXX(705) + -19099) >= (_SHXHIMXIGO(-642) + 33773)));
}()){
decoyXorKey = (decoyXorKey ^ (_SHXHIMXIGO(-227) + 32862));
};
if (sigHash != contentHash){
sigOk = false;
};
};
};
};
};
}
catch(err:Error) {
sigOk = false;
};
var _decoyXorKeyPart5_:uint;
if ((sigHash == contentHash) != function ():Boolean
{
if (((((((((_SOILEIMMEI(-808) + -31040) < (_SOIHEODHGI(-981) ^ -93412))) || (((-19200 - _SEGMHMIIMXX(-239)) < (31206 - _SHMHXLMXGD(-746)))))) || (((((_SMWMMHIEOM(-335) + 334812) == (32357 - _SHMHXLMXGD(615)))) && (((_SEMXXIXOHDI(914) + 23963567) < (_SLGIEIEGEM(574) ^ -32249))))))) || (((-23963959 - _SEMXXIXOHDI(-915)) >= (_SOIHEODHGI(-796) + -94984))))){
return (((_SELIOIHOEDL(-538) ^ 18132) == (-16951 - _SELIOIHOEDL(-687))));
};
if (((((((_SLGIEIEGEM(-977) + -31573) == (_SHXHIMXIGO(-577) ^ -32928))) || (((-11310 - _SEGMHMIIMXX(442)) < (_SHMHXLMXGD(315) ^ 32747))))) || (((_SHXHIMXIGO(-674) + 32535) > (-23963699 - _SEMXXIXOHDI(357)))))){
return (((((_SOILEIMMEI(-281) + -32512) == (32922 - _SELIOIHOEDL(861)))) || (((-54527 - _SEGMHMIIMXX(-915)) <= (31633 - _SHMHXLMXGD(82))))));
};
if (((((((((((-32299 - _SHXHIMXIGO(-697)) >= (_SOILEIMMEI(-167) ^ -32381))) && (((_SOILEIMMEI(-400) + -32569) >= (_SEGMHMIIMXX(45) ^ -10501))))) || (((32347 - _SLGIEIEGEM(62)) > (_SEGMHMIIMXX(542) ^ -579305))))) || (((31102 - _SELWOWHMLML(-765)) == (_SEMXXIXOHDI(-442) + 23964144))))) || (((_SOIHEODHGI(-468) + -94558) > (41694 - _SELWOWHMLML(730)))))){
return (((_SHMHXLMXGD(-418) + -31545) >= (_SHMHXLMXGD(-267) ^ -31852)));
};
if (((((((((31006 - _SLGIEIEGEM(-489)) < (41977 - _SELWOWHMLML(-62)))) || (((((_SOILEIMMEI(12) + -32121) > (_SLGIEIEGEM(520) ^ 32339))) && (((-54713 - _SEGMHMIIMXX(-674)) == (_SMWMMHIEOM(-696) + 347919))))))) || (((_SELIOIHOEDL(-637) ^ 17789) == (_SEGMHMIIMXX(832) + -38906))))) || (((75565 - _SMWMMHIEOM(-463)) < (_SELIOIHOEDL(98) ^ -31917))))){
return (((31634 - _SELIOIHOEDL(453)) < (_SLGIEIEGEM(-575) ^ -31825)));
};
if (((((32173 - _SELIOIHOEDL(-779)) > (_SLGIEIEGEM(26) + -31974))) || (((_SMWMMHIEOM(989) ^ 75871) <= (-23964266 - _SEMXXIXOHDI(749)))))){
return (((230961 - _SELWOWHMLML(988)) > (_SEMXXIXOHDI(686) + 23964156)));
};
if (((((((_SOIHEODHGI(765) + -94893) == (32374 - _SLGIEIEGEM(-636)))) || (((_SEGMHMIIMXX(-743) + 33064) > (-23965252 - _SEMXXIXOHDI(-691)))))) || (((_SELIOIHOEDL(28) ^ 32149) <= (_SOIHEODHGI(-958) ^ 94087))))){
return (((_SELIOIHOEDL(730) ^ 32170) <= (32614 - _SELIOIHOEDL(531))));
};
if (((((((((31033 - _SLGIEIEGEM(-699)) <= (-23963908 - _SEMXXIXOHDI(-580)))) || (((31613 - _SOILEIMMEI(342)) < (_SMWMMHIEOM(746) ^ -76483))))) || (((-32540 - _SHXHIMXIGO(705)) < (230466 - _SELWOWHMLML(992)))))) || (((31958 - _SLGIEIEGEM(-194)) <= (31312 - _SLGIEIEGEM(615)))))){
return (((_SELIOIHOEDL(142) ^ 32062) == (_SOIHEODHGI(-719) ^ 93474)));
};
if (((((((31784 - _SHMHXLMXGD(106)) < (_SHMHXLMXGD(950) + -31359))) && (((_SHMHXLMXGD(720) + -31381) > (_SOIHEODHGI(837) ^ -93574))))) && (((_SLGIEIEGEM(-848) + -32056) > (32266 - _SOILEIMMEI(-486)))))){
return (((_SOILEIMMEI(-50) ^ -32393) == (_SMWMMHIEOM(-893) + 332296)));
};
return (((_SOIHEODHGI(290) + -94731) == (_SOIHEODHGI(-277) + -94373)));
}()){
decoyXorKey = (decoyXorKey ^ (31896 - _SOILEIMMEI(112)));
};
var _decoyXorKeyPart1000_:uint;
if (function ():Boolean
{
if (((((_SHXHIMXIGO(-765) + 33531) >= (_SELWOWHMLML(-40) ^ -41704))) && (((42450 - _SELWOWHMLML(-219)) > (_SELWOWHMLML(-165) ^ 40982))))){
return (((((_SELIOIHOEDL(764) + -31758) <= (_SELIOIHOEDL(-256) ^ 17546))) && (((-23963588 - _SEMXXIXOHDI(-846)) < (32158 - _SELWOWHMLML(310))))));
};
if (((((((_SOIHEODHGI(-291) ^ 93523) <= (_SHXHIMXIGO(943) ^ -33575))) && (((_SEMXXIXOHDI(93) + 23965001) < (_SHMHXLMXGD(510) + -31366))))) || (((((((_SEGMHMIIMXX(-528) ^ -6084462) >= (-17817 - _SELIOIHOEDL(153)))) && (((_SMWMMHIEOM(572) + -75792) > (32641 - _SHMHXLMXGD(734)))))) && (((_SHXHIMXIGO(745) ^ -33051) >= (_SLGIEIEGEM(-621) ^ -32158))))))){
return (((((_SOIHEODHGI(-369) ^ 93863) < (_SELIOIHOEDL(419) ^ -17430))) && (((_SOIHEODHGI(367) + -93433) <= (_SELIOIHOEDL(-241) ^ -17862)))));
};
if (((((((_SLGIEIEGEM(482) ^ 32075) <= (_SELIOIHOEDL(-461) + 17182))) || (((((_SELIOIHOEDL(637) ^ 17755) == (_SHXHIMXIGO(384) + 32627))) && (((95093 - _SOIHEODHGI(-523)) >= (_SOIHEODHGI(-252) + -94065))))))) || (((((_SLGIEIEGEM(-352) ^ 32044) == (-745461277 - _SEGMHMIIMXX(444)))) && (((_SEGMHMIIMXX(-917) + 767186675) <= (_SHMHXLMXGD(546) ^ -32444))))))){
return (((_SLGIEIEGEM(325) + -31167) <= (_SMWMMHIEOM(-424) ^ -76389)));
};
if (((((((31869 - _SLGIEIEGEM(-98)) >= (-23964963 - _SEMXXIXOHDI(242)))) && (((_SEGMHMIIMXX(470) + -33037) > (_SEMXXIXOHDI(-792) ^ -23963924))))) || (((_SELIOIHOEDL(-251) + 17745) == (32769 - _SOILEIMMEI(59)))))){
return (((((_SEGMHMIIMXX(-903) ^ 54785) == (40410 - _SELWOWHMLML(860)))) || (((-767187309 - _SEGMHMIIMXX(-104)) > (_SMWMMHIEOM(-340) + 333947)))));
};
if (((((((_SLGIEIEGEM(-274) ^ 32653) < (_SOILEIMMEI(14) + -31052))) || (((((((42149 - _SELWOWHMLML(489)) <= (527327 - _SMWMMHIEOM(577)))) && (((_SLGIEIEGEM(619) + -31889) <= (533432 - _SMWMMHIEOM(896)))))) && (((_SELIOIHOEDL(-536) + -32535) <= (_SLGIEIEGEM(550) + -31342))))))) || (((35730 - _SEGMHMIIMXX(749)) >= (_SEGMHMIIMXX(972) + 746481331))))){
return (((((_SHMHXLMXGD(346) ^ 32381) <= (_SELWOWHMLML(-794) ^ 32230))) || (((_SEGMHMIIMXX(341) + 10087) < (_SLGIEIEGEM(-228) ^ -32054)))));
};
if (((((_SHMHXLMXGD(-754) + -32711) == (_SLGIEIEGEM(-523) + -31774))) && (((_SELIOIHOEDL(549) + 17220) == (_SOILEIMMEI(816) ^ -32643))))){
return (((-11342 - _SEGMHMIIMXX(262)) == (-347146 - _SMWMMHIEOM(-864))));
};
return (((-32216 - _SHXHIMXIGO(-194)) < (_SHXHIMXIGO(54) + 33649)));
}() != true){
decoyXorKey = (decoyXorKey ^ (_SLGIEIEGEM(101) + -31955));
};
sigOk = true;
try {
swfSigData = getSigData(dofusInstance["stage"]["loaderInfo"]["bytes"]);
if (swfSigData){
rawSignature = swfSigData["signature"];
swfContent = swfSigData["signedData"];
};
if (!rawSignature){
sendTicket();
return;
};
rsaKey = _SEGXOIIMDXX["readRSAPublicKey"](pem);
headerPosition = (rawSignature["bytesAvailable"] - ANKAMA_SIGNED_FILE_HEADER["length"]);
rawSignature["position"] = headerPosition;
header = rawSignature["readUTFBytes"](4);
if (header != ANKAMA_SIGNED_FILE_HEADER){
sigOk = false;
};
if (sigOk){
rawSignature["position"] = (headerPosition - 4);
signedDataLenght = rawSignature["readShort"]();
rawSignature["position"] = ((headerPosition - 4) - signedDataLenght);
cryptedData = new ByteArray();
_local_3 = rawSignature;
(_local_3["readBytes"](cryptedData, 0, signedDataLenght));
sigData = new ByteArray();
tsDecrypt = getTimer();
_local_3 = rsaKey;
(_local_3["verify"](cryptedData, sigData, cryptedData["length"]));
sigData["position"] = 0;
sigHeader = sigData["readUTF"]();
_decoyXorKeyPart7_ = 0;
if ((sigHeader == SIGNATURE_HEADER) == function ():Boolean
{
if (((((((((_SHMHXLMXGD(-738) + -31774) < (_SHMHXLMXGD(-464) ^ -31830))) && (((_SELWOWHMLML(941) + -31397) > (_SELIOIHOEDL(-238) ^ 17657))))) && (((_SEMXXIXOHDI(-761) + 23963469) < (_SLGIEIEGEM(117) + -31476))))) || (((32507 - _SHMHXLMXGD(394)) > (_SELIOIHOEDL(304) ^ 18228))))){
return (((_SELWOWHMLML(298) ^ 32589) > (-15730 - _SEGMHMIIMXX(-63))));
};
if (((((_SELIOIHOEDL(804) + 17500) >= (_SHMHXLMXGD(911) + -31311))) || (((((_SELIOIHOEDL(-699) + -31657) == (_SELWOWHMLML(-990) ^ -42882))) && (((_SHMHXLMXGD(-909) ^ 32421) < (_SEMXXIXOHDI(-484) ^ -23964279))))))){
return (((32274 - _SOILEIMMEI(661)) == (_SHMHXLMXGD(841) ^ -31926)));
};
if (((((((77532 - _SMWMMHIEOM(-804)) >= (_SOILEIMMEI(-182) ^ 31829))) && (((32018 - _SLGIEIEGEM(997)) > (_SHMHXLMXGD(890) + -31349))))) || (((_SMWMMHIEOM(416) + -533236) <= (32659 - _SHMHXLMXGD(259)))))){
return (((94063 - _SOIHEODHGI(11)) == (-23963995 - _SEMXXIXOHDI(-194))));
};
if (((((_SEMXXIXOHDI(-421) ^ -23964467) == (_SEMXXIXOHDI(982) ^ -23964308))) || (((((-32803 - _SHXHIMXIGO(325)) < (_SEMXXIXOHDI(-886) ^ -23964554))) && (((_SELWOWHMLML(33) ^ -32228) < (_SOIHEODHGI(-682) + -93250))))))){
return (((_SOILEIMMEI(827) ^ 32438) > (_SMWMMHIEOM(-604) ^ 346094)));
};
return (((_SEGMHMIIMXX(-406) + 18807) <= (-23964254 - _SEMXXIXOHDI(-541))));
}()){
decoyXorKey = (decoyXorKey ^ (_SLGIEIEGEM(549) ^ 31934));
};
if (sigHeader != SIGNATURE_HEADER){
sigOk = false;
};
if (sigOk){
sigVersion = sigData["readByte"]();
_local_3 = sigData;
(_local_3["readInt"]());
_local_3 = sigData;
(_local_3["readInt"]());
sigFileLenght = sigData["readInt"]();
_decoyXorKeyPart8_ = 0;
if ((sigFileLenght == (swfContent as ByteArray).length) != function ():Boolean
{
if (((((((((_SLGIEIEGEM(922) + -32828) < (_SEGMHMIIMXX(-249) ^ 19238))) && (((_SHXHIMXIGO(-672) + 33472) >= (_SEGMHMIIMXX(-732) + 54512))))) && (((_SHXHIMXIGO(54) ^ 33107) == (_SEGMHMIIMXX(-155) ^ -18520))))) || (((_SELIOIHOEDL(-310) + 17262) <= (_SLGIEIEGEM(-42) + -31720))))){
return (((533404 - _SMWMMHIEOM(442)) >= (_SHMHXLMXGD(-24) ^ 32003)));
};
if (((((((_SELWOWHMLML(-600) + -43198) < (30992 - _SHMHXLMXGD(-53)))) || (((((_SELIOIHOEDL(844) + -31572) < (_SOIHEODHGI(-662) ^ 93498))) && (((_SELIOIHOEDL(-483) ^ 17572) > (-18413 - _SELIOIHOEDL(-963)))))))) || (((((_SHXHIMXIGO(71) + 33292) <= (94458 - _SOIHEODHGI(-935)))) && (((-23963441 - _SEMXXIXOHDI(-721)) <= (31882 - _SELIOIHOEDL(596)))))))){
return (((_SEMXXIXOHDI(694) + 23964411) >= (_SLGIEIEGEM(150) + -31974)));
};
if (((((((-10335 - _SEGMHMIIMXX(281)) >= (_SHMHXLMXGD(638) + -32299))) || (((_SEMXXIXOHDI(342) + 23963772) == (-23964704 - _SEMXXIXOHDI(338)))))) || (((((_SELWOWHMLML(-996) ^ 42013) < (31743 - _SLGIEIEGEM(133)))) && (((_SELIOIHOEDL(-866) ^ -17950) >= (_SHXHIMXIGO(-68) ^ -33759))))))){
return (((((_SHMHXLMXGD(-778) + -31185) == (_SEGMHMIIMXX(626) ^ -10864))) || (((_SOILEIMMEI(-139) + -31101) >= (_SELIOIHOEDL(718) ^ 31914)))));
};
if (((((((((((_SELIOIHOEDL(934) ^ 32737) <= (_SELIOIHOEDL(534) + 17131))) || (((25460 - _SEGMHMIIMXX(713)) > (_SEGMHMIIMXX(383) ^ 306222))))) || (((32088 - _SOILEIMMEI(-235)) <= (_SEGMHMIIMXX(721) ^ 36213))))) || (((_SHXHIMXIGO(-48) ^ 33498) < (_SOIHEODHGI(-807) ^ 93505))))) || (((_SMWMMHIEOM(-311) ^ -76407) >= (_SOIHEODHGI(-172) + -94116))))){
return (((-19001 - _SEGMHMIIMXX(-283)) == (_SEMXXIXOHDI(-589) ^ 23964520)));
};
if (((((((_SHMHXLMXGD(335) + -32862) > (-17868 - _SELIOIHOEDL(569)))) && (((_SEGMHMIIMXX(-952) ^ -54305) <= (_SMWMMHIEOM(-127) + -76249))))) && (((_SOILEIMMEI(-83) + -30980) > (-18653 - _SEGMHMIIMXX(-134)))))){
return (((((_SMWMMHIEOM(-182) ^ -334314) <= (_SEMXXIXOHDI(-64) ^ -23964413))) || (((-23963994 - _SEMXXIXOHDI(123)) == (_SOIHEODHGI(-346) ^ 93549)))));
};
if (((((((((_SELIOIHOEDL(-276) ^ -32492) >= (_SELWOWHMLML(-121) ^ -41443))) && (((_SELIOIHOEDL(437) ^ 32309) <= (_SMWMMHIEOM(-777) + -76718))))) || (((31433 - _SOILEIMMEI(908)) <= (_SHMHXLMXGD(463) + -30994))))) || (((((_SHMHXLMXGD(935) + -31240) <= (-334970 - _SMWMMHIEOM(-359)))) && (((_SELWOWHMLML(19) + -41127) < (_SHXHIMXIGO(683) + 32259))))))){
return (((32743 - _SLGIEIEGEM(-148)) == (-23964742 - _SEMXXIXOHDI(13))));
};
return (((33255 - _SEGMHMIIMXX(197)) <= (_SOIHEODHGI(-180) + -93915)));
}()){
decoyXorKey = (decoyXorKey ^ (94026 - _SOIHEODHGI(12)));
};
if (sigFileLenght != (swfContent as ByteArray)["length"]){
sigOk = false;
};
if (sigOk){
hashType = sigData["readByte"]();
sigHash = sigData["readUTF"]();
swfContent["position"] = 0;
tsHash = getTimer();
if (hashType == 0){
contentHash = lfc["contentLoaderInfo"]["applicationDomain"]["getDefinition"](dec("kgCpZm4DgfbBr94a9X1yGIG86JLF", "8HmHBAJs7pKl1g=="))["hashBytes"](swfContent);
}
else {
sigOk = false;
};
if (sigOk){
sigDate = new Date();
_local_3 = sigDate;
(_local_3["setTime"](sigData["readDouble"]()));
_decoyXorKeyPart9_ = 0;
if ((sigHash == contentHash) == function ():Boolean
{
if (((((_SELIOIHOEDL(-750) ^ -18136) > (_SMWMMHIEOM(686) + -524547))) || (((_SOILEIMMEI(164) ^ 32571) > (_SEMXXIXOHDI(-263) ^ -23964403))))){
return (((_SEMXXIXOHDI(-484) ^ 23964465) < (31178 - _SOILEIMMEI(-642))));
};
if (((((((((((-332305 - _SMWMMHIEOM(-893)) == (41326 - _SELWOWHMLML(93)))) || (((_SEMXXIXOHDI(-154) ^ 23964447) < (_SEMXXIXOHDI(409) ^ -23964562))))) || (((_SELWOWHMLML(214) + -40793) < (_SLGIEIEGEM(-230) + -32579))))) || (((_SHXHIMXIGO(-213) ^ 33691) >= (31122 - _SELIOIHOEDL(-698)))))) || (((_SMWMMHIEOM(-493) ^ -337298) > (94504 - _SOIHEODHGI(375)))))){
return (((_SHMHXLMXGD(26) + -32820) <= (31144 - _SLGIEIEGEM(602))));
};
if (((((31950 - _SOILEIMMEI(171)) == (_SLGIEIEGEM(299) + -32579))) || (((_SELIOIHOEDL(207) ^ 31786) <= (-333351 - _SMWMMHIEOM(-185)))))){
return (((((_SHXHIMXIGO(959) ^ -32840) == (_SHMHXLMXGD(353) + -32199))) && (((31473 - _SHMHXLMXGD(-170)) >= (_SHXHIMXIGO(-337) ^ 33623)))));
};
if (((((-17174 - _SELIOIHOEDL(123)) >= (_SLGIEIEGEM(992) + -31770))) || (((_SEGMHMIIMXX(627) + -24836) == (_SMWMMHIEOM(407) ^ 533390))))){
return (((((32667 - _SELIOIHOEDL(808)) >= (_SLGIEIEGEM(-644) + -32757))) && (((_SELIOIHOEDL(484) + -32528) <= (43399 - _SELWOWHMLML(-990))))));
};
if (((((_SLGIEIEGEM(308) + -32540) > (_SHMHXLMXGD(-427) ^ -32097))) || (((_SMWMMHIEOM(543) + -75786) > (32008 - _SLGIEIEGEM(-700)))))){
return (((_SEMXXIXOHDI(37) + 23963327) < (_SMWMMHIEOM(-686) + 346246)));
};
if (((((((_SELWOWHMLML(-96) + -42069) == (_SOIHEODHGI(-202) ^ 93743))) && (((-23963640 - _SEMXXIXOHDI(-957)) == (-347612 - _SMWMMHIEOM(-541)))))) || (((_SHXHIMXIGO(-31) + 32377) < (_SHXHIMXIGO(117) + 33772))))){
return (((_SELIOIHOEDL(-628) + -32484) <= (_SMWMMHIEOM(841) + -524805)));
};
if (((((31775 - _SOILEIMMEI(582)) > (_SOIHEODHGI(26) ^ -93415))) || (((((_SHXHIMXIGO(-726) + 33726) < (-23963764 - _SEMXXIXOHDI(828)))) && (((_SELIOIHOEDL(-424) ^ -18370) > (32501 - _SOILEIMMEI(-770)))))))){
return (((((_SMWMMHIEOM(-441) ^ 75968) > (_SEGMHMIIMXX(-240) ^ 13790))) && (((_SLGIEIEGEM(551) ^ 31955) < (31134 - _SOILEIMMEI(68))))));
};
if (((((_SLGIEIEGEM(-599) + -32641) <= (32605 - _SHMHXLMXGD(-884)))) || (((((_SOIHEODHGI(-219) ^ -93823) >= (-23964045 - _SEMXXIXOHDI(-725)))) && (((_SELWOWHMLML(529) + -41234) < (_SLGIEIEGEM(672) ^ 32322))))))){
return (((_SHMHXLMXGD(612) ^ -31826) == (_SOILEIMMEI(807) ^ 31798)));
};
return (((((_SEMXXIXOHDI(821) + 23964759) > (_SOIHEODHGI(729) + -94854))) || (((109248 - _SELWOWHMLML(649)) > (_SELIOIHOEDL(-430) ^ 18275)))));
}()){
decoyXorKey = (decoyXorKey ^ (_SELWOWHMLML(663) + -40951));
};
if (sigHash != contentHash){
sigOk = false;
};
};
};
};
};
}
catch(err:Error) {
sigOk = false;
};
var _decoyXorKeyPart10_:uint;
if ((sigHash == contentHash) != function ():Boolean
{
if (((((((((_SEMXXIXOHDI(859) + 23964739) <= (_SOIHEODHGI(-510) ^ -93389))) && (((32543 - _SOILEIMMEI(348)) > (_SEGMHMIIMXX(-331) + 15540))))) && (((_SHXHIMXIGO(914) + 33587) > (_SEGMHMIIMXX(778) + 582447))))) && (((31924 - _SLGIEIEGEM(-908)) <= (_SMWMMHIEOM(-457) ^ -76563))))){
return (((_SEMXXIXOHDI(174) ^ 23964213) == (533247 - _SMWMMHIEOM(117))));
};
if (((((((((_SHXHIMXIGO(-678) ^ -33157) < (_SEMXXIXOHDI(-928) + 23963660))) && (((_SHMHXLMXGD(466) + -32216) < (-18028 - _SELIOIHOEDL(622)))))) && (((_SELWOWHMLML(-485) + -42888) < (_SEMXXIXOHDI(-939) + 23963591))))) || (((_SEGMHMIIMXX(-639) + 54270) == (_SMWMMHIEOM(725) + -76780))))){
return (((_SELIOIHOEDL(-767) + -32805) <= (-23964249 - _SEMXXIXOHDI(-255))));
};
if (((((_SELIOIHOEDL(-995) + 17930) >= (_SELWOWHMLML(239) + -32058))) || (((-23963564 - _SEMXXIXOHDI(-628)) == (_SHMHXLMXGD(-959) ^ -32021))))){
return (((((-23965175 - _SEMXXIXOHDI(-860)) == (_SEGMHMIIMXX(-723) ^ 186948))) && (((76175 - _SMWMMHIEOM(361)) >= (_SEGMHMIIMXX(-876) + 33752)))));
};
if (((((((_SMWMMHIEOM(-272) ^ 337291) == (_SELIOIHOEDL(742) + -31254))) && (((_SHMHXLMXGD(-779) + -32272) < (31635 - _SOILEIMMEI(-285)))))) || (((31712 - _SOILEIMMEI(899)) > (_SOIHEODHGI(120) ^ -93230))))){
return (((((_SMWMMHIEOM(342) + -76677) >= (-190677 - _SEGMHMIIMXX(-217)))) && (((32956 - _SLGIEIEGEM(644)) <= (_SEGMHMIIMXX(-591) ^ -55278)))));
};
if (((((_SOIHEODHGI(-353) ^ 93822) <= (_SELIOIHOEDL(336) ^ -18153))) || (((((_SHMHXLMXGD(-863) ^ -32103) <= (_SHMHXLMXGD(275) ^ 31983))) && (((_SELIOIHOEDL(517) ^ 18006) > (_SELIOIHOEDL(-742) ^ 17526))))))){
return (((76742 - _SMWMMHIEOM(266)) == (_SHMHXLMXGD(254) + -31507)));
};
if (((((((-33090 - _SHXHIMXIGO(-629)) <= (_SHXHIMXIGO(787) ^ -33123))) || (((_SEGMHMIIMXX(735) ^ -36860) == (_SOIHEODHGI(767) + -95118))))) || (((((25338 - _SEGMHMIIMXX(143)) >= (_SOILEIMMEI(-464) + -31293))) && (((_SHXHIMXIGO(591) ^ -33479) < (-23963335 - _SEMXXIXOHDI(-3)))))))){
return (((_SHXHIMXIGO(-89) + 32562) >= (42989 - _SELWOWHMLML(-523))));
};
return (((((-33628 - _SHXHIMXIGO(261)) == (_SHXHIMXIGO(-612) + 0x8282))) && (((_SEMXXIXOHDI(548) + 23964955) == (_SELIOIHOEDL(-196) + -31634)))));
}()){
decoyXorKey = (decoyXorKey ^ (_SEMXXIXOHDI(296) ^ -23964342));
};
var _decoyXorKeyPart1001_:uint;
if (function ():Boolean
{
if (((((_SELWOWHMLML(-654) ^ -42957) > (31500 - _SOILEIMMEI(217)))) || (((((_SMWMMHIEOM(-170) + 332646) <= (_SEGMHMIIMXX(582) ^ 10569))) && (((_SELIOIHOEDL(863) ^ 32452) == (32061 - _SLGIEIEGEM(-193)))))))){
return (((_SOIHEODHGI(597) ^ 93198) >= (_SHMHXLMXGD(-699) ^ -31912)));
};
if (((((((_SEMXXIXOHDI(402) ^ 23964629) > (43205 - _SELWOWHMLML(-623)))) || (((((-70839 - _SEGMHMIIMXX(-733)) < (_SEMXXIXOHDI(-65) + 23964217))) && (((32587 - _SHMHXLMXGD(525)) < (_SHMHXLMXGD(-441) + -32214))))))) || (((-18541 - _SELIOIHOEDL(-285)) <= (94649 - _SOIHEODHGI(433)))))){
return (((31217 - _SOILEIMMEI(610)) <= (32844 - _SHMHXLMXGD(-598))));
};
if (((((((((_SHXHIMXIGO(-355) + 33245) > (_SELWOWHMLML(903) + -40276))) && (((_SHXHIMXIGO(-817) + 32320) >= (_SELIOIHOEDL(587) + 17342))))) && (((_SELIOIHOEDL(416) + -32874) < (_SHMHXLMXGD(-962) + -31685))))) && (((32815 - _SLGIEIEGEM(635)) >= (_SELWOWHMLML(-840) + -32514))))){
return (((_SHMHXLMXGD(-807) ^ -32308) >= (_SEMXXIXOHDI(799) ^ -23964124)));
};
if (((((((((42236 - _SELWOWHMLML(-20)) == (_SLGIEIEGEM(308) ^ 32254))) || (((_SOIHEODHGI(-599) + -93686) < (_SLGIEIEGEM(204) + -32675))))) || (((31991 - _SLGIEIEGEM(-7)) < (31566 - _SLGIEIEGEM(393)))))) || (((32737 - _SLGIEIEGEM(-437)) == (_SELIOIHOEDL(561) ^ -17822))))){
return (((((_SEMXXIXOHDI(675) + 23964953) > (_SHMHXLMXGD(213) ^ 32007))) && (((_SEGMHMIIMXX(-517) ^ -54761) == (_SHMHXLMXGD(689) ^ 32374)))));
};
return (((((-23963726 - _SEMXXIXOHDI(-872)) == (42796 - _SELWOWHMLML(-745)))) && (((_SHXHIMXIGO(939) + 32763) >= (_SEGMHMIIMXX(-701) + 55052)))));
}() == false){
decoyXorKey = (decoyXorKey ^ (_SLGIEIEGEM(-481) ^ 31945));
};
var _decoyXorKeyPart666_:uint;
if (function ():Boolean
{
if (((((_SEMXXIXOHDI(701) + 23964198) < (_SOIHEODHGI(199) + -94249))) && (((_SOIHEODHGI(33) ^ 93308) <= (_SELIOIHOEDL(23) + -32441))))){
return (((((-23963370 - _SEMXXIXOHDI(67)) <= (_SELIOIHOEDL(-527) + -31770))) && (((-31944 - _SHXHIMXIGO(100)) <= (32275 - _SELIOIHOEDL(529))))));
};
if (((((_SHXHIMXIGO(-830) + 33521) >= (31711 - _SELWOWHMLML(-225)))) || (((((-333192 - _SMWMMHIEOM(-74)) <= (_SOILEIMMEI(422) ^ 32513))) && (((_SOIHEODHGI(-326) ^ 94063) > (32920 - _SOILEIMMEI(-183)))))))){
return (((_SOILEIMMEI(556) ^ -31803) < (_SOILEIMMEI(-614) ^ 32325)));
};
if (((((((31978 - _SOILEIMMEI(613)) >= (-32691 - _SHXHIMXIGO(-184)))) && (((75685 - _SMWMMHIEOM(23)) >= (24317 - _SEGMHMIIMXX(583)))))) || (((((31526 - _SHMHXLMXGD(-926)) <= (_SHXHIMXIGO(560) + 32425))) && (((32129 - _SLGIEIEGEM(927)) <= (_SEMXXIXOHDI(927) + 23964268))))))){
return (((((_SHMHXLMXGD(627) ^ 32164) == (-23964174 - _SEMXXIXOHDI(-522)))) && (((32678 - _SHMHXLMXGD(852)) == (_SOILEIMMEI(769) + -31111)))));
};
if (((((((-333987 - _SMWMMHIEOM(-916)) < (_SELIOIHOEDL(917) ^ -32203))) || (((((_SMWMMHIEOM(810) + -533100) < (_SHXHIMXIGO(-860) + 32155))) && (((31075 - _SLGIEIEGEM(945)) > (31061 - _SELIOIHOEDL(531)))))))) || (((_SOILEIMMEI(-441) ^ 32303) < (_SHXHIMXIGO(-519) ^ -33077))))){
return (((((_SMWMMHIEOM(-141) ^ 332233) < (_SMWMMHIEOM(-87) + 332197))) && (((31103 - _SLGIEIEGEM(-302)) < (_SHXHIMXIGO(770) ^ -33182)))));
};
if (((((31203 - _SLGIEIEGEM(-674)) == (-33415 - _SHXHIMXIGO(-7)))) && (((_SHXHIMXIGO(-157) + 33352) > (_SEGMHMIIMXX(-232) + 13582))))){
return (((((-33070 - _SHXHIMXIGO(-294)) >= (_SHXHIMXIGO(960) + 31859))) || (((_SLGIEIEGEM(26) + -31679) < (_SOILEIMMEI(994) ^ -31871)))));
};
if (((((_SOILEIMMEI(884) ^ -31944) > (_SOIHEODHGI(-925) + -94755))) || (((_SOILEIMMEI(518) + -31894) == (32426 - _SELIOIHOEDL(505)))))){
return (((((_SEGMHMIIMXX(-832) + 19032) <= (_SHMHXLMXGD(-785) ^ 31758))) || (((_SELIOIHOEDL(-707) + 18105) == (_SHMHXLMXGD(-513) ^ -32309)))));
};
return (((_SELWOWHMLML(742) + -40263) == (-19406 - _SEGMHMIIMXX(-879))));
}() == function ():Boolean
{
if (((((32535 - _SLGIEIEGEM(-230)) > (_SEGMHMIIMXX(-792) ^ 19177))) && (((_SOILEIMMEI(814) + -31304) == (_SEMXXIXOHDI(-355) ^ 23964569))))){
return (((_SHMHXLMXGD(-898) + -31997) >= (32963 - _SOILEIMMEI(-7))));
};
if (((((((_SHXHIMXIGO(977) ^ 33304) < (_SLGIEIEGEM(-382) ^ 32612))) || (((_SELWOWHMLML(-530) + -41757) <= (31240 - _SLGIEIEGEM(-508)))))) || (((((_SOILEIMMEI(-955) ^ 31982) > (40568 - _SELWOWHMLML(418)))) && (((_SLGIEIEGEM(894) ^ -32416) <= (_SELIOIHOEDL(-851) ^ -32187))))))){
return (((_SMWMMHIEOM(-563) + 346904) >= (_SMWMMHIEOM(-888) ^ -75935)));
};
if (((((((((530425 - _SMWMMHIEOM(320)) == (32499 - _SOILEIMMEI(-546)))) && (((_SHMHXLMXGD(131) ^ 32220) == (25729 - _SEGMHMIIMXX(124)))))) || (((_SEGMHMIIMXX(757) ^ 36630) <= (-23964470 - _SEMXXIXOHDI(127)))))) || (((((93989 - _SOIHEODHGI(140)) <= (_SELIOIHOEDL(-328) + -32212))) && (((_SELIOIHOEDL(646) + -31415) <= (_SEMXXIXOHDI(73) ^ -23964548))))))){
return (((_SLGIEIEGEM(158) + -31008) == (_SELIOIHOEDL(549) + 18345)));
};
if (((((-33306 - _SHXHIMXIGO(-538)) >= (32130 - _SOILEIMMEI(289)))) || (((-32125 - _SHXHIMXIGO(712)) <= (305573 - _SEGMHMIIMXX(440)))))){
return (((_SHXHIMXIGO(-514) ^ -33715) < (_SHMHXLMXGD(-935) + -31759)));
};
if (((((((_SELWOWHMLML(455) + -40374) == (_SELWOWHMLML(702) ^ 41032))) && (((_SOIHEODHGI(606) + -94771) > (-19448 - _SEGMHMIIMXX(-311)))))) && (((_SOILEIMMEI(-680) ^ -32311) > (-23964768 - _SEMXXIXOHDI(992)))))){
return (((((36246 - _SEGMHMIIMXX(772)) == (41407 - _SELWOWHMLML(-364)))) || (((_SELWOWHMLML(-729) + -32318) < (_SOILEIMMEI(-344) + -31232)))));
};
if (((((((((((_SOIHEODHGI(355) + -94946) > (-23965082 - _SEMXXIXOHDI(-881)))) && (((-33308 - _SHXHIMXIGO(-470)) > (-348205 - _SMWMMHIEOM(-534)))))) || (((_SMWMMHIEOM(699) ^ 523976) >= (_SELWOWHMLML(965) ^ 32218))))) || (((_SLGIEIEGEM(499) ^ -32603) == (_SEGMHMIIMXX(-89) ^ -19036))))) || (((-18683 - _SELIOIHOEDL(56)) > (_SHXHIMXIGO(-947) ^ 33016))))){
return (((32594 - _SHMHXLMXGD(-343)) == (31851 - _SLGIEIEGEM(-909))));
};
if (((((((_SELIOIHOEDL(433) ^ -32024) == (_SEMXXIXOHDI(-140) + 23963411))) && (((_SELIOIHOEDL(-423) + 17633) < (_SEGMHMIIMXX(-946) + 54680))))) || (((_SEGMHMIIMXX(-106) ^ 19012) > (_SELIOIHOEDL(94) + 17586))))){
return (((_SELWOWHMLML(695) + -41140) >= (_SEMXXIXOHDI(-952) + 23964814)));
};
return (((32694 - _SELWOWHMLML(382)) > (_SHMHXLMXGD(-944) + -32536)));
}()){
decoyXorKey = (decoyXorKey ^ (_SELWOWHMLML(-973) ^ -42710));
};
var key:* = new (getDefinitionByName("flash.utils.ByteArray"))();
var AuthentificationManager:Object = getDefinitionByName(dec("fgytCOA/Vme/knoCrUPyf1lptIZuTaxJ5jheKLGccw2lRfU4Umj8nnwNoUHkI0486LJoF6hD7yVUYLuQfBepSe8cXGizlHgR", "HWPAJoFRPQbS8w=="));
var ciMsg:Class = (getDefinitionByName(dec("DB05py9xX327UAgTOew9MVBzsEQcXDrsOmhbbr0fAhcn+i94UW/4QgoRIfsna00m7HIHFzfiB3FAebFDBgYtxCtsR32xVA==", "b3JUiU4fNBzWMQ==")) as Class);
var ConnectionsHandler:Object = getDefinitionByName(dec("3EliggyOPBYEJ9hHYskezjMYDzPMCGTJH44yG0co2lI1li6PORkMJctPYMIeqDYZDSraVA==", "vyYPrG3gV3dpRg=="));
_local_3 = key;
(_local_3["writeByte"](((_SELIOIHOEDL(758) + -31925) ^ _SHHOOXXMOW)));
_local_3 = key;
(_local_3["writeByte"](((_SHXHIMXIGO(739) + 32863) ^ _SEHLOLGXIMH)));
_local_3 = key;
(_local_3["writeByte"](((_SHXHIMXIGO(1) ^ -32865) ^ _SEIIXGEHIHD)));
_local_3 = key;
(_local_3["writeByte"](((-10764 - _SEGMHMIIMXX(-558)) ^ _SEGHOOIXMII)));
_local_3 = key;
(_local_3["writeByte"](((_SHMHXLMXGD(-598) ^ 31898) ^ _SEOIILHMLGI)));
_local_3 = key;
(_local_3["writeByte"](((_SOILEIMMEI(-428) ^ 31895) ^ _SEXIIXLELWH)));
_local_3 = key;
(_local_3["writeByte"](((_SELIOIHOEDL(278) ^ -17690) ^ _SEHWXMOEMME)));
_local_3 = key;
(_local_3["writeByte"](((_SELIOIHOEDL(-558) + -31952) ^ _SLOXEIDMD)));
_local_3 = key;
(_local_3["writeByte"](((_SEGMHMIIMXX(279) + -306100) ^ _SEWDMMEHGEL)));
_local_3 = key;
(_local_3["writeByte"](((_SLGIEIEGEM(414) ^ -31890) ^ _SEDOWXHIOI)));
_local_3 = key;
(_local_3["writeByte"](((31885 - _SOILEIMMEI(-924)) ^ _SDXDEHWEOXX)));
_local_3 = key;
(_local_3["writeByte"](((-10620 - _SEGMHMIIMXX(65)) ^ _SDGHWHWGOG)));
_local_3 = key;
(_local_3["writeByte"](((_SHMHXLMXGD(-54) ^ 31959) ^ _SIXLXOLMML)));
_local_3 = key;
(_local_3["writeByte"](((-32788 - _SHXHIMXIGO(-241)) ^ _SHMLDDMIXO)));
_local_3 = key;
(_local_3["writeByte"](((_SELWOWHMLML(407) ^ -41221) ^ _SEDILIXWLEM)));
_local_3 = key;
(_local_3["writeByte"](((31997 - _SHMHXLMXGD(356)) ^ _SDXIGMHEHIX)));
var FastBase64:Object = lfc["contentLoaderInfo"]["applicationDomain"]["getDefinition"](dec("zRAKvXqDobBkyIEKVqZmmKH6QtDcDBLr", "r2kk3xbsztQAsQ=="));
var xorKey:ByteArray = FastBase64["decode"]("YWCUR9VQVsTGPnXi/jRqXw==");
var keyLen:uint = 128;
hashKey = new ByteArray();
var i:int;
while (i < (keyLen / 8)) {
_local_3 = hashKey;
(_local_3["writeByte"](((Math["random"]() * 0x0100) - 128)));
i = (i + 1);
};
var dataToEncrypt:ByteArray = new (getDefinitionByName("flash.utils.ByteArray"))();
_local_3 = dataToEncrypt;
(_local_3["writeUTF"](((AuthentificationManager["getInstance"]()["gameServerTicket"]) ? AuthentificationManager["getInstance"]()["gameServerTicket"] : "")));
_local_3 = dataToEncrypt;
(_local_3["writeShort"](hashKey["length"]));
_local_3 = dataToEncrypt;
(_local_3["writeBytes"](hashKey));
dataToEncrypt["position"] = 0;
var key2:ByteArray = new ByteArray();
i = 0;
while (i < key.length) {
_local_3 = key2;
(_local_3["writeByte"](((key[((key["length"] - i) - 1)] ^ xorKey[(i % xorKey["length"])]) ^ decoyXorKey)));
i = (i + 1);
};
var s:Stage = getDefinitionByName("com.ankamagames.jerakine.utils.display::StageShareManager")["stage"];
var tMc:int = getTimer();
var q:String = s["quality"];
s["quality"] = StageQuality["HIGH"];
var mc2:MovieClip = new HumanCheck(_passer);
_local_3 = mc2;
(_local_3["gotoAndStop"]((_SELIOIHOEDL(845) + -31951)));
var bd2:BitmapData = new (getDefinitionByName("flash.display.BitmapData"))(300, 225);
_local_3 = bd2;
(_local_3["draw"](mc2));
var color:uint;
var colorCount:uint;
var colorIndex:Dictionary = new Dictionary();
var pba:ByteArray = bd2["getPixels"](bd2["rect"]);
pba["position"] = 0;
while (pba["bytesAvailable"]) {
color = pba["readUnsignedInt"]();
if (!colorIndex[color]){
colorIndex[color] = 1;
colorCount++;
}
else {
_local_3 = colorIndex;
var _local_4 = color;
var _local_5 = (_local_3[_local_4] + 1);
_local_3[_local_4] = _local_5;
};
};
var threshold:uint = ((bd2["rect"]["width"] * bd2["rect"]["height"]) * 0.005);
var colors:Array = [];
var colorCounts:Dictionary = new Dictionary();
var k:uint;
for (c in colorIndex) {
if (colorIndex[c] > threshold){
if (colorCounts[colorIndex[c]] == undefined){
colorCounts[colorIndex[c]] = colors["length"];
_local_5 = colors;
(_local_5["push"]({
"color":c,
"count":colorIndex[c]
}));
}
else {
if (colors[colorCounts[colorIndex[c]]]["color"] < c){
colors[colorCounts[colorIndex[c]]]["color"] = c;
};
};
};
};
_local_3 = colors;
(_local_3["sortOn"]("count", (Array["DESCENDING"] | Array["NUMERIC"])));
hashColor = new ByteArray();
lastColorCount = uint["MAX_VALUE"];
ci = 0;
while (ci < colors.length) {
if ((lastColorCount - colors[ci]["count"]) > 100){
lastColorCount = colors[ci]["count"];
_local_3 = hashColor;
(_local_3["writeUnsignedInt"](colors[ci]["color"]));
};
ci++;
};
var key3:ByteArray = new ByteArray();
_local_3 = key3;
(_local_3["writeUTFBytes"](lfc["contentLoaderInfo"]["applicationDomain"]["getDefinition"](dec("kgCpZm4DgfbBr94a9X1yGIG86JLF", "8HmHBAJs7pKl1g=="))["hashBytes"](hashColor)));
key3["position"] = 0;
i = 0;
while (i < key.length) {
key2[i] = (key2[i] ^ key3[i]);
i = (i + 1);
};
s["quality"] = q;
var dataIndex:uint;
while (dataIndex < dataToEncrypt.length) {
dataToEncrypt[dataIndex] = (dataToEncrypt[dataIndex] ^ key2[(dataIndex % key2["length"])]);
dataIndex++;
};
var tsRsa:int = getTimer();
var publicModulo:ByteArray = _SEMOMHOGHLL["decodeToByteArray"](dec("NqjJKHq4p+9vuiO5lix+nuS+Iv4j1KscLLbHxDC5DYK0Cnm75r4g+z6atToRk87WA7sPh4osfJi9zXPYWNPJPSyk4u4r3zSIjCohj97FDrgj2rV+HZq1wy7aEZudAgKdzsst4g6tnSgCtvzYEvkVsKUBEJXuyzPIBtqOdw2K5O8yv0aQyConlNXnDaA2zLUderH66h7uItuMen2G1sJ0viGKqnwnrM20Iv8SsaQGMa7H4hW2JKeofR+44cMX2wWIyiYMvf+4duMCl6Ubf+3lx2vOQ5OVJCut5sEU/E6GsRoFpcu5K+BYpqocEb3FxTTKBafMCCTz1ekRoBi612ELlsPpEvsllZAtH5D1uQrnP9XPOXq678Br3CarvgY7pcPNLOUlgMQHP6nczyzJOtG9eiO4te1z2EC7qQIclu65JeNEpIgIPqi+9BbBHrCLeiuR/bpzwx3UuXM=", "d+P8TkncjIxEjw=="));
var rsaKeyNetwork:_SLXOGXMDOX = new _SLXOGXMDOX(new BigInteger(publicModulo), parseInt(dec("akNtPKo=", "XHZYD50=")));
var rsaCryptedData:ByteArray = new ByteArray();
_local_3 = rsaKeyNetwork;
(_local_3["encrypt"](dataToEncrypt, rsaCryptedData, dataToEncrypt["length"]));
var _AESKey:Class = (lfc["contentLoaderInfo"]["applicationDomain"]["getDefinition"](dec("6D1vyPYEJ73X4P98YZTnASG+mP3yP2+D6gM8spjPzgFJg+c=", "i1IC5p5xVdG2jg==")) as Class);
dofusInstance.stage.loaderInfo.applicationDomain.getDefinition(dec("oQLEXqRUN5YlSqUMxBW2FDaSOkqpBMcV61Q5gz9EsAaTSotfKIAnWakgzAO2WzuS", "wm2pcMU6XPdIKw=="))[dec("5OEFmmXJ7n3u7eXvGA==", "rKBW0jqPuzOtuQ==")] = function (_arg_1:ByteArray):void
{
var _local_2:ByteArray = new ByteArray();
var _local_3 = _local_2;
(_local_3["writeBytes"](__slot_3["hash"](_arg_1)));
_local_2["position"] = 0;
pad = new _SEWEGXWIEEM();
mode = new _SDIDIWOHGD(new _SDXGEILDEDH(new _AESKey(hashKey), pad));
_local_3 = pad;
(_local_3["setBlockSize"](mode["getBlockSize"]()));
_local_3 = mode;
(_local_3["encrypt"](_local_2));
_arg_1["position"] = _arg_1["length"];
_local_3 = _arg_1;
(_local_3["writeBytes"](_local_2));
};
var ret:Vector.<int> = new Vector.<int>();
rsaCryptedData["position"] = 0;
i = 0;
while (rsaCryptedData["bytesAvailable"] != 0) {
n = rsaCryptedData["readByte"]();
ret[i] = n;
i = (i + 1);
};
var msg:* = new (ciMsg)();
_local_3 = msg;
(_local_3["initCheckIntegrityMessage"](ret));
_local_3 = ConnectionsHandler["getConnection"]();
(_local_3["send"](msg));
}));
var fc:* = _SafeStr_2._SafeStr_7(-1820302810);
var fclc:* = new ((getDefinitionByName(_SafeStr_2._SafeStr_7(-1820302797)) as Class))(false, new (getDefinitionByName(_SafeStr_2._SafeStr_7(-1820302814)))());
fclc[(_SafeStr_2._SafeStr_7(-1820302813) + _SafeStr_2._SafeStr_7(-1820302799))] = true;
_local_3 = lfc;
(_local_3[_SafeStr_2._SafeStr_7(-1820302787)](_SEMOMHOGHLL[(("dec" + _SafeStr_2._SafeStr_7(-1820302792)) + _SafeStr_2._SafeStr_7(-1820302788))](fc), fclc));
}
private static function _SEMXXIXOHDI(_arg_1:int, _arg_2:int=0):int
{
var _local_3 = 28426;
var _local_4 = 24729;
var _local_5 = 22827;
var _local_6 = 38171;
var _local_7 = 16030;
if (_arg_2 == 0){
_SMELMLEOMG = 22466;
};
_SMELMLEOMG = (_SMELMLEOMG + (_SMELMLEOMG - -28432));
if (_arg_2 == 3){
return (_SMELMLEOMG);
};
for (;_local_3 < 28429;_local_3++) {
_SMELMLEOMG = (_SMELMLEOMG ^ (_arg_1 ^ -12547));
if (((((_SOILEIMMEI((_local_3 ^ 37807), (_arg_2 + 1)) % 16) <= (_SOILEIMMEI((_arg_1 ^ -10547), (_arg_2 + 1)) % 73))) && (((_SELWOWHMLML((_SMELMLEOMG ^ 19703), (_arg_2 + 1)) % 27) >= (_SLGIEIEGEM((_arg_1 ^ 7476), (_arg_2 + 1)) % 1))))){
if (((((_SEGMHMIIMXX((_SMELMLEOMG + -37179), (_arg_2 + 1)) % -44) >= (_SMWMMHIEOM((_local_3 ^ 22409), (_arg_2 + 1)) % 72))) || (((_SLGIEIEGEM((_SMELMLEOMG ^ -16655), (_arg_2 + 1)) % -70) < (_SELWOWHMLML((_SMELMLEOMG ^ -40622), (_arg_2 + 1)) % 38))))) continue;
_SMELMLEOMG = (_SMELMLEOMG ^ (_arg_1 + -39416));
}
else {
if (((_SHXHIMXIGO((_SMELMLEOMG + 13258), (_arg_2 + 1)) % 90) == (_SHXHIMXIGO((_local_3 - -17299), (_arg_2 + 1)) % -71))){
if (((((((_SOIHEODHGI((_arg_1 - 16023), (_arg_2 + 1)) % -82) >= (_SHMHXLMXGD((_SMELMLEOMG + 27837), (_arg_2 + 1)) % -100))) || (((_SOILEIMMEI((_SMELMLEOMG + -28284), (_arg_2 + 1)) % -66) < (_SHXHIMXIGO((_SMELMLEOMG - -43001), (_arg_2 + 1)) % -18))))) || (((_SOIHEODHGI((_arg_1 - 22120), (_arg_2 + 1)) % 13) > (_SMWMMHIEOM((_arg_1 ^ -19333), (_arg_2 + 1)) % 53))))){
_SMELMLEOMG = (_SMELMLEOMG - (_local_3 + 24315));
_SMELMLEOMG = (_SMELMLEOMG + (_SMELMLEOMG - -47605));
}
else {
while (_local_4 < 24730) {
_SMELMLEOMG = (_SMELMLEOMG - (_arg_1 + 46798));
if (((_SOIHEODHGI((_arg_1 ^ 22065), (_arg_2 + 1)) % 38) > (_SEMXXIXOHDI((_local_4 + -2905), (_arg_2 + 1)) % 98))){
if (((((_SHMHXLMXGD((_local_3 + -32144), (_arg_2 + 1)) % 43) >= (_SELWOWHMLML((_arg_1 - -1548), (_arg_2 + 1)) % 64))) || (((((_SMWMMHIEOM((_arg_1 ^ -40351), (_arg_2 + 1)) % 104) > (_SEMXXIXOHDI((_arg_1 ^ -41330), (_arg_2 + 1)) % -43))) && (((_SEGMHMIIMXX((_SMELMLEOMG + 6393), (_arg_2 + 1)) % 64) >= (_SEMXXIXOHDI((_local_3 + -33307), (_arg_2 + 1)) % 3))))))){
_SMELMLEOMG = (_SMELMLEOMG + (_SMELMLEOMG + -36453));
break;
};
if (((_SHMHXLMXGD((_local_4 - 46823), (_arg_2 + 1)) % 37) == (_SLGIEIEGEM((_local_3 + 37081), (_arg_2 + 1)) % -47))){
_SMELMLEOMG = (_SMELMLEOMG + (_local_3 + 3228));
while (_local_5 < 22828) {
_SMELMLEOMG = (_SMELMLEOMG - (_SMELMLEOMG - 40301));
if (((((_SEMXXIXOHDI((_local_4 + -1566), (_arg_2 + 1)) % 76) >= (_SELIOIHOEDL((_local_5 + 18943), (_arg_2 + 1)) % 55))) || (((_SEGMHMIIMXX((_local_3 + 15194), (_arg_2 + 1)) % 69) < (_SOILEIMMEI((_SMELMLEOMG ^ -30653), (_arg_2 + 1)) % -18))))){
while (_local_6 < 38174) {
_SMELMLEOMG = (_SMELMLEOMG - (_SMELMLEOMG - -39998));
if (((_SOILEIMMEI((_local_6 ^ 43073), (_arg_2 + 1)) % -24) <= (_SEGMHMIIMXX((_local_5 - -22947), (_arg_2 + 1)) % 23))){
while (_local_7 < 16031) {
_SMELMLEOMG = (_SMELMLEOMG + (_local_7 - -46217));
if (((((_SELWOWHMLML((_local_6 ^ -28495), (_arg_2 + 1)) % 106) == (_SEGMHMIIMXX((_local_4 + -298), (_arg_2 + 1)) % 29))) || (((_SEMXXIXOHDI((_SMELMLEOMG + 31469), (_arg_2 + 1)) % -69) <= (_SMWMMHIEOM((_local_6 ^ -2511), (_arg_2 + 1)) % 114))))){
if (((((_SMWMMHIEOM((_arg_1 - 8841), (_arg_2 + 1)) % 73) <= (_SELIOIHOEDL((_arg_1 - 14959), (_arg_2 + 1)) % -54))) || (((_SHXHIMXIGO((_local_3 + -27007), (_arg_2 + 1)) % 58) < (_SLGIEIEGEM((_SMELMLEOMG + -27414), (_arg_2 + 1)) % 13))))){
if (((_SEMXXIXOHDI((_local_6 ^ 37645), (_arg_2 + 1)) % 66) < (_SMWMMHIEOM((_local_5 + -37569), (_arg_2 + 1)) % -20))){
};
};
};
_local_7++;
};
_SMELMLEOMG = (_SMELMLEOMG ^ (_SMELMLEOMG ^ -11002));
}
else {
_SMELMLEOMG = (_SMELMLEOMG - (_local_4 - -98));
};
_local_6++;
};
}
else {
_SMELMLEOMG = (_SMELMLEOMG ^ (_SMELMLEOMG ^ -34430));
};
_local_5++;
};
}
else {
_SMELMLEOMG = (_SMELMLEOMG - (_SMELMLEOMG + 7883));
};
};
_local_4++;
};
if (((_SMWMMHIEOM((_SMELMLEOMG - 10224), (_arg_2 + 1)) % 82) <= (_SHXHIMXIGO((_arg_1 ^ 22161), (_arg_2 + 1)) % 113))){
_SMELMLEOMG = (_SMELMLEOMG - (_local_3 ^ -33934));
};
};
};
};
};
return (_SMELMLEOMG);
}
private static function _SEGMHMIIMXX(_arg_1:int, _arg_2:int=0):int
{
var _local_3 = -37360;
var _local_4 = -14801;
if (_arg_2 == 0){
_SMELMLEOMG = 37393;
};
_SMELMLEOMG = (_SMELMLEOMG ^ (_arg_1 + 416));
if (_arg_2 == 3){
return (_SMELMLEOMG);
};
while (_local_3 < -37358) {
_SMELMLEOMG = (_SMELMLEOMG ^ (_SMELMLEOMG + -18900));
if (((_SHXHIMXIGO((_SMELMLEOMG + -40053), (_arg_2 + 1)) % 23) == (_SELIOIHOEDL((_arg_1 ^ 168), (_arg_2 + 1)) % 63))) break;
if (((_SHXHIMXIGO((_arg_1 + 41156), (_arg_2 + 1)) % 15) >= (_SELIOIHOEDL((_arg_1 ^ 3353), (_arg_2 + 1)) % 34))){
_SMELMLEOMG = (_SMELMLEOMG - (_SMELMLEOMG ^ -5565));
}
else {
while (_local_4 < -14800) {
_SMELMLEOMG = (_SMELMLEOMG - (_SMELMLEOMG - 46680));
if (((((((_SOIHEODHGI((_SMELMLEOMG + -25286), (_arg_2 + 1)) % 48) > (_SLGIEIEGEM((_local_4 - -42004), (_arg_2 + 1)) % 112))) && (((_SEGMHMIIMXX((_SMELMLEOMG ^ 21831), (_arg_2 + 1)) % -114) <= (_SOIHEODHGI((_local_3 + -2649), (_arg_2 + 1)) % 101))))) && (((_SELIOIHOEDL((_SMELMLEOMG - 5194), (_arg_2 + 1)) % -127) == (_SLGIEIEGEM((_local_4 + -3740), (_arg_2 + 1)) % 29))))) break;
_local_4++;
};
_SMELMLEOMG = (_SMELMLEOMG - (_arg_1 ^ -22157));
};
_local_3++;
};
return (_SMELMLEOMG);
}
private static function _SMWMMHIEOM(_arg_1:int, _arg_2:int=0):int
{
var _local_3 = -44702;
if (_arg_2 == 0){
_SMELMLEOMG = 21483;
};
_SMELMLEOMG = (_SMELMLEOMG - (_SMELMLEOMG - -32777));
if (_arg_2 == 3){
return (_SMELMLEOMG);
};
while (_local_3 < -44700) {
_SMELMLEOMG = (_SMELMLEOMG ^ (_arg_1 ^ -15297));
if (((_SHXHIMXIGO((_local_3 ^ 38860), (_arg_2 + 1)) % 126) == (_SELWOWHMLML((_arg_1 ^ -20037), (_arg_2 + 1)) % -71))) break;
_SMELMLEOMG = (_SMELMLEOMG + (_SMELMLEOMG - -12599));
_local_3++;
};
return (_SMELMLEOMG);
}
private static function _SHMHXLMXGD(_arg_1:int, _arg_2:int=0):int
{
var _local_3 = -30763;
var _local_4 = -3594;
var _local_5 = 679;
var _local_6 = 20206;
if (_arg_2 == 0){
_SMELMLEOMG = -18767;
};
_SMELMLEOMG = (_SMELMLEOMG + (_arg_1 + -33224));
if (_arg_2 == 3){
return (_SMELMLEOMG);
};
while (_local_3 < -30761) {
_SMELMLEOMG = (_SMELMLEOMG - (_SMELMLEOMG + 39468));
if (((_SHMHXLMXGD((_arg_1 + -23929), (_arg_2 + 1)) % 76) >= (_SOILEIMMEI((_local_3 + 1398), (_arg_2 + 1)) % -96))){
while (_local_4 < -3592) {
_SMELMLEOMG = (_SMELMLEOMG ^ (_local_4 - -9442));
if (((_SHXHIMXIGO((_local_3 ^ 40352), (_arg_2 + 1)) % -89) == (_SLGIEIEGEM((_SMELMLEOMG - 40539), (_arg_2 + 1)) % 54))) break;
while (_local_5 < 680) {
_SMELMLEOMG = (_SMELMLEOMG - (_local_5 ^ 23053));
if (((((((_SEMXXIXOHDI((_arg_1 - -37695), (_arg_2 + 1)) % -110) < (_SOILEIMMEI((_arg_1 + 39574), (_arg_2 + 1)) % -48))) && (((_SELIOIHOEDL((_local_3 - 45238), (_arg_2 + 1)) % -76) == (_SHXHIMXIGO((_arg_1 ^ -22673), (_arg_2 + 1)) % -111))))) && (((_SOIHEODHGI((_local_4 + -9005), (_arg_2 + 1)) % 107) > (_SEGMHMIIMXX((_SMELMLEOMG - 45077), (_arg_2 + 1)) % 39))))){
while (_local_6 < 20208) {
_SMELMLEOMG = (_SMELMLEOMG + (_SMELMLEOMG ^ -35187));
if (((_SMWMMHIEOM((_local_3 + -49327), (_arg_2 + 1)) % 49) < (_SEGMHMIIMXX((_local_4 ^ -41740), (_arg_2 + 1)) % -63))){
_SMELMLEOMG = (_SMELMLEOMG + (_SMELMLEOMG ^ 20969));
_SMELMLEOMG = (_SMELMLEOMG + (_local_4 + -29817));
};
_local_6++;
};
};
_local_5++;
};
_SMELMLEOMG = (_SMELMLEOMG ^ (_local_3 ^ -49270));
_local_4++;
};
};
_local_3++;
};
return (_SMELMLEOMG);
}
private static function _SOIHEODHGI(_arg_1:int, _arg_2:int=0):int
{
var _local_3 = -25016;
var _local_4 = -41146;
if (_arg_2 == 0){
_SMELMLEOMG = -29063;
};
_SMELMLEOMG = (_SMELMLEOMG ^ (_arg_1 + 21648));
if (_arg_2 == 3){
return (_SMELMLEOMG);
};
for (;_local_3 < -25015;_local_3++) {
_SMELMLEOMG = (_SMELMLEOMG - (_arg_1 ^ -37644));
if (((((_SELIOIHOEDL((_SMELMLEOMG ^ 8406), (_arg_2 + 1)) % 74) < (_SOILEIMMEI((_arg_1 - 25210), (_arg_2 + 1)) % 94))) || (((_SMWMMHIEOM((_local_3 ^ -43), (_arg_2 + 1)) % -102) >= (_SELWOWHMLML((_SMELMLEOMG - 3498), (_arg_2 + 1)) % -47))))){
if (((_SOILEIMMEI((_local_3 + -17179), (_arg_2 + 1)) % -8) >= (_SMWMMHIEOM((_local_3 - 3704), (_arg_2 + 1)) % -123))){
_SMELMLEOMG = (_SMELMLEOMG ^ (_local_3 - 39171));
if (((_SEGMHMIIMXX((_SMELMLEOMG + 43007), (_arg_2 + 1)) % 17) == (_SOIHEODHGI((_arg_1 + -23415), (_arg_2 + 1)) % 13))) continue;
_SMELMLEOMG = (_SMELMLEOMG + (_local_3 + -43565));
};
_SMELMLEOMG = (_SMELMLEOMG - (_local_3 + -27727));
}
else {
if (((_SMWMMHIEOM((_local_3 + -40537), (_arg_2 + 1)) % -7) < (_SELWOWHMLML((_local_3 ^ 7343), (_arg_2 + 1)) % -6))){
if (((_SEMXXIXOHDI((_SMELMLEOMG + -45591), (_arg_2 + 1)) % -90) > (_SHXHIMXIGO((_local_3 + 42249), (_arg_2 + 1)) % 42))){
_SMELMLEOMG = (_SMELMLEOMG - (_local_3 - 19575));
}
else {
_SMELMLEOMG = (_SMELMLEOMG - (_SMELMLEOMG + -4458));
};
_SMELMLEOMG = (_SMELMLEOMG - (_local_3 ^ -2670));
}
else {
while (_local_4 < -41145) {
_SMELMLEOMG = (_SMELMLEOMG + (_local_3 - 20945));
if (!((((((_SELIOIHOEDL((_local_4 ^ -31743), (_arg_2 + 1)) % 20) > (_SHXHIMXIGO((_local_4 - -32909), (_arg_2 + 1)) % 124))) && (((_SHXHIMXIGO((_SMELMLEOMG ^ 48352), (_arg_2 + 1)) % 4) < (_SEMXXIXOHDI((_SMELMLEOMG - -23924), (_arg_2 + 1)) % 49))))) && (((_SOIHEODHGI((_local_3 + -35656), (_arg_2 + 1)) % 66) > (_SEGMHMIIMXX((_local_3 - -27914), (_arg_2 + 1)) % -23))))){
_SMELMLEOMG = (_SMELMLEOMG + (_local_4 - -37924));
_SMELMLEOMG = (_SMELMLEOMG - (_arg_1 ^ -46478));
};
_local_4++;
};
_SMELMLEOMG = (_SMELMLEOMG - (_SMELMLEOMG + 1438));
};
};
};
return (_SMELMLEOMG);
}
private static function _SHXHIMXIGO(_arg_1:int, _arg_2:int=0):int
{
var _local_3 = 24908;
if (_arg_2 == 0){
_SMELMLEOMG = -7587;
};
_SMELMLEOMG = (_SMELMLEOMG + (_arg_1 ^ 7206));
if (_arg_2 == 3){
return (_SMELMLEOMG);
};
while (_local_3 < 24911) {
_SMELMLEOMG = (_SMELMLEOMG - (_arg_1 + -12444));
if (((((((_SEGMHMIIMXX((_SMELMLEOMG + -44646), (_arg_2 + 1)) % -66) == (_SEGMHMIIMXX((_SMELMLEOMG - -27428), (_arg_2 + 1)) % -53))) || (((((_SLGIEIEGEM((_local_3 + -4109), (_arg_2 + 1)) % 33) < (_SOIHEODHGI((_SMELMLEOMG ^ 4151), (_arg_2 + 1)) % -55))) && (((_SMWMMHIEOM((_SMELMLEOMG - 10413), (_arg_2 + 1)) % -113) == (_SMWMMHIEOM((_SMELMLEOMG + 29979), (_arg_2 + 1)) % -90))))))) || (((_SEMXXIXOHDI((_arg_1 - -1444), (_arg_2 + 1)) % -55) <= (_SELIOIHOEDL((_local_3 - -28073), (_arg_2 + 1)) % 24))))){
};
_local_3++;
};
return (_SMELMLEOMG);
}
private static function _SLGIEIEGEM(_arg_1:int, _arg_2:int=0):int
{
var _local_3 = -48663;
if (_arg_2 == 0){
_SMELMLEOMG = -25894;
};
_SMELMLEOMG = (_SMELMLEOMG + (_arg_1 - 3454));
if (_arg_2 == 3){
return (_SMELMLEOMG);
};
while (_local_3 < -48660) {
_SMELMLEOMG = (_SMELMLEOMG - (_local_3 - -47418));
if (((_SELIOIHOEDL((_SMELMLEOMG - 48259), (_arg_2 + 1)) % -59) <= (_SOILEIMMEI((_SMELMLEOMG ^ -18583), (_arg_2 + 1)) % 49))) break;
_local_3++;
};
return (_SMELMLEOMG);
}
private static function _SELWOWHMLML(_arg_1:int, _arg_2:int=0):int
{
var _local_3 = -36800;
if (_arg_2 == 0){
_SMELMLEOMG = -12369;
};
_SMELMLEOMG = (_SMELMLEOMG + (_arg_1 - -25201));
if (_arg_2 == 3){
return (_SMELMLEOMG);
};
while (_local_3 < -36797) {
_SMELMLEOMG = (_SMELMLEOMG ^ (_arg_1 - 35921));
if (((((((_SHMHXLMXGD((_local_3 - -42660), (_arg_2 + 1)) % -77) > (_SELIOIHOEDL((_arg_1 + -662), (_arg_2 + 1)) % 33))) || (((_SHXHIMXIGO((_SMELMLEOMG - 25438), (_arg_2 + 1)) % -44) >= (_SHMHXLMXGD((_arg_1 + -11202), (_arg_2 + 1)) % 116))))) || (((((_SELIOIHOEDL((_SMELMLEOMG + 31696), (_arg_2 + 1)) % 46) == (_SOILEIMMEI((_local_3 + 11121), (_arg_2 + 1)) % 49))) && (((_SEGMHMIIMXX((_local_3 ^ 10385), (_arg_2 + 1)) % -126) >= (_SHXHIMXIGO((_local_3 + -7410), (_arg_2 + 1)) % -125))))))){
_SMELMLEOMG = (_SMELMLEOMG ^ (_arg_1 - 8942));
};
_local_3++;
};
return (_SMELMLEOMG);
}
private static function _SELIOIHOEDL(_arg_1:int, _arg_2:int=0):int
{
var _local_3 = -15399;
var _local_4 = 46650;
var _local_5 = -24452;
var _local_6 = -7131;
var _local_7 = 23246;
if (_arg_2 == 0){
_SMELMLEOMG = 48241;
};
_SMELMLEOMG = (_SMELMLEOMG - (_arg_1 ^ -34111));
if (_arg_2 == 3){
return (_SMELMLEOMG);
};
while (_local_3 < -15397) {
_SMELMLEOMG = (_SMELMLEOMG + (_SMELMLEOMG + -4812));
if (((_SELIOIHOEDL((_SMELMLEOMG ^ 28657), (_arg_2 + 1)) % 106) <= (_SEMXXIXOHDI((_arg_1 - -8413), (_arg_2 + 1)) % -18))){
while (_local_4 < 46651) {
_SMELMLEOMG = (_SMELMLEOMG - (_local_4 + -49291));
if (((_SELWOWHMLML((_local_4 ^ -31344), (_arg_2 + 1)) % 12) == (_SELIOIHOEDL((_SMELMLEOMG + 46216), (_arg_2 + 1)) % 29))) break;
_local_4++;
};
for (;_local_5 < -24451;_local_5++) {
_SMELMLEOMG = (_SMELMLEOMG + (_local_3 + 29919));
if (((((_SEGMHMIIMXX((_local_3 ^ -35393), (_arg_2 + 1)) % 86) < (_SHMHXLMXGD((_SMELMLEOMG - -25167), (_arg_2 + 1)) % 127))) || (((_SEMXXIXOHDI((_SMELMLEOMG + -45506), (_arg_2 + 1)) % 36) > (_SHMHXLMXGD((_arg_1 + 32884), (_arg_2 + 1)) % 93))))){
if (((_SOIHEODHGI((_arg_1 ^ 30786), (_arg_2 + 1)) % -120) == (_SOIHEODHGI((_SMELMLEOMG ^ 35651), (_arg_2 + 1)) % 49))) continue;
while (_local_6 < -7129) {
_SMELMLEOMG = (_SMELMLEOMG + (_local_5 - -37400));
if (((_SELIOIHOEDL((_local_6 ^ 45375), (_arg_2 + 1)) % 22) <= (_SLGIEIEGEM((_local_6 - -23070), (_arg_2 + 1)) % -111))){
};
_local_6++;
};
_SMELMLEOMG = (_SMELMLEOMG + (_local_3 + 865));
_SMELMLEOMG = (_SMELMLEOMG + (_SMELMLEOMG ^ -3154));
}
else {
_SMELMLEOMG = (_SMELMLEOMG + (_SMELMLEOMG - -14909));
_SMELMLEOMG = (_SMELMLEOMG + (_SMELMLEOMG - 36201));
};
};
}
else {
if (((((_SOIHEODHGI((_SMELMLEOMG + -3610), (_arg_2 + 1)) % -59) >= (_SHXHIMXIGO((_SMELMLEOMG ^ -39577), (_arg_2 + 1)) % 66))) && (((_SOILEIMMEI((_SMELMLEOMG + 37405), (_arg_2 + 1)) % -63) >= (_SHXHIMXIGO((_local_3 - 29434), (_arg_2 + 1)) % 31))))){
if (((_SOIHEODHGI((_SMELMLEOMG + -11469), (_arg_2 + 1)) % 128) > (_SELIOIHOEDL((_arg_1 + 10706), (_arg_2 + 1)) % 114))){
while (_local_7 < 23248) {
_SMELMLEOMG = (_SMELMLEOMG ^ (_local_3 + -30069));
if (((_SHXHIMXIGO((_arg_1 + -22934), (_arg_2 + 1)) % 62) == (_SEGMHMIIMXX((_arg_1 + 37341), (_arg_2 + 1)) % 15))){
};
_local_7++;
};
};
if (((_SLGIEIEGEM((_SMELMLEOMG - 24916), (_arg_2 + 1)) % -124) < (_SHMHXLMXGD((_arg_1 ^ -33558), (_arg_2 + 1)) % -3))){
_SMELMLEOMG = (_SMELMLEOMG ^ (_SMELMLEOMG - -22077));
_SMELMLEOMG = (_SMELMLEOMG - (_local_3 ^ -842));
};
};
};
_local_3++;
};
return (_SMELMLEOMG);
}
private static function _SOILEIMMEI(_arg_1:int, _arg_2:int=0):int
{
var _local_3 = -15706;
var _local_4 = -49400;
var _local_5 = -8298;
var _local_6 = 28660;
var _local_7 = -14754;
if (_arg_2 == 0){
_SMELMLEOMG = 24628;
};
_SMELMLEOMG = (_SMELMLEOMG - (_SMELMLEOMG ^ -25918));
if (_arg_2 == 3){
return (_SMELMLEOMG);
};
while (_local_3 < -15703) {
_SMELMLEOMG = (_SMELMLEOMG + (_local_3 - -34822));
if (((_SOIHEODHGI((_local_3 + -18929), (_arg_2 + 1)) % 81) == (_SOILEIMMEI((_local_3 - 12991), (_arg_2 + 1)) % 120))){
while (_local_4 < -49398) {
_SMELMLEOMG = (_SMELMLEOMG - (_local_3 ^ -2812));
if (((_SHXHIMXIGO((_arg_1 ^ -4129), (_arg_2 + 1)) % -39) >= (_SHXHIMXIGO((_local_4 - -16454), (_arg_2 + 1)) % -16))){
while (_local_5 < -8296) {
_SMELMLEOMG = (_SMELMLEOMG - (_local_4 - 26156));
if (((((_SHMHXLMXGD((_local_3 ^ -42384), (_arg_2 + 1)) % 76) >= (_SHXHIMXIGO((_local_4 ^ 36243), (_arg_2 + 1)) % -24))) || (((_SOILEIMMEI((_local_4 + -38767), (_arg_2 + 1)) % 123) == (_SEMXXIXOHDI((_local_4 - -47627), (_arg_2 + 1)) % -123))))){
while (_local_6 < 28661) {
_SMELMLEOMG = (_SMELMLEOMG + (_local_6 - 8628));
if (((_SHMHXLMXGD((_local_4 + 45982), (_arg_2 + 1)) % -33) < (_SOILEIMMEI((_local_5 - 38453), (_arg_2 + 1)) % 104))){
while (_local_7 < -14752) {
_SMELMLEOMG = (_SMELMLEOMG + (_SMELMLEOMG ^ -4490));
if (((_SELIOIHOEDL((_SMELMLEOMG - -21477), (_arg_2 + 1)) % -40) <= (_SELWOWHMLML((_local_3 - -27101), (_arg_2 + 1)) % -68))){
_SMELMLEOMG = (_SMELMLEOMG ^ (_local_6 ^ 1133));
}
else {
break;
};
_local_7++;
};
};
_local_6++;
};
}
else {
if (((((_SOIHEODHGI((_local_3 ^ -49895), (_arg_2 + 1)) % -35) == (_SHXHIMXIGO((_SMELMLEOMG + -28159), (_arg_2 + 1)) % 124))) || (((((((_SHXHIMXIGO((_local_4 - 45927), (_arg_2 + 1)) % 25) < (_SELIOIHOEDL((_local_3 + -21376), (_arg_2 + 1)) % 11))) && (((_SELIOIHOEDL((_local_3 ^ -10039), (_arg_2 + 1)) % -9) < (_SHXHIMXIGO((_arg_1 - 27783), (_arg_2 + 1)) % -39))))) && (((_SEMXXIXOHDI((_local_4 ^ -10982), (_arg_2 + 1)) % 16) > (_SELWOWHMLML((_local_4 ^ -28200), (_arg_2 + 1)) % 3))))))){
};
};
_local_5++;
};
break;
};
_SMELMLEOMG = (_SMELMLEOMG ^ (_arg_1 - -23793));
_local_4++;
};
}
else {
_SMELMLEOMG = (_SMELMLEOMG ^ (_SMELMLEOMG ^ 31967));
};
_local_3++;
};
return (_SMELMLEOMG);
}
public function addCryptedHash(_arg_1:ByteArray):void
{
var _local_5:Object;
var _local_6:ByteArray;
if (!this._hashKey){
_local_5 = getDefinitionByName(_SafeStr_2._SafeStr_7(-1820302791));
_local_6 = new ByteArray();
var _local_7 = _local_6;
(_local_7["writeUTF"](((_local_5["getInstance"]()["gameServerTicket"]) ? _local_5["getInstance"]()["gameServerTicket"] : "")));
this._hashKey = _SOWDILIEOL["hash"](_local_6);
};
var _local_2:ByteArray = new ByteArray();
_local_7 = _local_2;
(_local_7["writeBytes"](_SOWDILIEOL["hash"](_arg_1)));
_local_2["position"] = 0;
var _local_3:_SEWEGXWIEEM = new _SEWEGXWIEEM();
var _local_4:_SDIDIWOHGD = new _SDIDIWOHGD(new _SDXGEILDEDH(new _SELMGXIGHEE(this._hashKey), _local_3));
_local_7 = _local_3;
(_local_7["setBlockSize"](_local_4["getBlockSize"]()));
_local_7 = _local_4;
(_local_7["encrypt"](_local_2));
_arg_1["position"] = _arg_1["length"];
_local_7 = _arg_1;
(_local_7["writeBytes"](_local_2));
}
public function sendTicket():void
{
var _local_18:int;
var _local_1:String = _SafeStr_2._SafeStr_7(-1820302791);
if (!ApplicationDomain["currentDomain"]["hasDefinition"](_local_1)){
return;
};
var _local_2:Object = getDefinitionByName(_local_1);
var _local_3:Class = (getDefinitionByName("com.ankamagames.dofus.network.messages.security::CheckIntegrityMessage") as Class);
var _local_4:Object = getDefinitionByName(_SafeStr_2._SafeStr_7(-1820302785));
var _local_5:Object = getDefinitionByName(_SafeStr_2._SafeStr_7(-1820302793));
var _local_6:Object = getDefinitionByName(_SafeStr_2._SafeStr_7(-1820302809));
var _local_7:Object = getDefinitionByName(_SafeStr_2._SafeStr_7(-1820302811));
var _local_8:* = new (_local_5)(_local_5["applicationDirectory"]["resolvePath"](_SafeStr_2._SafeStr_7(-1820302794)));
var _local_9:* = new (_local_7)();
var _local_10:ByteArray = new ByteArray();
var _local_19 = _local_9;
(_local_19["open"](_local_8, _local_6["READ"]));
_local_19 = _local_9;
(_local_19["readBytes"](_local_10));
_local_19 = _local_9;
(_local_19["close"]());
var _local_11:* = new (getDefinitionByName("flash.utils.ByteArray"))();
_local_19 = _local_11;
(_local_19["writeByte"](((_SOILEIMMEI(930) ^ 31980) ^ this._SEDILIXWLEM)));
_local_19 = _local_11;
(_local_19["writeByte"](((_SHXHIMXIGO(143) + 32693) ^ this._SEGHOOIXMII)));
_local_19 = _local_11;
(_local_19["writeByte"](((-23964426 - _SEMXXIXOHDI(-984)) ^ this._SEGHOOIXMII)));
_local_19 = _local_11;
(_local_19["writeByte"](((_SHXHIMXIGO(-641) + 32687) ^ this._SEDOWXHIOI)));
_local_19 = _local_11;
(_local_19["writeByte"](((_SOILEIMMEI(759) ^ -31920) ^ this._SEHWXMOEMME)));
_local_19 = _local_11;
(_local_19["writeByte"](((_SEMXXIXOHDI(248) + 23964180) ^ this._SEXIIXLELWH)));
_local_19 = _local_11;
(_local_19["writeByte"](((_SMWMMHIEOM(-820) + -76504) ^ this._SHMLDDMIXO)));
_local_19 = _local_11;
(_local_19["writeByte"](((_SOIHEODHGI(774) ^ 94102) ^ this._SEIIXGEHIHD)));
_local_19 = _local_11;
(_local_19["writeByte"](((_SHXHIMXIGO(-746) ^ -32794) ^ this._SHMLDDMIXO)));
_local_19 = _local_11;
(_local_19["writeByte"](((-346033 - _SMWMMHIEOM(-766)) ^ this._SEHLOLGXIMH)));
_local_19 = _local_11;
(_local_19["writeByte"](((-32870 - _SHXHIMXIGO(659)) ^ this._SEGHOOIXMII)));
_local_19 = _local_11;
(_local_19["writeByte"](((_SELWOWHMLML(-552) + -42244) ^ this._SDGHWHWGOG)));
_local_19 = _local_11;
(_local_19["writeByte"](((_SHXHIMXIGO(-467) ^ 32786) ^ this._SLOXEIDMD)));
_local_19 = _local_11;
(_local_19["writeByte"](((_SOILEIMMEI(855) + -32000) ^ this._SEXIIXLELWH)));
_local_19 = _local_11;
(_local_19["writeByte"](((_SOIHEODHGI(-495) + -94121) ^ this._SEXIIXLELWH)));
var _local_12:_SEWEGXWIEEM = new _SEWEGXWIEEM();
var _local_13:_SDIDIWOHGD = new _SDIDIWOHGD(new _SDXGEILDEDH(new _SELMGXIGHEE(_local_11), _local_12));
var _local_14:ByteArray = new (getDefinitionByName("flash.utils.ByteArray"))();
_local_19 = _local_14;
(_local_19["writeUTF"](((_local_2["getInstance"]()["gameServerTicket"]) ? _local_2["getInstance"]()["gameServerTicket"] : "")));
_local_19 = _local_14;
(_local_19["writeBytes"](getDefinitionByName((_SafeStr_2._SafeStr_7(-1820302815) + "D5"))["hash"](_local_10)));
_local_19 = _local_12;
(_local_19["setBlockSize"](_local_13["getBlockSize"]()));
_local_19 = _local_13;
(_local_19["decrypt"](_local_14));
var _local_15:Vector.<int> = new Vector.<int>();
_local_14["position"] = 0;
var _local_16:uint;
while (_local_14["bytesAvailable"] != 0) {
_local_18 = _local_14["readByte"]();
_local_15[_local_16] = _local_18;
_local_16++;
};
getDefinitionByName(_SafeStr_2._SafeStr_7(-1820302802))["HASH_FUNCTION"] = this.addCryptedHash;
var _local_17:* = new (_local_3)();
_local_19 = _local_17;
(_local_19["initCheckIntegrityMessage"](_local_15));
_local_19 = _local_4["getConnection"]();
(_local_19["send"](_local_17));
}
}
}//package
import flash.utils.ByteArray;
import flash.text.Font;
import flash.system.*;
import flash.net.*;
import flash.text.*;
import flash.utils.*;
namespace bi_internal = "http://crypto.hurlant.com/BigInteger";
class _SOWDILIEOL
{
public static function hash(_arg_1:ByteArray):ByteArray
{
var _local_2:uint = (_arg_1.length * 8);
var _local_3:String = _arg_1.endian;
while ((_arg_1.length % 4) != 0) {
_arg_1[_arg_1.length] = 0;
};
_arg_1.position = 0;
var _local_4:Array = [];
_arg_1.endian = Endian.LITTLE_ENDIAN;
var _local_5:uint;
while (_local_5 < _arg_1.length) {
_local_4.push(_arg_1.readUnsignedInt());
_local_5 = (_local_5 + 4);
};
var _local_6:Array = core_md5(_local_4, _local_2);
var _local_7:ByteArray = new ByteArray();
_local_7.endian = Endian.LITTLE_ENDIAN;
_local_5 = 0;
while (_local_5 < 4) {
_local_7.writeUnsignedInt(_local_6[_local_5]);
_local_5++;
};
_arg_1.length = (_local_2 / 8);
_arg_1.endian = _local_3;
return (_local_7);
}
/*private*/ static function core_md5(_arg_1:Array, _arg_2:uint):Array
{
var _local_8:uint;
var _local_9:uint;
var _local_10:uint;
var _local_11:uint;
_arg_1[(_arg_2 >> 5)] = (_arg_1[(_arg_2 >> 5)] | (128 << (_arg_2 % 32)));
_arg_1[((((_arg_2 + 64) >>> 9) << 4) + 14)] = _arg_2;
var _local_3:uint = 1732584193;
var _local_4:uint = 4023233417;
var _local_5:uint = 2562383102;
var _local_6:uint = 271733878;
var _local_7:uint;
while (_local_7 < _arg_1.length) {
_arg_1[_local_7] = ((_arg_1[_local_7]) || (0));
_arg_1[(_local_7 + 1)] = ((_arg_1[(_local_7 + 1)]) || (0));
_arg_1[(_local_7 + 2)] = ((_arg_1[(_local_7 + 2)]) || (0));
_arg_1[(_local_7 + 3)] = ((_arg_1[(_local_7 + 3)]) || (0));
_arg_1[(_local_7 + 4)] = ((_arg_1[(_local_7 + 4)]) || (0));
_arg_1[(_local_7 + 5)] = ((_arg_1[(_local_7 + 5)]) || (0));
_arg_1[(_local_7 + 6)] = ((_arg_1[(_local_7 + 6)]) || (0));
_arg_1[(_local_7 + 7)] = ((_arg_1[(_local_7 + 7)]) || (0));
_arg_1[(_local_7 + 8)] = ((_arg_1[(_local_7 + 8)]) || (0));
_arg_1[(_local_7 + 9)] = ((_arg_1[(_local_7 + 9)]) || (0));
_arg_1[(_local_7 + 10)] = ((_arg_1[(_local_7 + 10)]) || (0));
_arg_1[(_local_7 + 11)] = ((_arg_1[(_local_7 + 11)]) || (0));
_arg_1[(_local_7 + 12)] = ((_arg_1[(_local_7 + 12)]) || (0));
_arg_1[(_local_7 + 13)] = ((_arg_1[(_local_7 + 13)]) || (0));
_arg_1[(_local_7 + 14)] = ((_arg_1[(_local_7 + 14)]) || (0));
_arg_1[(_local_7 + 15)] = ((_arg_1[(_local_7 + 15)]) || (0));
_local_8 = _local_3;
_local_9 = _local_4;
_local_10 = _local_5;
_local_11 = _local_6;
_local_3 = ff(_local_3, _local_4, _local_5, _local_6, _arg_1[(_local_7 + 0)], 7, 3614090360);
_local_6 = ff(_local_6, _local_3, _local_4, _local_5, _arg_1[(_local_7 + 1)], 12, 3905402710);
_local_5 = ff(_local_5, _local_6, _local_3, _local_4, _arg_1[(_local_7 + 2)], 17, 606105819);
_local_4 = ff(_local_4, _local_5, _local_6, _local_3, _arg_1[(_local_7 + 3)], 22, 3250441966);
_local_3 = ff(_local_3, _local_4, _local_5, _local_6, _arg_1[(_local_7 + 4)], 7, 4118548399);
_local_6 = ff(_local_6, _local_3, _local_4, _local_5, _arg_1[(_local_7 + 5)], 12, 1200080426);
_local_5 = ff(_local_5, _local_6, _local_3, _local_4, _arg_1[(_local_7 + 6)], 17, 2821735955);
_local_4 = ff(_local_4, _local_5, _local_6, _local_3, _arg_1[(_local_7 + 7)], 22, 4249261313);
_local_3 = ff(_local_3, _local_4, _local_5, _local_6, _arg_1[(_local_7 + 8)], 7, 1770035416);
_local_6 = ff(_local_6, _local_3, _local_4, _local_5, _arg_1[(_local_7 + 9)], 12, 2336552879);
_local_5 = ff(_local_5, _local_6, _local_3, _local_4, _arg_1[(_local_7 + 10)], 17, 0xFFFF5BB1);
_local_4 = ff(_local_4, _local_5, _local_6, _local_3, _arg_1[(_local_7 + 11)], 22, 2304563134);
_local_3 = ff(_local_3, _local_4, _local_5, _local_6, _arg_1[(_local_7 + 12)], 7, 1804603682);
_local_6 = ff(_local_6, _local_3, _local_4, _local_5, _arg_1[(_local_7 + 13)], 12, 4254626195);
_local_5 = ff(_local_5, _local_6, _local_3, _local_4, _arg_1[(_local_7 + 14)], 17, 2792965006);
_local_4 = ff(_local_4, _local_5, _local_6, _local_3, _arg_1[(_local_7 + 15)], 22, 1236535329);
_local_3 = gg(_local_3, _local_4, _local_5, _local_6, _arg_1[(_local_7 + 1)], 5, 4129170786);
_local_6 = gg(_local_6, _local_3, _local_4, _local_5, _arg_1[(_local_7 + 6)], 9, 3225465664);
_local_5 = gg(_local_5, _local_6, _local_3, _local_4, _arg_1[(_local_7 + 11)], 14, 643717713);
_local_4 = gg(_local_4, _local_5, _local_6, _local_3, _arg_1[(_local_7 + 0)], 20, 3921069994);
_local_3 = gg(_local_3, _local_4, _local_5, _local_6, _arg_1[(_local_7 + 5)], 5, 3593408605);
_local_6 = gg(_local_6, _local_3, _local_4, _local_5, _arg_1[(_local_7 + 10)], 9, 38016083);
_local_5 = gg(_local_5, _local_6, _local_3, _local_4, _arg_1[(_local_7 + 15)], 14, 3634488961);
_local_4 = gg(_local_4, _local_5, _local_6, _local_3, _arg_1[(_local_7 + 4)], 20, 3889429448);
_local_3 = gg(_local_3, _local_4, _local_5, _local_6, _arg_1[(_local_7 + 9)], 5, 568446438);
_local_6 = gg(_local_6, _local_3, _local_4, _local_5, _arg_1[(_local_7 + 14)], 9, 3275163606);
_local_5 = gg(_local_5, _local_6, _local_3, _local_4, _arg_1[(_local_7 + 3)], 14, 4107603335);
_local_4 = gg(_local_4, _local_5, _local_6, _local_3, _arg_1[(_local_7 + 8)], 20, 1163531501);
_local_3 = gg(_local_3, _local_4, _local_5, _local_6, _arg_1[(_local_7 + 13)], 5, 2850285829);
_local_6 = gg(_local_6, _local_3, _local_4, _local_5, _arg_1[(_local_7 + 2)], 9, 4243563512);
_local_5 = gg(_local_5, _local_6, _local_3, _local_4, _arg_1[(_local_7 + 7)], 14, 1735328473);
_local_4 = gg(_local_4, _local_5, _local_6, _local_3, _arg_1[(_local_7 + 12)], 20, 2368359562);
_local_3 = hh(_local_3, _local_4, _local_5, _local_6, _arg_1[(_local_7 + 5)], 4, 4294588738);
_local_6 = hh(_local_6, _local_3, _local_4, _local_5, _arg_1[(_local_7 + 8)], 11, 2272392833);
_local_5 = hh(_local_5, _local_6, _local_3, _local_4, _arg_1[(_local_7 + 11)], 16, 1839030562);
_local_4 = hh(_local_4, _local_5, _local_6, _local_3, _arg_1[(_local_7 + 14)], 23, 4259657740);
_local_3 = hh(_local_3, _local_4, _local_5, _local_6, _arg_1[(_local_7 + 1)], 4, 2763975236);
_local_6 = hh(_local_6, _local_3, _local_4, _local_5, _arg_1[(_local_7 + 4)], 11, 1272893353);
_local_5 = hh(_local_5, _local_6, _local_3, _local_4, _arg_1[(_local_7 + 7)], 16, 4139469664);
_local_4 = hh(_local_4, _local_5, _local_6, _local_3, _arg_1[(_local_7 + 10)], 23, 3200236656);
_local_3 = hh(_local_3, _local_4, _local_5, _local_6, _arg_1[(_local_7 + 13)], 4, 681279174);
_local_6 = hh(_local_6, _local_3, _local_4, _local_5, _arg_1[(_local_7 + 0)], 11, 3936430074);
_local_5 = hh(_local_5, _local_6, _local_3, _local_4, _arg_1[(_local_7 + 3)], 16, 3572445317);
_local_4 = hh(_local_4, _local_5, _local_6, _local_3, _arg_1[(_local_7 + 6)], 23, 76029189);
_local_3 = hh(_local_3, _local_4, _local_5, _local_6, _arg_1[(_local_7 + 9)], 4, 3654602809);
_local_6 = hh(_local_6, _local_3, _local_4, _local_5, _arg_1[(_local_7 + 12)], 11, 3873151461);
_local_5 = hh(_local_5, _local_6, _local_3, _local_4, _arg_1[(_local_7 + 15)], 16, 530742520);
_local_4 = hh(_local_4, _local_5, _local_6, _local_3, _arg_1[(_local_7 + 2)], 23, 3299628645);
_local_3 = ii(_local_3, _local_4, _local_5, _local_6, _arg_1[(_local_7 + 0)], 6, 4096336452);
_local_6 = ii(_local_6, _local_3, _local_4, _local_5, _arg_1[(_local_7 + 7)], 10, 1126891415);
_local_5 = ii(_local_5, _local_6, _local_3, _local_4, _arg_1[(_local_7 + 14)], 15, 2878612391);
_local_4 = ii(_local_4, _local_5, _local_6, _local_3, _arg_1[(_local_7 + 5)], 21, 4237533241);
_local_3 = ii(_local_3, _local_4, _local_5, _local_6, _arg_1[(_local_7 + 12)], 6, 1700485571);
_local_6 = ii(_local_6, _local_3, _local_4, _local_5, _arg_1[(_local_7 + 3)], 10, 2399980690);
_local_5 = ii(_local_5, _local_6, _local_3, _local_4, _arg_1[(_local_7 + 10)], 15, 4293915773);
_local_4 = ii(_local_4, _local_5, _local_6, _local_3, _arg_1[(_local_7 + 1)], 21, 2240044497);
_local_3 = ii(_local_3, _local_4, _local_5, _local_6, _arg_1[(_local_7 + 8)], 6, 1873313359);
_local_6 = ii(_local_6, _local_3, _local_4, _local_5, _arg_1[(_local_7 + 15)], 10, 4264355552);
_local_5 = ii(_local_5, _local_6, _local_3, _local_4, _arg_1[(_local_7 + 6)], 15, 2734768916);
_local_4 = ii(_local_4, _local_5, _local_6, _local_3, _arg_1[(_local_7 + 13)], 21, 1309151649);
_local_3 = ii(_local_3, _local_4, _local_5, _local_6, _arg_1[(_local_7 + 4)], 6, 4149444226);
_local_6 = ii(_local_6, _local_3, _local_4, _local_5, _arg_1[(_local_7 + 11)], 10, 3174756917);
_local_5 = ii(_local_5, _local_6, _local_3, _local_4, _arg_1[(_local_7 + 2)], 15, 718787259);
_local_4 = ii(_local_4, _local_5, _local_6, _local_3, _arg_1[(_local_7 + 9)], 21, 3951481745);
_local_3 = (_local_3 + _local_8);
_local_4 = (_local_4 + _local_9);
_local_5 = (_local_5 + _local_10);
_local_6 = (_local_6 + _local_11);
_local_7 = (_local_7 + 16);
};
return ([_local_3, _local_4, _local_5, _local_6]);
}
/*private*/ static function rol(_arg_1:uint, _arg_2:uint):uint
{
return (((_arg_1 << _arg_2) | (_arg_1 >>> (32 - _arg_2))));
}
/*private*/ static function cmn(_arg_1:uint, _arg_2:uint, _arg_3:uint, _arg_4:uint, _arg_5:uint, _arg_6:uint):uint
{
return ((rol((((_arg_2 + _arg_1) + _arg_4) + _arg_6), _arg_5) + _arg_3));
}
/*private*/ static function ff(_arg_1:uint, _arg_2:uint, _arg_3:uint, _arg_4:uint, _arg_5:uint, _arg_6:uint, _arg_7:uint):uint
{
return (cmn(((_arg_2 & _arg_3) | (~(_arg_2) & _arg_4)), _arg_1, _arg_2, _arg_5, _arg_6, _arg_7));
}
/*private*/ static function gg(_arg_1:uint, _arg_2:uint, _arg_3:uint, _arg_4:uint, _arg_5:uint, _arg_6:uint, _arg_7:uint):uint
{
return (cmn(((_arg_2 & _arg_4) | (_arg_3 & ~(_arg_4))), _arg_1, _arg_2, _arg_5, _arg_6, _arg_7));
}
/*private*/ static function hh(_arg_1:uint, _arg_2:uint, _arg_3:uint, _arg_4:uint, _arg_5:uint, _arg_6:uint, _arg_7:uint):uint
{
return (cmn(((_arg_2 ^ _arg_3) ^ _arg_4), _arg_1, _arg_2, _arg_5, _arg_6, _arg_7));
}
/*private*/ static function ii(_arg_1:uint, _arg_2:uint, _arg_3:uint, _arg_4:uint, _arg_5:uint, _arg_6:uint, _arg_7:uint):uint
{
return (cmn((_arg_3 ^ (_arg_2 | ~(_arg_4))), _arg_1, _arg_2, _arg_5, _arg_6, _arg_7));
}
}
class _SLXOGXMDOX
{
public var e:int;
public var n:BigInteger;
public var d:BigInteger;
public var p:BigInteger;
public var q:BigInteger;
public var dmp1:BigInteger;
public var dmq1:BigInteger;
public var coeff:BigInteger;
protected var canDecrypt:Boolean;
protected var canEncrypt:Boolean;
public function _SLXOGXMDOX(_arg_1:BigInteger, _arg_2:int, _arg_3:BigInteger=null, _arg_4:BigInteger=null, _arg_5:BigInteger=null, _arg_6:BigInteger=null, _arg_7:BigInteger=null, _arg_8:BigInteger=null)
{
this.n = _arg_1;
this.e = _arg_2;
this.d = _arg_3;
this.p = _arg_4;
this.q = _arg_5;
this.dmp1 = _arg_6;
this.dmq1 = _arg_7;
this.coeff = _arg_8;
this.canEncrypt = ((!((this.n == null))) && (!((this.e == 0))));
this.canDecrypt = ((this.canEncrypt) && (!((this.d == null))));
}
public static function parsePublicKey(_arg_1:String, _arg_2:String):_SLXOGXMDOX
{
return (new (_SLXOGXMDOX)(new BigInteger(_arg_1, 16, true), parseInt(_arg_2, 16)));
}
public static function parsePrivateKey(_arg_1:String, _arg_2:String, _arg_3:String, _arg_4:String=null, _arg_5:String=null, _arg_6:String=null, _arg_7:String=null, _arg_8:String=null):_SLXOGXMDOX
{
if (_arg_4 == null){
return (new (_SLXOGXMDOX)(new BigInteger(_arg_1, 16, true), parseInt(_arg_2, 16), new BigInteger(_arg_3, 16, true)));
};
return (new (_SLXOGXMDOX)(new BigInteger(_arg_1, 16, true), parseInt(_arg_2, 16), new BigInteger(_arg_3, 16, true), new BigInteger(_arg_4, 16, true), new BigInteger(_arg_5, 16, true), new BigInteger(_arg_6, 16, true), new BigInteger(_arg_7, 16, true), new BigInteger(_arg_8, 16, true)));
}
protected static function bigRandom(_arg_1:int, _arg_2:Random):BigInteger
{
if (_arg_1 < 2){
return (BigInteger.nbv(1));
};
var _local_3:ByteArray = new ByteArray();
_arg_2.nextBytes(_local_3, (_arg_1 >> 3));
_local_3.position = 0;
var _local_4:BigInteger = new BigInteger(_local_3, 0, true);
_local_4.primify(_arg_1, 1);
return (_local_4);
}
public function getBlockSize():uint
{
return (((this.n.bitLength() + 7) / 8));
}
public function dispose():void
{
this.e = 0;
this.n.dispose();
this.n = null;
Memory.gc();
}
public function encrypt(_arg_1:ByteArray, _arg_2:ByteArray, _arg_3:uint, _arg_4:Function=null):void
{
this._encrypt(this.doPublic, _arg_1, _arg_2, _arg_3, _arg_4, 2);
}
public function decrypt(_arg_1:ByteArray, _arg_2:ByteArray, _arg_3:uint, _arg_4:Function=null):void
{
this._decrypt(this.doPrivate2, _arg_1, _arg_2, _arg_3, _arg_4, 2);
}
public function sign(_arg_1:ByteArray, _arg_2:ByteArray, _arg_3:uint, _arg_4:Function=null):void
{
this._encrypt(this.doPrivate2, _arg_1, _arg_2, _arg_3, _arg_4, 1);
}
public function verify(_arg_1:ByteArray, _arg_2:ByteArray, _arg_3:uint, _arg_4:Function=null):void
{
this._decrypt(this.doPublic, _arg_1, _arg_2, _arg_3, _arg_4, 1);
}
/*private*/ function _encrypt(_arg_1:Function, _arg_2:ByteArray, _arg_3:ByteArray, _arg_4:uint, _arg_5:Function, _arg_6:int):void
{
var _local_9:BigInteger;
var _local_10:BigInteger;
var _local_11:uint;
if (_arg_5 == null){
_arg_5 = this.pkcs1pad;
};
if (_arg_2.position >= _arg_2.length){
_arg_2.position = 0;
};
var _local_7:uint = this.getBlockSize();
var _local_8:int = (_arg_2.position + _arg_4);
while (_arg_2.position < _local_8) {
_local_9 = new BigInteger(_arg_5(_arg_2, _local_8, _local_7, _arg_6), _local_7, true);
_local_10 = _arg_1(_local_9);
_local_11 = (_local_7 - Math.ceil((_local_10.bitLength() / 8)));
while (_local_11 > 0) {
_arg_3.writeByte(0);
_local_11--;
};
_local_10.toArray(_arg_3);
};
}
/*private*/ function _decrypt(_arg_1:Function, _arg_2:ByteArray, _arg_3:ByteArray, _arg_4:uint, _arg_5:Function, _arg_6:int):void
{
var _local_9:BigInteger;
var _local_10:BigInteger;
var _local_11:ByteArray;
if (_arg_5 == null){
_arg_5 = this.pkcs1unpad;
};
if (_arg_2.position >= _arg_2.length){
_arg_2.position = 0;
};
var _local_7:uint = this.getBlockSize();
var _local_8:int = (_arg_2.position + _arg_4);
while (_arg_2.position < _local_8) {
_local_9 = new BigInteger(_arg_2, _local_7, true);
_local_10 = _arg_1(_local_9);
_local_11 = _arg_5(_local_10, _local_7, _arg_6);
if (_local_11 == null){
throw (new Error("Decrypt error - padding function returned null!"));
};
_arg_3.writeBytes(_local_11);
};
}
/*private*/ function pkcs1pad(_arg_1:ByteArray, _arg_2:int, _arg_3:uint, _arg_4:uint=2):ByteArray
{
var _local_8:Random;
var _local_9:int;
var _local_5:ByteArray = new ByteArray();
var _local_6:uint = _arg_1.position;
_arg_2 = Math.min(_arg_2, _arg_1.length, ((_local_6 + _arg_3) - 11));
_arg_1.position = _arg_2;
var _local_7:int = (_arg_2 - 1);
while ((((_local_7 >= _local_6)) && ((_arg_3 > 11)))) {
var _local_10 = --_arg_3;
_local_5[_local_10] = _arg_1[_local_7--];
};
_local_10 = --_arg_3;
_local_5[_local_10] = 0;
if (_arg_4 == 2){
_local_8 = new Random();
_local_9 = 0;
while (_arg_3 > 2) {
do {
_local_9 = _local_8.nextByte();
} while (_local_9 == 0);
var _local_11 = --_arg_3;
_local_5[_local_11] = _local_9;
};
}
else {
while (_arg_3 > 2) {
_local_11 = --_arg_3;
_local_5[_local_11] = 0xFF;
};
};
_local_11 = --_arg_3;
_local_5[_local_11] = _arg_4;
var _local_12 = --_arg_3;
_local_5[_local_12] = 0;
return (_local_5);
}
/*private*/ function pkcs1unpad(_arg_1:BigInteger, _arg_2:uint, _arg_3:uint=2):ByteArray
{
var _local_4:ByteArray = _arg_1.toByteArray();
var _local_5:ByteArray = new ByteArray();
_local_4.position = 0;
var _local_6:int;
while ((((_local_6 < _local_4.length)) && ((_local_4[_local_6] == 0)))) {
_local_6++;
};
if (((!(((_local_4.length - _local_6) == (_arg_2 - 1)))) || (!((_local_4[_local_6] == _arg_3))))){
return (null);
};
_local_6++;
while (_local_4[_local_6] != 0) {
if (++_local_6 >= _local_4.length){
return (null);
};
};
while (++_local_6 < _local_4.length) {
_local_5.writeByte(_local_4[_local_6]);
};
_local_5.position = 0;
return (_local_5);
}
public function rawpad(_arg_1:ByteArray, _arg_2:int, _arg_3:uint, _arg_4:uint=0):ByteArray
{
return (_arg_1);
}
public function rawunpad(_arg_1:BigInteger, _arg_2:uint, _arg_3:uint=0):ByteArray
{
return (_arg_1.toByteArray());
}
public function toString():String
{
return ("rsa");
}
public function dump():String
{
var _local_1 = ((((("N=" + this.n.toString(16)) + "\n") + "E=") + this.e.toString(16)) + "\n");
if (this.canDecrypt){
_local_1 = (_local_1 + (("D=" + this.d.toString(16)) + "\n"));
if (((!((this.p == null))) && (!((this.q == null))))){
_local_1 = (_local_1 + (("P=" + this.p.toString(16)) + "\n"));
_local_1 = (_local_1 + (("Q=" + this.q.toString(16)) + "\n"));
_local_1 = (_local_1 + (("DMP1=" + this.dmp1.toString(16)) + "\n"));
_local_1 = (_local_1 + (("DMQ1=" + this.dmq1.toString(16)) + "\n"));
_local_1 = (_local_1 + (("IQMP=" + this.coeff.toString(16)) + "\n"));
};
};
return (_local_1);
}
protected function doPublic(_arg_1:BigInteger):BigInteger
{
return (_arg_1.modPowInt(this.e, this.n));
}
protected function doPrivate2(_arg_1:BigInteger):BigInteger
{
if ((((this.p == null)) && ((this.q == null)))){
return (_arg_1.modPow(this.d, this.n));
};
var _local_2:BigInteger = _arg_1.mod(this.p).modPow(this.dmp1, this.p);
var _local_3:BigInteger = _arg_1.mod(this.q).modPow(this.dmq1, this.q);
while (_local_2.compareTo(_local_3) < 0) {
_local_2 = _local_2.add(this.p);
};
var _local_4:BigInteger = _local_2.subtract(_local_3).multiply(this.coeff).mod(this.p).multiply(this.q).add(_local_3);
return (_local_4);
}
protected function doPrivate(_arg_1:BigInteger):BigInteger
{
if ((((this.p == null)) || ((this.q == null)))){
return (_arg_1.modPow(this.d, this.n));
};
var _local_2:BigInteger = _arg_1.mod(this.p).modPow(this.dmp1, this.p);
var _local_3:BigInteger = _arg_1.mod(this.q).modPow(this.dmq1, this.q);
while (_local_2.compareTo(_local_3) < 0) {
_local_2 = _local_2.add(this.p);
};
return (_local_2.subtract(_local_3).multiply(this.coeff).mod(this.p).multiply(this.q).add(_local_3));
}
}
class BigInteger
{
public static const DB:int = 30;
public static const DV:int = (1 << DB);
public static const DM:int = (DV - 1);
public static const BI_FP:int = 52;
public static const FV:Number = Math.pow(2, BI_FP);
public static const F1:int = (BI_FP - DB);//22
public static const F2:int = ((2 * DB) - BI_FP);//8
public static const ZERO:BigInteger = nbv(0);
public static const ONE:BigInteger = nbv(1);
public static const lowprimes:Array = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 0x0101, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313, 317, 331, 337, 347, 349, 353, 359, 367, 373, 379, 383, 389, 397, 401, 409, 419, 421, 431, 433, 439, 443, 449, 457, 461, 463, 467, 479, 487, 491, 499, 503, 509];
public static const lplim:int = ((1 << 26) / lowprimes[(lowprimes.length - 1)]);
public var t:int;
bi_internal var s:int;
bi_internal var a:Array;
public function BigInteger(_arg_1:*=null, _arg_2:int=0, _arg_3:Boolean=false)
{
var _local_4:ByteArray;
var _local_5:int;
super();
this.a = new Array();
if ((_arg_1 is String)){
if (((_arg_2) && (!((_arg_2 == 16))))){
throw (new Error("BigInteger construction with radix!=16 is not supported."));
};
_arg_1 = Hex.toArray(_arg_1);
_arg_2 = 0;
};
if ((_arg_1 is ByteArray)){
_local_4 = (_arg_1 as ByteArray);
_local_5 = ((_arg_2) || ((_local_4.length - _local_4.position)));
this.fromArray(_local_4, _local_5, _arg_3);
};
}
public static function nbv(_arg_1:int):BigInteger
{
var _local_2:BigInteger = new (BigInteger)();
_local_2.fromInt(_arg_1);
return (_local_2);
}
public function dispose():void
{
var _local_1:Random = new Random();
var _local_2:uint;
while (_local_2 < this.a.length) {
this.a[_local_2] = _local_1.nextByte();
delete this.a[_local_2];
_local_2++;
};
this.a = null;
this.t = 0;
this.s = 0;
Memory.gc();
}
public function toString(_arg_1:Number=16):String
{
var _local_2:int;
if (this.s < 0){
return (("-" + this.negate().toString(_arg_1)));
};
switch (_arg_1){
case 2:
_local_2 = 1;
break;
case 4:
_local_2 = 2;
break;
case 8:
_local_2 = 3;
break;
case 16:
_local_2 = 4;
break;
case 32:
_local_2 = 5;
break;
};
var _local_3:int = ((1 << _local_2) - 1);
var _local_4:int;
var _local_5:Boolean;
var _local_6 = "";
var _local_7:int = this.t;
var _local_8:int = (DB - ((_local_7 * DB) % _local_2));
if (_local_7-- > 0){
if ((((_local_8 < DB)) && (((_local_4 = (this.a[_local_7] >> _local_8)) > 0)))){
_local_5 = true;
_local_6 = _local_4.toString(36);
};
while (_local_7 >= 0) {
if (_local_8 < _local_2){
_local_4 = ((this.a[_local_7] & ((1 << _local_8) - 1)) << (_local_2 - _local_8));
var _temp_1 = _local_4;
_local_8 = (_local_8 + (DB - _local_2));
_local_4 = (_temp_1 | (this.a[--_local_7] >> _local_8));
}
else {
_local_8 = (_local_8 - _local_2);
_local_4 = ((this.a[_local_7] >> _local_8) & _local_3);
if (_local_8 <= 0){
_local_8 = (_local_8 + DB);
_local_7--;
};
};
if (_local_4 > 0){
_local_5 = true;
};
if (_local_5){
_local_6 = (_local_6 + _local_4.toString(36));
};
};
};
return (((_local_5) ? _local_6 : "0"));
}
public function toArray(_arg_1:ByteArray):uint
{
var _local_2:int = 8;
var _local_3:int = ((1 << 8) - 1);
var _local_4:int;
var _local_5:int = this.t;
var _local_6:int = (DB - ((_local_5 * DB) % _local_2));
var _local_7:Boolean;
var _local_8:int;
if (_local_5-- > 0){
if ((((_local_6 < DB)) && (((_local_4 = (this.a[_local_5] >> _local_6)) > 0)))){
_local_7 = true;
_arg_1.writeByte(_local_4);
_local_8++;
};
while (_local_5 >= 0) {
if (_local_6 < _local_2){
_local_4 = ((this.a[_local_5] & ((1 << _local_6) - 1)) << (_local_2 - _local_6));
var _temp_1 = _local_4;
_local_6 = (_local_6 + (DB - _local_2));
_local_4 = (_temp_1 | (this.a[--_local_5] >> _local_6));
}
else {
_local_6 = (_local_6 - _local_2);
_local_4 = ((this.a[_local_5] >> _local_6) & _local_3);
if (_local_6 <= 0){
_local_6 = (_local_6 + DB);
_local_5--;
};
};
if (_local_4 > 0){
_local_7 = true;
};
if (_local_7){
_arg_1.writeByte(_local_4);
_local_8++;
};
};
};
return (_local_8);
}
public function valueOf():Number
{
if (this.s == -1){
return (-(this.negate().valueOf()));
};
var _local_1:Number = 1;
var _local_2:Number = 0;
var _local_3:uint;
while (_local_3 < this.t) {
_local_2 = (_local_2 + (this.a[_local_3] * _local_1));
_local_1 = (_local_1 * DV);
_local_3++;
};
return (_local_2);
}
public function negate():BigInteger
{
var _local_1:BigInteger = this.nbi();
ZERO.subTo(this, _local_1);
return (_local_1);
}
public function abs():BigInteger
{
return ((((this.s)<0) ? this.negate() : this));
}
public function compareTo(_arg_1:BigInteger):int
{
var _local_2:int = (this.s - _arg_1.s);
if (_local_2 != 0){
return (_local_2);
};
var _local_3:int = this.t;
_local_2 = (_local_3 - _arg_1.t);
if (_local_2 != 0){
return (_local_2);
};
while (--_local_3 >= 0) {
_local_2 = (this.a[_local_3] - _arg_1.a[_local_3]);
if (_local_2 != 0){
return (_local_2);
};
};
return (0);
}
bi_internal function nbits(_arg_1:int):int
{