Isn't iTunes available for free at apple.com?
I'd say it's very likely that it is.
Sorry to hear your trouble. I had once a whole library die on me. I had to set up everything again. The music was still there, but all the play counts, play lists, etc., were gone.