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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x18], ecx
cmp dword [ebp + 8], 0
je 0x409329
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x1c], 0
jne 0x409330
xor eax, eax
jmp 0x4094fe
mov ecx, dword [ebp - 0x18]
call fcn.00409b0b
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x20], 0
push 1
mov edx, dword [ebp - 0x18]
add edx, 4
push edx
mov ecx, dword [ebp - 0x18]
call fcn.004098a0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push 8
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.004098a0
mov ecx, dword [ebp - 0x18]
add ecx, 0x88
call fcn.00409da0
mov byte [ebp - 8], al
push 1
lea edx, [ebp - 8]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.004098a0
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov cl, byte [eax + 4]
cmp ecx, 2
jne 0x409409
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x68]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x68]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x44]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x80]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.00409b6b
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x68]
mov edx, dword [ecx + 0x14]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ebp - 0x18]
add ecx, dword [edx + 0x20]
push ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x60]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x78]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.00409c05
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x20]
add edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 0x1c]
jmp 0x4094fe
mov edx, dword [ebp - 0x10]
sub edx, 0x13
test edx, edx
jge 0x40941c
mov dword [ebp - 0x1c], 0
jmp 0x409425
mov eax, dword [ebp - 0x10]
sub eax, 0x13
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [0x41a260]
je 0x409456
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.00409504
and eax, 0xff
test eax, eax
je 0x409456
mov ecx, dword [ebp - 0xc]
add ecx, 0x13
mov dword [ebp - 0x20], ecx
jmp 0x40945f
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 4], ecx
jmp 0x409470
mov edx, dword [ebp - 4]
add edx, 0x13
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 0x2c]
jge 0x40949b
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.00409504
and eax, 0xff
test eax, eax
je 0x409499
mov eax, dword [ebp - 4]
add eax, 0x13
mov dword [ebp - 4], eax
jmp 0x409467
mov ecx, dword [ebp - 0x10]
mov dword [0x41a260], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x30]
add eax, 3
cdq
mov ecx, 0x13
idiv ecx
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x30], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x20]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x18]
sub eax, dword [ecx + 0x14]
mov edx, dword [ebp - 0x18]
cmp eax, dword [edx + 0x18]
jae 0x4094e4
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4094c6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
mov eax, dword [ebp - 0x18]
add eax, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 0x1c]
mov esp, ebp
pop ebp
ret 4