RobertReed
February 20th, 2009, 20:34
Problem: I need to rewrite a function that is being imported by my program.
Specifically: There are about 550 calls to _time64() in my program. I would like to re-assemble the imported function (_time64) so that it returns specific values required by my current project.
(Note: I do not want to patch the DLL it is being imported from because other programs require correct values from _time64().)
Strategy:
1. Assemble my own function and patch it somewhere into the application or into a new DLL.
2. Alter the import table so that _time64() points to my new function.
Does anyone know of any tutorials that demonstrate how to alter the import table in such a way? Otherwise, any suggestions or advice would be appreciated.
Thanks.
Specifically: There are about 550 calls to _time64() in my program. I would like to re-assemble the imported function (_time64) so that it returns specific values required by my current project.
(Note: I do not want to patch the DLL it is being imported from because other programs require correct values from _time64().)
Strategy:
1. Assemble my own function and patch it somewhere into the application or into a new DLL.
2. Alter the import table so that _time64() points to my new function.
Does anyone know of any tutorials that demonstrate how to alter the import table in such a way? Otherwise, any suggestions or advice would be appreciated.
Thanks.