I did more homework on this issue and did talk to a friend who had this error in the past...
Make sure you have no BF4 folder in C:\Users\your PC Name\Documents before you start all this
Go download the free version of CC cleaner..
https://www.piriform.com/ccleaner
Install CC Cleaner
Now use it to clean the registry, reboot PC and check the registry one last time for any issues. If it finds any repeat steps until it finds none.
Reboot PC try and run repair game again.
If it still fails to fix it use CC cleaner to uninstall Origin and BF4 and Reboot PC
Then clean the registry again with CC cleaner Reboot PC and check the registry one last time for any issues. If it finds any repeat steps until it finds none.
Now install new version of Origin Download the latest here: http://origin.com/download
Reboot PC and install BF4 and fingers crossed this should fix it for you.