Where can I find the source for the loader that puts up "esc

I am looking to make a small change to the loader to output a few bytes to
the serial port when loading an image. I have 6.2.1 PE. Anybody know where
this source code is?

Thanks,

John