First thing to do would be to obtain a legitimate copy of Windows, either from Dell or Microsoft.
Other thing to do before reinstalling is verify that the fan is working properly and that the heatsink assembly isn't clogged with dust - if it is, the system will overheat and shut down.