Semiclassical quantization of a nonintegrable system: Pushing the Fourier method into the chaotic regime