You can enumerate all the keys and values under HKLM\Hummingbird, and look for entries which end "\hostex.ini".

Then check that the file exists and update it.

Look in the manual for EnumKey() and EnumValue() to enumerate the registry.