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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
push edi
mov edi, dword [ebp + 0x18]
xor eax, eax
mov dword [ebp - 4], ebx
cmp edi, eax
jne 0x40310c
mov dword [ebp - 4], 0x8000
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp + 0x1c], eax
mov dword [ebp - 8], edi
cmp edi, eax
jne 0x403123
mov dword [ebp - 8], 0x40f548
push dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004030ac
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push 8
pop esi
push esi
push eax
call fcn.00403077
add esp, 0x18
test eax, eax
jne 0x403153
push 0xfffffffffffffffd
pop eax
or edx, 0xffffffff
jmp 0x403468
cmp dword [0x429114], 0
je 0x40316b
push esi
lea eax, [ebp - 0x14]
push eax
push 0
call fcn.004069fe
mov dword [ebp + 0x1c], eax
mov ecx, dword [ebp - 0x10]
and ecx, 0x80000000
xor eax, eax
or eax, ecx
je 0x403368
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [0x41fa7c], 0
and dword [0x41fa78], 0
and dword [ebp - 0x10], 0x7fffffff
mov dword [ebp + 0x10], eax
mov eax, 0x421100
mov dword [0x41f560], esi
mov esi, dword [ebp - 0x14]
mov dword [0x429108], eax
mov dword [0x429104], eax
mov eax, dword [ebp - 0x10]
mov dword [0x429100], 0x429100
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], eax
jl 0x403449
jg 0x4031da
test esi, esi
jbe 0x403449
mov ebx, 0x40b548
jmp 0x4031e4
mov esi, dword [ebp - 0x14]
cmp dword [ebp - 0x10], 0
jg 0x4031f4
jl 0x4031f9
cmp esi, 0x4000
jb 0x4031f9
mov esi, 0x4000
push dword [ebp + 8]
push esi
push ebx
call fcn.00403077
add esp, 0xc
test eax, eax
je 0x403148
cmp dword [0x429114], 0
je 0x403224
push esi
push ebx
push dword [ebp + 0x1c]
call fcn.004069fe
mov dword [ebp + 0x1c], eax
mov eax, esi
cdq
sub dword [ebp - 0x14], eax
mov dword [0x41f550], ebx
mov dword [0x41f554], esi
sbb dword [ebp - 0x10], edx
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 8]
push 0x41f550
mov dword [0x41f558], edi
mov dword [0x41f55c], eax
call fcn.00406df7
mov dword [ebp - 0xc], eax
test eax, eax
jl 0x40335a
mov esi, dword [0x41f558]
sub esi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x42f1d4], 1
mov edi, eax
je 0x4032ec
sub eax, dword [ebp + 0x10]
cmp eax, 0xc8
ja 0x40328a
mov eax, dword [ebp - 0x14]
or eax, dword [ebp - 0x10]
jne 0x4032ec
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
sbb ecx, dword [ebp - 0x10]
cmp dword [ebp - 0x20], 0
mov edx, dword [ebp - 0x24]
je 0x4032b7
mov ebx, dword [ebp - 0x20]
shl ebx, 8
shr edx, 0x18
or edx, ebx
shr eax, 0x18
shl ecx, 8
or eax, ecx
mov ebx, 0x40b548
shr eax, 1
shr edx, 1
cmp eax, edx
jb 0x4032c1
mov eax, edx
push edx
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x64]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x64]
push eax
push 0
call fcn.00404e8d
mov dword [ebp + 0x10], edi
xor edi, edi
cmp esi, edi
je 0x40333b
cmp dword [ebp + 0x18], edi
jne 0x403312
push esi
push dword [ebp - 8]
push dword [ebp + 0x14]
call fcn.00405e2d
test eax, eax
je 0x403361
mov eax, esi
cdq
add dword [ebp - 0x1c], eax
adc dword [ebp - 0x18], edx
jmp 0x403326
mov eax, esi
cdq
add dword [ebp - 0x1c], eax
mov eax, dword [0x41f558]
mov dword [ebp - 8], eax
adc dword [ebp - 0x18], edx
sub dword [ebp - 4], esi
cmp dword [ebp - 0xc], 1
jne 0x403239
cmp dword [0x429114], edi
jmp 0x403450
cmp dword [ebp - 0x10], edi
jg 0x4031e1
jl 0x403449
mov esi, dword [ebp - 0x14]
test esi, esi
ja 0x4031e4
jmp 0x403449
push 0xfffffffffffffffc
jmp 0x40314a
push 0xfffffffffffffffe
jmp 0x40314a
test edi, edi
jne 0x403402
cmp dword [ebp - 0x10], edi
jl 0x403449
jg 0x403384
cmp dword [ebp - 0x14], edi
jbe 0x403449
mov eax, dword [ebp - 4]
cdq
mov ebx, eax
mov dword [ebp + 0x10], edx
mov edi, 0x40b548
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0x10], eax
jg 0x4033a6
jl 0x4033a1
cmp dword [ebp - 0x14], ebx
jae 0x4033a6
mov esi, dword [ebp - 0x14]
jmp 0x4033a9
mov esi, dword [ebp - 4]
push dword [ebp + 8]
push esi
push edi
call fcn.00403077
add esp, 0xc
test eax, eax
je 0x403148
cmp dword [0x429114], 0
je 0x4033d4
push esi
push edi
push dword [ebp + 0x1c]
call fcn.004069fe
mov dword [ebp + 0x1c], eax
push esi
push edi
push dword [ebp + 0x14]
call fcn.00405e2d
test eax, eax
je 0x403361
xor eax, eax
add dword [ebp - 0x1c], esi
adc dword [ebp - 0x18], eax
sub dword [ebp - 0x14], esi
sbb dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], eax
jg 0x403392
jl 0x403449
cmp dword [ebp - 0x14], eax
ja 0x403392
jmp 0x403449
mov eax, ebx
cdq
cmp dword [ebp - 0x10], edx
jg 0x403413
mov esi, dword [ebp - 0x14]
jl 0x403415
cmp esi, eax
jb 0x403415
mov esi, ebx
push dword [ebp + 8]
push esi
push edi
call fcn.00403077
add esp, 0xc
test eax, eax
je 0x403148
cmp dword [0x429114], 0
je 0x403440
push esi
push edi
push dword [ebp + 0x1c]
call fcn.004069fe
mov dword [ebp + 0x1c], eax
mov eax, esi
cdq
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
cmp dword [0x429114], 0
je 0x403462
mov eax, dword [ebp + 0x1c]
cmp eax, dword [ebp + 0x20]
je 0x403462
push 0xfffffffffffffffd
or edx, 0xffffffff
pop eax
jmp 0x403468
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
leave
ret 0x1c