Advertisement
Nasty

[AS3] BoomBang Crypto

Aug 20th, 2012
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //src.multiuser._tx553
  2.  
  3. package src.multiuser
  4. {
  5.     import flash.events.EventDispatcher;
  6.     import flash.utils.Timer;
  7.     import flash.utils.ByteArray;
  8.     import flash.net.Socket;
  9.     import flash.utils.clearInterval;
  10.     import src.org.osflash.thunderbolt._ni10905;
  11.     import src.tv.boombang.core.communications._nj3675;
  12.     import src.modules.interfaz._mq9251;
  13.     import src.tv.boombang.core.communications._uw15431;
  14.     import src.modules.login._sn15444;
  15.     import src.modules.enterScene._wc9822;
  16.     import src.modules.chooseScene._gd12158;
  17.     import src.modules.chooseIsla._cn5947;
  18.     import src.modules.privados._mj15146;
  19.     import src.modules.objetos._rl4874;
  20.     import src.modules.baneos._ht2945;
  21.     import src.modules.intercambios._rr10109;
  22.     import src.modules.creditos._tq3986;
  23.     import src.modules.concursos._vp8321;
  24.     import src.modules.bpad._eq9319;
  25.     import src.modules.report._ir13616;
  26.     import src.modules.irAlli._oi15458;
  27.     import src.modules.multiplayerGames._hg473;
  28.     import src.modules.singleplayerGames._sx12584;
  29.     import src.modules.estadoPociones._yl1211;
  30.     import src.modules.creacionObjetos._hd11088;
  31.     import src.modules.iluminarGrillas._ne8728;
  32.     import src.modules.member._ey5196;
  33.     import src.modules.scene._py8480;
  34.     import src.modules.noticias._rx7215;
  35.     import src.modules.notificaciones._by10710;
  36.     import src.modules.npc._pn15108;
  37.     import src.modules.antitimos._ew10786;
  38.     import flash.errors.IOError;
  39.     import flash.events.Event;
  40.     import flash.events.IOErrorEvent;
  41.     import flash.events.SecurityErrorEvent;
  42.     import flash.events.ProgressEvent;
  43.     import flash.events.TimerEvent;
  44.     import flash.utils.setInterval;
  45.     import src.config._ne13682;
  46.  
  47.     public class _tx553 extends EventDispatcher
  48.     {
  49.  
  50.         public static const _qe311:int = 166;
  51.         public static const _ue7583:int = 164;
  52.         public static const _jm10081:int = 210;
  53.         public static const _yj4633:int = 125;
  54.         public static const _ds11162:int = 121;
  55.         private static const _fc1835:int = 179;
  56.         public static const _fn3412:int = 194;
  57.         public static const _nt12080:int = 168;
  58.         public static const _rj12261:int = 146;
  59.         public static const _vo153:int = 180;
  60.         public static const _bp12172:int = 150;
  61.         public static const _va5133:int = 121;
  62.         public static const _df5359:int = 123;
  63.         private static const _yk5551:int = 178;
  64.         public static const _rd8897:int = 127;
  65.         public static const _rr11356:int = 170;
  66.         public static const _hc15381:int = 199;
  67.         public static const _gn10961:int = 122;
  68.         public static const _rs3047:int = 126;
  69.         public static const _bg12714:int = 191;
  70.         public static const _ev13403:int = 196;
  71.         public static const _hs6574:int = 124;
  72.         public static const _eo8864:int = 198;
  73.         private static const _go4405:int = 17;
  74.         public static const _vb3216:String = irrcrpt("HTSSJHYNTS _WJFID_YT_QTLNS", 5);
  75.         public static const _hd8322:int = 4;
  76.         public static const _od14790:int = 200;
  77.         public static const _cf11946:int = 203;
  78.         public static const _jl3497:int = 134;
  79.         public static const _cv13578:int = 151;
  80.         public static const _hf3834:int = 159;
  81.         public static const _vi12821:int = 136;
  82.         public static const _qv3505:int = 148;
  83.         public static const _wc8342:int = 165;
  84.         public static const _wt15416:int = 174;
  85.         public static const _ig5211:int = 145;
  86.         private static const _dx4566:int = 18;
  87.         public static const _xo1109:int = 202;
  88.         public static const _dk8335:int = 167;
  89.         private static const _kh15222:int = 172;
  90.         public static const _gc6177:int = 2;
  91.         public static const _rn9495:int = 2;
  92.         public static const _sr6850:int = 156;
  93.         public static const _tv5950:int = 120;
  94.         public static const _tn2207:int = 209;
  95.         public static const _mw5301:int = 208;
  96.         public static const _hv13459:int = 32;
  97.         public static const _sa10127:int = 125;
  98.         public static const _tb1369:int = 4;
  99.         public static const _uh5519:int = 1;
  100.         public static const _bv4806:int = 121;
  101.         private static const _io8860:int = 171;
  102.         public static const _hu10442:int = 193;
  103.         public static const _bd11541:int = 142;
  104.         public static const _xn5497:int = 152;
  105.         public static const _ji10960:int = 169;
  106.         private static const _bi10848:int = 8000;
  107.         public static const _se7807:int = 155;
  108.         public static const _vv10552:int = 195;
  109.         public static const _co7088:int = 1;
  110.         public static const _rt5636:int = 161;
  111.         public static const _wy14071:int = 143;
  112.         public static const _bp4782:int = 135;
  113.         public static const _uh15329:int = 3;
  114.         public static const _ls8524:int = 190;
  115.         public static const _bi12470:int = 181;
  116.         private static const _wu11281:int = 16;
  117.         public static const _xp7605:int = 120;
  118.         public static const _re2859:int = 120;
  119.         public static const _ub14587:int = 192;
  120.         public static const _nl1097:int = 132;
  121.         public static const _ec9428:int = 158;
  122.         public static const _hi6688:int = 163;
  123.         public static const _bo4621:int = 122;
  124.         public static const _gf14520:int = 122;
  125.         public static const _su5090:int = 154;
  126.         public static const _jj8010:int = 129;
  127.         public static const _rl11172:int = 185;
  128.         public static const _wu10417:int = 183;
  129.         public static const _bp678:int = 149;
  130.         private static const _ae13698:int = 177;
  131.         public static const _ky6102:int = 175;
  132.         public static const _ut12571:int = 153;
  133.         public static const _dc7751:int = 144;
  134.         public static const _fr9707:int = 124;
  135.         public static const _yg14003:int = 157;
  136.         public static const _ah1562:int = 173;
  137.         public static const _ma7159:int = 162;
  138.         public static const _hu1218:int = 207;
  139.         public static const _ia10792:int = 182;
  140.         public static const _yq2501:int = 3;
  141.         public static const _fk6251:int = 189;
  142.         public static const _sf9959:int = 33;
  143.         public static const _wr1877:int = 147;
  144.         public static const _af9337:int = 187;
  145.         private static const _xe13522:int = 176;
  146.         public static const _cf2409:int = 184;
  147.         public static const _ik6276:int = 123;
  148.         public static const _ya12064:int = 131;
  149.         public static const _bi1335:int = 160;
  150.         public static const _bg14539:int = 128;
  151.  
  152.         private static var _instance:_tx553;
  153.  
  154.         private var port:int;
  155.         private var _kn2700:Boolean = false;
  156.         private var _bl9307:String = "";
  157.         private var _fn6518:Array;
  158.         private var _gl7835:int;
  159.         private var _ml4031:String;
  160.         private var _gf3288:int;
  161.         private var _hm7474:Timer;
  162.         private var _lu15463:uint = 0xFFFFFFFF;
  163.         private var host:String;
  164.         private var _ue13814:ByteArray;
  165.         private var _ha293:int = 2;
  166.         private var _la13765:int;
  167.         private var _ko9519:int;
  168.         private var _dr8971:int;
  169.         private var _gk11635:int;
  170.         public var _yt9741:Boolean = true;
  171.         private var _sd12350:Boolean = false;
  172.         private var _jl1373:int;
  173.         private var socket:Socket;
  174.  
  175.         public function _tx553(_arg1:_be8230)
  176.         {
  177.             init();
  178.         }
  179.         public static function getInstance():_tx553
  180.         {
  181.             if (_tx553._instance == null){
  182.                 _tx553._instance = new _tx553(new _be8230());
  183.             };
  184.             return (_tx553._instance);
  185.         }
  186.         public static function _cf8781(_arg1:Array):String
  187.         {
  188.             var _local2:int = _arg1.length;
  189.             var _local3 = "";
  190.             var _local4:int;
  191.             while (_local4 < _local2) {
  192.                 _local3 = (_local3 + (_arg1[_local4] + String.fromCharCode(_fc1835)));
  193.                 _local4++;
  194.             };
  195.             return (_local3);
  196.         }
  197.         private static function _rv8480(_arg1:ByteArray, _arg2:String):void
  198.         {
  199.             var _local3:int;
  200.             while (_local3 < _arg2.length) {
  201.                 _arg1.writeByte(_arg2.charCodeAt(_local3));
  202.                 _local3++;
  203.             };
  204.         }
  205.         public static function _om5175(_arg1:String):Array
  206.         {
  207.             var _local2:Array = _arg1.split(String.fromCharCode(_fc1835));
  208.             if (_local2.length > 1){
  209.                 _local2.pop();
  210.             };
  211.             return (_local2);
  212.         }
  213.         public static function _pg4332(_arg1:String):Array
  214.         {
  215.             var _local2:Array = _arg1.split(String.fromCharCode(_fc1835));
  216.             _local2.pop();
  217.             var _local3:int;
  218.             while (_local3 < _local2.length) {
  219.                 _local2[_local3] = String(_local2[_local3]).charCodeAt(0);
  220.                 _local3++;
  221.             };
  222.             return (_local2);
  223.         }
  224.         public static function _wb9670(_arg1:Array):Array
  225.         {
  226.             var _local2:int = _arg1.length;
  227.             var _local3 = "";
  228.             var _local4 = "";
  229.             var _local5:int;
  230.             while (_local5 < _local2) {
  231.                 if (_arg1[_local5][0] != ""){
  232.                     _local3 = (_local3 + ("," + _arg1[_local5][0]));
  233.                     _local4 = (_local4 + ("." + _arg1[_local5][1]));
  234.                 } else {
  235.                     _local3 = (_local3 + ("," + irrcrpt("555555", 5)));
  236.                     _local4 = (_local4 + ("." + irrcrpt("94,94,94", 4)));
  237.                 };
  238.                 _local5++;
  239.             };
  240.             _local3 = (_local3 + String.fromCharCode(_fc1835));
  241.             _local4 = (_local4 + String.fromCharCode(_fc1835));
  242.             _local3 = _local3.slice(1, _local3.length);
  243.             _local4 = _local4.slice(1, _local4.length);
  244.             return ([_local3, _local4]);
  245.         }
  246.         public static function _nj8559(_arg1:String):Array
  247.         {
  248.             var _local2:Array = _arg1.split(String.fromCharCode(_fc1835));
  249.             var _local3:int;
  250.             while (_local3 < _local2.length) {
  251.                 _local2[_local3] = int(_local2[_local3]);
  252.                 _local3++;
  253.             };
  254.             if (_local2.length > 1){
  255.                 _local2.pop();
  256.             };
  257.             return (_local2);
  258.         }
  259.         public static function _hc13239(_arg1:String, _arg2:String):Array
  260.         {
  261.             var _local5:int;
  262.             var _local3:Array = _arg1.split(String.fromCharCode(_fc1835));
  263.             var _local4:int;
  264.             while (_local4 < _local3.length) {
  265.                 _local3[_local4] = String(_local3[_local4]).split(_arg2);
  266.                 _local5 = 0;
  267.                 while (_local5 < _local3[_local4].length) {
  268.                     _local3[_local4][_local5] = int(_local3[_local4][_local5]);
  269.                     _local5++;
  270.                 };
  271.                 _local4++;
  272.             };
  273.             if (_local3.length > 1){
  274.                 _local3.pop();
  275.             };
  276.             return (_local3);
  277.         }
  278.         private static function _cf3158(_arg1:int):int
  279.         {
  280.             var _local2:int = (int((int(irrcrpt("5471560089", 4)) * _arg1)) + int(irrcrpt("26308", 1)));
  281.             return (_local2);
  282.         }
  283.         public static function _sw11877(_arg1:String, _arg2:String):Array
  284.         {
  285.             var _local3:Array = _arg1.split(String.fromCharCode(_fc1835));
  286.             var _local4:int;
  287.             while (_local4 < _local3.length) {
  288.                 _local3[_local4] = String(_local3[_local4]).split(_arg2);
  289.                 _local4++;
  290.             };
  291.             if (_local3.length > 1){
  292.                 _local3.pop();
  293.             };
  294.             return (_local3);
  295.         }
  296.  
  297.         private function _pn1848():void
  298.         {
  299.             if (_kn2700 == false){
  300.                 _kn2700 = true;
  301.                 if (_lu15463 != uint.MAX_VALUE){
  302.                     clearInterval(_lu15463);
  303.                     _lu15463 = uint.MAX_VALUE;
  304.                 };
  305.                 if (_ko9519 == _co7088){
  306.                     try {
  307.                         socket.close();
  308.                     } catch(err) {
  309.                     };
  310.                     _uc5739();
  311.                     _ha293--;
  312.                     if (_ha293 > 0){
  313.                         _cb2146(host, port);
  314.                     } else {
  315.                         _bi6880();
  316.                     };
  317.                 };
  318.                 _kn2700 = false;
  319.             };
  320.         }
  321.         private function _jw11959(_arg1:ByteArray):void
  322.         {
  323.             var _local3:Array;
  324.             var _local4:Array;
  325.             var _local5:Array;
  326.             var _local6:uint;
  327.             var _local7:uint;
  328.             var _local8:int;
  329.             var _local9:Number;
  330.             var _local10:String;
  331.             var _local11:Array;
  332.             var _local12:Array;
  333.             var _local2:Array = _hb14245(_arg1);
  334.             while (_local2.length > 0) {
  335.                 _local3 = _bx1758(_local2.shift());
  336.                 if (_yt9741){
  337.                 };
  338.                 if (_local3 == null){
  339.                     return;
  340.                 };
  341.                 if (_local3.length > 0){
  342.                     _local10 = _local3.shift();
  343.                     _local11 = _tx553._pg4332(_local10).reverse();
  344.                     _local8 = 0;
  345.                     while (_local8 < _local3.length) {
  346.                         _local12 = String(_local3[_local8]).split(String.fromCharCode(_fc1835));
  347.                         if (_local12.length == 2){
  348.                             _local3[_local8] = _local12[0];
  349.                         };
  350.                         _local8++;
  351.                     };
  352.                     _local5 = _local3.concat();
  353.                     _local4 = new Array();
  354.                     _local8 = 0;
  355.                     while (_local8 < _local11.length) {
  356.                         _local4[((_local11.length - _local8) - 1)] = (_local11[_local8] as int);
  357.                         _local3.unshift(String.fromCharCode(_local11[_local8]));
  358.                         _local8++;
  359.                     };
  360.                 } else {
  361.                     return;
  362.                 };
  363.                 _local6 = String(_local3[0]).charCodeAt(0);
  364.                 _local9 = String(_local3[0]).charCodeAt(1);
  365.                 _ni10905.debug(irrcrpt("Jveqi vigimzih", 4), {
  366.                     flag_list:_local4.join(irrcrpt(", ", 2)),
  367.                     item_list:_local5.join(irrcrpt(", ", 5))
  368.                 });
  369.                 dispatchEvent(new _nj3675(_local6.toString(), _local4, _local5));
  370.                 switch (_local6){
  371.                     case _ia10792:
  372.                     case _cv13578:
  373.                     case _uw15431._px59:
  374.                     case _vi12821:
  375.                     case _jl3497:
  376.                     case _ig5211:
  377.                     case _sr6850:
  378.                     case _yg14003:
  379.                     case _dk8335:
  380.                     case _se7807:
  381.                     case _ec9428:
  382.                     case _bp4782:
  383.                     case _wy14071:
  384.                     case _dc7751:
  385.                     case _hf3834:
  386.                     case _bp678:
  387.                     case _wr1877:
  388.                     case _ut12571:
  389.                     case _ky6102:
  390.                     case _sa10127:
  391.                     case _wc8342:
  392.                     case _jj8010:
  393.                     case _ya12064:
  394.                     case _rj12261:
  395.                         dispatchEvent(new _mq9251(_mq9251._va10971, _local3));
  396.                         break;
  397.                     case _tv5950:
  398.                         dispatchEvent(new _sn15444(_sn15444._ju13579, _local3));
  399.                         break;
  400.                     case _bg14539:
  401.                     case _ls8524:
  402.                         dispatchEvent(new _wc9822(_wc9822._hi812, _local3));
  403.                         break;
  404.                     case _hi6688:
  405.                         _xh13747(_local3);
  406.                         break;
  407.                     case _su5090:
  408.                     case _af9337:
  409.                     case _hu10442:
  410.                     case _bg12714:
  411.                     case _vv10552:
  412.                     case _fn3412:
  413.                         dispatchEvent(new _gd12158(_gd12158._ki10182, _local3));
  414.                         break;
  415.                     case _fk6251:
  416.                         dispatchEvent(new _cn5947(_cn5947._gv15052, _local3));
  417.                         dispatchEvent(new _mj15146(_mj15146._mj14882, _local3));
  418.                         dispatchEvent(new _rl4874(_rl4874._ka15103, _local3));
  419.                         break;
  420.                     case _ah1562:
  421.                     case _wt15416:
  422.                     case _rl11172:
  423.                     case _bp12172:
  424.                     case _wu10417:
  425.                     case _hu1218:
  426.                     case _rr11356:
  427.                         dispatchEvent(new _ht2945(_ht2945._ci9661, _local3));
  428.                         break;
  429.                     case _hc15381:
  430.                         dispatchEvent(new _rr10109(_rr10109._aa8139, _local3));
  431.                         break;
  432.                     case _xn5497:
  433.                     case _ma7159:
  434.                     case _rt5636:
  435.                     case _qe311:
  436.                     case _nt12080:
  437.                     case _ue7583:
  438.                     case _gf14520:
  439.                         dispatchEvent(new _tq3986(_tq3986._ur12960, _local3));
  440.                         break;
  441.                     case _od14790:
  442.                         dispatchEvent(new _vp8321(_vp8321._wb135, _local3));
  443.                         break;
  444.                     case _nl1097:
  445.                         dispatchEvent(new _eq9319(_eq9319._om5539, _local3));
  446.                         break;
  447.                     case _xo1109:
  448.                         dispatchEvent(new _ir13616(_ir13616._lp5402, _local3));
  449.                         break;
  450.                     case _eo8864:
  451.                         dispatchEvent(new _oi15458(_oi15458._tk11965, _local3));
  452.                         break;
  453.                     case _bi1335:
  454.                         dispatchEvent(new _hg473(_hg473._ks275, _local3));
  455.                         break;
  456.                     case _vo153:
  457.                         dispatchEvent(new _sx12584(_sx12584._mo13474, _local3));
  458.                         break;
  459.                     case _cf2409:
  460.                         dispatchEvent(new _yl1211(_yl1211._ae5074, _local3));
  461.                         break;
  462.                     case _ik6276:
  463.                         dispatchEvent(new _hd11088(_hd11088._ww4052, _local3));
  464.                         break;
  465.                     case _hs6574:
  466.                         dispatchEvent(new _ne8728(_ne8728._nf15567, _local3));
  467.                         break;
  468.                     case _rs3047:
  469.                         dispatchEvent(new _ey5196(_ey5196._ek12838, _local3));
  470.                         break;
  471.                     case _cf11946:
  472.                         dispatchEvent(new _py8480(_py8480._ob13041, _local3));
  473.                         break;
  474.                     case _mw5301:
  475.                         dispatchEvent(new _rx7215(_rx7215._wg13113, _local3));
  476.                         break;
  477.                     case _tn2207:
  478.                         trace(irrcrpt("-------------\n", 4), irrcrpt("usbnb -> ", 1), _local3, irrcrpt("\n-------------", 4));
  479.                         dispatchEvent(new _by10710(_by10710._pp15563, _local3));
  480.                         break;
  481.                     case _jm10081:
  482.                         dispatchEvent(new _pn15108(_pn15108._ai6567, _local3));
  483.                         break;
  484.                     case _io8860:
  485.                         _qh4651(_local3);
  486.                         break;
  487.                     case _kh15222:
  488.                         _ni2529(_local3);
  489.                         break;
  490.                     case _bv4806:
  491.                         dispatchEvent(new _ew10786(_ew10786._kr4094, _local3));
  492.                         break;
  493.                     default:
  494.                         _ni10905.warn(irrcrpt("Rsx gpewwmjmih jveqi jvsq wivziv", 4), _local3);
  495.                 };
  496.             };
  497.         }
  498.         public function _ya834():int
  499.         {
  500.             return (_ko9519);
  501.         }
  502.         private function init():void
  503.         {
  504.             _ue13814 = null;
  505.         }
  506.         private function decrypt(_arg1:ByteArray):ByteArray
  507.         {
  508.             var _local3:int;
  509.             var _local4:int;
  510.             var _local2:ByteArray = new ByteArray();
  511.             _arg1.position = 0;
  512.             while (_arg1.bytesAvailable > 0) {
  513.                 _local3 = _arg1.readByte();
  514.                 _local4 = ((_local3 ^ _gl7835) ^ _la13765);
  515.                 _local2.writeByte(_local4);
  516.                 _gl7835 = _cf3158(_gl7835);
  517.                 _la13765 = _local4;
  518.             };
  519.             _local2.position = 0;
  520.             return (_local2);
  521.         }
  522.         private function _od1309():void
  523.         {
  524.             var str:String;
  525.             var _uw1100:ByteArray;
  526.             var status:int;
  527.             try {
  528.                 if (socket.bytesAvailable == 0){
  529.                     return;
  530.                 };
  531.                 str = "";
  532.                 _uw1100 = _ny13766();
  533.                 status = _nr7982(_uw1100);
  534.                 _uw1100.position = 0;
  535.                 if (status == _uh5519){
  536.                     _ue13814 = null;
  537.                     _jw11959(_uw1100);
  538.                 } else {
  539.                     if (status == _gc6177){
  540.                         _ue13814 = _uw1100;
  541.                     } else {
  542.                         if ((((status == _yq2501)) || ((status == _hd8322)))){
  543.                             if (_ue13814 == null){
  544.                                 return;
  545.                             };
  546.                             _uw1100.readBytes(_ue13814, _ue13814.length, 0);
  547.                             if (status == _yq2501){
  548.                                 _jw11959(_ue13814);
  549.                                 _ue13814 = null;
  550.                             };
  551.                         };
  552.                     };
  553.                 };
  554.             } catch(err:IOError) {
  555.                 _ni10905.error(irrcrpt("Gttqt yjgp tgcfkpi htqo uqemgv", 2), err);
  556.                 _bi6880();
  557.             };
  558.         }
  559.         private function _bi6880():void
  560.         {
  561.             if (!_sd12350){
  562.                 dispatchEvent(new _ht2945(_ht2945._ci9661, [String.fromCharCode(_tx553._bp12172)]));
  563.             };
  564.         }
  565.         private function _ni2529(_arg1:Array):void
  566.         {
  567.         }
  568.         private function _ny13766():ByteArray
  569.         {
  570.             var _local1:ByteArray = new ByteArray();
  571.             socket.readBytes(_local1, 0, socket.bytesAvailable);
  572.             _local1.position = 0;
  573.             _local1 = decrypt(_local1);
  574.             return (_local1);
  575.         }
  576.         private function _ht9857():void
  577.         {
  578.             socket.addEventListener(Event.CLOSE, closeHandler);
  579.             socket.addEventListener(Event.CONNECT, _yk4268);
  580.             socket.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
  581.             socket.addEventListener(SecurityErrorEvent.SECURITY_ERROR, _ub13788);
  582.             socket.addEventListener(ProgressEvent.SOCKET_DATA, _tm1679);
  583.         }
  584.         private function closeHandler(_arg1:Event):void
  585.         {
  586.             _bi6880();
  587.         }
  588.         private function _uc5739():void
  589.         {
  590.             socket.removeEventListener(Event.CLOSE, closeHandler);
  591.             socket.removeEventListener(Event.CONNECT, _yk4268);
  592.             socket.removeEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
  593.             socket.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, _ub13788);
  594.             socket.removeEventListener(ProgressEvent.SOCKET_DATA, _tm1679);
  595.         }
  596.         private function _hb14245(_arg1:ByteArray):Array
  597.         {
  598.             var _local6:ByteArray;
  599.             var _local2:Array = new Array();
  600.             _arg1.position = 0;
  601.             var _local3:int;
  602.             var _local4:int;
  603.             var _local5:int;
  604.             while (_arg1.bytesAvailable != 0) {
  605.                 _local5 = _arg1.readUnsignedByte();
  606.                 if (_local5 == _ae13698){
  607.                     _local3 = (_arg1.position - 1);
  608.                 } else {
  609.                     if (_local5 == _xe13522){
  610.                         _local4 = _arg1.position;
  611.                         _local6 = new ByteArray();
  612.                         _arg1.position = _local3;
  613.                         _arg1.readBytes(_local6, 0, (_local4 - _local3));
  614.                         _local2.push(_local6);
  615.                     };
  616.                 };
  617.             };
  618.             return (_local2);
  619.         }
  620.         private function _nr7982(_arg1:ByteArray):int
  621.         {
  622.             _arg1.position = 0;
  623.             var _local2:int = _arg1.readUnsignedByte();
  624.             _arg1.position = (_arg1.length - 1);
  625.             var _local3:int = _arg1.readUnsignedByte();
  626.             if ((((_local2 == _ae13698)) && ((_local3 == _xe13522)))){
  627.                 return (_uh5519);
  628.             };
  629.             if ((((_local2 == _ae13698)) && (!((_local3 == _xe13522))))){
  630.                 return (_gc6177);
  631.             };
  632.             if (((!((_local2 == _ae13698))) && ((_local3 == _xe13522)))){
  633.                 return (_yq2501);
  634.             };
  635.             return (_hd8322);
  636.         }
  637.         public function _of14183(_arg1:ByteArray):void
  638.         {
  639.             var _uw1100:ByteArray = _arg1;
  640.             _uw1100.position = 0;
  641.             if (_yt9741){
  642.                 _uw1100.position = 0;
  643.             } else {
  644.                 trace(((irrcrpt("GPXKQ  ->> |", 2) + _uw1100) + "|"));
  645.             };
  646.             try {
  647.                 _ac725(_uw1100);
  648.             } catch(err:IOError) {
  649.                 _ni10905.error(irrcrpt("Gttqt yjgp ytkvkpi vq uqemgv", 2), err);
  650.                 _bi6880();
  651.             };
  652.         }
  653.         private function _bx1758(_arg1:ByteArray):Array
  654.         {
  655.             var _local3:int;
  656.             var _local2:Boolean;
  657.             var _local4 = "";
  658.             var _local5:Array = new Array();
  659.             var _local6:int = -1;
  660.             var _local7:int;
  661.             var _local8:Boolean;
  662.             while (!(_local2)) {
  663.                 _local3 = _arg1.readUnsignedByte();
  664.                 if (_arg1.position == _arg1.length){
  665.                     _local2 = true;
  666.                 };
  667.                 switch (_local3){
  668.                     case _ae13698:
  669.                         _local4 = "";
  670.                         break;
  671.                     case _yk5551:
  672.                         _local5.push(_local4);
  673.                         _local4 = "";
  674.                         break;
  675.                     case _xe13522:
  676.                         _local4 = "";
  677.                         break;
  678.                     default:
  679.                         _local4 = (_local4 + String.fromCharCode(_local3));
  680.                 };
  681.             };
  682.             return (_local5);
  683.         }
  684.         public function _om11763(_arg1:String):String
  685.         {
  686.             var _local2:String = _arg1;
  687.             return (_local2);
  688.         }
  689.         public function _fq7625(_arg1:Array, _arg2:int):void
  690.         {
  691.             var _local3:String = _arg1.toString();
  692.             var _local4:ByteArray = _sd13720(_arg1, _arg2);
  693.             var _local5:ByteArray = encrypt(_local4);
  694.             _of14183(_local5);
  695.         }
  696.         public function _yr13454(_arg1:TimerEvent):void
  697.         {
  698.             var _local2:Array = new Array();
  699.             _local2.push(String.fromCharCode(_tx553._hi6688));
  700.             if (_hm7474 != null){
  701.                 _hm7474.stop();
  702.                 _hm7474 = null;
  703.             };
  704.             _fq7625(_local2, 1);
  705.         }
  706.         public function _fx2498(_arg1:int=60):void
  707.         {
  708.             _hm7474 = new Timer((_arg1 * 1000), 0);
  709.             _hm7474.start();
  710.             _hm7474.addEventListener(TimerEvent.TIMER, _yr13454);
  711.         }
  712.         private function _ac725(_arg1:ByteArray):void
  713.         {
  714.             if (socket.connected){
  715.                 if (_arg1.position != 0){
  716.                     _arg1.position = 0;
  717.                 };
  718.                 socket.writeBytes(_arg1, 0, _arg1.length);
  719.                 socket.flush();
  720.             } else {
  721.                 trace(irrcrpt("htsjcnt ujwinif", 5));
  722.             };
  723.         }
  724.         private function _qh4651(_arg1:Array):void
  725.         {
  726.         }
  727.         public function _sd13720(_arg1:Array, _arg2:int):ByteArray
  728.         {
  729.             var _local3:ByteArray = new ByteArray();
  730.             var _local4:String;
  731.             _local3.writeByte(_ae13698);
  732.             var _local5:int;
  733.             while (_local5 < _arg2) {
  734.                 _local4 = _arg1.shift();
  735.                 _tx553._rv8480(_local3, _local4);
  736.                 _local3.writeByte(_fc1835);
  737.                 _local5++;
  738.             };
  739.             _local3.writeByte(_yk5551);
  740.             var _local6:ByteArray = new ByteArray();
  741.             while (_arg1.length > 0) {
  742.                 _local4 = _arg1.shift();
  743.                 _tx553._rv8480(_local3, _local4);
  744.                 if (_local4.indexOf(String.fromCharCode(_fc1835)) < 0){
  745.                     _local3.writeByte(_fc1835);
  746.                 };
  747.                 _local3.writeByte(_yk5551);
  748.             };
  749.             _local3.writeByte(_xe13522);
  750.             return (_local3);
  751.         }
  752.         private function encrypt(_arg1:ByteArray):ByteArray
  753.         {
  754.             var _local3:int;
  755.             var _local4:int;
  756.             var _local2:ByteArray = new ByteArray();
  757.             _arg1.position = 0;
  758.             while (_arg1.bytesAvailable > 0) {
  759.                 _local3 = _arg1.readByte();
  760.                 _local4 = ((_local3 ^ _gf3288) ^ _jl1373);
  761.                 _local2.writeByte(_local4);
  762.                 _gf3288 = _cf3158(_gf3288);
  763.                 _jl1373 = _local3;
  764.             };
  765.             _local2.position = 0;
  766.             return (_local2);
  767.         }
  768.         private function _xh13747(_arg1:Array):void
  769.         {
  770.             _dr8971 = int(_arg1[1]);
  771.             _fx2498(_dr8971);
  772.         }
  773.         private function _tm1679(_arg1:ProgressEvent):void
  774.         {
  775.             _od1309();
  776.         }
  777.         private function ioErrorHandler(_arg1:IOErrorEvent):void
  778.         {
  779.             if (_ko9519 == _co7088){
  780.                 _pn1848();
  781.             } else {
  782.                 _bi6880();
  783.             };
  784.         }
  785.         private function _ub13788(_arg1:SecurityErrorEvent):void
  786.         {
  787.             _ni10905.error(irrcrpt("Tfdvsjuz fssps", 1), _arg1);
  788.         }
  789.         private function _yk4268(_arg1:Event):void
  790.         {
  791.             if (_lu15463 != uint.MAX_VALUE){
  792.                 clearInterval(_lu15463);
  793.                 _lu15463 = uint.MAX_VALUE;
  794.             };
  795.             _ko9519 = _rn9495;
  796.             _yr13454(null);
  797.             _ko9519 = _tb1369;
  798.             dispatchEvent(new Event(_vb3216));
  799.         }
  800.         public function close():void
  801.         {
  802.             if (socket.connected){
  803.                 try {
  804.                     _sd12350 = true;
  805.                     _uc5739();
  806.                     socket.close();
  807.                 } catch(err:IOError) {
  808.                     _ni10905.error(irrcrpt("Ivvsv alir gpswmrk wsgoix", 4), err);
  809.                 };
  810.             };
  811.         }
  812.         public function _cb2146(_arg1:String, _arg2:int):void
  813.         {
  814.             var host:String = _arg1;
  815.             var port:int = _arg2;
  816.             this.host = host;
  817.             this.port = port;
  818.             _lu15463 = setInterval(_pn1848, _bi10848);
  819.             socket = new Socket();
  820.             _ht9857();
  821.             try {
  822.                 socket.connect(host, port);
  823.             } catch(e:Error) {
  824.                 _ni10905.error(irrcrpt("Jwwtw ywdnsl yt htssjhy yt xjwajw", 5), e);
  825.             };
  826.             _gf3288 = _ne13682._wf12260;
  827.             _gl7835 = _ne13682._wf12260;
  828.             _jl1373 = (_la13765 = 0);
  829.             _ko9519 = _co7088;
  830.         }
  831.  
  832.     }
  833. }//package src.multiuser
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement