Replaced some memcpy with __movsb to reduce the footprint.
Replaced some memset with __stosb to reduce the footprint.