On the closure of the image of the generalized divisor function