As a result of the rooster crowing, no longer would Peter ever be so cocky. Writing his Epistles, he will identify himself as Simon Peter, a servant of Jesus Christ. Simon was his name before he became a disciple. It means "shifting sand" or "unstable one." The Lord changed Simon's name to Peter, or "Rock." But after this event, it was as if he said, "Yes, I'm Peter in the Lord by His grace. But I'm still also Simon because I know my tendency to fail."
I think there's something else here. I believe in using a rooster, the Lord was telling Peter that even though he messed up, even though he committed a singularly hideous sin in denying Jesus even as Jesus was about to die for him, there would be a new day dawninga new day of humility, of brokenness, of forgiveness after which He would use Peter mightily. The same is true of you. You will find the Lord will do a mighty work in and through you if, at the point of failure, you turn to Him.