Dory 's memory is restored after she reads the word `` Sydney '' on a nearby drainpipe .
Dory 's memory is restored after she reads the word `` Sydney '' on a nearby drainpipe and , remembering her journey , she guides Nemo to Marlin .