ExIsFastResourceHeld

NTSTATUS __stdcall ExIsFastResourceHeld(ULONG_PTR BugCheckParameter2){
  bool v1; 
  NTSTATUS result; 
  unsigned __int8 CurrentIrql; 
  bool v4; 

  v1 = 0;
  if( (*(_BYTE *)(*(_QWORD *)&BugCheckParameter2 + 26i64) & 1) == 0 )
    KeBugCheckEx(0x1C6u, (PVOID)3, *(PVOID *)&BugCheckParameter2, 0i64, 0i64);
  result = KeGetCurrentIrql();
  if( (unsigned __int8)result > 2u )
    KeBugCheckEx(0x1C6u, 0i64, (PVOID)(unsigned __int8)result, (PVOID)2, 0i64);
  if( *(_DWORD *)(*(_QWORD *)&BugCheckParameter2 + 64i64) )
  {
    CurrentIrql = KeGetCurrentIrql();
    __writecr8(2ui64);
    v4 = ExpFindFastOwnerEntryForThread((INT64)KeGetCurrentThread(), *(INT64 *)&BugCheckParameter2, 0, 0) != 0i64;
    result = CurrentIrql;
    __writecr8(CurrentIrql);
    v1 = v4;
  }
  LOBYTE(result) = v1;
  return result;
}

Referenced by:

No references.