Kernel32.HeapCreate is for memory allocation (like when you do in C++ char *pchar = new char[size];)
So, my quick guess is that, when that function is called (Kernel32.HeapCreate), at that point it is preparing a new char array (string) to put the serial on.