RtlStringCbVPrintfA
INT64 __stdcall RtlStringCbVPrintfA(INT8 *pszDest, UINT64 cbDest, INT8 *pszFormat, INT8 *argList){
int v4;
UINT64 v6;
int v7;
v4 = 0;
if( cbDest - 1 > 0x7FFFFFFE )
v4 = -1073741811;
if( v4 < 0 )
{
if( cbDest )
*pszDest = 0;
}
else
{
v6 = cbDest - 1;
v4 = 0;
v7 = vsnprintf(pszDest, cbDest - 1, pszFormat, argList);
if( v7 < 0 || v7 > v6 )
{
pszDest[v6] = 0;
return(unsigned int)-2147483643;
}
else if( v7 == v6 )
{
pszDest[v6] = 0;
}
}
return(unsigned int)v4;
}Referenced by:
KsepLogEtwMessage
vDbgPrintExWithPrefixInternal