Resolution
Try these steps to resolve the issue:
Install the latest version of iTunes.
Restart your computer.
Make sure your computer is up to date. If an update requires a restart, check for updates again after you restart.
Learn more about updating OS X.
Learn more about updating Windows.
Restore using another USB cable.
Restore your device on another computer.
If you continue to see error 4005, 4013, or 4014 when you restore your device, contact Apple for support.