title: Find an instruction in an executable file, given its address in a running process?
body: <p>I'm modifying an old abandonware game to have infinite lives.</p>
  
  <p>The Address that has the instruction <code>dec ecx</code> is not the same as its position in the .exe debugged.</p>
  
  <p>I remembered that an old friend of mine told me once that there was a formula to get the "true" address with the instruction inside the .exe. Cheat engine gives me the Memory Address.  I remember that in the math formula, I needed to get the Module, in OllyDbg i get it. But i can't remember the formula. Somebody know how is that math formula? The formula it's very simple! 
  There's another way to get the file position to permanently modify the .exe?</p>