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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x60b4e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
push 0
push 0xffffffffffffffff
mov ecx, dword [esi + 0xc0]
mov eax, dword [ecx]
call dword [eax + 0x170]
mov ecx, dword [esi + 0xc0]
push 0
push dword [esi + 0x40]
mov eax, dword [ecx]
call dword [eax + 0x170]
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.004acbd0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
push dword [ebp + 0xc]
mov ebx, dword [ebp - 0x14]
push dword [ebp + 8]
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x2c], eax
add eax, ecx
cdq
sub eax, edx
mov dword [ebp - 0x30], ebx
sar eax, 1
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], ecx
call dword [sym.imp.USER32.dll_PtInRect]
mov edi, eax
lea edx, [ebp - 0x30]
test edi, edi
lea eax, [ebp - 0x14]
push 0
cmove edx, eax
xor ebx, ebx
test edi, edi
setne bl
neg edi
mov ecx, dword [edx]
mov eax, dword [edx + 8]
sbb edi, edi
mov dword [ebp - 0x40], ecx
add edi, 5
mov ecx, dword [edx + 4]
lea ebx, [ebx*2 - 1]
mov dword [ebp - 0x3c], ecx
mov ecx, esi
mov dword [ebp - 0x38], eax
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x48], ebx
mov dword [esi + 0x68], edi
mov dword [esi + 0x64], edi
call fcn.0049b6b0
mov eax, dword [esi]
mov ecx, esi
push ebx
push 1
call dword [eax + 0x16c]
mov eax, dword [esi + 0xc0]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.005289e3
mov eax, dword [esi + 0xc0]
push 0
push 0x212
push 0x1b3
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SetTimer]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, 1
call ebx
push 0
push 0
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x20]
push 0
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0x202
je 0x4af08e
cmp ecx, 0x200
jne 0x4aefea
mov eax, dword [ebp - 0x14]
movzx ecx, ax
shr eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
mov edx, dword [esi]
mov ecx, esi
push eax
call dword [edx + 0x10c]
test eax, eax
je 0x4af06f
call ebx
push 1
mov ecx, esi
mov dword [ebp - 0x44], eax
call fcn.0049b6b0
jmp 0x4af06f
cmp ecx, 0x113
jne 0x4af051
cmp dword [ebp - 0x18], 0x1b3
jne 0x4af051
cmp dword [esi + 0x64], 0
je 0x4af033
call ebx
sub eax, dword [ebp - 0x44]
mov ecx, 1
shr eax, 0xa
cmp eax, 5
jb 0x4af01a
mov ecx, 0x14
jmp 0x4af025
cmp eax, 2
mov eax, 5
cmovae ecx, eax
push dword [ebp - 0x48]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x16c]
test edi, edi
je 0x4af04f
mov eax, dword [esi + 0xc0]
push 0
push 0x64
push 0x1b3
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SetTimer]
xor edi, edi
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.005289e3
cmp eax, dword [esi + 0xc0]
jne 0x4af08e
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0x202
jne 0x4aefa7
mov eax, dword [esi + 0xc0]
push 0x1b3
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [esi + 0x68], 0
call dword [sym.imp.USER32.dll_ReleaseCapture]
push 0
mov ecx, esi
call fcn.0049b6b0
mov ecx, dword [esi + 0xc0]
pop edi
pop esi
pop ebx
cmp dword [ecx + 0xe8], 5
je 0x4af0d8
mov eax, dword [ecx]
push 0
push 1
push 0
call dword [eax + 0x168]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055a658
mov esp, ebp
pop ebp
ret 8