What is the function of «مُبْتَسِمًا» in «دَخَلَ زَيْدٌ مُبْتَسِمًا»?

Restricting the Verb: Objects, Complements and Conditional Clauses