Space Telescope and optical reverberation mapping project. XI. Disk-wind characteristics and contributions to the very broad emission lines of NGC 5548