Multifunctionality and mechanism of ligand binding in a mosquito antiinflammatory protein