Immunohistochemistry, including markers such as calretinin, WT1, and BAP1, plays a pivotal role in confirming the diagnosis and differentiating malignant peritoneal mesothelioma from metastatic adenocarcinoma. The gene discussed is BAP1; the disease is malignant peritoneal mesothelioma.