I hope someone can help me. I have a feeling that I made a stupid mistake.
I'm using this code for targeting:
Code:
internal static unsafe void TargetUnit(UInt128 guid)
{
lock (FASMLock)
{
IntPtr address = _wowProcess.Memory.AllocateMemory(sizeof(UInt128));
_wowProcess.Memory.Write(address, guid);
string[] asm = {
"mov eax, " + address,
"push eax",
"mov eax, " + (_wowProcess.Memory.ImageBase + WowBuildInfo.TargetUnit),
"call eax",
"add esp, 0x16",
"retn"
};
try
{
InjectVoid(asm);
}
catch
{
// Log
}
}
}
WowBuildInfo.TargetUnit = 0x903527;
After calling WoW just closes without errors. Please help