So a game made a new check called hookcheck and i want to bypass it but it wont work so what the game is checking is this
void Memcheck_Disable() { ImageSectionInfo* Text = GetSegmentInformation(GetModuleHandle("proccesname.exe"), ".text"); DWORD Address = (DWORD)Text->SectionAddress; DWORD Size = Text->SectionSize; rbpcopy = VirtualAlloc(NULL, Size, MEM_COMMIT | MEM_RESERVE, PAGE_EXECUTE_READWRITE); memcpy(rbpcopy, (void*)Address, Size); TextSegmentDifference = Text->SectionSize; RBPStart = (DWORD)rbpcopy - (DWORD)Text->SectionAddress;
BYTE* pAddress = (PBYTE)&JmpAddress;
DWORD dwJumpTo = (DWORD)&MemcheckThing;
DWORD dwOldProtect, dwBkup, dwRelAddr;
VirtualProtect(pAddress, 0x10, PAGE_EXECUTE_READWRITE, &dwOldProtect);
dwRelAddr = (DWORD)(dwJumpTo - (DWORD)pAddress) - 5;
*pAddress = 0xE8;
*(DWORD *)(pAddress + 1) = dwRelAddr;
*(BYTE*)(pAddress + 0x5) = 0x90;
*(BYTE*)(pAddress + 0x6) = 0x90;
*(BYTE*)(pAddress + 0x7) = 0x90;
*(BYTE*)(pAddress + 0x8) = 0x90;
*(BYTE*)(pAddress + 0x9) = 0x90;
VirtualProtect(pAddress, 0x10, dwOldProtect, &dwBkup);
}
