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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10116bc0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x10163164]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [esi + 4]
cmp eax, 1
jne 0x100adcd5
mov eax, dword [esi + 0x10]
shr eax, 0x19
test al, 1
je 0x100ada39
mov eax, dword [esi + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x38], 0x19
mov dword [ebp - 0x2c], 0
call fcn.100b37e0
add esp, 4
push 0x10173378
mov dword [ebp - 0x1c], vtable.nfapi::AutoLock.0
mov dword [ebp - 0x18], 0x10173378
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [esi + 0xc]
mov dword [ebp - 4], 0
push dword [esi + 8]
push dword [0x10173260]
call fcn.100b5fa0
add esp, 0xc
test eax, eax
je 0x100adeb6
mov ecx, dword [sym.imp.KERNEL32.dll_GetTickCount]
lea edi, [eax - 8]
mov eax, dword [esi + 0x10]
shr eax, 4
test al, 1
je 0x100adb8b
mov eax, dword [edi + 0x34]
mov dword [ebp - 0x14], eax
call ecx
lea ecx, [edi + 0x2c]
mov dword [edi + 0x58], eax
cmp dword [ecx], ecx
je 0x100adb68
mov esi, dword [ebp - 0x14]
mov ebx, dword [ecx]
test esi, esi
jne 0x100adab4
cmp dword [ebx + 0x14], esi
ja 0x100adb65
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
mov dword [eax], ecx
mov dword [ecx + 4], eax
cmp byte [edi + 0xa8], 0
je 0x100adad1
push 0
push ebx
call fcn.100b6040
jmp 0x100adb45
push 0x10173378
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebx + 8]
push eax
call fcn.100b37e0
add esp, 4
mov esi, eax
push 0x10173378
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test esi, esi
jne 0x100adb55
cmp dword [ebx + 0x14], esi
jne 0x100adb0f
mov byte [edi + 0xa8], 1
mov dword [edi + 0xac], 0xea60
mov eax, dword [edi + 0x34]
mov ecx, dword [ebx + 0x14]
cmp eax, ecx
jb 0x100adb20
sub eax, ecx
mov dword [edi + 0x34], eax
jmp 0x100adb27
mov dword [edi + 0x34], 0
mov ecx, dword [ebx + 0x14]
xor eax, eax
mov edx, dword [ebp - 0x14]
sub edx, ecx
cmp dword [ebp - 0x14], ecx
push 0
cmovae eax, edx
push ebx
mov dword [ebp - 0x14], eax
call fcn.100b6040
mov esi, dword [ebp - 0x14]
lea ecx, [edi + 0x2c]
add esp, 8
cmp dword [ecx], ecx
jne 0x100adaa5
jmp 0x100adb65
mov eax, dword [edi + 0x2c]
lea ecx, [edi + 0x2c]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov dword [eax + 4], ebx
mov dword [ecx], ebx
mov esi, dword [ebp - 0x10]
cmp byte [edi + 0xa2], 0
jne 0x100adb85
cmp dword [ecx], ecx
jne 0x100adb85
push 4
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.100b3950
add esp, 0xc
mov ecx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [esi + 0x10]
shr eax, 5
test al, 1
je 0x100adc88
mov eax, dword [edi + 0x40]
mov dword [ebp - 0x14], eax
call ecx
lea ecx, [edi + 0x38]
mov dword [edi + 0x58], eax
cmp dword [ecx], ecx
je 0x100adc6b
mov esi, dword [ebp - 0x14]
mov ebx, dword [ecx]
test esi, esi
jne 0x100adbc1
cmp dword [ebx + 0x14], esi
ja 0x100adc68
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
mov dword [eax], ecx
mov dword [ecx + 4], eax
cmp byte [edi + 0xa9], 0
je 0x100adbde
push 0
push ebx
call fcn.100b6040
jmp 0x100adc48
push 0x10173378
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebx + 8]
push eax
call fcn.100b37e0
add esp, 4
mov esi, eax
push 0x10173378
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test esi, esi
jne 0x100adc58
cmp dword [ebx + 0x14], esi
jne 0x100adc12
mov byte [edi + 0xa9], 1
mov eax, dword [edi + 0x40]
mov ecx, dword [ebx + 0x14]
cmp eax, ecx
jb 0x100adc23
sub eax, ecx
mov dword [edi + 0x40], eax
jmp 0x100adc2a
mov dword [edi + 0x40], 0
mov ecx, dword [ebx + 0x14]
xor eax, eax
mov edx, dword [ebp - 0x14]
sub edx, ecx
cmp dword [ebp - 0x14], ecx
push 0
cmovae eax, edx
push ebx
mov dword [ebp - 0x14], eax
call fcn.100b6040
mov esi, dword [ebp - 0x14]
lea ecx, [edi + 0x38]
add esp, 8
cmp dword [ecx], ecx
jne 0x100adbb2
jmp 0x100adc68
mov eax, dword [edi + 0x38]
lea ecx, [edi + 0x38]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov dword [eax + 4], ebx
mov dword [ecx], ebx
mov esi, dword [ebp - 0x10]
cmp byte [edi + 0xa2], 0
jne 0x100adc88
cmp dword [ecx], ecx
jne 0x100adc88
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.100b3950
add esp, 0xc
cmp dword [edi + 0x40], 0x100000
ja 0x100adcbd
cmp dword [edi + 0x34], 0x100000
ja 0x100adcbd
cmp dword [edi + 0x28], 0x40000
ja 0x100adcbd
cmp dword [edi + 0x1c], 0x800000
ja 0x100adcbd
movzx eax, byte [edi + 0xa0]
push eax
push edi
call fcn.100b3ed0
add esp, 8
mov eax, dword [esi + 0x10]
shr eax, 1
test al, 1
je 0x100adeb6
push edi
call fcn.100b1460
jmp 0x100adeb3
cmp eax, 2
jne 0x100adec1
push 0x10173378
mov dword [ebp - 0x24], vtable.nfapi::AutoLock.0
mov dword [ebp - 0x20], 0x10173378
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [esi + 0xc]
mov dword [ebp - 4], 1
push dword [esi + 8]
push dword [0x10173264]
call fcn.100b5fa0
add esp, 0xc
test eax, eax
je 0x100adeb6
lea edi, [eax - 8]
mov eax, dword [esi + 0x10]
shr eax, 0xc
test al, 1
je 0x100addaf
mov ebx, dword [edi + 0x2c]
lea eax, [edi + 0x2c]
cmp ebx, eax
je 0x100ade11
push 0x10173378
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebx + 8]
push eax
call fcn.100b37e0
add esp, 4
mov esi, eax
push 0x10173378
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test esi, esi
jne 0x100add95
mov eax, dword [edi + 0x34]
mov ecx, dword [ebx + 0x14]
cmp eax, ecx
jb 0x100add72
sub eax, ecx
mov dword [edi + 0x34], eax
jmp 0x100add79
mov dword [edi + 0x34], 0
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
push 0
push ebx
mov dword [eax], ecx
mov dword [ecx + 4], eax
call fcn.100b6040
add esp, 8
mov byte [edi + 0xbb], 1
mov esi, dword [ebp - 0x10]
lea eax, [edi + 0x2c]
cmp dword [eax], eax
jne 0x100addaf
push 0xc
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.100b3950
add esp, 0xc
mov eax, dword [esi + 0x10]
shr eax, 0xd
test al, 1
je 0x100ade6e
mov eax, dword [edi + 0x40]
lea ebx, [edi + 0x38]
mov dword [ebp - 0x14], eax
cmp dword [ebx], ebx
je 0x100ade5e
nop
mov esi, dword [ebx]
push 0x10173378
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [esi + 8]
push eax
call fcn.100b37e0
add esp, 4
mov esi, eax
push 0x10173378
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test esi, esi
jne 0x100ade57
mov esi, dword [ebp - 0x18]
mov eax, dword [edi + 0x40]
mov ecx, dword [esi + 0x14]
cmp eax, ecx
jb 0x100ade1a
sub eax, ecx
mov dword [edi + 0x40], eax
jmp 0x100ade21
mov byte [edi + 0xbb], 0
jmp 0x100add9b
mov dword [edi + 0x40], 0
mov ecx, dword [esi + 0x14]
xor eax, eax
mov edx, dword [ebp - 0x14]
sub edx, ecx
cmp dword [ebp - 0x14], ecx
mov ecx, dword [esi]
cmovae eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 4]
push 0
push esi
mov dword [eax], ecx
mov dword [ecx + 4], eax
call fcn.100b6040
add esp, 8
cmp dword [ebp - 0x14], 0
je 0x100ade57
cmp dword [ebx], ebx
jne 0x100addd0
mov esi, dword [ebp - 0x10]
cmp dword [ebx], ebx
jne 0x100ade6e
push 0xd
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.100b3950
add esp, 0xc
cmp dword [edi + 0x40], 0x100000
ja 0x100adea3
cmp dword [edi + 0x34], 0x100000
ja 0x100adea3
cmp dword [edi + 0x28], 0x800000
ja 0x100adea3
cmp dword [edi + 0x1c], 0x800000
ja 0x100adea3
movzx eax, byte [edi + 0xb9]
push eax
push edi
call fcn.100b4320
add esp, 8
mov eax, dword [esi + 0x10]
shr eax, 9
test al, 1
je 0x100adeb6
push edi
call fcn.100b0d00
add esp, 4
push 0x10173378
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret