PE: optimize traversing rsrc