Function at 0x1008ae60
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d43bd
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push esi
push edi
mov eax, dword [0x100ff230]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x10105f04
mov dword [ebp - 0x2c], vtable.nfapi::AutoLock.0
mov dword [ebp - 0x28], 0x10105f04
mov dword [ebp - 0x10], eax
call eax
cmp dword [0x10105ef8], 0
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 0
je case.0x1008aed3.6
mov esi, dword [ebp + 8]
mov eax, dword [esi]
cmp eax, 0x1d
ja case.0x1008aed3.6
movzx eax, byte [eax + 0x1008b8ec]
jmp dword [eax*4 + 0x1008b8a0]
push dword [esi + 8]
push dword [esi + 4]
push dword [0x10105ef0]
call fcn.1008e1c0
add esp, 0xc
lea edx, [esi + 0x10]
test eax, eax
je 0x1008af33
movups xmm0, xmmword [edx]
lea ecx, [eax - 8]
mov dword [ebp - 0x18], ecx
movups xmmword [ecx + 0x5c], xmm0
movups xmm0, xmmword [edx + 0x10]
movups xmmword [ecx + 0x6c], xmm0
movups xmm0, xmmword [edx + 0x20]
movups xmmword [ecx + 0x7c], xmm0
movups xmm0, xmmword [edx + 0x30]
movups xmmword [ecx + 0x8c], xmm0
mov ax, word [edx + 0x40]
mov word [ecx + 0x9c], ax
mov al, byte [edx + 0x42]
mov byte [ecx + 0x9e], al
jmp 0x1008af4f
push edx
push dword [esi + 8]
push dword [esi + 4]
call fcn.1008a950
mov ecx, eax
add esp, 0xc
mov dword [ebp - 0x18], ecx
test ecx, ecx
je case.0x1008aed3.6
mov byte [ecx + 0xa5], 1
mov eax, dword [esi + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 8]
push 0x10105f04
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x34], vtable.nfapi::AutoLock.0
mov dword [ebp - 0x30], 0x10105f04
call dword [ebp - 0x10]
cmp byte [0x10106038], 0
mov byte [ebp - 4], 1
je 0x1008b04c
cmp dword [0x100ff094], 0xffffffff
je 0x1008b04c
push 0
push 0x2c
call fcn.1008e250
add esp, 8
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1008b04c
mov ecx, dword [ebp - 0x1c]
mov dword [eax], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x28], 0
push 0
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x20]
mov dword [eax + 8], ecx
lea ecx, [ebp - 0x24]
push ecx
push 0x2c
push eax
push 0x2c
push eax
push 0x220194
mov dword [eax + 0xc], 0x1c
push dword [0x100ff094]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1008b03e
cmp dword [ebp - 0x24], 0
jbe 0x1008b03e
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
movups xmm0, xmmword [ecx + 0x10]
movups xmmword [edx + 0x67], xmm0
movq xmm0, qword [ecx + 0x20]
movq qword [edx + 0x77], xmm0
mov eax, dword [ecx + 0x28]
mov dword [edx + 0x7f], eax
jmp 0x1008b041
mov ecx, dword [ebp - 0x14]
push 0
push ecx
call fcn.1008e260
add esp, 8
push 0x10105f04
call edi
push 0x10105f04
mov dword [ebp - 0x34], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x30], 0x10105f04
call edi
push esi
mov ecx, 0x10105f38
mov byte [ebp - 4], 2
call fcn.1008c590
jmp 0x1008b87f
lea eax, [esi + 0x10]
push eax
push dword [esi + 8]
push dword [esi + 4]
call fcn.1008a950
add esp, 0xc
mov dword [ebp - 0x34], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x30], 0x10105f04
push 0x10105f04
call edi
push esi
mov ecx, 0x10105f38
mov byte [ebp - 4], 3
call fcn.1008c590
jmp 0x1008b87f
cmp dword [esi + 0xc], 0x10
jne 0x1008b0dd
push dword [esi + 8]
push dword [esi + 4]
push dword [0x10105ef0]
call fcn.1008e1c0
add esp, 0xc
test eax, eax
je 0x1008b0dd
movups xmm0, xmmword [esi + 0x10]
movups xmmword [eax + 0x3e], xmm0
push 0x10105f04
mov dword [ebp - 0x34], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x30], 0x10105f04
call edi
push esi
mov ecx, 0x10105f38
mov byte [ebp - 4], 4
call fcn.1008c590
jmp 0x1008b87f
push dword [esi + 8]
push dword [esi + 4]
push dword [0x10105ef0]
call fcn.1008e1c0
add esp, 0xc
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1008b24a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x50], eax
lea eax, [ecx + 0xc]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x1008b17e
cmp dword [eax], eax
je 0x1008b17e
mov edx, dword [eax + 4]
mov dword [ebp - 0x24], edx
mov eax, dword [edx + 0x14]
add eax, ecx
cmp eax, 0x20000
ja 0x1008b17e
push ecx
lea eax, [esi + 0x10]
push eax
mov eax, dword [edx + 0x14]
add edx, 0x18
add eax, edx
push eax
call fcn.10093720
mov edx, dword [ebp - 0x24]
add esp, 0xc
mov ecx, dword [ebp - 0x14]
mov eax, dword [esi + 0xc]
add ecx, 0xfffffff8
add dword [edx + 0x14], eax
mov eax, dword [esi + 0xc]
add dword [ecx + 0x1c], eax
jmp 0x1008b1f2
push 0
push 0x2001b
call fcn.1008e250
add esp, 8
mov dword [ebp - 0x1c], eax
test eax, eax
je case.0x1008aed3.6
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
mov dword [eax + 0x10], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0xc], ecx
mov ecx, dword [esi]
mov dword [eax + 8], ecx
mov eax, dword [esi + 0xc]
mov dword [edx + 0x14], eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x1008b1d0
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [edx + 0x18]
push eax
call fcn.10093720
mov eax, dword [esi + 0xc]
add esp, 0xc
mov edx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x14]
add dword [edi + 0x14], eax
lea ecx, [edi - 8]
mov eax, dword [edi + 0x10]
add edi, 0xc
mov dword [edx], edi
mov edi, dword [ebp - 0x14]
mov dword [edx + 4], eax
mov dword [eax], edx
mov dword [edi + 0x10], edx
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ecx + 0x40], 0x100000
jae 0x1008b216
cmp dword [ecx + 0x34], 0x100000
jae 0x1008b216
cmp dword [ecx + 0x28], 0x40000
jae 0x1008b216
cmp dword [ecx + 0x1c], 0x800000
jb 0x1008b221
push 1
push ecx
call fcn.1008c1b0
add esp, 8
push 0x10105f04
mov dword [ebp - 0x34], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x30], 0x10105f04
call edi
push esi
mov ecx, 0x10105f38
mov byte [ebp - 4], 5
call fcn.1008c590
jmp 0x1008b87f
push dword [esi + 0xc]
lea eax, [esi + 0x10]
push eax
push dword [esi + 8]
push dword [esi + 4]
call fcn.100871e0
add esp, 0x10
jmp case.0x1008aed3.6
push dword [esi + 8]
push dword [esi + 4]
push dword [0x10105ef0]
call fcn.1008e1c0
add esp, 0xc
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1008b3a8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x50], eax
mov edx, dword [esi + 0xc]
test edx, edx
je 0x1008b2dc
lea eax, [ecx + 0x18]
cmp dword [eax], eax
je 0x1008b2dc
mov ecx, dword [eax + 4]
mov dword [ebp - 0x24], ecx
mov eax, dword [ecx + 0x14]
add eax, edx
cmp eax, 0x20000
ja 0x1008b2dc
push edx
lea eax, [esi + 0x10]
push eax
mov eax, dword [ecx + 0x14]
add ecx, 0x18
add eax, ecx
push eax
call fcn.10093720
mov edx, dword [ebp - 0x24]
add esp, 0xc
mov ecx, dword [ebp - 0x14]
mov eax, dword [esi + 0xc]
add ecx, 0xfffffff8
add dword [edx + 0x14], eax
mov eax, dword [esi + 0xc]
add dword [ecx + 0x28], eax
jmp 0x1008b350
push 0
push 0x2001b
call fcn.1008e250
add esp, 8
mov dword [ebp - 0x1c], eax
test eax, eax
je case.0x1008aed3.6
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
mov dword [eax + 0x10], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0xc], ecx
mov ecx, dword [esi]
mov dword [eax + 8], ecx
mov eax, dword [esi + 0xc]
mov dword [edx + 0x14], eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x1008b32e
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [edx + 0x18]
push eax
call fcn.10093720
mov eax, dword [esi + 0xc]
add esp, 0xc
mov edx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x14]
add dword [edi + 0x20], eax
lea ecx, [edi - 8]
mov eax, dword [edi + 0x1c]
add edi, 0x18
mov dword [edx], edi
mov edi, dword [ebp - 0x14]
mov dword [edx + 4], eax
mov dword [eax], edx
mov dword [edi + 0x1c], edx
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ecx + 0x40], 0x100000
jae 0x1008b374
cmp dword [ecx + 0x34], 0x100000
jae 0x1008b374
cmp dword [ecx + 0x28], 0x40000
jae 0x1008b374
cmp dword [ecx + 0x1c], 0x800000
jb 0x1008b37f
push 1
push ecx
call fcn.1008c1b0
add esp, 8
push 0x10105f04
mov dword [ebp - 0x34], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x30], 0x10105f04
call edi
push esi
mov ecx, 0x10105f38
mov byte [ebp - 4], 6
call fcn.1008c590
jmp 0x1008b87f
push dword [esi + 0xc]
lea eax, [esi + 0x10]
push eax
push dword [esi + 8]
push dword [esi + 4]
call fcn.100871c0
add esp, 0x10
jmp case.0x1008aed3.6
push 0x10105f04
mov dword [ebp - 0x34], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x30], 0x10105f04
call edi
push esi
mov ecx, 0x10105fa0
mov byte [ebp - 4], 7
call fcn.1008c590
jmp 0x1008b87f
push 0x10105f04
mov dword [ebp - 0x34], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x30], 0x10105f04
call edi
push esi
mov ecx, 0x10105fa0
mov byte [ebp - 4], 8
call fcn.1008c590
jmp 0x1008b87f
push 0x10105f04
mov dword [ebp - 0x34], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x30], 0x10105f04
call edi
push 0x19
push dword [esi + 8]
mov byte [ebp - 4], 9
push dword [esi + 4]
call fcn.10088d60
add esp, 0xc
jmp 0x1008b87f
push dword [esi + 8]
push dword [esi + 4]
push dword [0x10105ef0]
call fcn.1008e1c0
add esp, 0xc
test eax, eax
je case.0x1008aed3.6
mov byte [eax + 0x9f], 1
jmp case.0x1008aed3.6
lea eax, [esi + 0x10]
push eax
push dword [esi + 8]
push dword [esi + 4]
call fcn.1008a780
add esp, 0xc
mov dword [ebp - 0x34], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x30], 0x10105f04
push 0x10105f04
call edi
push esi
mov ecx, 0x10105f38
mov byte [ebp - 4], 0xa
call fcn.1008c590
jmp 0x1008b87f
push dword [esi + 8]
push dword [esi + 4]
push dword [0x10105ef4]
call fcn.1008e1c0
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x1008b4f0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [ecx + 0x6e], xmm0
movups xmm0, xmmword [esi + 0x20]
movups xmmword [ecx + 0x7e], xmm0
movups xmm0, xmmword [esi + 0x30]
movups xmmword [ecx + 0x8e], xmm0
movups xmm0, xmmword [esi + 0x40]
movups xmmword [ecx + 0x9e], xmm0
mov ax, word [esi + 0x50]
mov word [ecx + 0xae], ax
push 0x10105f04
mov dword [ebp - 0x34], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x30], 0x10105f04
call edi
push esi
mov ecx, 0x10105f38
mov byte [ebp - 4], 0xb
call fcn.1008c590
jmp 0x1008b87f
cmp dword [esi + 0xc], 0x10
jne 0x1008b53f
push dword [esi + 8]
push dword [esi + 4]
push dword [0x10105ef4]
call fcn.1008e1c0
add esp, 0xc
test eax, eax
je 0x1008b53f
movups xmm0, xmmword [esi + 0x10]
movups xmmword [eax + 0x3c], xmm0
push 0x10105f04
mov dword [ebp - 0x34], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x30], 0x10105f04
call edi
push esi
mov ecx, 0x10105f38
mov byte [ebp - 4], 0xc
call fcn.1008c590
jmp 0x1008b87f
push dword [esi + 8]
push dword [esi + 4]
push dword [0x10105ef4]
call fcn.1008e1c0
add esp, 0xc
test eax, eax
jne 0x1008b5b5
xorps xmm0, xmm0
mov word [ebp - 0x38], ax
mov ax, word [esi + 0x10]
movups xmmword [ebp - 0x58], xmm0
mov word [ebp - 0x54], ax
lea eax, [ebp - 0x58]
push eax
push dword [esi + 8]
movups xmmword [ebp - 0x48], xmm0
push dword [esi + 4]
call fcn.1008a780
add esp, 0xc
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x1008b5bb
jmp case.0x1008aed3.6
add eax, 0xfffffff8
mov dword [ebp - 0x14], eax
push 0
push 0x2001b
call fcn.1008e250
add esp, 8
mov dword [ebp - 0x1c], eax
test eax, eax
je case.0x1008aed3.6
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
mov dword [eax + 0x10], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0xc], ecx
mov ecx, dword [esi]
mov dword [eax + 8], ecx
mov eax, dword [esi + 0xc]
mov dword [edx + 0x14], eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x1008b60d
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [edx + 0x18]
push eax
call fcn.10093720
mov eax, dword [esi + 0xc]
add esp, 0xc
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
add dword [ecx + 0x1c], eax
lea edi, [ecx + 0x14]
mov eax, dword [ecx + 0x18]
mov dword [edx], edi
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [edx + 4], eax
mov dword [eax], edx
mov dword [ecx + 0x18], edx
cmp dword [ecx + 0x40], 0x100000
jae 0x1008b64d
cmp dword [ecx + 0x34], 0x100000
jae 0x1008b64d
cmp dword [ecx + 0x28], 0x800000
jae 0x1008b64d
cmp dword [ecx + 0x1c], 0x800000
jb 0x1008b658
push 1
push ecx
call fcn.1008c4b0
add esp, 8
push 0x10105f04
mov dword [ebp - 0x34], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x30], 0x10105f04
call edi
push esi
mov ecx, 0x10105f38
mov byte [ebp - 4], 0xd
call fcn.1008c590
jmp 0x1008b87f
push dword [esi + 8]
push dword [esi + 4]
push dword [0x10105ef4]
call fcn.1008e1c0
add esp, 0xc
test eax, eax
jne 0x1008b6ce
xorps xmm0, xmm0
mov word [ebp - 0x38], ax
mov ax, word [esi + 0x10]
movups xmmword [ebp - 0x58], xmm0
mov word [ebp - 0x54], ax
lea eax, [ebp - 0x58]
push eax
push dword [esi + 8]
movups xmmword [ebp - 0x48], xmm0
push dword [esi + 4]
call fcn.1008a780
add esp, 0xc
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x1008b6d4
jmp case.0x1008aed3.6
add eax, 0xfffffff8
mov dword [ebp - 0x14], eax
push 0
push 0x2001b
call fcn.1008e250
add esp, 8
mov dword [ebp - 0x1c], eax
test eax, eax
je case.0x1008aed3.6
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
mov dword [eax + 0x10], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0xc], ecx
mov ecx, dword [esi]
mov dword [eax + 8], ecx
mov eax, dword [esi + 0xc]
mov dword [edx + 0x14], eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x1008b726
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [edx + 0x18]
push eax
call fcn.10093720
mov eax, dword [esi + 0xc]
add esp, 0xc
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
add dword [ecx + 0x28], eax
lea edi, [ecx + 0x20]
mov eax, dword [ecx + 0x24]
mov dword [edx], edi
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [edx + 4], eax
mov dword [eax], edx
mov dword [ecx + 0x24], edx
cmp dword [ecx + 0x40], 0x100000
jae 0x1008b766
cmp dword [ecx + 0x34], 0x100000
jae 0x1008b766
cmp dword [ecx + 0x28], 0x800000
jae 0x1008b766
cmp dword [ecx + 0x1c], 0x800000
jb 0x1008b771
push 1
push ecx
call fcn.1008c4b0
add esp, 8
push 0x10105f04
mov dword [ebp - 0x34], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x30], 0x10105f04
call edi
push esi
mov ecx, 0x10105f38
mov byte [ebp - 4], 0xe
call fcn.1008c590
jmp 0x1008b87f
push 0x10105f04
mov dword [ebp - 0x34], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x30], 0x10105f04
call edi
push esi
mov ecx, 0x10105fa0
mov byte [ebp - 4], 0xf
call fcn.1008c590
jmp 0x1008b87f
push 0x10105f04
mov dword [ebp - 0x34], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x30], 0x10105f04
call edi
push esi
mov ecx, 0x10105fa0
mov byte [ebp - 4], 0x10
call fcn.1008c590
jmp 0x1008b87f
lea eax, [esi + 0x10]
mov dword [ebp - 0x34], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x1c], eax
lea eax, [esi + 0x26]
mov esi, dword [esi + 0xc]
push 0x10105f04
mov dword [ebp - 0x18], eax
sub esi, 0x16
mov dword [ebp - 0x30], 0x10105f04
call edi
push dword [ebp - 0x1c]
mov ecx, dword [0x101060a4]
mov byte [ebp - 4], 0x11
push esi
push dword [ebp - 0x18]
test ecx, ecx
je 0x1008b82e
mov eax, dword [ecx]
call dword [eax]
jmp 0x1008b87f
push 0x1c
jmp 0x1008b877
lea eax, [esi + 0x10]
mov dword [ebp - 0x34], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x1c], eax
lea eax, [esi + 0x26]
mov esi, dword [esi + 0xc]
push 0x10105f04
mov dword [ebp - 0x18], eax
sub esi, 0x16
mov dword [ebp - 0x30], 0x10105f04
call edi
push dword [ebp - 0x1c]
mov ecx, dword [0x101060a4]
mov byte [ebp - 4], 0x12
push esi
push dword [ebp - 0x18]
test ecx, ecx
je 0x1008b875
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1008b87f
push 0x1d
call fcn.1008bc00
add esp, 0x10
push 0x10105f04
call dword [ebp - 0x10]
push 0x10105f04
call edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret