The worst part is here:

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\VirtualDeviceDrivers
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Control\VirtualDeviceDrivers
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet003\Control\VirtualDeviceDrivers
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\VirtualDeviceDrivers

NAV will add a double pair of zeros “00 00” at the end of the string, avoiding any other adding (it will be consider a comment).
This will prevent scanning on DOS under XP (an other Win16 applications).

You deserve the Nobel of peace if you develop such this application 8)