Function at 0x4032d8
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 0x4032f3
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x18], ecx
jmp 0x4032fa
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 0x403311
mov dword [ebp - 0x1c], 0x411968
push dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00403297
push dword [ebp + 8]
lea eax, [ebp - 0x2c]
push 8
push eax
call fcn.00403262
add esp, 0x18
test eax, eax
jne 0x40333f
push 0xfffffffffffffffd
pop eax
or edx, 0xffffffff
jmp 0x40362b
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 0x403521
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 0x1c], eax
call fcn.004066ce
push eax
push 0x421970
call fcn.004075ba
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 0x4035ff
jle 0x40350d
cmp dword [ebp - 0xc], 0
jg 0x4033a9
jl 0x4033a5
cmp ebx, 0x4000
jae 0x4033a9
mov esi, ebx
jmp 0x4033ae
mov esi, 0x4000
push dword [ebp + 8]
mov edi, 0x40d968
push esi
push edi
call fcn.00403262
add esp, 0xc
test eax, eax
je 0x4035d9
cmp dword [0x4219c4], 0
je 0x4033de
push esi
push edi
push dword [ebp - 0x14]
call fcn.00406e5b
mov dword [ebp - 0x14], eax
mov eax, esi
cdq
sub ebx, eax
sbb dword [ebp - 0xc], edx
mov dword [0x421970], edi
mov dword [0x421974], esi
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
push 0x421970
mov dword [0x421978], edi
mov dword [0x42197c], eax
call fcn.00407326
test eax, eax
pop ecx
mov dword [ebp + 0x10], eax
jl 0x40351a
mov esi, dword [0x421978]
sub esi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x42a654], 1
mov edi, eax
je 0x4034ab
sub eax, dword [ebp + 0x1c]
cmp eax, 0xc8
ja 0x403446
mov eax, ebx
or eax, dword [ebp - 0xc]
jne 0x4034ab
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 0x403470
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 0x40347a
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.004051d7
mov dword [ebp + 0x1c], edi
xor edi, edi
cmp esi, edi
je 0x4034fe
cmp dword [ebp + 0x18], edi
jne 0x4034d5
push esi
push dword [ebp - 0x1c]
push dword [ebp + 0x14]
call fcn.004061ac
test eax, eax
je 0x4035af
mov eax, esi
cdq
add dword [ebp - 8], eax
adc dword [ebp - 4], edx
jmp 0x4034e9
mov eax, esi
cdq
add dword [ebp - 8], eax
mov eax, dword [0x421978]
mov dword [ebp - 0x1c], eax
adc dword [ebp - 4], edx
sub dword [ebp - 0x18], esi
cmp dword [ebp + 0x10], 1
jne 0x4033f5
cmp dword [0x4219c4], edi
jmp 0x403606
cmp dword [ebp - 0xc], edi
jg 0x403395
jl 0x4035ff
test ebx, ebx
ja 0x403395
jmp 0x4035ff
push 0xfffffffffffffffc
jmp 0x4035db
test ebx, ebx
jne 0x4035b3
test esi, esi
jl 0x4035ff
jg 0x40353b
test edi, edi
jbe 0x4035ff
mov eax, dword [ebp - 0x18]
cdq
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edx
mov ebx, 0x40d968
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0xc], eax
jg 0x40355d
jl 0x403559
cmp edi, dword [ebp + 0xc]
jae 0x40355d
mov esi, edi
jmp 0x403560
mov esi, dword [ebp - 0x18]
push dword [ebp + 8]
push esi
push ebx
call fcn.00403262
add esp, 0xc
test eax, eax
je 0x4035d9
cmp dword [0x4219c4], 0
je 0x403587
push esi
push ebx
push dword [ebp - 0x14]
call fcn.00406e5b
mov dword [ebp - 0x14], eax
push esi
push ebx
push dword [ebp + 0x14]
call fcn.004061ac
test eax, eax
je 0x4035af
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 0x40354a
jl 0x4035ff
test edi, edi
ja 0x40354a
jmp 0x4035ff
push 0xfffffffffffffffe
jmp 0x4035db
mov eax, dword [ebp + 0x1c]
cdq
cmp esi, edx
jg 0x4035c5
jl 0x4035c1
cmp edi, eax
jae 0x4035c5
mov esi, edi
jmp 0x4035c8
mov esi, dword [ebp + 0x1c]
push dword [ebp + 8]
push esi
push ebx
call fcn.00403262
add esp, 0xc
test eax, eax
jne 0x4035e1
push 0xfffffffffffffffd
pop eax
or edx, 0xffffffff
jmp 0x403629
cmp dword [0x4219c4], 0
je 0x4035f6
push esi
push ebx
push 0
call fcn.00406e5b
mov dword [ebp - 0x14], eax
mov eax, esi
cdq
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
cmp dword [0x4219c4], 0
je 0x403623
push 8
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x14]
call fcn.00406e5b
cmp eax, dword [ebp + 0x20]
je 0x403623
push 0xfffffffffffffffd
or edx, 0xffffffff
pop eax
jmp 0x403629
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x1c