add some code to save and restore EBX when initializing spawner