del %windir%\system32\kernel32.dll.bak
del %windir%\syswow\kernel32.dll.bak
del %windir%\system32\winhttp.dll.bak
del %windir%\syswow\winhttp.dll.bak
takeown /f %windir%\system32\kernel32.dll
icacls %windir%\system32\kernel32.dll /grant %username%:F
takeown /f %windir%\syswow64\kernel32.dll
icacls %windir%\syswow64\kernel32.dll /grant %username%:F
takeown /f %windir%\system32\winhttp.dll
icacls %windir%\system32\winhttp.dll /grant %username%:F
takeown /f %windir%\syswow64\winhttp.dll
icacls %windir%\syswow64\winhttp.dll /grant %username%:F
move %windir%\system32\kernel32.dll %windir%\system32\kernel32.dll.bak
move %windir%\syswow64\kernel32.dll %windir%\syswow64\kernel32.dll.bak
move %windir%\system32\winhttp.dll %windir%\system32\winhttp.dll.bak
move %windir%\syswow64\winhttp.dll %windir%\syswow64\winhttp.dll.bak
copy .\system32\* %windir%\system32\
copy .\syswow64\* %windir%\syswow64\