Just checked - better to use 'regx' than ECX (it is set at the beginning of the function to a usable scratch register).