I need to read a program's memory from a different application. I have the whole process and application 'connection' in place.
I have a function that searches for a pattern in the memory of the opened process, and that thanks to a signature returns a valid entry point to the function I'm interested in.
Problem is, the assembly instruction that leads me to the data (which I can't find through an offset or signature), is the following:
H5Calc.exe+12DDC5B - E8 10F1FFFF - call H5Calc.exe+12DCD70
I've searched around and found that this might serve my purpose:
return (MainClass*) *(DWORD*) PatternPointer;
but the problem is that the line above would work if using 'injection', and I'm using ReadProcessMemory since I'm not allowed to do so.
So, can somebody help 'translating' the
(MainClass*) *(DWORD*) PatternPointer;
pointer operation into a ReadProcessMemory call, considering the assembly instruction? Given that I'm opening from another application, I don't have access to the H5Calc memory area if not with ReadProcessMemory (which I can call regularly for other operations).
Any help appreciated.
Thanks.