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

Disassembly:
push ebp
mov edx, 0x8000
mov ebp, esp
push edi
mov edi, 0x430180
push esi
push ebx
sub esp, 0xbc
mov esi, dword [ebp + 0x14]
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
cmovne edi, dword [ebp + 0x10]
cmovne edx, esi
mov dword [ebp - 0xac], edx
test eax, eax
js 0x404446
add eax, dword [0x42c178]
mov dword [esp], eax
call fcn.004043d4
push ebx
lea eax, [ebp - 0x9c]
mov dword [esp + 4], 4
mov dword [esp], eax
call fcn.004043ac
push ecx
push ecx
test eax, eax
je 0x404645
mov ebx, dword [ebp - 0x9c]
test ebx, ebx
jns 0x404653
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x4401a0
xor ebx, ebx
mov dword [ebp - 0xb4], eax
call fcn.00409ae8
mov eax, dword [ebp - 0x9c]
and eax, 0x7fffffff
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0x9c], eax
mov esi, dword [ebp - 0x9c]
test esi, esi
jle 0x40467e
mov eax, 0x4000
mov dword [esp], 0x42c180
cmp esi, eax
cmovg esi, eax
mov dword [esp + 4], esi
call fcn.004043ac
push edx
push edx
test eax, eax
je 0x404645
sub dword [ebp - 0x9c], esi
mov dword [0x4401b8], 0x42c180
mov dword [0x4401bc], esi
mov eax, dword [ebp - 0xac]
mov ecx, 0x4401a0
mov dword [0x4401c0], edi
mov dword [0x4401c4], eax
call fcn.00409b1c
mov dword [ebp - 0xb8], eax
test eax, eax
js 0x40464c
mov esi, dword [0x4401c0]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub esi, edi
mov edx, eax
test byte [0x418094], 1
je 0x4045a2
mov ecx, edx
sub ecx, dword [ebp - 0xb4]
mov eax, dword [ebp - 0x9c]
cmp ecx, 0xc8
ja 0x404547
test eax, eax
jne 0x4045a2
mov dword [ebp - 0xb4], edx
mov edx, dword [ebp - 0xb0]
mov dword [esp + 4], 0x64
mov ecx, edx
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp], ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
lea ecx, [ebp - 0x98]
sub esp, 0xc
mov dword [esp], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], str....__d__
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [ebp - 0x98]
mov dword [esp], 0
mov dword [esp + 4], ecx
call fcn.004079dc
push eax
push eax
test esi, esi
je 0x4044a3
cmp dword [ebp + 0x10], 0
jne 0x4045d2
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.00408663
sub esp, 0xc
test eax, eax
je 0x404679
add ebx, esi
jmp 0x4045e0
sub dword [ebp - 0xac], esi
mov edi, dword [0x4401c0]
add ebx, esi
cmp dword [ebp - 0xb8], 1
jne 0x4044eb
jmp 0x40467e
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], esi
mov dword [esp + 4], 0x42c180
mov dword [esp], eax
call fcn.00408663
sub esp, 0xc
test eax, eax
je 0x404679
sub dword [ebp - 0x9c], esi
add ebx, esi
mov esi, dword [ebp - 0x9c]
test esi, esi
jle 0x40467e
cmp esi, dword [ebp - 0xac]
cmovg esi, dword [ebp - 0xac]
mov dword [esp], 0x42c180
mov dword [esp + 4], esi
call fcn.004043ac
push ecx
push ecx
test eax, eax
jne 0x4045f2
mov ebx, 0xfffffffd
jmp 0x40467e
mov ebx, 0xfffffffc
jmp 0x40467e
cmp dword [ebp + 0x10], 0
jne 0x40465d
xor ebx, ebx
jmp 0x404618
cmp ebx, esi
mov eax, dword [ebp + 0x10]
cmovg ebx, esi
mov dword [esp], eax
mov dword [esp + 4], ebx
call fcn.004043ac
push edx
push edx
test eax, eax
jne 0x40467e
jmp 0x404645
mov ebx, 0xfffffffe
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x10