I basically agree with what they said. If he doesn't value your friendship, don't put up with that. Besides, no bad past (or present, in his case) justifies being a dickhead, which is what he is right now. He might have reasons, but if anything, have him come back to you. Put no more effort into it.