Hey SnWnMe,
The 40 S&W and 9mm brass you picked up at the range does not seem all that remarkable. The firing pin marks you described will have no bad effects on the future use of the brass, and the bulges described also do not sound like they will pose any serious problems. Once you have resized them, if they look good they will probably be good. You could examine the inside of the cases after resizing, but I doubt if you will find any serious case deformation. Bulging usually comes from oversized chambers, but brass is usually able to be brought back into the correct size.
I would suspect if brass were repeatedly shot in a big oversized chamber, and resized enough times, the case life would be shortened considerably. However, chances are that you picked up brass that was only ever shot one time and discarded by someone who is a shooter and not a reloader. Such brass can provide a lot of use to you.
As long as you can plainly read the case head, there is little likelihood the brass is worn out. If you found brass that is bulged, the case head is hammered so hare you can barely make out the letters, and the primer is not just flat, but cratered, then you probably would not want to bother with that brass. If the brass looks good after resizing, chances are it is good.
As far as case dents go, that is common to many if not most semi-auto pistols and rifles. Usually the dents are minor, come out with resizing, and present no problems.
Best wishes,
Dave Wile