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

Disassembly:
push ebp
mov edx, 0x8000
mov ebp, esp
push edi
mov edi, 0x41a880
push esi
push ebx
sub esp, 0xbc
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 - 0xac], edx
test eax, eax
js 0x403ce0
add eax, dword [0x43cab8]
mov dword [esp], eax
call fcn.00403c6e
push eax
lea eax, [ebp - 0x9c]
mov dword [esp + 4], 4
mov dword [esp], eax
call fcn.00403c46
push esi
push esi
test eax, eax
je 0x403f18
mov eax, dword [ebp - 0x9c]
test eax, eax
jns 0x403f26
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
mov dword [0x42a8b0], 8
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0x9c]
mov dword [0x42adcc], 0
mov dword [0x42adc8], 0
and eax, 0x7fffffff
mov dword [0x434458], 0x42c450
mov dword [0x434454], 0x42c450
mov dword [0x434450], 0x434450
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0x9c], eax
mov esi, dword [ebp - 0x9c]
test esi, esi
jle 0x403f51
cmp esi, 0x4000
mov eax, 0x4000
mov dword [esp], 0x416880
cmovg esi, eax
mov dword [esp + 4], esi
call fcn.00403c46
push ecx
push ecx
test eax, eax
je 0x403f18
sub dword [ebp - 0x9c], esi
mov dword [0x42a8a0], 0x416880
mov dword [0x42a8a4], esi
mov dword [esp], 0x42a8a0
mov eax, dword [ebp - 0xac]
mov dword [0x42a8a8], edi
mov dword [0x42a8ac], eax
call fcn.0040939a
mov dword [ebp - 0xb8], eax
push edx
test eax, eax
js 0x403f1f
mov esi, dword [0x42a8a8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub esi, edi
mov edx, eax
test byte [0x43ca54], 1
je 0x403e75
mov ecx, edx
sub ecx, dword [ebp - 0xb4]
mov eax, dword [ebp - 0x9c]
cmp ecx, 0xc8
ja 0x403e1a
test eax, eax
jne 0x403e75
mov ecx, dword [ebp - 0xb0]
mov dword [ebp - 0xb4], 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 - 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.00407147
push eax
push eax
test esi, esi
je 0x403d6f
cmp dword [ebp + 0x10], 0
jne 0x403ea5
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.00407d97
sub esp, 0xc
test eax, eax
je 0x403f4c
add ebx, esi
jmp 0x403eb3
sub dword [ebp - 0xac], esi
mov edi, dword [0x42a8a8]
add ebx, esi
cmp dword [ebp - 0xb8], 1
jne 0x403dbb
jmp 0x403f51
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], esi
mov dword [esp + 4], 0x416880
mov dword [esp], eax
call fcn.00407d97
sub esp, 0xc
test eax, eax
je 0x403f4c
sub dword [ebp - 0x9c], esi
add ebx, esi
mov esi, dword [ebp - 0x9c]
test esi, esi
jle 0x403f51
cmp esi, dword [ebp - 0xac]
cmovg esi, dword [ebp - 0xac]
mov dword [esp], 0x416880
mov dword [esp + 4], esi
call fcn.00403c46
push ecx
push ecx
test eax, eax
jne 0x403ec5
mov ebx, 0xfffffffd
jmp 0x403f51
mov ebx, 0xfffffffc
jmp 0x403f51
cmp dword [ebp + 0x10], 0
jne 0x403f30
xor ebx, ebx
jmp 0x403eeb
cmp eax, ebx
cmovle ebx, eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00403c46
push edx
push edx
test eax, eax
jne 0x403f51
jmp 0x403f18
mov ebx, 0xfffffffe
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x10