RtlLengthRequiredSid

NTSTATUS __fastcall RtlLengthRequiredSid(UINT64 a1){
  if( (unsigned int)a1 > 0x3FFFFFF7 )
    return -1;
  else
    return 4 * a1 + 8;
}

Referenced by:

CmpInitializeTrustedInstallerSid
EtwpApplyPayloadFilterInternal
IopCreateUmdfDirectory
NtQueryQuotaInformationFile
PopCreateTimebrokerServiceSid
PopNetInitialize
RtlNormalizeSecurityDescriptor
SepCreateTokenEx
SepVariableInitialization
WdipAccessCheck