ExIsFastResourceHeldExclusive
NTSTATUS __stdcall ExIsFastResourceHeldExclusive(ULONG_PTR BugCheckParameter2){
NTSTATUS result;
INT64 v2;
unsigned __int8 CurrentIrql;
bool v4;
unsigned __int8 v5;
bool v6;
result = *(unsigned __int16 *)(*(_QWORD *)&BugCheckParameter2 + 26i64);
v2 = *(_QWORD *)&BugCheckParameter2;
if( (result & 1) == 0 )
KeBugCheckEx(0x1C6u, (PVOID)3, *(PVOID *)&BugCheckParameter2, 0i64, 0i64);
CurrentIrql = KeGetCurrentIrql();
if( CurrentIrql > 2u )
KeBugCheckEx(0x1C6u, 0i64, (PVOID)CurrentIrql, (PVOID)2, 0i64);
if( (result & 0x80u) != 0 )
{
v5 = KeGetCurrentIrql();
__writecr8(2ui64);
v6 = ExpFindFastOwnerEntryForThread((INT64)KeGetCurrentThread(), v2, 0, 0) != 0i64;
result = v5;
__writecr8(v5);
v4 = v6;
}
else
{
v4 = 0;
}
LOBYTE(result) = v4;
return result;
}Referenced by:
ExIsResourceAcquiredExclusiveLite