I cannot use my computer until I repair a missing hal.dll file

Hello,
I cannot use my computer until I repair a missing hal.dll file. Do I have to restore the computer back to factory settings? It keeps on saying that the windows root system 32 hal.dll is missing or corrupt. What is the solution to this?
Thanks for the answer.
