Semi-classical quantization in N = 4 supersymmetric Yang-Mills theory and duality