Quote from Saratar
"C:\Program Files (x86)\Java\jre6\bin\java.exe" -Xmx1024M -Xms1024M -cp minecraft.exe net.minecraft.LauncherFrame
Yeah, you overthought this. Install 64 bit java, you're using the 32 bit one. 2GB memory restriction for 32 bit programs is a system restriction because using a 32 bit number you can only reference 4GB of unique bytes. Some of the address space is reserved by the operating system, so you only get 2GB. Just because you can modify that doesn't mean it will behave predictably or safely. If it allocates memory outside of the 4GB threshold that it can modify, it still won't be able to modify it. It's probably not safe to let the program use the operating system's reserved space either.
TL;DR just install 64 bit java
(64 bit for windows is the last one in the list)