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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
push edi
mov edi, dword [ebp + 0x18]
xor esi, esi
mov dword [ebp - 0x14], ebx
cmp edi, esi
jne 0x4032a7
mov dword [ebp - 0x14], 0x8000
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp + 0x1c], esi
mov dword [ebp - 0x18], edi
cmp edi, esi
jne 0x4032be
mov dword [ebp - 0x18], 0x410928
push dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00403244
push dword [ebp + 8]
lea eax, [ebp - 8]
push 8
push eax
call fcn.0040320f
add esp, 0x18
test eax, eax
jne 0x4032ec
push 0xfffffffffffffffd
pop eax
or edx, 0xffffffff
jmp 0x4035e3
cmp dword [0x4209c4], esi
je 0x403303
push 8
lea eax, [ebp - 8]
push eax
push esi
call fcn.00406d33
mov dword [ebp + 0x1c], eax
mov ecx, dword [ebp - 4]
and ecx, 0x80000000
xor eax, eax
or eax, ecx
je 0x4034e3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x420930
mov dword [ebp + 0x10], eax
call fcn.00406da4
mov esi, dword [ebp - 8]
and dword [ebp - 4], 0x7fffffff
mov eax, dword [ebp - 4]
mov dword [ebp - 8], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], eax
jl 0x4035c4
jg 0x40334f
test esi, esi
jbe 0x4035c4
mov ebx, 0x40c928
jmp 0x403359
mov esi, dword [ebp - 8]
cmp dword [ebp - 4], 0
jg 0x403369
jl 0x40336e
cmp esi, 0x4000
jb 0x40336e
mov esi, 0x4000
push dword [ebp + 8]
push esi
push ebx
call fcn.0040320f
add esp, 0xc
test eax, eax
je 0x4032e1
cmp dword [0x4209c4], 0
je 0x403399
push esi
push ebx
push dword [ebp + 0x1c]
call fcn.00406d33
mov dword [ebp + 0x1c], eax
mov eax, esi
cdq
sub dword [ebp - 8], eax
mov dword [0x420948], ebx
mov dword [0x42094c], esi
sbb dword [ebp - 4], edx
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov ecx, 0x420930
mov dword [0x420950], edi
mov dword [0x420954], eax
call fcn.00406dec
mov dword [ebp - 0x24], eax
test eax, eax
jl 0x4034d5
mov esi, dword [0x420950]
sub esi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x429df4], 1
mov edi, eax
je 0x403467
sub eax, dword [ebp + 0x10]
cmp eax, 0xc8
ja 0x4033ff
mov eax, dword [ebp - 8]
or eax, dword [ebp - 4]
jne 0x403467
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
sbb ecx, dword [ebp - 4]
cmp dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x20]
je 0x40342c
mov ebx, dword [ebp - 0x1c]
shl ebx, 8
shr edx, 0x18
or edx, ebx
shr eax, 0x18
shl ecx, 8
or eax, ecx
mov ebx, 0x40c928
shr eax, 1
shr edx, 1
cmp eax, edx
jb 0x403436
mov eax, edx
push edx
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0xa4]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0xa4]
push eax
push 0
call fcn.004050b5
mov dword [ebp + 0x10], edi
xor edi, edi
cmp esi, edi
je 0x4034b6
cmp dword [ebp + 0x18], edi
jne 0x40348d
push esi
push dword [ebp - 0x18]
push dword [ebp + 0x14]
call fcn.0040609c
test eax, eax
je 0x4034dc
mov eax, esi
cdq
add dword [ebp - 0x10], eax
adc dword [ebp - 0xc], edx
jmp 0x4034a1
mov eax, esi
cdq
add dword [ebp - 0x10], eax
mov eax, dword [0x420950]
mov dword [ebp - 0x18], eax
adc dword [ebp - 0xc], edx
sub dword [ebp - 0x14], esi
cmp dword [ebp - 0x24], 1
jne 0x4033ae
cmp dword [0x4209c4], edi
jmp 0x4035cb
cmp dword [ebp - 4], edi
jg 0x403356
jl 0x4035c4
mov esi, dword [ebp - 8]
test esi, esi
ja 0x403359
jmp 0x4035c4
push 0xfffffffffffffffc
jmp 0x4032e3
push 0xfffffffffffffffe
jmp 0x4032e3
cmp edi, esi
jne 0x40357d
cmp dword [ebp - 4], esi
jl 0x4035c4
jg 0x4034ff
cmp dword [ebp - 8], esi
jbe 0x4035c4
mov eax, dword [ebp - 0x14]
cdq
mov ebx, eax
mov dword [ebp + 0x10], edx
mov edi, 0x40c928
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 4], eax
jg 0x403521
jl 0x40351c
cmp dword [ebp - 8], ebx
jae 0x403521
mov esi, dword [ebp - 8]
jmp 0x403524
mov esi, dword [ebp - 0x14]
push dword [ebp + 8]
push esi
push edi
call fcn.0040320f
add esp, 0xc
test eax, eax
je 0x4032e1
cmp dword [0x4209c4], 0
je 0x40354f
push esi
push edi
push dword [ebp + 0x1c]
call fcn.00406d33
mov dword [ebp + 0x1c], eax
push esi
push edi
push dword [ebp + 0x14]
call fcn.0040609c
test eax, eax
je 0x4034dc
xor eax, eax
add dword [ebp - 0x10], esi
adc dword [ebp - 0xc], eax
sub dword [ebp - 8], esi
sbb dword [ebp - 4], eax
cmp dword [ebp - 4], eax
jg 0x40350d
jl 0x4035c4
cmp dword [ebp - 8], eax
ja 0x40350d
jmp 0x4035c4
mov eax, ebx
cdq
cmp dword [ebp - 4], edx
jg 0x40358e
mov esi, dword [ebp - 8]
jl 0x403590
cmp esi, eax
jb 0x403590
mov esi, ebx
push dword [ebp + 8]
push esi
push edi
call fcn.0040320f
add esp, 0xc
test eax, eax
je 0x4032e1
cmp dword [0x4209c4], 0
je 0x4035bb
push esi
push edi
push dword [ebp + 0x1c]
call fcn.00406d33
mov dword [ebp + 0x1c], eax
mov eax, esi
cdq
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
cmp dword [0x4209c4], 0
je 0x4035dd
mov eax, dword [ebp + 0x1c]
cmp eax, dword [ebp + 0x20]
je 0x4035dd
push 0xfffffffffffffffd
or edx, 0xffffffff
pop eax
jmp 0x4035e3
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0x1c