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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x65eb68]
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.004c6b70
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.004b5140
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.0056787f
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 0x4c902e
cmp ecx, 0x200
jne 0x4c8f8a
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 0x4c900f
call ebx
push 1
mov ecx, esi
mov dword [ebp - 0x44], eax
call fcn.004b5140
jmp 0x4c900f
cmp ecx, 0x113
jne 0x4c8ff1
cmp dword [ebp - 0x18], 0x1b3
jne 0x4c8ff1
cmp dword [esi + 0x64], 0
je 0x4c8fd3
call ebx
sub eax, dword [ebp - 0x44]
mov ecx, 1
shr eax, 0xa
cmp eax, 5
jb 0x4c8fba
mov ecx, 0x14
jmp 0x4c8fc5
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 0x4c8fef
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.0056787f
cmp eax, dword [esi + 0xc0]
jne 0x4c902e
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 0x4c8f47
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.004b5140
mov ecx, dword [esi + 0xc0]
pop edi
pop esi
pop ebx
cmp dword [ecx + 0xe8], 5
je 0x4c9078
mov eax, dword [ecx]
push 0
push 1
push 0
call dword [eax + 0x168]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599f9c
mov esp, ebp
pop ebp
ret 8