Function at 0x10013881
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 0x10013899
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x1c], 0
jne 0x100138a0
xor eax, eax
jmp 0x10013a6e
mov ecx, dword [ebp - 0x18]
call fcn.1001407b
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.10013e10
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.10013e10
mov ecx, dword [ebp - 0x18]
add ecx, 0x88
call fcn.10014310
mov byte [ebp - 8], al
push 1
lea edx, [ebp - 8]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.10013e10
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov cl, byte [eax + 4]
cmp ecx, 2
jne 0x10013979
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.100140db
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.10014175
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 0x10013a6e
mov edx, dword [ebp - 0x10]
sub edx, 0x13
test edx, edx
jge 0x1001398c
mov dword [ebp - 0x1c], 0
jmp 0x10013995
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 [0x1009537c]
je 0x100139c6
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.10013a74
and eax, 0xff
test eax, eax
je 0x100139c6
mov ecx, dword [ebp - 0xc]
add ecx, 0x13
mov dword [ebp - 0x20], ecx
jmp 0x100139cf
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 0x100139e0
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 0x10013a0b
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.10013a74
and eax, 0xff
test eax, eax
je 0x10013a09
mov eax, dword [ebp - 4]
add eax, 0x13
mov dword [ebp - 4], eax
jmp 0x100139d7
mov ecx, dword [ebp - 0x10]
mov dword [0x1009537c], 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 0x10013a54
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10013a36
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