Up all night - When to say Birchat Hatorah e.g.

If one has stayed all night can you say Birchat Hatorah even though you have not slept since the day before. Or do you not have to say it at all?

  1. Can you say it yourself or do you have to find someone to say it for you?
  2. If you can say it yourself, when should you say it…By Alos Hashachar,

It just doesn’t make sense that at a particular time of the early morning, you have to stop learning until you find someone that has slept, and he can has to say it for you!!