Function at 0x4032fd
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 0x40331f
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 0x403336
mov dword [ebp - 0x18], 0x410928
push dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004032bc
push dword [ebp + 8]
lea eax, [ebp - 8]
push 8
push eax
call fcn.00403287
add esp, 0x18
test eax, eax
jne 0x403364
push 0xfffffffffffffffd
pop eax
or edx, 0xffffffff
jmp 0x40365b
cmp dword [0x4209c4], esi
je 0x40337b
push 8
lea eax, [ebp - 8]
push eax
push esi
call fcn.00406e3b
mov dword [ebp + 0x1c], eax
mov ecx, dword [ebp - 4]
and ecx, 0x80000000
xor eax, eax
or eax, ecx
je 0x40355b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x420930
mov dword [ebp + 0x10], eax
call fcn.00406eac
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 0x40363c
jg 0x4033c7
test esi, esi
jbe 0x40363c
mov ebx, 0x40c928
jmp 0x4033d1
mov esi, dword [ebp - 8]
cmp dword [ebp - 4], 0
jg 0x4033e1
jl 0x4033e6
cmp esi, 0x4000
jb 0x4033e6
mov esi, 0x4000
push dword [ebp + 8]
push esi
push ebx
call fcn.00403287
add esp, 0xc
test eax, eax
je 0x403359
cmp dword [0x4209c4], 0
je 0x403411
push esi
push ebx
push dword [ebp + 0x1c]
call fcn.00406e3b
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.00406ef4
mov dword [ebp - 0x24], eax
test eax, eax
jl 0x40354d
mov esi, dword [0x420950]
sub esi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x429df4], 1
mov edi, eax
je 0x4034df
sub eax, dword [ebp + 0x10]
cmp eax, 0xc8
ja 0x403477
mov eax, dword [ebp - 8]
or eax, dword [ebp - 4]
jne 0x4034df
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 0x4034a4
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 0x4034ae
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.004051cc
mov dword [ebp + 0x10], edi
xor edi, edi
cmp esi, edi
je 0x40352e
cmp dword [ebp + 0x18], edi
jne 0x403505
push esi
push dword [ebp - 0x18]
push dword [ebp + 0x14]
call fcn.004061d8
test eax, eax
je 0x403554
mov eax, esi
cdq
add dword [ebp - 0x10], eax
adc dword [ebp - 0xc], edx
jmp 0x403519
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 0x403426
cmp dword [0x4209c4], edi
jmp 0x403643
cmp dword [ebp - 4], edi
jg 0x4033ce
jl 0x40363c
mov esi, dword [ebp - 8]
test esi, esi
ja 0x4033d1
jmp 0x40363c
push 0xfffffffffffffffc
jmp 0x40335b
push 0xfffffffffffffffe
jmp 0x40335b
cmp edi, esi
jne 0x4035f5
cmp dword [ebp - 4], esi
jl 0x40363c
jg 0x403577
cmp dword [ebp - 8], esi
jbe 0x40363c
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 0x403599
jl 0x403594
cmp dword [ebp - 8], ebx
jae 0x403599
mov esi, dword [ebp - 8]
jmp 0x40359c
mov esi, dword [ebp - 0x14]
push dword [ebp + 8]
push esi
push edi
call fcn.00403287
add esp, 0xc
test eax, eax
je 0x403359
cmp dword [0x4209c4], 0
je 0x4035c7
push esi
push edi
push dword [ebp + 0x1c]
call fcn.00406e3b
mov dword [ebp + 0x1c], eax
push esi
push edi
push dword [ebp + 0x14]
call fcn.004061d8
test eax, eax
je 0x403554
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 0x403585
jl 0x40363c
cmp dword [ebp - 8], eax
ja 0x403585
jmp 0x40363c
mov eax, ebx
cdq
cmp dword [ebp - 4], edx
jg 0x403606
mov esi, dword [ebp - 8]
jl 0x403608
cmp esi, eax
jb 0x403608
mov esi, ebx
push dword [ebp + 8]
push esi
push edi
call fcn.00403287
add esp, 0xc
test eax, eax
je 0x403359
cmp dword [0x4209c4], 0
je 0x403633
push esi
push edi
push dword [ebp + 0x1c]
call fcn.00406e3b
mov dword [ebp + 0x1c], eax
mov eax, esi
cdq
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
cmp dword [0x4209c4], 0
je 0x403655
mov eax, dword [ebp + 0x1c]
cmp eax, dword [ebp + 0x20]
je 0x403655
push 0xfffffffffffffffd
or edx, 0xffffffff
pop eax
jmp 0x40365b
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0x1c