wcscat_s

NTSTATUS __stdcall wcscat_s(WCHAR *Dst, UINT64 SizeInWords, WCHAR *Src){
  WCHAR *v3; 
  signed __int64 v4; 
  WCHAR v5; 
  NTSTATUS v6; 

  if( Dst && SizeInWords )
  {
    if( !Src )
      goto LABEL_14;
    v3 = Dst;
    do
    {
      if( !*v3 )
        break;
      ++v3;
      --SizeInWords;
    }
    while( SizeInWords );
    if( SizeInWords )
    {
      v4 = (char *)v3 - (char *)Src;
      do
      {
        v5 = *Src;
        *(WCHAR *)((char *)Src + v4) = *Src;
        ++Src;
        if( !v5 )
          break;
        --SizeInWords;
      }
      while( SizeInWords );
      if( SizeInWords )
        return 0;
      v6 = 34;
    }
    else
    {
LABEL_14:
      v6 = 22;
    }
    *Dst = 0;
    xHalTimerWatchdogStop(0i64, 0i64);
    return v6;
  }
  else
  {
    xHalTimerWatchdogStop(0i64, 0i64);
    return 22;
  }
}

Referenced by:

AslPathToNetworkPathNt
BcdGetSystemStorePath
ExpCreateOutputSIGNATURE
ExpWatchLicenseInfoWork
ExpWatchProductTypeInitialization
NtLockProductActivationKeys
RtlConvertSidToUnicodeString
VhdiMountVhdFile