Similar case here, I stayed awake for almost 3 days and found it impossible to focus on anything, at one point even speaking sense became a struggleAlmost 3 days. Became extremely depressed and hallucinated a lot. It took me over a week to recover.
Trying to stay awake for that long to get something done is pointless. Once you hit the 36-40 hour mark you are pretty much useless at everything.