VfMajorIsValidIrpStatus

NTSTATUS __stdcall VfMajorIsValidIrpStatus(_IO_STACK_LOCATION *IrpSp, INT64 Status){
  unsigned int v2; 
  __int64 MajorFunction; 
  unsigned int(__fastcall *v5)(_IO_STACK_LOCATION *); 

  v2 = Status;
  if( IrpSp->MajorFunction > 0x1Bu )
    MajorFunction = (IrpSp->MajorFunction != 0xFF) + 28i64;
  else
    MajorFunction = IrpSp->MajorFunction;
  v5 = (unsigned int(__fastcall *)(_IO_STACK_LOCATION *))*((_QWORD *)&unk_140D4B0F0 + 12 * MajorFunction);
  if( (!v5 || v5(IrpSp)) && qword_140D4BB70 )
    return qword_140D4BB70(IrpSp, v2);
  else
    return 0;
}

Referenced by:

ViGenericVerifyIrpStackDownward
ViGenericVerifyIrpStackUpward