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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
mov ebx, dword [ebp + 0x18]
xor eax, eax
push esi
cmp ebx, eax
push edi
je 0x403423
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 8], ecx
jmp 0x40342a
mov dword [ebp - 8], 0x8000
cmp ebx, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ebx
jne 0x403441
mov dword [ebp - 0xc], 0x4188f0
push dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004033c8
push dword [ebp + 8]
lea eax, [ebp - 0x2c]
push 8
push eax
call fcn.00403393
add esp, 0x18
test eax, eax
je 0x403737
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
mov ecx, esi
xor eax, eax
and ecx, 0x80000000
mov dword [ebp - 0x18], esi
or eax, ecx
je 0x403645
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 0x1c], eax
call fcn.00405cf5
push eax
push 0x40c898
call fcn.0040709d
and dword [ebp - 0x18], 0x7fffffff
pop ecx
mov eax, dword [ebp - 0x18]
mov ebx, edi
pop ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], eax
jl 0x40371b
jle 0x40362a
cmp dword [ebp - 0x18], 0
jg 0x4034d0
jl 0x4034cc
cmp ebx, 0x4000
jae 0x4034d0
mov esi, ebx
jmp 0x4034d5
mov esi, 0x4000
push dword [ebp + 8]
mov edi, 0x4148f0
push esi
push edi
call fcn.00403393
add esp, 0xc
test eax, eax
je 0x403737
cmp dword [0x4208f8], 0
je 0x403505
push esi
push edi
push dword [ebp - 4]
call fcn.00406c2a
mov dword [ebp - 4], eax
mov eax, esi
mov dword [0x40c898], edi
cdq
sub ebx, eax
mov dword [0x40c89c], esi
sbb dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], ebx
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push 0x40c898
mov dword [0x40c8a0], edi
mov dword [0x40c8a4], eax
call fcn.0040718e
test eax, eax
pop ecx
mov dword [ebp + 0x10], eax
jl 0x403637
mov esi, dword [0x40c8a0]
sub esi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x425474], 1
mov edi, eax
je 0x4035cc
sub eax, dword [ebp + 0x1c]
cmp eax, 0xc8
ja 0x40356d
mov eax, ebx
or eax, dword [ebp - 0x18]
jne 0x4035cc
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
sub eax, ebx
sbb ecx, dword [ebp - 0x18]
cmp dword [ebp - 0x20], 0
je 0x403597
mov ebx, dword [ebp - 0x20]
shr edx, 0x18
shl ebx, 8
shr eax, 0x18
shl ecx, 8
or edx, ebx
mov ebx, dword [ebp - 0x1c]
or eax, ecx
shr eax, 1
shr edx, 1
cmp eax, edx
jb 0x4035a1
mov eax, edx
push edx
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x6c]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
push 0
call fcn.0040582f
mov dword [ebp + 0x1c], edi
xor edi, edi
cmp esi, edi
je 0x40361b
cmp dword [ebp + 0x18], edi
jne 0x4035f2
push esi
push dword [ebp - 0xc]
push dword [ebp + 0x14]
call fcn.00406385
test eax, eax
je 0x40363e
mov eax, esi
cdq
add dword [ebp - 0x14], eax
adc dword [ebp - 0x10], edx
jmp 0x403606
mov eax, esi
cdq
add dword [ebp - 0x14], eax
mov eax, dword [0x40c8a0]
mov dword [ebp - 0xc], eax
adc dword [ebp - 0x10], edx
sub dword [ebp - 8], esi
cmp dword [ebp + 0x10], 1
jne 0x40351c
cmp dword [0x4208f8], edi
jmp 0x403722
cmp dword [ebp - 0x18], edi
jg 0x4034bc
jl 0x40371b
test ebx, ebx
ja 0x4034bc
jmp 0x40371b
push 0xfffffffffffffffc
jmp 0x403739
push 0xfffffffffffffffe
jmp 0x403739
test ebx, ebx
jne 0x4036d7
test esi, esi
jl 0x40371b
jg 0x40365f
test edi, edi
jbe 0x40371b
mov eax, dword [ebp - 8]
mov ebx, 0x4148f0
cdq
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edx
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0x18], eax
jg 0x403681
jl 0x40367d
cmp edi, dword [ebp + 0xc]
jae 0x403681
mov esi, edi
jmp 0x403684
mov esi, dword [ebp - 8]
push dword [ebp + 8]
push esi
push ebx
call fcn.00403393
add esp, 0xc
test eax, eax
je 0x403737
cmp dword [0x4208f8], 0
je 0x4036af
push esi
push ebx
push dword [ebp - 4]
call fcn.00406c2a
mov dword [ebp - 4], eax
push esi
push ebx
push dword [ebp + 0x14]
call fcn.00406385
test eax, eax
je 0x40363e
xor eax, eax
add dword [ebp - 0x14], esi
adc dword [ebp - 0x10], eax
sub edi, esi
sbb dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], eax
jg 0x40366e
jl 0x40371b
test edi, edi
ja 0x40366e
jmp 0x40371b
mov eax, dword [ebp + 0x1c]
cdq
cmp esi, edx
jg 0x4036e9
jl 0x4036e5
cmp edi, eax
jae 0x4036e9
mov esi, edi
jmp 0x4036ec
mov esi, dword [ebp + 0x1c]
push dword [ebp + 8]
push esi
push ebx
call fcn.00403393
add esp, 0xc
test eax, eax
je 0x403737
cmp dword [0x4208f8], 0
je 0x403712
push esi
push ebx
push 0
call fcn.00406c2a
mov dword [ebp - 4], eax
mov eax, esi
cdq
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
cmp dword [0x4208f8], 0
je 0x40373f
lea eax, [ebp - 0x2c]
push 8
push eax
push dword [ebp - 4]
call fcn.00406c2a
cmp eax, dword [ebp + 0x20]
je 0x40373f
push 0xfffffffffffffffd
pop eax
or edx, 0xffffffff
jmp 0x403745
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0x1c