Results 1 to 4 of 4
  1. #1
    NB81's Avatar
    Join Date
    May 2012
    Gender
    male
    Location
    Germany?
    Posts
    55
    Reputation
    10
    Thanks
    10

    How to find function through call

    Hello,

    Today I wanted to hack my ammo in Sniper Elite Nazi Zombie Army 2. I realized there is no exact address for that, but for the displayed value. So I have to get the function that writes the value to display. I have the line where the my ammo gets written to the address that is displayed. Before this line there is a call edx instruction. I know this should be the right value, because this is the one that written to the displaying address. So how could I find the function that is giving the correct value of my ammo to the displaying address(call edx)?

    Thanks in advance!

  2. #2
    n4n033's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Windows
    Posts
    1,090
    Reputation
    43
    Thanks
    2,425
    My Mood
    Cool
    Quote Originally Posted by NB81 View Post
    Hello,

    Today I wanted to hack my ammo in Sniper Elite Nazi Zombie Army 2. I realized there is no exact address for that, but for the displayed value. So I have to get the function that writes the value to display. I have the line where the my ammo gets written to the address that is displayed. Before this line there is a call edx instruction. I know this should be the right value, because this is the one that written to the displaying address. So how could I find the function that is giving the correct value of my ammo to the displaying address(call edx)?

    Thanks in advance!
    Try to analys the game while shooting with CE and it should get you the exact address


    The Only Bests :


    R3d_L!n3(Fares)
    Aeroman (Brent)
    TheCamels8 (Ori)


  3. #3
    abuckau907's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    other side of the wire
    Posts
    1,342
    Reputation
    162
    Thanks
    239
    My Mood
    Cold
    Quote Originally Posted by NB81 View Post
    ... I have the line where the my ammo gets written to the address that is displayed. Before this line there is a call edx instruction...
    So how could I find the function that is giving the correct value of my ammo to the displaying address(call edx)?

    Thanks in advance!
    The function's addr is edx..

    Code:
    call edx
    edx = the address of where to jump to and continue executing code.
    edx = beginning of the function.

    ?
    'Some things that can be counted, don't matter. And some things that matter, can't be counted' - A.E.
    --
     

    My posts have some inaccuracies/are wrong/wrong keyword(s) used.
    They're (maybe) pretty close, and I hope they helped you, not created confusion. Take with grain of salt.

    -if you give rep, please leave a comment, else it means less.

  4. #4
    Fovea's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    325
    Reputation
    101
    Thanks
    411
    My Mood
    Amused
    It sounds like the ammo display function is a virtual function. In that case, the ammo may be "passed in" via the this pointer. Somewhere within the code you may see a reference to ecx with some offset that could possibly be the ammo member of the class. If the display class is properly separated from the player entity itself then the ammo will be passed in via a parameter and the parameter will be pushed onto the stack before the call, or the entity class is itself the parameter and the display function updates all relevant members of the entity class.
    Last edited by Fovea; 11-17-2013 at 03:06 PM.

Similar Threads

  1. [Help] How to find someone's IP address through skype
    By LemonMang in forum General Hacking
    Replies: 3
    Last Post: 08-08-2013, 02:18 PM
  2. [Help] how to find functions with cheat engine debugger
    By iwiniwin in forum General Game Hacking
    Replies: 0
    Last Post: 03-02-2013, 03:32 PM
  3. [Help] How to Find Walk Through Walls Addy ?
    By Tuninho1337 in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 14
    Last Post: 10-02-2012, 09:55 AM
  4. Replies: 8
    Last Post: 07-09-2007, 03:15 PM
  5. how to find rar pw?
    By tekmo in forum General
    Replies: 1
    Last Post: 10-23-2006, 10:08 AM