Rob Shearman : advapi32: Move credential registry reading code to separate functions.