Ranbaxy books first profit in six quarters on exclusive drug launch