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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xcc
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
je 0x40447c
mov dword [ebp - 0xac], ebx
mov edi, dword [ebp + 0x10]
jmp 0x40448b
mov dword [ebp - 0xac], 0x8000
mov edi, 0x4331a0
test eax, eax
js 0x40449e
add eax, dword [0x42f198]
mov dword [esp], eax
call fcn.0040442d
push eax
lea eax, [ebp - 0x9c]
mov dword [esp + 4], 4
mov dword [esp], eax
call fcn.00404405
push esi
push esi
test eax, eax
je 0x4046e5
mov eax, dword [ebp - 0x9c]
test eax, eax
jns 0x4046f3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
mov dword [0x4431d0], 8
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0x9c]
mov dword [0x44cd78], 0x444d70
and eax, 0x7fffffff
mov dword [0x4436ec], ebx
mov dword [0x44cd74], 0x444d70
mov dword [0x44cd70], 0x44cd70
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0x9c], eax
mov dword [0x4436e8], ebx
xor ebx, ebx
mov esi, dword [ebp - 0x9c]
test esi, esi
jle 0x40471e
mov eax, 0x4000
mov dword [esp], 0x42f1a0
cmp esi, eax
cmovg esi, eax
mov dword [esp + 4], esi
call fcn.00404405
push ecx
push ecx
test eax, eax
je 0x4046e5
sub dword [ebp - 0x9c], esi
mov dword [0x4431c0], 0x42f1a0
mov dword [0x4431c4], esi
mov eax, dword [ebp - 0xac]
mov dword [0x4431c8], edi
mov dword [0x4431cc], eax
mov dword [esp], 0x4431c0
call fcn.00409f5f
push edx
mov dword [ebp - 0xb8], eax
test eax, eax
js 0x4046ec
mov esi, dword [0x4431c8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub esi, edi
mov edx, eax
test byte [0x41b054], 1
je 0x40463e
mov eax, dword [ebp - 0x9c]
mov ecx, edx
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xb4]
sub ecx, eax
cmp ecx, 0xc8
ja 0x4045df
cmp dword [ebp - 0xbc], 0
jne 0x40463e
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xb4], edx
mov dword [esp + 4], 0x64
mov dword [esp + 8], eax
mov ecx, eax
mov eax, dword [ebp - 0xbc]
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]
xor eax, eax
lea ecx, [ebp - 0x98]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00407a44
push eax
push eax
test esi, esi
je 0x404527
cmp dword [ebp + 0x10], 0
jne 0x40466e
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.00408629
sub esp, 0xc
test eax, eax
je 0x404719
add ebx, esi
jmp 0x40467c
sub dword [ebp - 0xac], esi
mov edi, dword [0x4431c8]
add ebx, esi
cmp dword [ebp - 0xb8], 1
jne 0x40456f
jmp 0x40471e
mov dword [esp + 8], esi
mov dword [esp + 4], 0x42f1a0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.00408629
sub esp, 0xc
test eax, eax
je 0x404719
mov eax, dword [ebp - 0x9c]
add ebx, esi
sub eax, esi
mov dword [ebp - 0x9c], eax
test eax, eax
jle 0x40471e
cmp dword [ebp - 0xac], eax
cmovle eax, dword [ebp - 0xac]
mov dword [esp], 0x42f1a0
mov dword [esp + 4], eax
mov esi, eax
call fcn.00404405
push ecx
push ecx
test eax, eax
jne 0x40468e
mov ebx, 0xfffffffd
jmp 0x40471e
mov ebx, 0xfffffffc
jmp 0x40471e
cmp dword [ebp + 0x10], 0
jne 0x4046fd
xor ebx, ebx
jmp 0x4046bc
cmp eax, ebx
cmovle ebx, eax
mov dword [esp + 4], ebx
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.00404405
push edx
push edx
test eax, eax
jne 0x40471e
jmp 0x4046e5
mov ebx, 0xfffffffe
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x10