Sentence:  "Keep thy money, man, and gi's thy hand," says he, and they shake hands; but the old gamester gives the new hat to the shepherd, and, soon after, the half-sovereign to Willum, who <WSD>thereout</WSD> decorates his sweetheart with ribbons to his heart's content. 
Meaning of the word marked with <WSD> tags:  Out of it, out from it.