Quantum mechanical analysis of the geared rotation of a model molecule