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

Disassembly:
sub esp, 0x1c
mov ecx, dword [esp + 0x20]
mov al, cl
push ebx
mov bl, byte [esp + 0x30]
dec al
or byte [esp + 0x2c], bl
push ebp
cmp al, 5
ja 0x4404ae
cmp cl, 3
jne 0x4404b6
mov al, cl
add al, 0x66
cmp al, 5
ja 0x4404ba
mov bh, 1
jmp 0x4404bc
xor bh, bh
cmp dword [esp + 0x38], 0
mov ebp, dword [esp + 0x44]
jle 0x440787
mov bl, byte [esp + 0x40]
push esi
mov esi, dword [0x62271c]
push edi
mov edi, dword [esp + 0x30]
nop dword [eax + eax]
mov edx, dword fs:[0x2c]
mov eax, dword [edx + esi*4]
cmp dword [eax + 0x8f0], 0
jne 0x44063f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword fs:[0x2c]
mov esi, eax
mov eax, dword [0x62271c]
mov ecx, dword [edx + eax*4]
cmp byte [ecx + 0x2198], 0
jne 0x440528
call fcn.004ebad3
mov edx, dword fs:[0x2c]
mov eax, dword [0x62271c]
mov ecx, dword [edx + eax*4]
mov eax, dword [ecx + 0x298]
sub esi, dword [eax + 0x6f0]
cmp byte [ecx + 0x2198], 0
jne 0x44054c
call fcn.004ebad3
mov edx, dword fs:[0x2c]
mov eax, dword [0x62271c]
mov eax, dword [edx + eax*4]
mov eax, dword [eax + 0x29c]
cmp esi, dword [eax + 0x5c]
jbe 0x440639
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x4405f2
mov ecx, dword fs:[0x2c]
mov esi, dword [0x62271c]
mov eax, dword [ecx + esi*4]
cmp byte [eax + 0x2198], 0
jne 0x44059f
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + esi*4]
cmp byte [eax + 0x2198], 0
mov dword [eax + 0x1d8], 0
jne 0x4405ba
call fcn.004ebad3
push 1
push 0xffffffffffffffff
call fcn.00415b90
mov ecx, dword fs:[0x2c]
add esp, 8
mov eax, dword [ecx + esi*4]
cmp byte [eax + 0x2198], 0
jne 0x4405e5
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + esi*4]
mov dword [eax + 0x1d8], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x62271c]
mov esi, eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + ecx*4]
cmp byte [ecx + 0x2198], 0
jne 0x44061d
call fcn.004ebad3
mov eax, dword fs:[0x2c]
mov ecx, dword [0x62271c]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + 0x298]
mov dword [eax + 0x6f0], esi
mov edx, dword fs:[0x2c]
mov esi, dword [0x62271c]
test bl, bl
jne 0x4406d8
mov eax, dword [edx + esi*4]
cmp byte [eax + 0x2198], bl
jne 0x44065e
call fcn.004ebad3
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + esi*4]
mov eax, dword [ecx + 0x29c]
cmp byte [eax + 0x99], 0
je 0x44069e
cmp byte [ecx + 0x2198], 0
jne 0x440685
call fcn.004ebad3
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + esi*4]
mov esi, 0xffc3d44d
mov eax, dword [ecx + 0x29c]
movzx eax, byte [eax + 0x99]
sub esi, eax
jmp 0x4406a3
mov esi, 0xffc3d44f
cmp dword [ecx + 0x8f0], 0
je 0x4406b4
mov al, byte [ecx + 0x8f4]
jmp 0x4406be
push 0
call fcn.0043d7d0
add esp, 4
push esi
push 1
push 0
push ebp
push eax
push dword [esp + 0x4c]
call fcn.00442980
mov edx, dword fs:[0x2c]
add esp, 0x18
test bh, bh
je 0x44072c
test ebp, ebp
jne 0x44072c
mov esi, dword [0x62271c]
mov eax, dword [edx + esi*4]
cmp byte [eax + 0x2198], 0
jne 0x4406fe
call fcn.004ebad3
mov edx, dword fs:[0x2c]
mov eax, dword [edx + esi*4]
push dword [esp + 0x58]
push dword [esp + 0x48]
mov eax, dword [eax + 0x29c]
movzx eax, byte [eax + 0x97]
push eax
push 1
push dword [esp + 0x64]
push dword [esp + 0x64]
push edi
call fcn.0043e720
add esp, 0x1c
jmp 0x440776
mov esi, dword [0x62271c]
mov eax, dword [edx + esi*4]
cmp byte [eax + 0x2198], 0
jne 0x44074a
call fcn.004ebad3
mov edx, dword fs:[0x2c]
mov eax, dword [edx + esi*4]
mov ecx, 0xffc3d44d
mov eax, dword [eax + 0x29c]
movzx eax, byte [eax + 0x99]
sub ecx, eax
push ecx
push 1
push ebp
push dword [esp + 0x40]
push edi
push dword [esp + 0x58]
call fcn.0043db20
add esp, 0x18
sub dword [esp + 0x40], 1
jne 0x4404e0
mov bl, byte [esp + 0x3c]
pop edi
pop esi
cmp byte [esp + 0x40], 0
jne 0x4407dd
mov eax, dword fs:[0x2c]
mov ecx, dword [0x62271c]
mov eax, dword [eax + ecx*4]
cmp dword [eax + 0x8f0], 0
je 0x4407ae
mov al, byte [eax + 0x8f4]
jmp 0x4407b8
push 0
call fcn.0043d7d0
add esp, 4
not bl
and bl, al
and bl, 0xcc
mov byte [esp + 0x34], bl
je 0x4407dd
push 0xffc3d44d
push 0
push 1
push ebp
push dword [esp + 0x44]
push 0
call fcn.00442980
add esp, 0x18
pop ebp
pop ebx
add esp, 0x1c
ret