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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x14]
xor ebx, ebx
mov dword [ebp - 0x10], esi
cmp edi, ebx
jne 0x402ede
mov dword [ebp - 0x10], 0x8000
cmp dword [ebp + 8], 0xfffffffe
mov dword [ebp - 8], ebx
jne 0x402ef4
cmp dword [ebp + 0xc], 0xffffffff
mov dword [ebp - 4], 1
je 0x402ef7
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], edi
cmp edi, ebx
jne 0x402f08
mov dword [ebp - 0x14], 0x40f508
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00402e8b
push dword [ebp - 4]
lea eax, [ebp + 0x18]
push 4
push eax
call fcn.00402e56
add esp, 0x14
test eax, eax
jne 0x402f30
push 0xfffffffffffffffd
pop eax
jmp 0x40314d
test dword [ebp + 0x18], 0x80000000
je 0x40308c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x417510
mov dword [ebp - 0x18], eax
call fcn.004066a8
and dword [ebp + 0x18], 0x7fffffff
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0xc], eax
jle 0x40312f
mov ebx, 0x40b508
mov esi, 0x4000
cmp dword [ebp + 0x18], esi
jge 0x402f75
mov esi, dword [ebp + 0x18]
push dword [ebp - 4]
push esi
push ebx
call fcn.00402e56
add esp, 0xc
test eax, eax
je 0x402f28
cmp dword [ebp - 4], 0
jne 0x402fa2
cmp dword [0x424448], 0
je 0x402fa2
push esi
push ebx
push dword [ebp - 0xc]
call fcn.00406637
mov dword [ebp - 0xc], eax
sub dword [ebp + 0x18], esi
mov dword [0x417528], ebx
mov dword [0x41752c], esi
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov ecx, 0x417510
mov dword [0x417530], edi
mov dword [0x417534], eax
call fcn.004066c8
mov dword [ebp - 0x1c], eax
test eax, eax
jl 0x40307e
mov esi, dword [0x417530]
sub esi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x4244d4], 1
mov edi, eax
je 0x403033
sub eax, dword [ebp - 0x18]
cmp eax, 0xc8
ja 0x403000
cmp dword [ebp + 0x18], 0
jne 0x403033
push dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 0x18]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x5c]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x5c]
push eax
push 0
call fcn.00404b37
mov dword [ebp - 0x18], edi
test esi, esi
je 0x40306f
cmp dword [ebp + 0x14], 0
jne 0x403052
push esi
push dword [ebp - 0x14]
push dword [ebp + 0x10]
call fcn.00405ad7
test eax, eax
je 0x403085
add dword [ebp - 8], esi
jmp 0x403060
mov eax, dword [0x417530]
add dword [ebp - 8], esi
sub dword [ebp - 0x10], esi
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x1c], 1
jne 0x402fb1
jmp 0x40312f
cmp dword [ebp + 0x18], 0
jg 0x402f68
jmp 0x40312f
push 0xfffffffffffffffc
jmp 0x402f2a
push 0xfffffffffffffffe
jmp 0x402f2a
cmp edi, ebx
jne 0x4030f5
cmp dword [ebp + 0x18], ebx
jle 0x40312f
mov ebx, 0x40b508
mov esi, dword [ebp - 0x10]
cmp dword [ebp + 0x18], esi
jge 0x4030a9
mov esi, dword [ebp + 0x18]
push dword [ebp - 4]
push esi
push ebx
call fcn.00402e56
add esp, 0xc
test eax, eax
je 0x402f28
xor edi, edi
cmp dword [ebp - 4], edi
jne 0x4030da
cmp dword [0x424448], edi
je 0x4030da
push esi
push ebx
push dword [ebp - 0xc]
call fcn.00406637
mov dword [ebp - 0xc], eax
push esi
push ebx
push dword [ebp + 0x10]
call fcn.00405ad7
test eax, eax
je 0x403085
add dword [ebp - 8], esi
sub dword [ebp + 0x18], esi
cmp dword [ebp + 0x18], edi
jg 0x40309e
jmp 0x40312f
cmp dword [ebp + 0x18], esi
jge 0x4030fd
mov esi, dword [ebp + 0x18]
push dword [ebp - 4]
push esi
push edi
call fcn.00402e56
add esp, 0xc
test eax, eax
je 0x402f28
xor eax, eax
cmp dword [ebp - 4], eax
jne 0x40312c
cmp dword [0x424448], eax
je 0x40312c
push esi
push edi
push eax
call fcn.00406637
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], esi
cmp dword [ebp - 4], 0
jne 0x40314a
cmp dword [0x424448], 0
je 0x40314a
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x1c]
jne 0x402f28
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x18