Function at 0x5d19f
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, 0x50584
mov ecx, edi
call dword [sym.imp.ntoskrnl.exe_KefAcquireSpinLockAtDpcLevel]
cmp dword [0x505d8], 0
je 0x5d5b4
inc dword [0x505d4]
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.0005da21
mov ebx, eax
test ebx, ebx
je 0x5d2bc
movzx eax, byte [ebx + 0x78]
sub eax, 0
je 0x5d341
dec eax
je 0x5d32b
dec eax
je 0x5d27c
dec eax
jne 0x5d2c0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebx + 0x18]
je 0x5d26c
push ebx
call fcn.00047412
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.0004744c
mov eax, dword [ebp - 0x10]
test byte [eax + 0x93], 4
jne 0x5d26c
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 0x5d355
cmp dword [ebx + 0x1c], 1
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0xc], eax
sete byte [ebp - 1]
jmp 0x5d2c0
cmp dword [ebx + 0x28], 4
jb 0x5d2b8
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 0x5d2b1
push ebx
call fcn.0005dc43
mov ecx, edi
jmp 0x5d589
and dword [ebp - 0xc], 0
mov byte [ebp - 1], 0
lea eax, [ebp - 8]
push eax
call fcn.00041197
test eax, eax
mov dword [ebp - 0x18], eax
jne 0x5d3a4
xor esi, esi
cmp ebx, esi
je 0x5d2f8
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 0x5d2f8
push ebx
call fcn.0005dc43
inc dword [0x4fc1c]
mov ecx, edi
call dword [sym.imp.ntoskrnl.exe_KefAcquireSpinLockAtDpcLevel]
dec dword [0x505d4]
cmp dword [0x505d8], esi
jne 0x5d5b4
cmp dword [0x505d4], esi
jne 0x5d5b4
push esi
push esi
jmp 0x5d5a9
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 0x5d355
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 0x5d370
push ebx
call fcn.0005dc43
mov ecx, edi
call dword [sym.imp.ntoskrnl.exe_KefAcquireSpinLockAtDpcLevel]
dec dword [0x505d4]
xor eax, eax
cmp dword [0x505d8], eax
jne 0x5d39d
cmp dword [0x505d4], eax
jne 0x5d39d
push eax
push eax
push 0x505c0
call dword [sym.imp.ntoskrnl.exe_KeSetEvent]
mov bl, 1
jmp 0x5d5b6
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 0x5d3df
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 0x5d45c
push esi
push dword [ebp + 0x10]
push edi
call fcn.0005c485
test eax, eax
je 0x5d458
xor esi, esi
cmp ebx, esi
je 0x5d41a
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 0x5d41a
push ebx
call fcn.0005dc43
push dword [ebp - 8]
inc dword [0x4fc0c]
call fcn.00040f4d
mov ecx, 0x50584
call dword [sym.imp.ntoskrnl.exe_KefAcquireSpinLockAtDpcLevel]
dec dword [0x505d4]
cmp dword [0x505d8], esi
jne 0x5d39d
cmp dword [0x505d4], esi
jne 0x5d39d
push esi
push esi
jmp 0x5d392
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 0x5d6cc
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 0x5d6cc
mov eax, dword [ebp + 0x1c]
movzx edx, word [eax + 0x1e]
cmp dword [edx + eax + 0x1c], 0xc000009a
je 0x5d6cc
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 0x5d4fc
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 0x5d4f2
push ebx
call fcn.0005dc43
mov ecx, 0x50584
jmp 0x5d372
movzx eax, word [esi + 0xa]
inc eax
mov ecx, eax
shr ecx, 0x10
add ecx, eax
mov word [esi + 0xa], cx
cmp byte [0x541ac], 0
je 0x5d5c8
xor ecx, ecx
mov eax, 0x541b0
inc ecx
lock xadd dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx + 4]
mov eax, dword [0x541a0]
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 0x541a0
mov esi, eax
call fcn.00025cd8
test esi, esi
je 0x5d5c8
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 0x5d584
push ebx
call fcn.0005dc43
mov ecx, 0x50584
call dword [sym.imp.ntoskrnl.exe_KefAcquireSpinLockAtDpcLevel]
xor eax, eax
dec dword [0x505d4]
cmp dword [0x505d8], eax
jne 0x5d5b4
cmp dword [0x505d4], eax
jne 0x5d5b4
push eax
push eax
push 0x505c0
call dword [sym.imp.ntoskrnl.exe_KeSetEvent]
xor bl, bl
mov ecx, 0x50584
call dword [sym.imp.ntoskrnl.exe_KefReleaseSpinLockFromDpcLevel]
mov al, bl
jmp 0x5d809
mov esi, dword [ebp + 0x2c]
test byte [esi + 6], 5
je 0x5d5d6
mov eax, dword [esi + 0xc]
jmp 0x5d5df
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.00047412
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 0x5d691
test byte [esi + 6], 5
je 0x5d659
mov eax, dword [esi + 0xc]
jmp 0x5d661
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.00040f4d
jmp 0x5d69a
mov eax, dword [ebp + 0x30]
mov dword [eax], 1
mov esi, 0x50584
mov ecx, esi
call dword [sym.imp.ntoskrnl.exe_KefAcquireSpinLockAtDpcLevel]
dec dword [0x505d4]
cmp dword [0x505d8], ebx
jne 0x5d7ff
cmp dword [0x505d4], ebx
jne 0x5d7ff
push ebx
push ebx
jmp 0x5d7f4
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 0x5d6e5
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
xor edi, edi
jmp 0x5d702
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.0004095c
xor edi, edi
cmp eax, edi
jne 0x5d78c
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 0x5d7c5
mov ecx, dword [ebp - 8]
lea edx, [ecx + 0x1c]
cmp byte [edx], 0
mov dword [ebp + 0x34], edx
jne 0x5d78c
mov eax, dword [ecx + 8]
cmp eax, edi
mov dword [ebp + 0x28], edi
mov dword [ebp + 8], edi
mov dword [ebp + 0x10], edi
je 0x5d778
mov edx, dword [eax + 0x14]
add dword [ebp + 0x28], edx
test edx, edx
jne 0x5d74e
inc edx
jmp 0x5d767
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 0x5d741
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 0x5d7ae
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 0x5d7ae
push ebx
call fcn.0005dc43
mov eax, dword [ebp + 0xc]
and byte [eax + 5], 0xfe
push dword [ebp - 8]
inc dword [0x4fc1c]
call fcn.00040f4d
jmp 0x5d7cf
push edi
push ebx
push dword [ebp - 8]
call fcn.0005c51d
mov esi, 0x50584
mov ecx, esi
call dword [sym.imp.ntoskrnl.exe_KefAcquireSpinLockAtDpcLevel]
dec dword [0x505d4]
cmp dword [0x505d8], edi
jne 0x5d7ff
cmp dword [0x505d4], edi
jne 0x5d7ff
push edi
push edi
push 0x505c0
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