Troubles calling GetUnitRelation menu

Shout-Out

User Tag List

Results 1 to 4 of 4
  1. #1
    hypnodok's Avatar Member
    Reputation
    19
    Join Date
    Nov 2007
    Posts
    65
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Troubles calling GetUnitRelation

    This is my code:
    Code:
                uint GetUnitRelation = 0x00666B10;
                uint codeCave = wow.AllocateMemory(0x1000);
                byte[] bInject = { 0xFF, 0x35, 0, 0, 0, 0, 0x8b, 0x1D, 0, 0, 0, 0, 0xE8, 0, 0, 0, 0, 0x83, 0xC4, 0x04, 0xC3 };
                wow.WriteBytes(codeCave, bInject);
                GetUnitRelation -= codeCave + 17;
                wow.WriteUInt(codeCave + 13, GetUnitRelation);
                wow.WriteUInt(codeCave + 2, codeCave + 0x500);
                wow.WriteUInt64(codeCave +0x500, unit1BasePointer);
                wow.WriteUInt(codeCave + 8, codeCave + 0x504);
                wow.WriteUInt64(codeCave + 0x504, unit2BasePointer);
                IntPtr handle = wow.CreateRemoteThread(codeCave, 0);
                Memory.WaitForSingleObject(handle);
                Memory.CloseHandle(handle);
                wow.FreeMemory(codeCave);
                Console.WriteLine(Memory.GetExitCodeThread(handle));
    This is how it looks in olly:
    Code:
    021E0000   FF35 00051E02    PUSH DWORD PTR DS:[21E0500]
    021E0006   8B1D 04051E02    MOV EBX,DWORD PTR DS:[21E0504]
    021E000C   E8 FF6A48FE      CALL Wow.00666B10
    021E0011   83C4 04          ADD ESP,4
    021E0014   C3               RETN
    I understand the function looks like this:
    unsigned long GetUnitRelation( CGObject_C * pObject );
    This should mean that I need to push the pointer to an object to the stack prior to calling it.
    Also, I sorta guessed that it also expects the pointer to a unit in EBX due to this line:
    00666B31 |> 8B83 08010000 MOV EAX,DWORD PTR DS:[EBX+108]
    00666B37 |. 8B88 D0000000 MOV ECX,DWORD PTR DS:[EAX+D0]
    I know that theres that other pointer to UnitFields.
    However this exception still occurs every time I call it:

    Any help?

    Troubles calling GetUnitRelation
  2. #2
    kynox's Avatar Member
    Reputation
    830
    Join Date
    Dec 2006
    Posts
    888
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You should be moving the class pointer into ECX, not EBX.
    Also, it is __stdcall, so its cleaning up the stack. Remove your Add ESP, 4

  3. #3
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1358
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by kynox View Post
    You should be moving the class pointer into ECX, not EBX.
    Also, it is __stdcall, so its cleaning up the stack. Remove your Add ESP, 4
    Its not __stdcall its __thiscall. (Because 'this' is passed through ECX)

  4. #4
    hypnodok's Avatar Member
    Reputation
    19
    Join Date
    Nov 2007
    Posts
    65
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks again.

Similar Threads

  1. [1.12] Trouble with ClntObjMgrObjectPtr calling convention
    By Saridormi in forum WoW Memory Editing
    Replies: 6
    Last Post: 06-24-2016, 05:57 AM
  2. Trouble Calling SetFacing from VMT (I think)
    By BraveSoul in forum WoW Memory Editing
    Replies: 1
    Last Post: 03-24-2009, 08:47 AM
  3. Call of duty 2 crack cd key.
    By Goggelpuff in forum Gaming Chat
    Replies: 3
    Last Post: 11-01-2006, 09:18 AM
  4. How To Get to Que'thelas or w/e its called!!!
    By Tbone in forum World of Warcraft Exploits
    Replies: 17
    Last Post: 07-25-2006, 10:28 AM
All times are GMT -5. The time now is 11:18 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search