uintptr_t __fastcall GetEntityByIndex(int EntityId)
{
using FnGetBaseEntity = uintptr_t(__fastcall*)(void*, int);
static FnGetBaseEntity fnGetBaseEntity =
reinterpret_cast<FnGetBaseEntity>(
M::FindPattern(L"client.dll", "4C 8D 49 ? 81 FA ? ? ? ? 77 ? 8B CA C1 F9 ? 83 F9 ? 77")
);
return fnGetBaseEntity(this, EntityId);
}