GetObjectByGuid 2.4.3 signatures vs 3.3.5 signature. menu

Shout-Out

User Tag List

Results 1 to 6 of 6
  1. #1
    tiger_lilly's Avatar Member
    Reputation
    1
    Join Date
    May 2019
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    GetObjectByGuid 2.4.3 signatures vs 3.3.5 signature.

    When decompiling GetObjectByGuid in 2.4.3 (@0x0046B610):

    Code:
    int __cdecl GetObjectByGuid(int a1, int a2, int a3)
    {
      int result; // eax@2
    
      if ( !*(_DWORD *)(*(_DWORD *)(__readfsdword(44) + 4 * TlsIndex) + 8)
        || (result = sub_46B520(a1, a2)) != 0 && !(a3 & *(_DWORD *)(*(_DWORD *)(result + 8) + 8)) )
      {
        result = 0;
      }
      return result;
    }
    This is 3.3.5a (@x004D4DB0):

    Code:
    int __cdecl GetObjectByGuid(__int64 a1, int a2)
    {
      int v2; // ecx@1
      int result; // eax@3
      __int64 v4; // [sp+0h] [bp-8h]@3
    
      v2 = *(_DWORD *)(*(_DWORD *)(__readfsdword(44) + 4 * TlsIndex) + 8);
      if ( !v2
        || !a1
        || (v4 = a1, (result = sub_4D4BB0(v2, a1, (int)&v4)) != 0) && !(a2 & *(_DWORD *)(*(_DWORD *)(result + 8) + 8)) )
      {
        result = 0;
      }
      return result;
    }
    It seems like in 3.3.5a, I can simply pass ulong to the function, and get the object. Why is the function parameter for 2.4.3, showing 2 ints, and not an int64? Here's a call to this function:

    sbCFlCW.png

    Are these 2 separate types, or is this just decompiler fun not realizing it's a ulong?

    GetObjectByGuid 2.4.3 signatures vs 3.3.5 signature.
  2. #2
    h42's Avatar Contributor CoreCoins Purchaser
    Reputation
    130
    Join Date
    Oct 2006
    Posts
    108
    Thanks G/R
    140/52
    Trade Feedback
    12 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That looks like the decompiler messing up yeah, should be same ulong guid as usual.

  3. #3
    crepto's Avatar Member
    Reputation
    1
    Join Date
    Jan 2019
    Posts
    3
    Thanks G/R
    3/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It shouldn't matter how you pass it, the cleanup of the stack will be the same number of bytes.

  4. #4
    tiger_lilly's Avatar Member
    Reputation
    1
    Join Date
    May 2019
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah, I realize that now. I was getting memory read errors, but it was because I was trying to setup vtable calls on 3.3.5a offsets (To get the name of the object). I can enumerate objects now, and retried guids/type out of memory now, but I'm completely stumped on how to find the vtable pointing to GetObjectName (Which happened to be basePtr + 54 in 3.3.5a), which doesn't appear to be the case in 2.4.3. Still trudging through this, but if you could give me any pointers, I would be greatly appreciated.

  5. #5
    h42's Avatar Contributor CoreCoins Purchaser
    Reputation
    130
    Join Date
    Oct 2006
    Posts
    108
    Thanks G/R
    140/52
    Trade Feedback
    12 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hard to help you without knowing how much you understand and what you have already tried. Are you aware of how the different object types work and how descriptors work etc?
    There is a lot of old info on these builds in this forum, nothing has changed since back then so it should all still be relevant, a quick search points to this question and answers:
    https://www.ownedcore.com/forums/wor...ml#post3431704 (2.4.3 Offsets & Pointers)
    That thread also has a whole bunch of info on the build.

    If you're asking for how to find things in general then that's a whole topic on its own, but for many things in WoW you can always start digging in the lua for a function there that might lead you where you want, like the guy asking the question in the above linked thread.

  6. Thanks squiggy (1 members gave Thanks to h42 for this useful post)
  7. #6
    tiger_lilly's Avatar Member
    Reputation
    1
    Join Date
    May 2019
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah, I've read all those threads forwards and backwards. I'll post a more detailed post in the future, if I'm still stuck. Thanks for some direction.

Similar Threads

  1. Mac vs. Windows
    By Tenche in forum Community Chat
    Replies: 31
    Last Post: 11-13-2006, 03:57 PM
  2. Hunter vs <Class> Guide
    By husky003 in forum World of Warcraft Guides
    Replies: 11
    Last Post: 09-27-2006, 09:44 PM
  3. Warlock vs.-=Classes=-
    By B7huff in forum World of Warcraft Guides
    Replies: 2
    Last Post: 07-17-2006, 01:15 PM
  4. Bg faction vs faction idea
    By Quake in forum World of Warcraft General
    Replies: 14
    Last Post: 07-13-2006, 09:45 AM
  5. New Signature!
    By janzi9 in forum World of Warcraft General
    Replies: 5
    Last Post: 05-05-2006, 02:10 PM
All times are GMT -5. The time now is 03:32 PM. 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