Intercept and redirect file requests
Lets get right to the point.
I have an application that access a file about 1gb in size. In order to shrink this application i need to shrink the 1gb file.
Using Procmon i have determined the program only access about 40mb of the file for the features i use. This was verified by creating a dummy file with only the data it will access, the rest zeroed out.
So the delima i am in is as follows, the program we will call application.exe:
Application.exe accesses file large.bin from address 0x11F34A02 to 0x143CFEC5.
File small.bin contains only the data accessed.
I need to intercept the request for data from 0x11F34A02 at large.bin and redirect to 0x00000000 at small.bin.
The only way i can think of to do this is by launching the program through an application i create and redirecting on the fly.
Up until now, i have had very limited experience in calling external files, and no experience in intercepting data requests.
Any help or direction here would be appreciated. I don't mind reading up on information (in fact i would prefer it) but i dont have a starting point. Hopefully someone can help!