RtlCopyUnicodeString

VOID __stdcall RtlCopyUnicodeString(
        UNICODE_STRING *DestinationString,
        UNICODE_STRING *SourceString,
        UNICODE_STRING *a3){
  unsigned int Length; 
  unsigned int MaximumLength; 
  wchar_t *Buffer; 
  wchar_t *v7; 
  unsigned __int64 v8; 
  if( SourceString )
  {
    Length = SourceString->Length;
    MaximumLength = DestinationString->MaximumLength;
    Buffer = SourceString->Buffer;
    if( (unsigned __int16)Length <= (unsigned __int16)MaximumLength )
      MaximumLength = Length;
    v7 = DestinationString->Buffer;
    v8 = MaximumLength;
    DestinationString->Length = MaximumLength;
    memmove((UINT8 *)v7, (UINT8 *)Buffer, MaximumLength);
    if( (unsigned __int64)DestinationString->Length + 2 <= DestinationString->MaximumLength )
      v7[v8 >> 1] = 0;
  }
  else
  {
    DestinationString->Length = 0;
  }
}

Referenced by:

AdtpObjsInitialize
AhcCacheQueryHwId
AuthzBasepCopyoutInternalSecurityAttributeValues
AuthzBasepCopyoutInternalSecurityAttributes
AuthzBasepDuplicateSecurityAttributes
CmpGetVirtualizationID
CmpLoadHiveVolatile
EtwpGetLoggerInfoFromContext
ExRaiseHardError
ExtEnvRegisterIommu
FsRtlFindInTunnelCacheEx
HalpInterruptRegisterController
HalpRegisterDmaController
HalpTimerRegister
IoQueryFullDriverPath
IoReportRootDevice
IopBootLog
IopCheckTopDeviceHint
IopFileUtilWalkDirectoryTreeBottomUp
IopFileUtilWalkDirectoryTreeHelper
IopParseDevice
IopQueryRegistryKeySystemPath
IopSafebootDriverLoad
IopSymlinkUpdateECP
MiAllocateSecureImageActivePatch
MiFillActivePatchesQueryBuffer
MiQueryLoadedPatches
ObCreateObjectTypeEx
ObGetSiloRootDirectoryPath
OpenGlobalizationUserSettingsKey_ForSingleUserModel
PiDeferSetInterfaceState
PiUEventHandleVetoEvent
PipProcessDevNodeTree
PipRecordOpenHandleVeto
PipSendTargetDeviceQueryRemoveNotification
PnpConcatenateUnicodeStrings
PnpCopyDeviceInstancePath
PnpFinalizeVetoedRemove
PnpNotifyHwProfileChange
PnpProcessQueryRemoveAndEject
PnpProcessRelation
PnpQueryRemoveLockedDeviceNode
PopFxRegisterComponentPerfStates
PopGenerateDeviceFriendlyName
PopProcessWakeSourceWork
PsRegisterSiloMonitor
PspSiloInitializeSystemRootBuffer
PspSiloInitializeSystemRootSymlink
RtlConvertSidToUnicodeString
RtlPcToFileName
RtlPcToFilePath
SdbMakeIndexKeyFromStringEx
SeOpenObjectAuditAlarmWithTransaction
SeOpenObjectForDeleteAuditAlarmWithTransaction
SepAddTokenOriginClaim
SepAllocateAndInitializeCachedHandleEntry
StartFirstUserProcess
VrpBuildKeyPath