Let me see if I can get this straight, by using a hypothetical example:
I have a host with four VMs:
VM1 is protected by HA and is running.
VM2 is protected by HA, but currently powered-off.
VM3 is not protected and is running.
VM4 is not protected and is powered off.
das.reregisterRestartDisabledVMs is set True.
If I put the host into maintenance mode:
VM1 would be moved to another host and continue running.
VM2 would be reregistered with vCenter. (By being shutdown, the VM is restartDisabled.)
VM3 would most likely prevent the host from entering maintenance mode. So would need to be manually migrated or shutdown.
VM4 would be reregistered with vCenter. (By being unprotected, the VM is restartDisabled.)