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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa4
push ebx
mov ebx, dword [ebp + 8]
push edi
push 0x20
xor eax, eax
cmp dword [ebx + 0x10], eax
pop ecx
lea edi, [ebp - 0xa4]
rep stosd dword es:[edi], eax
je 0x5dee9
push dword [ebx + 0xc]
call fcn.00048447
test eax, eax
mov dword [ebp - 8], eax
je 0x5dedf
cmp eax, 0x514c0
je 0x5dedf
cmp eax, 0x54060
je 0x5dedf
cmp dword [ebx + 0x10], 1
jne 0x5deed
mov ecx, dword [ebx + 0x20]
cmp ecx, dword [ebx + 0xc]
jne 0x5deed
push eax
call fcn.00012203
mov eax, 0xc000000d
jmp 0x5e267
and dword [ebp - 8], 0
mov eax, dword [ebx]
push esi
push 0x7f
pop ecx
xor edx, edx
div ecx
mov edi, edx
lea esi, [edi + edi*2]
shl esi, 3
lea ecx, [esi + 0x5084c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], ecx
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
lea ecx, [esi + 0x50850]
mov byte [ebp + 0xb], al
mov dword [ebp - 0x1c], ecx
call dword [sym.imp.ntoskrnl.exe_KefAcquireSpinLockAtDpcLevel]
push dword [ebx]
and dword [ebp - 0xc], 0
mov byte [ebp - 2], 0
call fcn.0005daa9
test eax, eax
mov dword [ebp - 0x24], eax
je 0x5df82
push dword [ebx + 8]
push dword [ebx + 4]
push eax
call fcn.0005dae0
test eax, eax
mov dword [ebp - 0xc], eax
je 0x5df82
cmp byte [eax + 0x78], 3
jne 0x5df7e
push 0x20
pop ecx
push eax
push dword [ebp - 0x24]
mov esi, eax
push dword [ebx + 8]
lea edi, [ebp - 0xa4]
push dword [ebx + 4]
rep movsd dword es:[edi], dword [esi]
push dword [ebx]
mov byte [ebp - 2], 1
call fcn.0005ddd1
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 0x18]
test eax, eax
jne 0x5dfc4
lea eax, [ebp - 0xc]
push eax
push dword [ebx + 8]
push dword [ebx + 4]
push edi
push dword [ebx]
call fcn.0005dbd7
mov esi, eax
test esi, esi
je 0x5dfc4
mov ecx, dword [ebp - 0x1c]
call dword [sym.imp.ntoskrnl.exe_KefReleaseSpinLockFromDpcLevel]
mov dl, byte [ebp + 0xb]
mov ecx, dword [ebp - 0x20]
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
cmp dword [ebp - 8], 0
je 0x5dfbd
push dword [ebp - 8]
call fcn.00012203
mov eax, esi
jmp 0x5e266
mov ecx, dword [ebp - 0x1c]
mov esi, dword [sym.imp.ntoskrnl.exe_KefReleaseSpinLockFromDpcLevel]
call esi
mov ecx, dword [ebp - 0x20]
call esi
mov esi, dword [ebp - 0xc]
xor edi, edi
cmp dword [esi + 0x18], edi
je 0x5dfeb
cmp dword [ebp - 8], edi
je 0x5dfeb
push dword [ebp - 8]
call fcn.00012203
mov eax, dword [ebx + 0xc]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x18], eax
mov byte [esi + 0x78], 3
call dword [sym.imp.ntoskrnl.exe_KeQueryTimeIncrement]
mov ecx, eax
mov eax, dword [ebx + 0x14]
imul eax, eax, 0x3e8
mov edx, 0x2710
mul edx
push edi
push ecx
push edx
push eax
call sub.ntoskrnl.exe__alldiv
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], edx
mov edi, dword [esi + 0x20]
jmp 0x5e042
push dword [edi + 4]
call fcn.00012203
mov eax, dword [edi]
push edi
push 0x50720
mov dword [ebp - 0x18], eax
call fcn.000484f9
mov edi, dword [ebp - 0x18]
test edi, edi
jne 0x5e027
and dword [ebp - 0xc], edi
cmp dword [ebx + 0x10], edi
mov byte [ebp - 1], 0
jbe 0x5e0c1
lea edi, [ebx + 0x20]
push dword [edi]
call fcn.00048447
test eax, eax
mov dword [ebp - 8], eax
je 0x5e0bd
cmp eax, 0x514c0
je 0x5e0bd
push 0x50720
call fcn.000484c8
xor ecx, ecx
cmp eax, ecx
je 0x5e0b5
mov edx, dword [esi + 0x20]
inc dword [ebp - 0xc]
mov dword [eax], edx
mov edx, dword [ebp - 8]
mov dword [eax + 4], edx
mov edx, dword [edi]
mov dword [eax + 8], edx
mov edx, dword [edi + 4]
mov dword [eax + 0xc], edx
mov edx, dword [edi + 8]
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0xc]
add edi, 0x10
cmp eax, dword [ebx + 0x10]
jae 0x5e0c1
jmp 0x5e055
push dword [ebp - 8]
call fcn.00012203
mov byte [ebp - 1], 1
cmp byte [ebp - 1], 0
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x1c], eax
je 0x5e188
mov dl, byte [ebp + 0xb]
mov edi, dword [sym.imp.HAL.dll_KfReleaseSpinLock]
lea ecx, [esi + 0x14]
call edi
mov ecx, dword [ebp - 0x20]
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
mov ecx, dword [ebp - 0x1c]
mov byte [ebp + 0xb], al
call dword [sym.imp.ntoskrnl.exe_KefAcquireSpinLockAtDpcLevel]
push dword [ebx]
call fcn.0005daa9
test eax, eax
mov dword [ebp - 0x24], eax
je 0x5e15b
push dword [ebx + 8]
push dword [ebx + 4]
push eax
call fcn.0005dae0
or edx, 0xffffffff
cmp eax, esi
mov dword [ebp - 0x18], eax
jne 0x5e13a
lea ecx, [eax + 0x34]
lock xadd dword [ecx], edx
jne 0x5e127
push eax
call fcn.0005dd43
push esi
push dword [ebp - 0x24]
push dword [ebx + 8]
push dword [ebx + 4]
push dword [ebx]
call fcn.0005ddd1
jmp 0x5e16d
lea ecx, [esi + 0x34]
lock xadd dword [ecx], edx
jne 0x5e14c
push esi
call fcn.0005dd43
mov eax, dword [ebp - 0x18]
lea ecx, [eax + 0x34]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x5e16d
push eax
jmp 0x5e168
lea eax, [esi + 0x34]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x5e16d
push esi
call fcn.0005dd43
mov ecx, dword [ebp - 0x1c]
call dword [sym.imp.ntoskrnl.exe_KefReleaseSpinLockFromDpcLevel]
mov dl, byte [ebp + 0xb]
mov ecx, dword [ebp - 0x20]
call edi
mov eax, 0xc000000d
jmp 0x5e266
cmp dword [ebx + 0x10], 0
jne 0x5e192
mov byte [esi + 0x78], 1
cmp byte [ebp - 2], 0
je 0x5e1ce
mov eax, dword [ebp - 0x6c]
mov dword [esi + 0x38], eax
mov eax, dword [ebp - 0x68]
mov dword [esi + 0x3c], eax
mov eax, dword [ebp - 0x64]
mov dword [esi + 0x40], eax
mov eax, dword [ebp - 0x60]
mov dword [esi + 0x44], eax
mov eax, dword [ebp - 0x5c]
mov dword [esi + 0x48], eax
mov eax, dword [ebp - 0x58]
mov dword [esi + 0x4c], eax
mov eax, dword [ebp - 0x54]
mov dword [esi + 0x50], eax
mov eax, dword [ebp - 0x50]
mov dword [esi + 0x54], eax
mov eax, dword [ebp - 0x4c]
mov dword [esi + 0x58], eax
push esi
call fcn.00047492
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
lea eax, [esi + 0x2c]
cmp dword [eax], eax
je 0x5e1fc
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
mov dword [ecx + 4], edx
mov ecx, dword [esi + 0x30]
mov dword [ecx], edx
mov dword [esi + 0x30], eax
mov dword [eax], eax
and dword [esi + 0x28], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x14]
cmp ecx, eax
je 0x5e246
lea edi, [esi + 0x34]
lea ebx, [esi + 0x14]
mov eax, dword [ecx]
mov edx, ecx
mov ecx, dword [ecx + 4]
mov dword [ecx], eax
mov dword [eax + 4], ecx
xor eax, eax
inc eax
lock xadd dword [edi], eax
push 1
push esi
add edx, 0xffffff98
push edx
call fcn.0005c61d
mov ecx, ebx
call dword [sym.imp.ntoskrnl.exe_KefAcquireSpinLockAtDpcLevel]
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x14]
cmp ecx, eax
jne 0x5e215
mov dl, byte [ebp + 0xb]
lea ecx, [esi + 0x14]
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
lea eax, [esi + 0x34]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x5e264
push esi
call fcn.0005dd43
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret 4