Use edi instead of ebx to avoid issues with PIC.