core, os_windows: implement the recognition of saved/restored non-volatile registers