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

Disassembly:
push ebp
mov edx, 0x8000
mov ebp, esp
push edi
mov edi, 0x423160
push esi
push ebx
sub esp, 0x7c
mov ebx, dword [ebp + 0x14]
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
cmovne edi, dword [ebp + 0x10]
cmovne edx, ebx
mov dword [ebp - 0x6c], edx
test eax, eax
js 0x404244
add eax, dword [0x41f158]
mov dword [esp], eax
call fcn.004041d8
push esi
lea eax, [ebp - 0x5c]
mov dword [esp + 4], 4
mov dword [esp], eax
call fcn.004041b0
push ecx
push ecx
test eax, eax
je 0x404405
mov eax, dword [ebp - 0x5c]
test eax, eax
jns 0x404413
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x433180
xor ebx, ebx
mov dword [ebp - 0x74], eax
call fcn.0040975c
mov eax, dword [ebp - 0x5c]
and eax, 0x7fffffff
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x5c], eax
mov esi, dword [ebp - 0x5c]
test esi, esi
jle 0x40443e
cmp esi, 0x4000
mov eax, 0x4000
mov dword [esp], 0x41f160
cmovg esi, eax
mov dword [esp + 4], esi
call fcn.004041b0
push edx
push edx
test eax, eax
je 0x404405
sub dword [ebp - 0x5c], esi
mov dword [0x433198], 0x41f160
mov dword [0x43319c], esi
mov eax, dword [ebp - 0x6c]
mov ecx, 0x433180
mov dword [0x4331a0], edi
mov dword [0x4331a4], eax
call fcn.00409790
mov dword [ebp - 0x78], eax
test eax, eax
js 0x40440c
mov esi, dword [0x4331a0]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub esi, edi
mov edx, eax
test byte [0x415094], 1
je 0x404374
mov ecx, edx
sub ecx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x5c]
cmp ecx, 0xc8
ja 0x404325
test eax, eax
jne 0x404374
mov dword [ebp - 0x74], edx
mov edx, dword [ebp - 0x70]
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 - 0x58]
sub esp, 0xc
mov dword [esp], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], str....__d__
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ebp - 0x58]
mov dword [esp], 0
mov dword [esp + 4], ecx
call fcn.00407689
push eax
push eax
test esi, esi
je 0x40428f
cmp dword [ebp + 0x10], 0
jne 0x4043a4
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.004082da
sub esp, 0xc
test eax, eax
je 0x404439
add ebx, esi
jmp 0x4043af
sub dword [ebp - 0x6c], esi
mov edi, dword [0x4331a0]
add ebx, esi
cmp dword [ebp - 0x78], 1
jne 0x4042d5
jmp 0x40443e
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], esi
mov dword [esp + 4], 0x41f160
mov dword [esp], eax
call fcn.004082da
sub esp, 0xc
test eax, eax
je 0x404439
sub dword [ebp - 0x5c], esi
add ebx, esi
mov esi, dword [ebp - 0x5c]
test esi, esi
jle 0x40443e
cmp esi, dword [ebp - 0x6c]
cmovg esi, dword [ebp - 0x6c]
mov dword [esp], 0x41f160
mov dword [esp + 4], esi
call fcn.004041b0
push ecx
push ecx
test eax, eax
jne 0x4043be
mov ebx, 0xfffffffd
jmp 0x40443e
mov ebx, 0xfffffffc
jmp 0x40443e
cmp dword [ebp + 0x10], 0
jne 0x40441d
xor ebx, ebx
jmp 0x4043e1
cmp eax, ebx
cmovle ebx, eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.004041b0
push edx
push edx
test eax, eax
jne 0x40443e
jmp 0x404405
mov ebx, 0xfffffffe
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x10