You were wondering what the guy could be doing.
But you immediately realise that you know what he is doing,
because it's you.
And you know very well what you are doing:
You are walking through the building trying to find where she went.
(Where "she" is the only other person in this place.)