What does a criminal lawyer do when working on my case?

What does a criminal lawyer do when working on my case?