Function at 0x4036de
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
cmp edi, esi
mov dword [ebp - 0x14], ebx
jne 0x403700
mov dword [ebp - 0x14], 0x8000
cmp edi, esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp + 0x1c], esi
mov dword [ebp - 0x18], edi
jne 0x403717
mov dword [ebp - 0x18], 0x41ae88
push dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040369d
push dword [ebp + 8]
lea eax, [ebp - 8]
push 8
push eax
call fcn.00403668
add esp, 0x18
test eax, eax
je 0x403a2e
cmp dword [0x422e90], esi
je 0x403755
lea eax, [ebp - 8]
push 8
push eax
push esi
call fcn.00407050
mov dword [ebp + 0x1c], eax
mov ecx, dword [ebp - 4]
xor eax, eax
and ecx, 0x80000000
or eax, ecx
je 0x403940
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
mov dword [ebp + 0x10], eax
call fcn.0040606e
push eax
push 0x40ee50
call fcn.004074ac
mov esi, dword [ebp - 8]
add esp, 0xc
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 0x403a1d
jg 0x4037ab
test esi, esi
jbe 0x403a1d
mov ebx, 0x416e88
jmp 0x4037b5
mov esi, dword [ebp - 8]
cmp dword [ebp - 4], 0
jg 0x4037c5
jl 0x4037ca
cmp esi, 0x4000
jb 0x4037ca
mov esi, 0x4000
push dword [ebp + 8]
push esi
push ebx
call fcn.00403668
add esp, 0xc
test eax, eax
je 0x403a2e
cmp dword [0x422e90], 0
je 0x4037f5
push esi
push ebx
push dword [ebp + 0x1c]
call fcn.00407050
mov dword [ebp + 0x1c], eax
mov eax, esi
mov dword [0x40ee50], ebx
cdq
sub dword [ebp - 8], eax
mov dword [0x40ee54], esi
sbb dword [ebp - 4], edx
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
push 0x40ee50
mov dword [0x40ee58], edi
mov dword [0x40ee5c], eax
call fcn.0040761a
test eax, eax
pop ecx
mov dword [ebp - 0x24], eax
jl 0x403932
mov esi, dword [0x40ee58]
sub esi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x42c334], 1
mov edi, eax
je 0x4038c4
sub eax, dword [ebp + 0x10]
cmp eax, 0xc8
ja 0x40385c
mov eax, dword [ebp - 8]
or eax, dword [ebp - 4]
jne 0x4038c4
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
sub eax, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
sbb ecx, dword [ebp - 4]
cmp dword [ebp - 0x1c], 0
je 0x403889
mov ebx, dword [ebp - 0x1c]
shr edx, 0x18
shl ebx, 8
shr eax, 0x18
shl ecx, 8
or edx, ebx
or eax, ecx
mov ebx, 0x416e88
shr eax, 1
shr edx, 1
cmp eax, edx
jb 0x403893
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.00405b9f
mov dword [ebp + 0x10], edi
xor edi, edi
cmp esi, edi
je 0x403913
cmp dword [ebp + 0x18], edi
jne 0x4038ea
push esi
push dword [ebp - 0x18]
push dword [ebp + 0x14]
call fcn.00406738
test eax, eax
je 0x403939
mov eax, esi
cdq
add dword [ebp - 0x10], eax
adc dword [ebp - 0xc], edx
jmp 0x4038fe
mov eax, esi
cdq
add dword [ebp - 0x10], eax
mov eax, dword [0x40ee58]
mov dword [ebp - 0x18], eax
adc dword [ebp - 0xc], edx
sub dword [ebp - 0x14], esi
cmp dword [ebp - 0x24], 1
jne 0x40380a
cmp dword [0x422e90], edi
jmp 0x403a24
cmp dword [ebp - 4], edi
jg 0x4037b2
jl 0x403a1d
mov esi, dword [ebp - 8]
test esi, esi
ja 0x4037b5
jmp 0x403a1d
push 0xfffffffffffffffc
jmp 0x403a30
push 0xfffffffffffffffe
jmp 0x403a30
cmp edi, esi
jne 0x4039da
cmp dword [ebp - 4], esi
jl 0x403a1d
jg 0x40395c
cmp dword [ebp - 8], esi
jbe 0x403a1d
mov eax, dword [ebp - 0x14]
mov edi, 0x416e88
cdq
mov ebx, eax
mov dword [ebp + 0x10], edx
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 4], eax
jg 0x40397e
jl 0x403979
cmp dword [ebp - 8], ebx
jae 0x40397e
mov esi, dword [ebp - 8]
jmp 0x403981
mov esi, dword [ebp - 0x14]
push dword [ebp + 8]
push esi
push edi
call fcn.00403668
add esp, 0xc
test eax, eax
je 0x403a2e
cmp dword [0x422e90], 0
je 0x4039ac
push esi
push edi
push dword [ebp + 0x1c]
call fcn.00407050
mov dword [ebp + 0x1c], eax
push esi
push edi
push dword [ebp + 0x14]
call fcn.00406738
test eax, eax
je 0x403939
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 0x40396a
jl 0x403a1d
cmp dword [ebp - 8], eax
ja 0x40396a
jmp 0x403a1d
mov eax, ebx
cdq
cmp dword [ebp - 4], edx
jg 0x4039eb
mov esi, dword [ebp - 8]
jl 0x4039ed
cmp esi, eax
jb 0x4039ed
mov esi, ebx
push dword [ebp + 8]
push esi
push edi
call fcn.00403668
add esp, 0xc
test eax, eax
je 0x403a2e
cmp dword [0x422e90], 0
je 0x403a14
push esi
push edi
push dword [ebp + 0x1c]
call fcn.00407050
mov dword [ebp + 0x1c], eax
mov eax, esi
cdq
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
cmp dword [0x422e90], 0
je 0x403a36
mov eax, dword [ebp + 0x1c]
cmp eax, dword [ebp + 0x20]
je 0x403a36
push 0xfffffffffffffffd
pop eax
or edx, 0xffffffff
jmp 0x403a3c
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0x1c