What is this door mechanism called
This is a rim lock or sometimes called a rim latch. Yours looks to be made of cast iron, and while you may not be able to find the exact duplicate, you may be able to come close.