plz help me to understand function call menu

User Tag List

Results 1 to 4 of 4
  1. #1
    codedemen's Avatar Member CoreCoins Purchaser
    Reputation
    1
    Join Date
    Jan 2013
    Posts
    16
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    plz help me to understand function call

    Ive got a func(Hex rays)
    Code:
    sub(void *this, int a2, char a3)
    and here is a call to it:
    Code:
     sub(*(_DWORD *)v5, 1);
    The question is:
    would *this be *(_DWORD *)v5, a2 = 1 and a3 null OR a2 is *(_DWORD *)v5 and a3 is 1, then how to find what is this in that case?

    Thak you for your help!

    plz help me to understand function call
  2. #2
    danwins's Avatar Contributor
    Reputation
    189
    Join Date
    Mar 2013
    Posts
    143
    Thanks G/R
    6/62
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    *this is the this pointer passed on the ECX register as part of the __thiscall calling convention.

    see https://msdn.microsoft.com/en-us/library/ek8tkfbw.aspx

  3. #3
    Jadd's Avatar 🐸 Premium Seller
    Reputation
    1515
    Join Date
    May 2008
    Posts
    2,433
    Thanks G/R
    81/336
    Trade Feedback
    1 (100%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Hex-rays updates function definitions as they are decompiled. It probably won't recognise "sub" is a __thiscall until it has also been decompiled, so it doesn't realise it needs to show ecx as a parameter, too.

    Decompile "sub", then go back and decompile the caller function, and you'll probably notice it will then pass 3 parameters, like it should.

  4. #4
    codedemen's Avatar Member CoreCoins Purchaser
    Reputation
    1
    Join Date
    Jan 2013
    Posts
    16
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you! Just have been using too old ida version =)

Similar Threads

  1. Race-Race change error plz help
    By Lexan in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 02-27-2007, 10:30 AM
  2. Question plz helP!
    By viroblade in forum World of Warcraft General
    Replies: 1
    Last Post: 12-31-2006, 05:51 PM
  3. Im Looking For A /script Macro... Plz Help
    By codycondame in forum World of Warcraft General
    Replies: 0
    Last Post: 10-05-2006, 02:04 PM
  4. Problems with WoWGlider.. Plz help
    By malware in forum World of Warcraft General
    Replies: 9
    Last Post: 09-08-2006, 09:07 PM
  5. EPL honor change som1 plz help
    By jooman360 in forum World of Warcraft General
    Replies: 5
    Last Post: 08-31-2006, 02:04 PM
All times are GMT -5. The time now is 05:22 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