Go to Audio Settings and ensure "DSP LLE" or "DSP HLE" is correctly configured; HLE is generally faster for mid-range PCs.
Emulation itself is legal. Downloading a game you do not own is a grey (and in many jurisdictions, illegal) area. To stay on the right side of the law: Go to Audio Settings and ensure "DSP LLE"