ECU help!

To keep a long story short, previous owner of my 2001 mustang gt replaced the engine with one out of an '02 automatic and kept the auto ECU with it even though the car is manual. Now my speedo reads double, I get O/D light, and engine codes for torque converter and such. ECU also won't read iat sensor cause the harness is different I assume from 01 to 02 with the iat and maf sensors. I live near Pittsburgh and have to get emissions tested and need all the lights gone but I want it to run right and read speed right. Don't wanna just clear the lights. Can I use any 2001 manual ECU and get it programmed to my vin and keys or do I need to buy a pre programmed one like from flagship one? This is the final piece to my project so any help is appreciated!
 
Yes, you need a 2001 Mustang GT manual PCM (manual trans calibration, same model year).

Once installed, it must be flashed to their VIN and PATS keys — otherwise the car won’t start because of the theft system.

Two options:

Buy a used ’01 GT manual ECU (any calibration code) → then have a Ford dealer, locksmith, or tuner shop reprogram it to your VIN and PATS keys.
Buy a “pre-programmed” PCM from a place like Flagship One or Solo PCMs → it comes VIN-flashed and ready to accept keys.

 
Yes, you need a 2001 Mustang GT manual PCM (manual trans calibration, same model year).

Once installed, it must be flashed to their VIN and PATS keys — otherwise the car won’t start because of the theft system.

Two options:

Buy a used ’01 GT manual ECU (any calibration code) → then have a Ford dealer, locksmith, or tuner shop reprogram it to your VIN and PATS keys.
Buy a “pre-programmed” PCM from a place like Flagship One or Solo PCMs → it comes VIN-flashed and ready to accept keys.

Ok awesome. I wasn't sure if I could get one that wasn't already vin matched. How much do people usually charge to do something like that?