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

Disassembly:
push ebp
mov edx, 0x8000
mov ebp, esp
push edi
mov edi, 0x41d580
push esi
push ebx
sub esp, 0x8c
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 - 0x6c], edx
test eax, eax
js 0x403ba8
add eax, dword [0x419578]
mov dword [esp], eax
call fcn.00403b3f
push ecx
lea eax, [ebp - 0x5c]
mov dword [esp + 4], 4
mov dword [esp], eax
call fcn.00403b17
push edx
push edx
test eax, eax
je 0x403d76
mov ebx, dword [ebp - 0x5c]
test ebx, ebx
jns 0x403d84
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [0x42d5b0], 0xb
xor ebx, ebx
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x5c]
mov dword [0x42d5c8], ebx
xor ebx, ebx
and eax, 0x7fffffff
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x5c], eax
mov esi, dword [ebp - 0x5c]
test esi, esi
jle 0x403daf
mov eax, 0x4000
mov dword [esp], 0x419580
cmp esi, eax
cmovg esi, eax
mov dword [esp + 4], esi
call fcn.00403b17
push ecx
push ecx
test eax, eax
je 0x403d76
sub dword [ebp - 0x5c], esi
mov dword [0x42d5a0], 0x419580
mov dword [0x42d5a4], esi
mov eax, dword [ebp - 0x6c]
mov dword [0x42d5a8], edi
mov dword [0x42d5ac], eax
mov dword [esp], 0x42d5a0
call fcn.00408b3c
push edx
mov dword [ebp - 0x7c], eax
test eax, eax
js 0x403d7d
mov esi, dword [0x42d5a8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub esi, edi
mov edx, eax
test byte [0x418054], 1
je 0x403ce4
mov eax, dword [ebp - 0x5c]
mov ecx, edx
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x74]
sub ecx, eax
cmp ecx, 0xc8
ja 0x403c94
cmp dword [ebp - 0x78], 0
jne 0x403ce4
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x74], edx
mov dword [esp + 4], 0x64
mov dword [esp + 8], eax
mov ecx, eax
mov eax, dword [ebp - 0x78]
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]
xor eax, eax
lea ecx, [ebp - 0x58]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00406ef1
push eax
push eax
test esi, esi
je 0x403bf8
cmp dword [ebp + 0x10], 0
jne 0x403d14
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.00407a78
sub esp, 0xc
test eax, eax
je 0x403daa
add ebx, esi
jmp 0x403d1f
sub dword [ebp - 0x6c], esi
mov edi, dword [0x42d5a8]
add ebx, esi
cmp dword [ebp - 0x7c], 4
jne 0x403c3a
jmp 0x403daf
mov dword [esp + 8], esi
mov dword [esp + 4], 0x419580
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.00407a78
sub esp, 0xc
test eax, eax
je 0x403daa
sub dword [ebp - 0x5c], esi
add ebx, esi
mov esi, dword [ebp - 0x5c]
test esi, esi
jle 0x403daf
mov eax, dword [ebp - 0x6c]
mov dword [esp], 0x419580
cmp esi, eax
cmovg esi, eax
mov dword [esp + 4], esi
call fcn.00403b17
push ecx
push ecx
test eax, eax
jne 0x403d2e
mov ebx, 0xfffffffd
jmp 0x403daf
mov ebx, 0xfffffffc
jmp 0x403daf
cmp dword [ebp + 0x10], 0
jne 0x403d8e
xor ebx, ebx
jmp 0x403d51
cmp ebx, esi
cmovg ebx, esi
mov dword [esp + 4], ebx
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.00403b17
push edx
push edx
test eax, eax
jne 0x403daf
jmp 0x403d76
mov ebx, 0xfffffffe
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x10