RtlInitAnsiStringEx

UINT64 __fastcall RtlInitAnsiStringEx(
        _LARGE_INTEGER PhysicalAddress,
        UINT64 NumberOfBytes,
        _MEMORY_CACHING_TYPE CacheType,
        UINT8 a4){
  unsigned __int64 v4; 
  *(_QWORD *)PhysicalAddress.QuadPart = 0i64;
  *(_QWORD *)(PhysicalAddress.QuadPart + 8) = NumberOfBytes;
  if( !NumberOfBytes )
    return 0i64;
  v4 = -1i64;
  do
    ++v4;
  while( *(_BYTE *)(NumberOfBytes + v4) );
  if( v4 <= 0xFFFE )
  {
    *(_WORD *)PhysicalAddress.QuadPart = v4;
    *(_WORD *)(PhysicalAddress.QuadPart + 2) = v4 + 1;
    return 0i64;
  }
  return 3221225734i64;
}

Referenced by:

ExpCovReadFriendlyName
RtlCreateUnicodeStringFromAsciiz
RtlInitUTF8StringEx