void Button2Click(object sender, EventArgs e)
        {
            using (var ofd = new OpenFileDialog())
            {
                ofd.Filter      = "Text files (*.txt)|*.txt";
                ofd.FilterIndex = 2;
                ofd.FileName    = "clientinfo.txt";
                ofd.Title       = "Load clientinfo.txt";
                if (ofd.ShowDialog() == DialogResult.OK)
                {
                    string line1;
                    string Decryptline1, Decryptline2, Decryptline3, Decryptline4, Decryptline5, Decryptline6;

                    using (StreamReader reader = new StreamReader(ofd.FileName))
                    {
                        line1 = reader.ReadLine();
                    }

                    if (!SecurityFuncs.IsBase64String(line1))
                    {
                        return;
                    }

                    string   ConvertedLine = SecurityFuncs.Base64Decode(line1);
                    string[] result        = ConvertedLine.Split('|');
                    Decryptline1 = SecurityFuncs.Base64Decode(result[0]);
                    Decryptline2 = SecurityFuncs.Base64Decode(result[1]);
                    Decryptline3 = SecurityFuncs.Base64Decode(result[2]);
                    Decryptline4 = SecurityFuncs.Base64Decode(result[3]);
                    Decryptline5 = SecurityFuncs.Base64Decode(result[4]);
                    Decryptline6 = SecurityFuncs.Base64Decode(result[5]);

                    Boolean bline1 = Convert.ToBoolean(Decryptline1);
                    GlobalVars.ClientCreator_UsesPlayerName = bline1;

                    Boolean bline2 = Convert.ToBoolean(Decryptline2);
                    GlobalVars.ClientCreator_UsesID = bline2;

                    Boolean bline3 = Convert.ToBoolean(Decryptline3);
                    GlobalVars.ClientCreator_LoadsAssetsOnline = bline3;

                    Boolean bline4 = Convert.ToBoolean(Decryptline4);
                    GlobalVars.ClientCreator_LegacyMode = bline4;

                    GlobalVars.ClientCreator_SelectedClientMD5 = Decryptline5;

                    GlobalVars.ClientCreator_SelectedClientDesc = Decryptline6;

                    checkBox1.Checked = GlobalVars.ClientCreator_UsesPlayerName;
                    checkBox2.Checked = GlobalVars.ClientCreator_UsesID;
                    checkBox5.Checked = GlobalVars.ClientCreator_LoadsAssetsOnline;
                    checkBox3.Checked = GlobalVars.ClientCreator_LegacyMode;
                    textBox2.Text     = GlobalVars.ClientCreator_SelectedClientMD5.ToUpper();
                    textBox1.Text     = GlobalVars.ClientCreator_SelectedClientDesc;
                }
            }
        }
        public static void ReadClientValues(string clientpath)
        {
            string line1;
            string Decryptline1, Decryptline2, Decryptline3, Decryptline4, Decryptline5, Decryptline6;

            using (StreamReader reader = new StreamReader(clientpath))
            {
                line1 = reader.ReadLine();
            }

            if (!SecurityFuncs.IsBase64String(line1))
            {
                return;
            }

            string ConvertedLine = SecurityFuncs.Base64Decode(line1);

            string[] result = ConvertedLine.Split('|');
            Decryptline1 = SecurityFuncs.Base64Decode(result[0]);
            Decryptline2 = SecurityFuncs.Base64Decode(result[1]);
            Decryptline3 = SecurityFuncs.Base64Decode(result[2]);
            Decryptline4 = SecurityFuncs.Base64Decode(result[3]);
            Decryptline5 = SecurityFuncs.Base64Decode(result[4]);
            Decryptline6 = SecurityFuncs.Base64Decode(result[5]);

            bool bline1 = Convert.ToBoolean(Decryptline1);

            GlobalVars.UsesPlayerName = bline1;

            bool bline2 = Convert.ToBoolean(Decryptline2);

            GlobalVars.UsesID = bline2;

            bool bline3 = Convert.ToBoolean(Decryptline3);

            GlobalVars.LoadsAssetsOnline = bline3;

            bool bline4 = Convert.ToBoolean(Decryptline4);

            GlobalVars.LegacyMode = bline4;

            GlobalVars.SelectedClientMD5 = Decryptline5;

            GlobalVars.SelectedClientDesc = Decryptline6;

            GlobalVars.MD5 = GlobalVars.SelectedClientMD5;
        }
        public static void ReadConfigValues(string cfgpath)
        {
            string line1;
            string Decryptline1, Decryptline2, Decryptline3, Decryptline4, Decryptline5, Decryptline6;

            using (StreamReader reader = new StreamReader(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\config.txt"))
            {
                line1 = reader.ReadLine();
            }

            if (!SecurityFuncs.IsBase64String(line1))
            {
                return;
            }

            string ConvertedLine = SecurityFuncs.Base64Decode(line1);

            string[] result = ConvertedLine.Split('|');
            Decryptline1 = SecurityFuncs.Base64Decode(result[0]);
            Decryptline2 = SecurityFuncs.Base64Decode(result[1]);
            Decryptline3 = SecurityFuncs.Base64Decode(result[2]);
            Decryptline4 = SecurityFuncs.Base64Decode(result[3]);
            Decryptline5 = SecurityFuncs.Base64Decode(result[4]);
            Decryptline6 = SecurityFuncs.Base64Decode(result[5]);

            bool bline1 = Convert.ToBoolean(Decryptline1);

            GlobalVars.CloseOnLaunch = bline1;

            int iline2 = Convert.ToInt32(Decryptline2);

            GlobalVars.UserID = iline2;

            GlobalVars.PlayerName = Decryptline3;

            GlobalVars.SelectedClient = Decryptline4;

            GlobalVars.Map = Decryptline5;

            int iline6 = Convert.ToInt32(Decryptline6);

            GlobalVars.RobloxPort = iline6;
        }