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

Disassembly:
push 0xffffffffffffffff
push 0x1007b750
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push edi
mov edi, dword [esp + 0x44]
push edi
lea ecx, [esp + 0x10]
call fcn.10005e50
mov ebp, dword [esp + 0x48]
xor ebx, ebx
push ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x40], ebx
call fcn.10005e50
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c], 1
call fcn.1000d0f0
mov ecx, eax
call fcn.1000cd40
lea ecx, [esp + 0x10]
call fcn.1000d0f0
mov ecx, eax
call fcn.1000cd40
mov eax, dword [esp + 0xc]
cmp dword [eax - 0xc], ebx
mov eax, dword [esp + 0x10]
je 0x10021fbe
cmp dword [eax - 0xc], ebx
je 0x10021fbe
push esi
push 0x20
call fcn.10067970
mov ecx, dword [esp + 0x54]
mov esi, eax
mov dword [esi + 4], ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 4
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], 0xffffffff
mov dword [esi + 8], ecx
mov dword [esi], edi
mov dword [esi + 0xc], ebx
call ebp
mov dword [esp + 0x18], eax
cmp dword [esp + 0x54], ebx
push esi
je 0x10021f4d
push ebx
push fcn.1001d4c0
call fcn.10069e0f
mov eax, dword [esi + 0xc]
add esp, 0xc
cmp eax, ebx
jne 0x10021f55
mov edi, dword [esp + 0x58]
lea esp, [esp]
push ebx
push ebx
push ebx
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x10021f55
cmp dword [esp + 0x20], 0x10
je 0x10021f55
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
call ebp
sub eax, dword [esp + 0x18]
cmp eax, edi
jbe 0x10021f46
cmp edi, 0xffffffff
je 0x10021f46
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x10021f1c
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esi + 0x18]
cmp eax, ebx
mov dword [esi + 0x14], ebx
je 0x10021f2d
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esi + 0x1c]
cmp eax, 0xffffffff
mov dword [esi + 0x18], ebx
je 0x10021f3f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x1c], 0xffffffff
cmp dword [esi + 0xc], ebx
je 0x10021ed0
jmp 0x10021f55
call fcn.1001d4c0
add esp, 4
mov edi, dword [esi + 0x10]
push esi
call fcn.10069196
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
mov byte [esp + 0x40], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
pop esi
jg 0x10021f84
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x3c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10021faa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, edi
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret
add eax, 0xfffffff0
mov byte [esp + 0x3c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10021fdc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x3c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10022002
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x34]
pop edi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret