Function at 0x5cc7f
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, 0x50584
push edi
mov ecx, esi
call dword [sym.imp.ntoskrnl.exe_KefAcquireSpinLockAtDpcLevel]
cmp dword [0x505d8], 0
je 0x5cfea
inc dword [0x505d4]
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.0005da21
mov ebx, eax
test ebx, ebx
je 0x5ce27
movzx eax, byte [ebx + 0x78]
sub eax, 0
je 0x5cdc4
dec eax
je 0x5cdae
dec eax
je 0x5cd46
dec eax
jne 0x5ce27
mov eax, dword [ebp - 8]
cmp eax, dword [ebx + 0x18]
je 0x5ce27
push ebx
call fcn.00047412
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.0004744c
mov eax, dword [ebp - 8]
test byte [eax + 0x93], 4
jne 0x5ce27
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 0x5cdd8
cmp dword [ebx + 0x28], 4
jb 0x5ce27
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 0x5cd7f
push ebx
call fcn.0005dc43
mov ecx, esi
call dword [sym.imp.ntoskrnl.exe_KefAcquireSpinLockAtDpcLevel]
dec dword [0x505d4]
xor eax, eax
cmp dword [0x505d8], eax
jne 0x5cfea
cmp dword [0x505d4], eax
jne 0x5cfea
push eax
push eax
jmp 0x5cfdf
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 0x5cdd8
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 0x5cdf3
push ebx
call fcn.0005dc43
mov ecx, esi
call dword [sym.imp.ntoskrnl.exe_KefAcquireSpinLockAtDpcLevel]
dec dword [0x505d4]
xor eax, eax
cmp dword [0x505d8], eax
jne 0x5ce20
cmp dword [0x505d4], eax
jne 0x5ce20
push eax
push eax
push 0x505c0
call dword [sym.imp.ntoskrnl.exe_KeSetEvent]
mov bl, 1
jmp 0x5cfec
lea eax, [ebp - 4]
push eax
call fcn.00041197
xor edi, edi
cmp eax, edi
jne 0x5ce8b
cmp ebx, edi
je 0x5ce58
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 0x5ce58
push ebx
call fcn.0005dc43
inc dword [0x4fc1c]
mov ecx, esi
call dword [sym.imp.ntoskrnl.exe_KefAcquireSpinLockAtDpcLevel]
dec dword [0x505d4]
cmp dword [0x505d8], edi
jne 0x5cfea
cmp dword [0x505d4], edi
jne 0x5cfea
push edi
push edi
jmp 0x5cfdf
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 0x5ced0
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 0x5cf4e
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push edi
call fcn.0005c485
test eax, eax
je 0x5cf4e
xor esi, esi
cmp ebx, esi
je 0x5cf10
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 0x5cf10
push ebx
call fcn.0005dc43
push dword [ebp - 4]
inc dword [0x4fc0c]
call fcn.00040f4d
mov ecx, 0x50584
call dword [sym.imp.ntoskrnl.exe_KefAcquireSpinLockAtDpcLevel]
dec dword [0x505d4]
cmp dword [0x505d8], esi
jne 0x5ce20
cmp dword [0x505d4], esi
jne 0x5ce20
push esi
push esi
jmp 0x5ce15
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 0x5cf71
and dword [ebp - 0x10], 0
and dword [ebp - 0x14], 0
jmp 0x5d007
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebp - 4]
call fcn.0004095c
test eax, eax
je 0x5cffe
xor esi, esi
cmp ebx, esi
je 0x5cfaa
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 0x5cfaa
push ebx
call fcn.0005dc43
and byte [edi + 5], 0xfe
push dword [ebp - 4]
call fcn.00040f4d
inc dword [0x4fc1c]
mov ecx, 0x50584
call dword [sym.imp.ntoskrnl.exe_KefAcquireSpinLockAtDpcLevel]
dec dword [0x505d4]
cmp dword [0x505d8], esi
jne 0x5cfea
cmp dword [0x505d4], esi
jne 0x5cfea
push esi
push esi
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 0x5d193
cmp esi, dword [ebp + 0x18]
ja 0x5d0cd
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0xc], esi
test esi, esi
jmp 0x5d04b
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 0x5d094
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 0x5d011
push 0
push ebx
push dword [ebp - 4]
call fcn.0005c51d
mov esi, 0x50584
mov ecx, esi
call dword [sym.imp.ntoskrnl.exe_KefAcquireSpinLockAtDpcLevel]
dec dword [0x505d4]
xor eax, eax
cmp dword [0x505d8], eax
jne 0x5d08d
cmp dword [0x505d4], eax
jne 0x5d08d
push eax
push eax
push 0x505c0
call dword [sym.imp.ntoskrnl.exe_KeSetEvent]
mov ecx, esi
jmp 0x5d16a
test ebx, ebx
je 0x5d0b6
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 0x5d0b6
push ebx
call fcn.0005dc43
mov eax, dword [ebp - 0xc]
and byte [eax + 5], 0xfe
push dword [ebp - 4]
call fcn.00040f4d
inc dword [0x4fc1c]
jmp 0x5d05b
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 0x5d172
xor esi, esi
cmp eax, esi
je 0x5d12e
cmp ebx, esi
je 0x5d11a
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 0x5d11a
push ebx
call fcn.0005dc43
and byte [edi + 5], 0xfe
push dword [ebp - 4]
call fcn.00040f4d
inc dword [0x4fc1c]
jmp 0x5d138
push esi
push ebx
push dword [ebp - 4]
call fcn.0005c51d
mov edi, 0x50584
mov ecx, edi
call dword [sym.imp.ntoskrnl.exe_KefAcquireSpinLockAtDpcLevel]
dec dword [0x505d4]
cmp dword [0x505d8], esi
jne 0x5d168
cmp dword [0x505d4], esi
jne 0x5d168
push esi
push esi
push 0x505c0
call dword [sym.imp.ntoskrnl.exe_KeSetEvent]
mov ecx, edi
call dword [sym.imp.ntoskrnl.exe_KefReleaseSpinLockFromDpcLevel]
jmp 0x5d191
test ebx, ebx
je 0x5d191
lea ecx, [ebx + 0x14]
call dword [sym.imp.ntoskrnl.exe_KefReleaseSpinLockFromDpcLevel]
lea eax, [ebx + 0x34]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x5d191
push ebx
call fcn.0005dc43
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x24