regsvr32 needs to be launched elevated; if UAC is enabled or regsvr32 is not elevated the register will fail with the above error code.