Sentence:  The Captain, with a half-guilty secret to confess, and with the prospect of a painful and stormy interview before him, entered Mr. Osborne's offices with a most dismal countenance and abashed gait, and, passing through the outer room where Mr. Chopper presided, was greeted by that functionary from his desk with a waggish air which farther <WSD>discomfited</WSD> him. 
Meaning of the word marked with <WSD> tags:  To embarrass greatly; to confuse; to perplex; to disconcert.