RtlStringCchPrintfA

NTSTATUS __stdcall RtlStringCchPrintfA(INT8 *pszDest, UINT64 cchDest, INT8 *pszFormat){
  __int64 v3; 
  NTSTATUS v4; 
  UINT64 v6; 
  int v7; 
  __int64 Args; 

  Args = v3;
  v4 = 0;
  if( cchDest - 1 > 0x7FFFFFFE )
    v4 = -1073741811;
  if( v4 < 0 )
  {
    if( cchDest )
      *pszDest = 0;
  }
  else
  {
    v6 = cchDest - 1;
    v4 = 0;
    v7 = vsnprintf(pszDest, cchDest - 1, pszFormat, (va_list)&Args);
    if( v7 < 0 || v7 > v6 )
    {
      pszDest[v6] = 0;
      return -2147483643;
    }
    else if( v7 == v6 )
    {
      pszDest[v6] = 0;
    }
  }
  return v4;
}

Referenced by:

IopApplySystemPartitionProt
IopCopyBootLogRegistryToFile
IopCreateArcName
IopCreateArcNames
IopCreateArcNamesCd
IopGetBootDiskInformation
IopMarkBootPartition
PipCriticalDeviceWaitCallback