The Allahabad High Court on Thursday directed the Archaeological Survey of India (ASI) to inspect the controversial Shahi Jama Masjid at Sambhal to determine the necessity of whitewashing, decorative arrangements and repair of the mosque ahead of Ramzan.