From the schematic in reply #4:
1 V * (100 kΩ + 220 kΩ) / 100 kΩ = 3.2 V
The maximum value you can get is 1023 (0x3FF), not 1024. However, you're right, the divisor is debatable. For example, the ATmega328P datasheet tells you to divide by 1024. I don't know if there's anything in the ESP8266 datasheet about it.