WmipCountedToSz

WCHAR *__fastcall WmipCountedToSz(WCHAR *Counted){
  unsigned __int64 v1; 
  UINT8 *PoolWithTag; 
  WCHAR *v4; 
  v1 = *Counted;
  PoolWithTag = (UINT8 *)ExAllocatePoolWithTag(PagedPool, v1 + 2, 0x70696D57ui64);
  v4 = (WCHAR *)PoolWithTag;
  if( PoolWithTag )
  {
    memmove(PoolWithTag, (UINT8 *)Counted + 2, (unsigned int)v1);
    v4[v1 >> 1] = 0;
  }
  return v4;
}

Referenced by:

WmipAddDataSource
WmipPrepareWnodeSI