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 eax, eax
mov dword [ebp - 0x14], ebx
cmp edi, eax
jne 0x4032a7
mov dword [ebp - 0x14], 0x8000
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp + 0x1c], eax
mov dword [ebp - 0x18], edi
cmp edi, eax
jne 0x4032be
mov dword [ebp - 0x18], 0x410968
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
pop esi
push esi
push eax
call fcn.0040320f
add esp, 0x18
test eax, eax
jne 0x4032ee
push 0xfffffffffffffffd
pop eax
or edx, 0xffffffff
jmp 0x403609
cmp dword [0x42a534], 0
je 0x403306
push esi
lea eax, [ebp - 8]
push eax
push 0
call fcn.00406d59
mov dword [ebp + 0x1c], eax
mov ecx, dword [ebp - 4]
and ecx, 0x80000000
xor eax, eax
or eax, ecx
je 0x403509
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [0x420e9c], 0
and dword [0x420e98], 0
and dword [ebp - 4], 0x7fffffff
mov dword [ebp + 0x10], eax
mov eax, 0x422520
mov dword [0x420980], esi
mov esi, dword [ebp - 8]
mov dword [0x42a528], eax
mov dword [0x42a524], eax
mov eax, dword [ebp - 4]
mov dword [0x42a520], 0x42a520
mov dword [ebp - 8], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], eax
jl 0x4035ea
jg 0x403375
test esi, esi
jbe 0x4035ea
mov ebx, 0x40c968
jmp 0x40337f
mov esi, dword [ebp - 8]
cmp dword [ebp - 4], 0
jg 0x40338f
jl 0x403394
cmp esi, 0x4000
jb 0x403394
mov esi, 0x4000
push dword [ebp + 8]
push esi
push ebx
call fcn.0040320f
add esp, 0xc
test eax, eax
je 0x4032e3
cmp dword [0x42a534], 0
je 0x4033bf
push esi
push ebx
push dword [ebp + 0x1c]
call fcn.00406d59
mov dword [ebp + 0x1c], eax
mov eax, esi
cdq
sub dword [ebp - 8], eax
mov dword [0x420970], ebx
mov dword [0x420974], esi
sbb dword [ebp - 4], edx
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
push 0x420970
mov dword [0x420978], edi
mov dword [0x42097c], eax
call fcn.00407152
mov dword [ebp - 0x24], eax
test eax, eax
jl 0x4034fb
mov esi, dword [0x420978]
sub esi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x434af4], 1
mov edi, eax
je 0x40348d
sub eax, dword [ebp + 0x10]
cmp eax, 0xc8
ja 0x403425
mov eax, dword [ebp - 8]
or eax, dword [ebp - 4]
jne 0x40348d
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 0x403452
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, 0x40c968
shr eax, 1
shr edx, 1
cmp eax, edx
jb 0x40345c
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.004050db
mov dword [ebp + 0x10], edi
xor edi, edi
cmp esi, edi
je 0x4034dc
cmp dword [ebp + 0x18], edi
jne 0x4034b3
push esi
push dword [ebp - 0x18]
push dword [ebp + 0x14]
call fcn.004060c2
test eax, eax
je 0x403502
mov eax, esi
cdq
add dword [ebp - 0x10], eax
adc dword [ebp - 0xc], edx
jmp 0x4034c7
mov eax, esi
cdq
add dword [ebp - 0x10], eax
mov eax, dword [0x420978]
mov dword [ebp - 0x18], eax
adc dword [ebp - 0xc], edx
sub dword [ebp - 0x14], esi
cmp dword [ebp - 0x24], 1
jne 0x4033d4
cmp dword [0x42a534], edi
jmp 0x4035f1
cmp dword [ebp - 4], edi
jg 0x40337c
jl 0x4035ea
mov esi, dword [ebp - 8]
test esi, esi
ja 0x40337f
jmp 0x4035ea
push 0xfffffffffffffffc
jmp 0x4032e5
push 0xfffffffffffffffe
jmp 0x4032e5
test edi, edi
jne 0x4035a3
cmp dword [ebp - 4], edi
jl 0x4035ea
jg 0x403525
cmp dword [ebp - 8], edi
jbe 0x4035ea
mov eax, dword [ebp - 0x14]
cdq
mov ebx, eax
mov dword [ebp + 0x10], edx
mov edi, 0x40c968
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 4], eax
jg 0x403547
jl 0x403542
cmp dword [ebp - 8], ebx
jae 0x403547
mov esi, dword [ebp - 8]
jmp 0x40354a
mov esi, dword [ebp - 0x14]
push dword [ebp + 8]
push esi
push edi
call fcn.0040320f
add esp, 0xc
test eax, eax
je 0x4032e3
cmp dword [0x42a534], 0
je 0x403575
push esi
push edi
push dword [ebp + 0x1c]
call fcn.00406d59
mov dword [ebp + 0x1c], eax
push esi
push edi
push dword [ebp + 0x14]
call fcn.004060c2
test eax, eax
je 0x403502
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 0x403533
jl 0x4035ea
cmp dword [ebp - 8], eax
ja 0x403533
jmp 0x4035ea
mov eax, ebx
cdq
cmp dword [ebp - 4], edx
jg 0x4035b4
mov esi, dword [ebp - 8]
jl 0x4035b6
cmp esi, eax
jb 0x4035b6
mov esi, ebx
push dword [ebp + 8]
push esi
push edi
call fcn.0040320f
add esp, 0xc
test eax, eax
je 0x4032e3
cmp dword [0x42a534], 0
je 0x4035e1
push esi
push edi
push dword [ebp + 0x1c]
call fcn.00406d59
mov dword [ebp + 0x1c], eax
mov eax, esi
cdq
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
cmp dword [0x42a534], 0
je 0x403603
mov eax, dword [ebp + 0x1c]
cmp eax, dword [ebp + 0x20]
je 0x403603
push 0xfffffffffffffffd
or edx, 0xffffffff
pop eax
jmp 0x403609
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0x1c