Bypassing a clever CD-check

Decompiling to understand how a CD-check was implemented in an old program.