private static void UpdatePersonalProtection()
 {
     checked
     {
         try
         {
             int num  = 0;
             int num2 = 0;
             FlashOverlaypluginforMPlatformLic.m_objMLProxy.GetData(out num, out num2);
             long num3    = unchecked ((long)Conversion.Fix(num)) * 44817467L % 43373189L;
             long num4    = unchecked ((long)Conversion.Fix(num2)) * 47128061L % 42408581L;
             uint num5    = FlashOverlaypluginforMPlatformLic.SummBits((uint)(num3 + num4));
             long number  = unchecked ((long)Conversion.Fix(checked (num - 29))) *unchecked ((long)(checked (num - 23))) % unchecked ((long)num2);
             int  number2 = new Random().Next(32767);
             int  nSecondRes;
             if (unchecked ((ulong)num5) > 0uL)
             {
                 nSecondRes = (int)Conversion.Fix(number) + Conversion.Fix(number2) * 1;
             }
             else
             {
                 nSecondRes = (int)Conversion.Fix(number) + Conversion.Fix(number2) * -1;
             }
             FlashOverlaypluginforMPlatformLic.m_objMLProxy.SetData(num, num2, (int)Conversion.Fix(number), nSecondRes);
         }
         catch (Exception expr_BE)
         {
             ProjectData.SetProjectError(expr_BE);
             ProjectData.ClearProjectError();
         }
     }
 }
 public static void IntializeProtection()
 {
     if (FlashOverlaypluginforMPlatformLic.m_objMLProxy == null)
     {
         FlashOverlaypluginforMPlatformLic.m_objMLProxy = new CoMLProxyClass();
         FlashOverlaypluginforMPlatformLic.m_objMLProxy.PutString(FlashOverlaypluginforMPlatformLic.strLicInfo);
     }
     FlashOverlaypluginforMPlatformLic.UpdatePersonalProtection();
 }
Esempio n. 3
0
 private void InitializeProtection()
 {
     this.dLastMPlatformLicenseCheck = DateTime.UtcNow.ToOADate();
     MPlatformSDKLic.IntializeProtection();
     EncoderlibLic.IntializeProtection();
     DecoderlibLic.IntializeProtection();
     FlashOverlaypluginforMPlatformLic.IntializeProtection();
     ClosedCaptionslibLic.IntializeProtection();
 }