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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, 0x50604
push edi
mov ecx, esi
call dword [sym.imp.ntoskrnl.exe_KefAcquireSpinLockAtDpcLevel]
cmp dword [0x50658], 0
je 0x5d0ea
inc dword [0x50654]
mov ecx, esi
call dword [sym.imp.ntoskrnl.exe_KefReleaseSpinLockFromDpcLevel]
mov edi, dword [ebp + 0xc]
push dword [edi + 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
push dword [edi + 0xc]
mov dword [ebp - 8], eax
call fcn.0005db21
mov ebx, eax
test ebx, ebx
je 0x5cf27
movzx eax, byte [ebx + 0x78]
sub eax, 0
je 0x5cec4
dec eax
je 0x5ceae
dec eax
je 0x5ce46
dec eax
jne 0x5cf27
mov eax, dword [ebp - 8]
cmp eax, dword [ebx + 0x18]
je 0x5cf27
push ebx
call fcn.00047492
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 0
push 0
push dword [ebp + 0x10]
push edi
push dword [ebp + 0x28]
push ebx
push dword [ebp - 8]
call fcn.000474cc
mov eax, dword [ebp - 8]
test byte [eax + 0x93], 4
jne 0x5cf27
inc dword [ebx + 0x38]
mov ax, word [edi + 2]
mov ch, al
mov cl, ah
movzx eax, cx
add dword [ebx + 0x3c], eax
inc dword [ebx + 0x40]
jmp 0x5ced8
cmp dword [ebx + 0x28], 4
jb 0x5cf27
inc dword [ebx + 0x38]
inc dword [ebx + 0x44]
mov ax, word [edi + 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 0x5ce7f
push ebx
call fcn.0005dd43
mov ecx, esi
call dword [sym.imp.ntoskrnl.exe_KefAcquireSpinLockAtDpcLevel]
dec dword [0x50654]
xor eax, eax
cmp dword [0x50658], eax
jne 0x5d0ea
cmp dword [0x50654], eax
jne 0x5d0ea
push eax
push eax
jmp 0x5d0df
inc dword [ebx + 0x38]
mov ax, word [edi + 2]
mov ch, al
mov cl, ah
movzx eax, cx
add dword [ebx + 0x3c], eax
inc dword [ebx + 0x4c]
jmp 0x5ced8
inc dword [ebx + 0x38]
mov ax, word [edi + 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 0x5cef3
push ebx
call fcn.0005dd43
mov ecx, esi
call dword [sym.imp.ntoskrnl.exe_KefAcquireSpinLockAtDpcLevel]
dec dword [0x50654]
xor eax, eax
cmp dword [0x50658], eax
jne 0x5cf20
cmp dword [0x50654], eax
jne 0x5cf20
push eax
push eax
push 0x50640
call dword [sym.imp.ntoskrnl.exe_KeSetEvent]
mov bl, 1
jmp 0x5d0ec
lea eax, [ebp - 4]
push eax
call fcn.00041217
xor edi, edi
cmp eax, edi
jne 0x5cf8b
cmp ebx, edi
je 0x5cf58
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 0x5cf58
push ebx
call fcn.0005dd43
inc dword [0x4fc9c]
mov ecx, esi
call dword [sym.imp.ntoskrnl.exe_KefAcquireSpinLockAtDpcLevel]
dec dword [0x50654]
cmp dword [0x50658], edi
jne 0x5d0ea
cmp dword [0x50654], edi
jne 0x5d0ea
push edi
push edi
jmp 0x5d0df
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 5
mov edi, eax
pop ecx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
add eax, 0x38
xor ecx, ecx
mov dword [eax + 0x58], edx
mov edx, dword [ebp + 0x28]
cmp edx, ecx
mov dword [ebp - 0xc], eax
mov dword [eax + 0x48], ecx
mov byte [eax + 0x69], cl
mov dword [eax + 0x4c], ecx
mov dword [eax + 0x54], ecx
mov dword [eax + 0x5c], ecx
mov byte [eax + 0x6a], cl
mov byte [eax + 0x6b], 0xd
mov dword [eax + 0xc], ecx
je 0x5cfd0
xor esi, esi
lea ecx, [edx + 0x1c]
inc esi
lock xadd dword [ecx], esi
cmp dword [ebp + 0x10], 0x14
mov edi, dword [ebp - 0xc]
mov dword [eax + 0x78], edx
je 0x5d04e
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push edi
call fcn.0005c585
test eax, eax
je 0x5d04e
xor esi, esi
cmp ebx, esi
je 0x5d010
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 0x5d010
push ebx
call fcn.0005dd43
push dword [ebp - 4]
inc dword [0x4fc8c]
call fcn.00040fcd
mov ecx, 0x50604
call dword [sym.imp.ntoskrnl.exe_KefAcquireSpinLockAtDpcLevel]
dec dword [0x50654]
cmp dword [0x50658], esi
jne 0x5cf20
cmp dword [0x50654], esi
jne 0x5cf20
push esi
push esi
jmp 0x5cf15
mov eax, dword [ebp + 0xc]
mov ax, word [eax + 2]
mov ch, al
mov cl, ah
movzx esi, cx
sub esi, dword [ebp + 0x10]
mov dword [edi + 0x60], esi
jne 0x5d071
and dword [ebp - 0x10], 0
and dword [ebp - 0x14], 0
jmp 0x5d107
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebp - 4]
call fcn.000409dc
test eax, eax
je 0x5d0fe
xor esi, esi
cmp ebx, esi
je 0x5d0aa
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 0x5d0aa
push ebx
call fcn.0005dd43
and byte [edi + 5], 0xfe
push dword [ebp - 4]
call fcn.00040fcd
inc dword [0x4fc9c]
mov ecx, 0x50604
call dword [sym.imp.ntoskrnl.exe_KefAcquireSpinLockAtDpcLevel]
dec dword [0x50654]
cmp dword [0x50658], esi
jne 0x5d0ea
cmp dword [0x50654], esi
jne 0x5d0ea
push esi
push esi
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 0x5d293
cmp esi, dword [ebp + 0x18]
ja 0x5d1cd
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0xc], esi
test esi, esi
jmp 0x5d14b
push 0x10
lea eax, [ebp + 0x28]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
call fcn.00014b86
mov edi, dword [ebp + 8]
test edi, edi
je 0x5d194
mov eax, dword [ebp + 0x28]
mov esi, dword [ebp + 0x14]
add dword [ebp + 0x14], eax
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
sub dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
rep movsb byte es:[edi], byte [esi]
mov eax, dword [eax]
mov dword [ebp + 0x10], eax
jne 0x5d111
push 0
push ebx
push dword [ebp - 4]
call fcn.0005c61d
mov esi, 0x50604
mov ecx, esi
call dword [sym.imp.ntoskrnl.exe_KefAcquireSpinLockAtDpcLevel]
dec dword [0x50654]
xor eax, eax
cmp dword [0x50658], eax
jne 0x5d18d
cmp dword [0x50654], eax
jne 0x5d18d
push eax
push eax
push 0x50640
call dword [sym.imp.ntoskrnl.exe_KeSetEvent]
mov ecx, esi
jmp 0x5d26a
test ebx, ebx
je 0x5d1b6
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 0x5d1b6
push ebx
call fcn.0005dd43
mov eax, dword [ebp - 0xc]
and byte [eax + 5], 0xfe
push dword [ebp - 4]
call fcn.00040fcd
inc dword [0x4fc9c]
jmp 0x5d15b
lea eax, [edi + 0x60]
push eax
push dword [ebp - 4]
mov eax, dword [ebp - 8]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [eax + 4]
call dword [eax + 0xc]
cmp eax, 0x103
je 0x5d272
xor esi, esi
cmp eax, esi
je 0x5d22e
cmp ebx, esi
je 0x5d21a
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 0x5d21a
push ebx
call fcn.0005dd43
and byte [edi + 5], 0xfe
push dword [ebp - 4]
call fcn.00040fcd
inc dword [0x4fc9c]
jmp 0x5d238
push esi
push ebx
push dword [ebp - 4]
call fcn.0005c61d
mov edi, 0x50604
mov ecx, edi
call dword [sym.imp.ntoskrnl.exe_KefAcquireSpinLockAtDpcLevel]
dec dword [0x50654]
cmp dword [0x50658], esi
jne 0x5d268
cmp dword [0x50654], esi
jne 0x5d268
push esi
push esi
push 0x50640
call dword [sym.imp.ntoskrnl.exe_KeSetEvent]
mov ecx, edi
call dword [sym.imp.ntoskrnl.exe_KefReleaseSpinLockFromDpcLevel]
jmp 0x5d291
test ebx, ebx
je 0x5d291
lea ecx, [ebx + 0x14]
call dword [sym.imp.ntoskrnl.exe_KefReleaseSpinLockFromDpcLevel]
lea eax, [ebx + 0x34]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x5d291
push ebx
call fcn.0005dd43
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x24