Preimages of the sum of proper divisors function