krnl386: Use RtlCaptureContext and NtSetContextThread to implement register functions.