// Token: 0x06000110 RID: 272 RVA: 0x0000A378 File Offset: 0x00008578 public MainForm() { Class3.oswSa3wz9mgro(); base..ctor(); this.InitializeComponent(); this.browser.LifeSpanHandler = new MainForm.BrowserLifeSpanHandler(); this.browser.MenuHandler = new MainForm.BrowserContextMenuHandler(); this.browser.LoadingStateChanged += this.Browser_LoadingStateChanged; this.browser.JavascriptObjectRepository.Register("Auth", new Auth(), true, BindingOptions.DefaultBinder); this.browser.JavascriptObjectRepository.Register("Checker", new Checker(), true, BindingOptions.DefaultBinder); this.browser.JavascriptObjectRepository.Register("TwoCaptcha", new TwoCaptcha(), true, BindingOptions.DefaultBinder); this.browser.JavascriptObjectRepository.Register("CapMonsterCloud", new CapMonsterCloud(), true, BindingOptions.DefaultBinder); this.browser.JavascriptObjectRepository.Register("Utils", new Utils(), true, BindingOptions.DefaultBinder); this.browser.Load((!File.Exists("license.txt") || !AuthGG.Check(File.ReadAllLines("license.txt")[0])) ? string.Format("http://{0}:{1}/auth", IPAddress.Loopback, Program.Port) : string.Format("http://{0}:{1}/initialize", IPAddress.Loopback, Program.Port)); }
// Token: 0x06000019 RID: 25 RVA: 0x00003444 File Offset: 0x00001644 public bool Check(string license) { bool isAuthenticated = true; Program.MainForm.Invoke(new MethodInvoker(delegate() { isAuthenticated = AuthGG.Check(license); })); if (!isAuthenticated) { return(isAuthenticated); } using (FileStream fileStream = new FileStream("license.txt", FileMode.OpenOrCreate, FileAccess.Write, FileShare.Read)) { using (StreamWriter streamWriter = new StreamWriter(fileStream, Encoding.Unicode)) { streamWriter.WriteLine(license); } } return(isAuthenticated); }