|"Too often it freezes or the mouse goes nuts, moving to anyplace except where I want it to go!"|
Assuming you don't have a problem caused by the surface you're using the mouse on...
Software problems in Windows, or hardware problems with the mouse, CAN cause the cursor to not move, but the cursor moving like that, for a mouse that has no ball inside of it, is usually caused by a hardware problem, not a software or malware problem.
Searching the web with: Engage optical mouse
finds that many of them are wired mice.
It's common for a wired mouse to develop one or more broken wire(s) inside it's cord, after the mouse has been used a lot, or at any time if the cord has been yanked on, usually near where the cord enters the mouse, much less often at the other end near it's plug. The smaller the diameter of the cord, the more likely that will happen eventually, sooner.
If a wire is broken but it's insulation is intact, the wire ends are touching but the connection can be intermittent - the mouse works fine sometimes, sometimes it doesn't. If you wiggle the cord near where the wire is broken, the mouse MAY work fine when the cord is in a certain position, NOT work fine when it's in another position.
Also, dropping the mouse can damage it's circuits.
Try the subject mouse with another computer for a while. You'll probably find it does the same things on the other computer.
Try another mouse with your computer for a while You'll probably find you have no problems with that.