KiOpPreprocessSecureFault

NTSTATUS __stdcall KiOpPreprocessSecureFault(PVOID BugCheckParameter2, PVOID BugCheckParameter3){
  void *v3; 
  NTSTATUS result; 

  if( !VslVsmEnabled || *((_DWORD *)BugCheckParameter2 + 6) != 2 )
    KeBugCheckEx(0x12u, (PVOID)4, BugCheckParameter2, BugCheckParameter3, *((PVOID *)BugCheckParameter2 + 4));
  v3 = (void *)*((_QWORD *)BugCheckParameter2 + 4);
  if( !v3 || (unsigned __int64)v3 > 2 && v3 != (void *)4 )
    KeBugCheckEx(0x18Du, v3, *((PVOID *)BugCheckParameter2 + 5), BugCheckParameter2, BugCheckParameter3);
  *(_DWORD *)BugCheckParameter2 = 268435460;
  *((_DWORD *)BugCheckParameter2 + 6) = 2;
  if( v3 == (void *)1 )
    *((_QWORD *)BugCheckParameter2 + 4) = 8i64;
  else
    *((_QWORD *)BugCheckParameter2 + 4) = v3 != (void *)2;
  LOBYTE(result) = 0;
  return result;
}

Referenced by:

KiPreprocessFault