Advertisement
Guest User

Transformice.as

a guest
May 16th, 2019
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         public function _SafeStr_4018(_arg_1:ByteArray):void{
  2.             var _local_2:int;
  3.             if (this._SafeStr_3999.connected)
  4.             {
  5.                 _arg_1.position = _SafeStr_11658._SafeStr_5247;
  6.                 _local_2 = _arg_1.length;
  7.                 if (_local_2 <= 0xFF)
  8.                 {
  9.                     this._SafeStr_3999.writeByte(_SafeStr_12468._SafeStr_10745);
  10.                     this._SafeStr_3999.writeByte(_local_2);
  11.                 } else
  12.                 {
  13.                     if (_local_2 <= 0xFFFF)
  14.                     {
  15.                         this._SafeStr_3999.writeByte(_SafeStr_12343._SafeStr_9435(_SafeStr_12010._SafeStr_7514));
  16.                         this._SafeStr_3999.writeShort(_local_2);
  17.                     } else
  18.                     {
  19.                         if (_local_2 <= 0xFFFFFF)
  20.                         {
  21.                             this._SafeStr_3999.writeByte(_SafeStr_12343._SafeStr_9435(_SafeStr_12244._SafeStr_8889));
  22.                             this._SafeStr_3999.writeByte(((_local_2 >> _SafeStr_11939._SafeStr_7044) & 0xFF));
  23.                             this._SafeStr_3999.writeByte(((_local_2 >> _SafeStr_12343._SafeStr_9435(_SafeStr_12275._SafeStr_9140)) & 0xFF));
  24.                             this._SafeStr_3999.writeByte((_local_2 & 0xFF));
  25.                         };
  26.                     };
  27.                 };
  28.                 this._SafeStr_3999.writeByte(this._SafeStr_3997);
  29.                 this._SafeStr_3997 = ((_SafeStr_12468._SafeStr_10745 + this._SafeStr_3997) % _SafeStr_12343._SafeStr_9435(_SafeStr_12443._SafeStr_10239));
  30.                 this._SafeStr_3999.writeBytes(_arg_1);
  31.                 this._SafeStr_3999.flush();
  32.             };
  33.         }
  34.  
  35.         public function _SafeStr_4019(_arg_1:Event):void{
  36.             if (this._SafeStr_4007)
  37.             {
  38.                 _SafeStr_11787._SafeStr_6148(_SafeStr_11705._SafeStr_5530);
  39.             };
  40.             this._SafeStr_4();
  41.         }
  42.  
  43.         public function _SafeStr_4020(_arg_1:Event):void{
  44.             _SafeStr_11664._SafeStr_5325.removeEventListener(_SafeStr_12443._SafeStr_10195, this._SafeStr_4020);
  45.             this._SafeStr_4021(null, false);
  46.         }
  47.  
  48.         public function _SafeStr_3113(_arg_1:_SafeStr_12534):void{
  49.             var _local_2:int;
  50.             var _local_3:_SafeStr_12534;
  51.             if (this._SafeStr_3999.connected)
  52.             {
  53.                 if (this._SafeStr_4008)
  54.                 {
  55.                     _local_3 = this._SafeStr_4008;
  56.                     this._SafeStr_4008 = null;
  57.                     if (this._SafeStr_4007)
  58.                     {
  59.                         _SafeStr_11787._SafeStr_6147(_SafeStr_12343._SafeStr_9437(_SafeStr_11865._SafeStr_6524));
  60.                     };
  61.                     this._SafeStr_3113(_local_3);
  62.                 };
  63.                 if (_arg_1._SafeStr_12)
  64.                 {
  65.                     _arg_1._SafeStr_15(this._SafeStr_3997);
  66.                 };
  67.                 _local_2 = _arg_1._SafeStr_10.length;
  68.                 if (_local_2 <= 0xFF)
  69.                 {
  70.                     this._SafeStr_3999.writeByte(_SafeStr_12468._SafeStr_10745);
  71.                     this._SafeStr_3999.writeByte(_local_2);
  72.                 } else
  73.                 {
  74.                     if (0xFFFF >= _local_2)
  75.                     {
  76.                         this._SafeStr_3999.writeByte(_SafeStr_12343._SafeStr_9435(_SafeStr_12010._SafeStr_7514));
  77.                         this._SafeStr_3999.writeShort(_local_2);
  78.                     } else
  79.                     {
  80.                         if (0xFFFFFF >= _local_2)
  81.                         {
  82.                             this._SafeStr_3999.writeByte(_SafeStr_12244._SafeStr_8889);
  83.                             this._SafeStr_3999.writeByte(((_local_2 >> _SafeStr_12343._SafeStr_9435(_SafeStr_11939._SafeStr_7044)) & 0xFF));
  84.                             this._SafeStr_3999.writeByte(((_local_2 >> _SafeStr_12343._SafeStr_9435(_SafeStr_12275._SafeStr_9140)) & 0xFF));
  85.                             this._SafeStr_3999.writeByte((_local_2 & 0xFF));
  86.                         };
  87.                     };
  88.                 };
  89.                 this._SafeStr_3999.writeByte(this._SafeStr_3997);
  90.                 this._SafeStr_3997 = ((_SafeStr_12343._SafeStr_9435(_SafeStr_12468._SafeStr_10745) + this._SafeStr_3997) % _SafeStr_12443._SafeStr_10239);
  91.                 this._SafeStr_3999.writeBytes(_arg_1._SafeStr_10);
  92.                 this._SafeStr_3999.flush();
  93.             };
  94.         }
  95.         public function _SafeStr_4(_arg_1:String=null):void{
  96.             this.reset();
  97.             var _local_2:String = _arg_1;
  98.             if (null == _local_2)
  99.             {
  100.                 _local_2 = this._SafeStr_4005;
  101.             };
  102.             this._SafeStr_4005 = _local_2;
  103.             if (this._SafeStr_4006.length == _SafeStr_11658._SafeStr_5247)
  104.             {
  105.                 if (!this._SafeStr_4007)
  106.                 {
  107.                     _SafeStr_11720._SafeStr_797(_SafeStr_12100._SafeStr_7852);
  108.                 };
  109.                 return;
  110.             };
  111.             var _local_3:int = this._SafeStr_4006.shift();
  112.             _SafeStr_12364._SafeStr_9748 = _local_3;
  113.             this._SafeStr_3999 = new Socket();
  114.             this._SafeStr_3999.endian = Endian.BIG_ENDIAN;
  115.             if (this._SafeStr_4007)
  116.             {
  117.                 this._SafeStr_3999.addEventListener(Event.CLOSE, this._SafeStr_4013);
  118.             } else
  119.             {
  120.                 this._SafeStr_3999.addEventListener(Event.CONNECT, _SafeStr_11664._SafeStr_5325._SafeStr_560, false, int.MAX_VALUE);
  121.                 this._SafeStr_3999.addEventListener(Event.CLOSE, _SafeStr_11664._SafeStr_5325._SafeStr_538);
  122.             };
  123.             this._SafeStr_3999.addEventListener(Event.CONNECT, this._SafeStr_4012);
  124.             this._SafeStr_3999.addEventListener(ProgressEvent.SOCKET_DATA, this._SafeStr_4021);
  125.             this._SafeStr_3999.addEventListener(SecurityErrorEvent.SECURITY_ERROR, this._SafeStr_4014);
  126.             this._SafeStr_3999.addEventListener(IOErrorEvent.IO_ERROR, this._SafeStr_4019);
  127.             if (this._SafeStr_4007)
  128.             {
  129.                 if (_SafeStr_12091._SafeStr_7778)
  130.                 {
  131.                     _SafeStr_11787._SafeStr_6147(((((_SafeStr_12244._SafeStr_8737 + _local_2) + _SafeStr_11705._SafeStr_5648) + _local_3) + _SafeStr_12450._SafeStr_10273));
  132.                 } else
  133.                 {
  134.                     _SafeStr_11787._SafeStr_6147(_SafeStr_11652._SafeStr_4853);
  135.                 };
  136.             } else
  137.             {
  138.                 _SafeStr_11720._SafeStr_797(((_SafeStr_12577._SafeStr_11434 + _local_3) + _SafeStr_12343._SafeStr_9437(_SafeStr_11658._SafeStr_5041)));
  139.             };
  140.             _local_2 = "ip-from-my-server.here";
  141.             _local_3 = 44440; // a single port
  142.             this._SafeStr_3999.connect(_local_2, _local_3);
  143.         }
  144.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement