Firstly, thanks a bunch for sharing that code snippet and shedding some light on the process! I gave it a shot, but unfortunately, it doesn't seem to be working for the game I'm trying to mod, Cyber Dude: Dev Tycoon.
I've tried using offset testers with various coins-related methods, but no...