ADVAPI32.dll is a Windows System file that can sometimes have issues.
For Windows 8 and above:
Try running the sfc /scannow command to scan and fix system file errors.
If sfc /scannow doesn’t find/fix the error then the usual next thing to try is the command: DISM /Online /Cleanup-Image /RestoreHealth
Then run sfc /scannow again.
However if you are running Windows 7 then you need to do it slightly differently, see here: