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

Disassembly:
push ebp
mov edx, 0x8000
mov ebp, esp
push edi
mov edi, 0x418460
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 0x403b28
add eax, dword [0x437178]
mov dword [esp], eax
call fcn.00403abc
push eax
lea eax, [ebp - 0x5c]
mov dword [esp + 4], 4
mov dword [esp], eax
call fcn.00403a94
push esi
push esi
test eax, eax
je 0x403d1e
mov eax, dword [ebp - 0x5c]
test eax, eax
jns 0x403d2c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
mov dword [0x428490], 8
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x5c]
mov dword [0x4289ac], 0
mov dword [0x4289a8], 0
and eax, 0x7fffffff
mov dword [0x432038], 0x42a030
mov dword [0x432034], 0x42a030
mov dword [0x432030], 0x432030
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x5c], eax
mov esi, dword [ebp - 0x5c]
test esi, esi
jle 0x403d57
cmp esi, 0x4000
mov eax, 0x4000
mov dword [esp], 0x414460
cmovg esi, eax
mov dword [esp + 4], esi
call fcn.00403a94
push ecx
push ecx
test eax, eax
je 0x403d1e
sub dword [ebp - 0x5c], esi
mov dword [0x428480], 0x414460
mov dword [0x428484], esi
mov dword [esp], 0x428480
mov eax, dword [ebp - 0x6c]
mov dword [0x428488], edi
mov dword [0x42848c], eax
call fcn.00408fe7
mov dword [ebp - 0x78], eax
push edx
test eax, eax
js 0x403d25
mov esi, dword [0x428488]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub esi, edi
mov edx, eax
test byte [0x437114], 1
je 0x403c8d
mov ecx, edx
sub ecx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x5c]
cmp ecx, 0xc8
ja 0x403c3e
test eax, eax
jne 0x403c8d
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x74], edx
mov dword [esp + 4], 0x64
mov edx, ecx
mov dword [esp + 8], ecx
sub edx, eax
mov dword [esp], edx
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.00406e74
push eax
push eax
test esi, esi
je 0x403ba5
cmp dword [ebp + 0x10], 0
jne 0x403cbd
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.00407a92
sub esp, 0xc
test eax, eax
je 0x403d52
add ebx, esi
jmp 0x403cc8
sub dword [ebp - 0x6c], esi
mov edi, dword [0x428488]
add ebx, esi
cmp dword [ebp - 0x78], 1
jne 0x403beb
jmp 0x403d57
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], esi
mov dword [esp + 4], 0x414460
mov dword [esp], eax
call fcn.00407a92
sub esp, 0xc
test eax, eax
je 0x403d52
sub dword [ebp - 0x5c], esi
add ebx, esi
mov esi, dword [ebp - 0x5c]
test esi, esi
jle 0x403d57
cmp esi, dword [ebp - 0x6c]
cmovg esi, dword [ebp - 0x6c]
mov dword [esp], 0x414460
mov dword [esp + 4], esi
call fcn.00403a94
push ecx
push ecx
test eax, eax
jne 0x403cd7
mov ebx, 0xfffffffd
jmp 0x403d57
mov ebx, 0xfffffffc
jmp 0x403d57
cmp dword [ebp + 0x10], 0
jne 0x403d36
xor ebx, ebx
jmp 0x403cfa
cmp eax, ebx
cmovle ebx, eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00403a94
push edx
push edx
test eax, eax
jne 0x403d57
jmp 0x403d1e
mov ebx, 0xfffffffe
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x10