PeImportFirst computed the end of a section as VirtualAddress plus the
larger of VirtualSize and RawSize in 32 bits. A section that ends at or
above 4 GiB wrapped to a small value, so an RVA inside it was reported as
outside every section and MoveImportFirst threw.
Widen the sum to 64 bits before comparing.
Read the Import Directory entry only when the optional header holds it and NumberOfRvaAndSizes declares it. Require every import name to end with a NUL inside the file and resolve the names after the descriptor table is bounds-checked.