When ever i try to run this code it crashs wow anyone know what im doing wrong? :confused:
Code:
int ObjectByGUID = 0x007BE110; //update every patch
BM.OpenProcessAndThread(Memory.GetProcessIdByProcessName("WoW"));
uint codeCave = BM.AllocateMemory();
BM.Asm.Clear();
BM.Asm.AddLine("push 0x10");
BM.Asm.AddLine("push {0}", GUIDHigh); //local guid
BM.Asm.AddLine("push {0}", GUIDLow); //local guid
BM.Asm.AddLine("mov eax, {0}", ObjectByGUID);
BM.Asm.AddLine("call eax");
BM.Asm.AddLine("add esp, 0x14");
BM.Asm.AddLine("retn");
BM.SuspendThread();
uint obj = BM.Asm.InjectAndExecute(codeCave); ;
BM.ResumeThread();
BM.FreeMemory(codeCave);
return obj;
Function that im copying (I think this my problem copying the wrong one)
Code:
0079B0B9 E8 12180200 CALL WoW.007BC8D0
0079B0BE 68 A1000000 PUSH 0A1
0079B0C3 68 78439900 PUSH WoW.00994378
0079B0C8 6A 10 PUSH 10
0079B0CA 52 PUSH EDX //high
0079B0CB 50 PUSH EAX //low
0079B0CC E8 3F300200 CALL WoW.007BE110
0079B0D1 83C4 14 ADD ESP,14