So you have a variable that is stored on the stack, and you want to find this variable every time the program starts up. Unfortunately, there is no algorithm of finding the variable because the stack is not mapped in the same place that the the PE image is. I was told that thread context could be used, and walking the stack. But what the ****? Isn't it much easier ffs? I mean you have a game, you have say for the sake of conversation a health variable that is stored on the stack, how do I get the address of this variable every time the program starts because RVA-Imagebase isn't cutting it, and it shouldn't be.