OP your diving into a money put to get those numbers.
The easiest way to get 400whp is going to be with ej207.
The swap with a tranny is going to run you a little under 10K all in all. That is including the wiring harness, getting the motor inspected, replacing the timing belt and water pump, new clutch and a new radiator (which I did because it was all torn apart, flywheel etc...
But with that motor using e85 and pushing a 20g pretty hard you can get to 400whp. But besides the swap your looking at another 10k. Wheels and tires, suspension, a used turbo setup (fmic, injectors, ewg up-pipe, turbo etc), all the interior goodies like gauges etc, and finally a good tune. So now your 20k deep and the motor is on a very shortened life span, and this is a built block from the factory).
Take that 20k and go get an Evo. You will be much happier that way.