Exit Code -2147483645

Exit Code: -2147483645 (HEX: 0x80000003 - One or more arguments are invalid)

This error is caused when the registry contains malformed information involving the current Java installation. In most cases, reinstalling the proper version of Java should solve this, otherwise, you should get a registry cleaner to scan your computer.

Reinstalling Java

Minecraft, runs on a platform called Java. Java comes in many shapes, and forms, which may make it confusing exactly which version of it you should have installed, which is what this should hopefully explain.

First, we want to find out our OS's processor architecture. 

If you are on Windows - Press your Windows + R keys, to bring up a run dialogue, in it, type in: "cmd", and hit enter. This will bring up a command prompt window. In the window, type in: echo %processor_architecture% then hit enter. 
If the output was amd64, you have a 64-bit OS. If the output was x86, you have a 32-bit OS.

If you are on Mac OSX - You have a 64-bit OS, all good!

If you are on Linux - Type this command in a terminal window:  less /proc/cpuinfo.

Now that we have that,  look at the diagram below, and download the proper Java version for your OS and processor architecture. If you are prompted that said version of Java is already installed, please uninstall your current version of Java and redo this step. 

# 32 bit OS 64 bit OS
Windows jre-7u25-windows-i586.exe jre-7u25-windows-x64.exe
Mac OSX jre-7u25-macosx-x64.dmg
Linux jre-7u25-linux-i586.rpm jre-7u25-linux-x64.rpm

Once you have installed the proper Java version, you should give the game a go!

Using a registry scanner

If the above did not solve your solution, you may need to run a registry cleaner