Function at 0x2899e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x12620]
cmp eax, dword [ebp + 8]
jne 0x289d2
call dword [sym.imp.ntoskrnl.exe_KeQueryInterruptTime]
sub eax, dword [0x12628]
sbb edx, dword [0x1262c]
mov dword [ebp - 0xc], edx
jne 0x289d2
cmp eax, 0x1c9c380
jbe 0x28c21
push esi
call dword [sym.imp.ntoskrnl.exe_KeEnterCriticalRegion]
push 1
push dword [0x127fc]
call dword [sym.imp.ntoskrnl.exe_ExAcquireResourceExclusiveLite]
mov esi, 0x127f0
cmp dword [0x127f0], esi
je 0x28c0e
mov cl, 2
call dword [sym.imp.HAL.dll_KfRaiseIrql]
mov byte [ebp - 1], al
mov eax, dword [0x127f0]
cmp eax, esi
je 0x28c05
push ebx
push edi
jmp 0x28a17
mov eax, dword [ebp - 8]
lea edi, [eax - 0xa0]
mov eax, dword [eax]
mov dword [ebp - 8], eax
movzx eax, word [edi]
sub eax, 0xafd2
je 0x28b2b
dec eax
dec eax
je 0x28a3c
dec eax
dec eax
jne 0x28bf6
mov eax, dword [edi + 4]
shr eax, 9
test al, 1
jne 0x28bf6
lea eax, [ebp - 0x18]
lea ecx, [edi + 0x1c]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.ntoskrnl.exe_KeAcquireInStackQueuedSpinLockAtDpcLevel]
lea eax, [edi + 0x28]
mov esi, dword [eax]
jmp 0x28aa2
push dword [ebp + 8]
lea ebx, [esi - 0x78]
mov esi, dword [esi]
push ebx
call fcn.00028945
test al, al
je 0x28a9f
lea eax, [ebx + 0x78]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [edx], ecx
mov dword [ecx + 4], edx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 4], ecx
lea edx, [ebp - 0x18]
mov dword [eax], edx
mov dword [ecx], eax
xor ecx, ecx
mov dword [ebp - 0x14], eax
lea eax, [edi + 0x50]
inc ecx
lock xadd dword [eax], ecx
lea eax, [edi + 0x28]
cmp esi, eax
jne 0x28a66
lea eax, [edi + 0x30]
mov esi, dword [eax]
jmp 0x28ae9
push dword [ebp + 8]
lea ebx, [esi - 0x78]
mov esi, dword [esi]
push ebx
call fcn.00028945
test al, al
je 0x28ae6
lea eax, [ebx + 0x78]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [edx], ecx
mov dword [ecx + 4], edx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 4], ecx
lea edx, [ebp - 0x18]
mov dword [eax], edx
mov dword [ecx], eax
xor ecx, ecx
mov dword [ebp - 0x14], eax
lea eax, [edi + 0x50]
inc ecx
lock xadd dword [eax], ecx
lea eax, [edi + 0x30]
cmp esi, eax
jne 0x28aad
lea ecx, [ebp - 0x24]
call dword [sym.imp.ntoskrnl.exe_KeReleaseInStackQueuedSpinLockFromDpcLevel]
jmp 0x28b0c
mov eax, dword [ecx]
add ecx, 0xffffff88
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
push ecx
mov dword [eax + 4], edx
call fcn.00025b81
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x18]
cmp ecx, eax
jne 0x28af8
cmp dword [edi + 0x50], 0
jle 0x28bf6
push edi
call fcn.0002546b
jmp 0x28bf6
mov ebx, dword [sym.imp.ntoskrnl.exe_KeAcquireInStackQueuedSpinLockAtDpcLevel]
lea ecx, [edi + 0x1c]
lea edx, [ebp - 0x24]
mov dword [ebp - 0xc], ecx
call ebx
cmp byte [edi + 2], 3
mov esi, dword [edi + 0x60]
jne 0x28bed
mov eax, dword [edi + 4]
shr eax, 9
test al, 1
jne 0x28bed
xor edi, edi
cmp esi, edi
je 0x28bed
push dword [ebp + 8]
push esi
call fcn.00028945
test al, al
je 0x28bed
xor ecx, ecx
lea eax, [esi + 0x20]
inc ecx
lock xadd dword [eax], ecx
lea ecx, [ebp - 0x24]
call dword [sym.imp.ntoskrnl.exe_KeReleaseInStackQueuedSpinLockFromDpcLevel]
push esi
call fcn.0001e328
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x24]
call ebx
mov dword [esi + 0x38], edi
mov word [esi + 0x40], di
mov dword [esi + 0x3c], edi
mov word [esi + 0x42], di
mov dword [esi + 0x44], edi
lea edi, [esi + 0x30]
jmp 0x28bcc
mov eax, dword [edi]
mov ecx, dword [eax]
mov dword [edi], ecx
mov dword [ecx + 4], edi
lea ecx, [eax + 0xc]
cmp dword [ecx], 1
je 0x28bbf
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x28bcc
and byte [eax + 0x28], 0xfe
push dword [esi + 0x14]
push eax
call fcn.0001b390
cmp dword [edi], edi
jne 0x28ba5
lea ecx, [ebp - 0x24]
call dword [sym.imp.ntoskrnl.exe_KeReleaseInStackQueuedSpinLockFromDpcLevel]
or ecx, 0xffffffff
lea eax, [esi + 0x20]
lock xadd dword [eax], ecx
jne 0x28bf6
push esi
call fcn.0001c24b
jmp 0x28bf6
lea ecx, [ebp - 0x24]
call dword [sym.imp.ntoskrnl.exe_KeReleaseInStackQueuedSpinLockFromDpcLevel]
cmp dword [ebp - 8], 0x127f0
jne 0x28a14
pop edi
pop ebx
mov cl, byte [ebp - 1]
call dword [sym.imp.HAL.dll_KfLowerIrql]
mov ecx, dword [0x127fc]
call dword [sym.imp.ntoskrnl.exe_ExReleaseResourceLite]
call dword [sym.imp.ntoskrnl.exe_KeLeaveCriticalRegion]
pop esi
mov eax, dword [ebp + 8]
mov dword [0x12620], eax
call dword [sym.imp.ntoskrnl.exe_KeQueryInterruptTime]
mov dword [0x12628], eax
mov dword [0x1262c], edx
leave
ret 4