VOID __fastcall MiUnlockEntireDriver(UINT64 *a1, INT64 a2){
MMPTE *PteAddress;
UINT64 v5;
if( a2 )
{
if( (*(_BYTE *)(a2 + 10) & 1) != 0 )
{
PteAddress = MiGetPteAddress(*(PVOID *)(a2 + 24));
MiReleasePtes((INT64)&qword_140C4EC80, (INT64)PteAddress, v5);
*(_WORD *)(a2 + 10) &= ~1u;
}
IoFreeMdl((_MDL *)a2);
}
MiUnlockDriverPages(a1);
}