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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
push ebx
mov ebx, dword [ebp + 0x18]
xor eax, eax
cmp ebx, eax
je 0x40330b
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x18], ecx
jmp 0x403312
mov dword [ebp - 0x18], 0x8000
cmp ebx, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], ebx
jne 0x403329
mov dword [ebp - 0x1c], 0x411970
push dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004032af
push dword [ebp + 8]
lea eax, [ebp - 0x2c]
push 8
push eax
call fcn.0040327a
add esp, 0x18
test eax, eax
jne 0x403357
push 0xfffffffffffffffd
pop eax
or edx, 0xffffffff
jmp 0x403643
push esi
mov esi, dword [ebp - 0x28]
mov ecx, esi
and ecx, 0x80000000
xor eax, eax
or eax, ecx
push edi
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0xc], esi
je 0x403539
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 0x1c], eax
call fcn.004066e6
push eax
push 0x421978
call fcn.004075d2
and dword [ebp - 0xc], 0x7fffffff
mov eax, dword [ebp - 0xc]
pop ecx
mov ebx, edi
pop ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], eax
jl 0x403617
jle 0x403525
cmp dword [ebp - 0xc], 0
jg 0x4033c1
jl 0x4033bd
cmp ebx, 0x4000
jae 0x4033c1
mov esi, ebx
jmp 0x4033c6
mov esi, 0x4000
push dword [ebp + 8]
mov edi, 0x40d970
push esi
push edi
call fcn.0040327a
add esp, 0xc
test eax, eax
je 0x4035f1
cmp dword [0x4219cc], 0
je 0x4033f6
push esi
push edi
push dword [ebp - 0x14]
call fcn.00406e73
mov dword [ebp - 0x14], eax
mov eax, esi
cdq
sub ebx, eax
sbb dword [ebp - 0xc], edx
mov dword [0x421978], edi
mov dword [0x42197c], esi
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
push 0x421978
mov dword [0x421980], edi
mov dword [0x421984], eax
call fcn.0040733e
test eax, eax
pop ecx
mov dword [ebp + 0x10], eax
jl 0x403532
mov esi, dword [0x421980]
sub esi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x42a674], 1
mov edi, eax
je 0x4034c3
sub eax, dword [ebp + 0x1c]
cmp eax, 0xc8
ja 0x40345e
mov eax, ebx
or eax, dword [ebp - 0xc]
jne 0x4034c3
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
sub eax, ebx
sbb ecx, dword [ebp - 0xc]
cmp dword [ebp - 0x20], 0
je 0x403488
mov ebx, dword [ebp - 0x20]
shl ebx, 8
shr edx, 0x18
or edx, ebx
mov ebx, dword [ebp - 0x10]
shr eax, 0x18
shl ecx, 8
or eax, ecx
shr eax, 1
shr edx, 1
cmp eax, edx
jb 0x403492
mov eax, edx
push edx
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0xac]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0xac]
push eax
push 0
call fcn.004051ef
mov dword [ebp + 0x1c], edi
xor edi, edi
cmp esi, edi
je 0x403516
cmp dword [ebp + 0x18], edi
jne 0x4034ed
push esi
push dword [ebp - 0x1c]
push dword [ebp + 0x14]
call fcn.004061c4
test eax, eax
je 0x4035c7
mov eax, esi
cdq
add dword [ebp - 8], eax
adc dword [ebp - 4], edx
jmp 0x403501
mov eax, esi
cdq
add dword [ebp - 8], eax
mov eax, dword [0x421980]
mov dword [ebp - 0x1c], eax
adc dword [ebp - 4], edx
sub dword [ebp - 0x18], esi
cmp dword [ebp + 0x10], 1
jne 0x40340d
cmp dword [0x4219cc], edi
jmp 0x40361e
cmp dword [ebp - 0xc], edi
jg 0x4033ad
jl 0x403617
test ebx, ebx
ja 0x4033ad
jmp 0x403617
push 0xfffffffffffffffc
jmp 0x4035f3
test ebx, ebx
jne 0x4035cb
test esi, esi
jl 0x403617
jg 0x403553
test edi, edi
jbe 0x403617
mov eax, dword [ebp - 0x18]
cdq
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edx
mov ebx, 0x40d970
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0xc], eax
jg 0x403575
jl 0x403571
cmp edi, dword [ebp + 0xc]
jae 0x403575
mov esi, edi
jmp 0x403578
mov esi, dword [ebp - 0x18]
push dword [ebp + 8]
push esi
push ebx
call fcn.0040327a
add esp, 0xc
test eax, eax
je 0x4035f1
cmp dword [0x4219cc], 0
je 0x40359f
push esi
push ebx
push dword [ebp - 0x14]
call fcn.00406e73
mov dword [ebp - 0x14], eax
push esi
push ebx
push dword [ebp + 0x14]
call fcn.004061c4
test eax, eax
je 0x4035c7
xor eax, eax
add dword [ebp - 8], esi
adc dword [ebp - 4], eax
sub edi, esi
sbb dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], eax
jg 0x403562
jl 0x403617
test edi, edi
ja 0x403562
jmp 0x403617
push 0xfffffffffffffffe
jmp 0x4035f3
mov eax, dword [ebp + 0x1c]
cdq
cmp esi, edx
jg 0x4035dd
jl 0x4035d9
cmp edi, eax
jae 0x4035dd
mov esi, edi
jmp 0x4035e0
mov esi, dword [ebp + 0x1c]
push dword [ebp + 8]
push esi
push ebx
call fcn.0040327a
add esp, 0xc
test eax, eax
jne 0x4035f9
push 0xfffffffffffffffd
pop eax
or edx, 0xffffffff
jmp 0x403641
cmp dword [0x4219cc], 0
je 0x40360e
push esi
push ebx
push 0
call fcn.00406e73
mov dword [ebp - 0x14], eax
mov eax, esi
cdq
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
cmp dword [0x4219cc], 0
je 0x40363b
push 8
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x14]
call fcn.00406e73
cmp eax, dword [ebp + 0x20]
je 0x40363b
push 0xfffffffffffffffd
or edx, 0xffffffff
pop eax
jmp 0x403641
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x1c