WmipCountedToSz

WCHAR *__stdcall WmipCountedToSz(WCHAR *Counted){
  unsigned __int64 v1; 
  VOID **PoolWithTag; 
  WCHAR *v4; 

  v1 = *Counted;
  PoolWithTag = ExAllocatePoolWithTag(1ui64, v1 + 2, 1885957463i64);
  v4 = (WCHAR *)PoolWithTag;
  if( PoolWithTag )
  {
    memmove(PoolWithTag, Counted + 1, v1);
    v4[v1 >> 1] = 0;
  }
  return v4;
}

Referenced by:

WmipAddDataSource
WmipPrepareWnodeSI