I need to append a certain check to an existing exe I don't have the sourcecode of. The existing exe calls a certain DLL. The program may only be started when the calculated CRC matches that of a known good DLL. If the CRC does not match a message needs to be displayed.
Let's assume I am able to write a short exe that does the check. Is it possible to "concatenate" these two exe and only execute the second exe when the first confirms the correctness of the dll ?