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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 0xc], 0
push ebx
push esi
push edi
mov edi, 0x50604
mov ecx, edi
call dword [sym.imp.ntoskrnl.exe_KefAcquireSpinLockAtDpcLevel]
cmp dword [0x50658], 0
je 0x5d6b4
inc dword [0x50654]
mov ecx, edi
call dword [sym.imp.ntoskrnl.exe_KefReleaseSpinLockFromDpcLevel]
mov eax, dword [ebp + 0x30]
and dword [eax], 0
mov esi, dword [ebp + 0xc]
push dword [esi + 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
push dword [esi + 0xc]
mov byte [ebp - 1], 1
mov dword [ebp - 0x10], eax
call fcn.0005db21
mov ebx, eax
test ebx, ebx
je 0x5d3bc
movzx eax, byte [ebx + 0x78]
sub eax, 0
je 0x5d441
dec eax
je 0x5d42b
dec eax
je 0x5d37c
dec eax
jne 0x5d3c0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebx + 0x18]
je 0x5d36c
push ebx
call fcn.00047492
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 0
push 0
push dword [ebp + 0x10]
push esi
push dword [ebp + 0x34]
push ebx
push dword [ebp - 0x10]
call fcn.000474cc
mov eax, dword [ebp - 0x10]
test byte [eax + 0x93], 4
jne 0x5d36c
inc dword [ebx + 0x38]
mov ax, word [esi + 2]
mov ch, al
mov cl, ah
movzx eax, cx
add dword [ebx + 0x3c], eax
inc dword [ebx + 0x40]
jmp 0x5d455
cmp dword [ebx + 0x1c], 1
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0xc], eax
sete byte [ebp - 1]
jmp 0x5d3c0
cmp dword [ebx + 0x28], 4
jb 0x5d3b8
inc dword [ebx + 0x38]
inc dword [ebx + 0x44]
mov ax, word [esi + 2]
mov ch, al
mov cl, ah
movzx eax, cx
add dword [ebx + 0x3c], eax
lea ecx, [ebx + 0x14]
call dword [sym.imp.ntoskrnl.exe_KefReleaseSpinLockFromDpcLevel]
lea eax, [ebx + 0x34]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x5d3b1
push ebx
call fcn.0005dd43
mov ecx, edi
jmp 0x5d689
and dword [ebp - 0xc], 0
mov byte [ebp - 1], 0
lea eax, [ebp - 8]
push eax
call fcn.00041217
test eax, eax
mov dword [ebp - 0x18], eax
jne 0x5d4a4
xor esi, esi
cmp ebx, esi
je 0x5d3f8
inc dword [ebx + 0x50]
lea ecx, [ebx + 0x14]
call dword [sym.imp.ntoskrnl.exe_KefReleaseSpinLockFromDpcLevel]
lea eax, [ebx + 0x34]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x5d3f8
push ebx
call fcn.0005dd43
inc dword [0x4fc9c]
mov ecx, edi
call dword [sym.imp.ntoskrnl.exe_KefAcquireSpinLockAtDpcLevel]
dec dword [0x50654]
cmp dword [0x50658], esi
jne 0x5d6b4
cmp dword [0x50654], esi
jne 0x5d6b4
push esi
push esi
jmp 0x5d6a9
inc dword [ebx + 0x38]
mov ax, word [esi + 2]
mov ch, al
mov cl, ah
movzx eax, cx
add dword [ebx + 0x3c], eax
inc dword [ebx + 0x4c]
jmp 0x5d455
inc dword [ebx + 0x38]
mov ax, word [esi + 2]
mov ch, al
mov cl, ah
movzx eax, cx
add dword [ebx + 0x3c], eax
inc dword [ebx + 0x48]
lea ecx, [ebx + 0x14]
call dword [sym.imp.ntoskrnl.exe_KefReleaseSpinLockFromDpcLevel]
lea eax, [ebx + 0x34]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x5d470
push ebx
call fcn.0005dd43
mov ecx, edi
call dword [sym.imp.ntoskrnl.exe_KefAcquireSpinLockAtDpcLevel]
dec dword [0x50654]
xor eax, eax
cmp dword [0x50658], eax
jne 0x5d49d
cmp dword [0x50654], eax
jne 0x5d49d
push eax
push eax
push 0x50640
call dword [sym.imp.ntoskrnl.exe_KeSetEvent]
mov bl, 1
jmp 0x5d6b6
mov edi, dword [ebp - 8]
mov eax, dword [ebp + 8]
add edi, 0x38
xor ecx, ecx
mov dword [edi + 0x58], eax
mov eax, dword [ebp + 0x34]
cmp eax, ecx
mov dword [ebp + 0xc], edi
mov dword [edi + 0x48], ecx
mov byte [edi + 0x69], cl
mov dword [edi + 0x4c], ecx
mov dword [edi + 0x54], ecx
mov dword [edi + 0x5c], ecx
mov byte [edi + 0x6a], cl
mov byte [edi + 0x6b], 0xd
mov dword [edi + 0xc], ecx
je 0x5d4df
xor edx, edx
lea ecx, [eax + 0x1c]
inc edx
lock xadd dword [ecx], edx
cmp dword [ebp + 0x10], 0x14
mov dword [edi + 0x78], eax
je 0x5d55c
push esi
push dword [ebp + 0x10]
push edi
call fcn.0005c585
test eax, eax
je 0x5d558
xor esi, esi
cmp ebx, esi
je 0x5d51a
inc dword [ebx + 0x54]
lea ecx, [ebx + 0x14]
call dword [sym.imp.ntoskrnl.exe_KefReleaseSpinLockFromDpcLevel]
lea eax, [ebx + 0x34]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x5d51a
push ebx
call fcn.0005dd43
push dword [ebp - 8]
inc dword [0x4fc8c]
call fcn.00040fcd
mov ecx, 0x50604
call dword [sym.imp.ntoskrnl.exe_KefAcquireSpinLockAtDpcLevel]
dec dword [0x50654]
cmp dword [0x50658], esi
jne 0x5d49d
cmp dword [0x50654], esi
jne 0x5d49d
push esi
push esi
jmp 0x5d492
mov byte [ebp - 1], 0
mov ax, word [esi + 2]
mov ch, al
mov cl, ah
movzx eax, cx
sub eax, dword [ebp + 0x10]
cmp byte [ebp - 1], 0
mov dword [ebp + 8], eax
mov dword [edi + 0x60], eax
je 0x5d7cc
mov ax, word [esi + 2]
mov ecx, dword [ebp - 0xc]
mov dh, al
mov dl, ah
mov eax, dword [ecx + 4]
cmp dx, word [eax + 0xac]
ja 0x5d7cc
mov eax, dword [ebp + 0x1c]
movzx edx, word [eax + 0x1e]
cmp dword [edx + eax + 0x1c], 0xc000009a
je 0x5d7cc
mov dword [edi + 0x70], eax
mov eax, dword [ebp + 0x28]
mov dword [edi + 0x74], eax
mov eax, dword [ecx + 0xc]
mov dword [edi + 0x5c], eax
dec byte [esi + 8]
mov al, byte [esi + 8]
mov ecx, dword [ecx + 4]
cmp al, byte [ecx + 0x92]
jae 0x5d5fc
mov eax, dword [ebp - 0xc]
xor ecx, ecx
add eax, 0x14
inc ecx
lock xadd dword [eax], ecx
lea ecx, [ebx + 0x14]
call dword [sym.imp.ntoskrnl.exe_KefReleaseSpinLockFromDpcLevel]
lea eax, [ebx + 0x34]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x5d5f2
push ebx
call fcn.0005dd43
mov ecx, 0x50604
jmp 0x5d472
movzx eax, word [esi + 0xa]
inc eax
mov ecx, eax
shr ecx, 0x10
add ecx, eax
mov word [esi + 0xa], cx
cmp byte [0x5422c], 0
je 0x5d6c8
xor ecx, ecx
mov eax, 0x54230
inc ecx
lock xadd dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx + 4]
mov eax, dword [0x54220]
push 0
push 0
push dword [ecx + 0x88]
mov ecx, dword [ebp - 0x10]
push dword [ecx + 0x88]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
call eax
push 0x54220
mov esi, eax
call fcn.00025c98
test esi, esi
je 0x5d6c8
mov eax, dword [ebp - 0xc]
xor ecx, ecx
add eax, 0x20
inc ecx
lock xadd dword [eax], ecx
lea ecx, [ebx + 0x14]
call dword [sym.imp.ntoskrnl.exe_KefReleaseSpinLockFromDpcLevel]
lea eax, [ebx + 0x34]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x5d684
push ebx
call fcn.0005dd43
mov ecx, 0x50604
call dword [sym.imp.ntoskrnl.exe_KefAcquireSpinLockAtDpcLevel]
xor eax, eax
dec dword [0x50654]
cmp dword [0x50658], eax
jne 0x5d6b4
cmp dword [0x50654], eax
jne 0x5d6b4
push eax
push eax
push 0x50640
call dword [sym.imp.ntoskrnl.exe_KeSetEvent]
xor bl, bl
mov ecx, 0x50604
call dword [sym.imp.ntoskrnl.exe_KefReleaseSpinLockFromDpcLevel]
mov al, bl
jmp 0x5d909
mov esi, dword [ebp + 0x2c]
test byte [esi + 6], 5
je 0x5d6d6
mov eax, dword [esi + 0xc]
jmp 0x5d6df
push 0
push esi
call dword [sym.imp.ntoskrnl.exe_MmMapLockedPages]
mov ecx, dword [ebp + 0x28]
sub dword [esi + 0x14], ecx
add eax, ecx
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0xc], eax
and eax, 0xfff
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 8]
mov dword [eax + 8], esi
mov eax, dword [ebp - 8]
mov dword [eax + 0xc], esi
mov eax, dword [ebp + 8]
add eax, ecx
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 8]
push ebx
mov dword [eax + 0x14], 1
call fcn.00047492
lea ecx, [ebx + 0x14]
call dword [sym.imp.ntoskrnl.exe_KefReleaseSpinLockFromDpcLevel]
mov eax, dword [ebp - 8]
or byte [eax + 0x18], 0x80
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + 4]
push 0
push 0
push dword [ecx + 0xc]
lea ecx, [ebp - 8]
push 1
push ecx
push dword [eax + 4]
call dword [eax + 8]
xor ebx, ebx
cmp eax, 0x103
je 0x5d791
test byte [esi + 6], 5
je 0x5d759
mov eax, dword [esi + 0xc]
jmp 0x5d761
push ebx
push esi
call dword [sym.imp.ntoskrnl.exe_MmMapLockedPages]
mov ecx, dword [ebp + 0x28]
add dword [esi + 0x14], ecx
sub eax, ecx
mov dword [esi + 0xc], eax
and eax, 0xfff
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 8]
mov dword [eax + 8], ebx
mov eax, dword [ebp - 8]
mov dword [eax + 0xc], ebx
and byte [edi + 5], 0xfe
mov dword [edi + 0x70], ebx
push dword [ebp - 8]
call fcn.00040fcd
jmp 0x5d79a
mov eax, dword [ebp + 0x30]
mov dword [eax], 1
mov esi, 0x50604
mov ecx, esi
call dword [sym.imp.ntoskrnl.exe_KefAcquireSpinLockAtDpcLevel]
dec dword [0x50654]
cmp dword [0x50658], ebx
jne 0x5d8ff
cmp dword [0x50654], ebx
jne 0x5d8ff
push ebx
push ebx
jmp 0x5d8f4
mov edi, dword [ebp - 0x18]
push 5
xor eax, eax
cmp dword [ebp + 8], eax
pop ecx
rep movsd dword es:[edi], dword [esi]
jne 0x5d7e5
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
xor edi, edi
jmp 0x5d802
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.000409dc
xor edi, edi
cmp eax, edi
jne 0x5d88c
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 0x28]
push edi
push dword [ebp - 0x14]
add ecx, eax
push ecx
push dword [ebp + 0x2c]
call sub.TDI.SYS_TdiCopyMdlChainToMdlChain
test eax, eax
je 0x5d8c5
mov ecx, dword [ebp - 8]
lea edx, [ecx + 0x1c]
cmp byte [edx], 0
mov dword [ebp + 0x34], edx
jne 0x5d88c
mov eax, dword [ecx + 8]
cmp eax, edi
mov dword [ebp + 0x28], edi
mov dword [ebp + 8], edi
mov dword [ebp + 0x10], edi
je 0x5d878
mov edx, dword [eax + 0x14]
add dword [ebp + 0x28], edx
test edx, edx
jne 0x5d84e
inc edx
jmp 0x5d867
mov edx, dword [eax + 0x18]
add edx, dword [eax + 0x10]
mov esi, dword [eax + 0x14]
and edx, 0xfff
lea edx, [edx + esi + 0xfff]
shr edx, 0xc
add dword [ebp + 8], edx
mov eax, dword [eax]
inc dword [ebp + 0x10]
xor edi, edi
cmp eax, edi
jne 0x5d841
mov edx, dword [ebp + 0x34]
mov eax, dword [ebp + 0x10]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp + 0x28]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 8]
mov dword [ecx], eax
mov byte [edx], 1
cmp ebx, edi
je 0x5d8ae
inc dword [ebx + 0x50]
lea ecx, [ebx + 0x14]
call dword [sym.imp.ntoskrnl.exe_KefReleaseSpinLockFromDpcLevel]
lea eax, [ebx + 0x34]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x5d8ae
push ebx
call fcn.0005dd43
mov eax, dword [ebp + 0xc]
and byte [eax + 5], 0xfe
push dword [ebp - 8]
inc dword [0x4fc9c]
call fcn.00040fcd
jmp 0x5d8cf
push edi
push ebx
push dword [ebp - 8]
call fcn.0005c61d
mov esi, 0x50604
mov ecx, esi
call dword [sym.imp.ntoskrnl.exe_KefAcquireSpinLockAtDpcLevel]
dec dword [0x50654]
cmp dword [0x50658], edi
jne 0x5d8ff
cmp dword [0x50654], edi
jne 0x5d8ff
push edi
push edi
push 0x50640
call dword [sym.imp.ntoskrnl.exe_KeSetEvent]
mov ecx, esi
call dword [sym.imp.ntoskrnl.exe_KefReleaseSpinLockFromDpcLevel]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x30