The shuttering and check engine light flashing means the car is mis-firing badly enough to damage the catalytic converters. This could be caused from a bad spark plug, coil, coil boot, vacuum leak, stuck injector, low compression, or leaky valve.
P0325 = Knock sensor 1 circuit -- bad sensor or wiring
P0138 = O2 sensor 1 bank 2 short to volts -- bad sensor or wiring
P0152 = O2 sensor 2 bank 2 short to volts -- bad sensor or wiring
P0446 = small evap leak detected -- probably gasket on the fuel tank
P0440 = Evap system failure -- probably caused by the P0446
Most important thing to get fixed first is the misfire, it can damage the engine if left alone.