void FakePrime()
{
static auto prime = Utils::PatternScan(GetModuleHandleA("client.dll"), "8B 0D ? ? ? ? 85 C9 75 04 33 C0 EB 1E");
DWORD old_protect;
VirtualProtect(prime, 5, PAGE_EXECUTE_READWRITE, &old_protect);
{
char primetrue[] = { 0x31, 0xC0, 0xFE , 0xC0, 0xC3 };
char primefalse[] = { 0x31, 0xC0, 0xC3 };
if (!g_Options.misc_fake_prime) memcpy(prime, primefalse, 5);
else memcpy(prime, primetrue, 5);
}
VirtualProtect(prime, 5, old_protect, nullptr);
}