Rename the function GetRegKey to GetReg, push functions to write and delete registry keys