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

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ecx, dword [esi + 0xf8]
mov eax, dword [ecx]
push 0
push 0xffffffffffffffff
call dword [eax + 0x13c]
mov ecx, dword [esi + 0xf8]
mov eax, dword [esi + 0x7c]
mov edx, dword [ecx]
push 0
push eax
call dword [edx + 0x13c]
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.0049eb20
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
add eax, ebx
cdq
sub eax, edx
mov edx, dword [esp + 0x58]
sar eax, 1
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x54]
push edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], ecx
push eax
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], ebx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
lea ecx, [esp + 0x14]
jne 0x49f0e3
lea ecx, [esp + 0x24]
mov edx, dword [ecx]
mov dword [esp + 0x40], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x44], edx
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x48], edx
xor edx, edx
test eax, eax
setne dl
neg eax
sbb eax, eax
add eax, 4
mov dword [esp + 0x4c], ecx
push 0
mov ecx, esi
lea edx, [edx + edx - 1]
mov ebp, edx
mov dword [esp + 0x14], ebp
mov dword [esi + 0xa4], eax
mov dword [esi + 0xa0], eax
call fcn.0047c0d0
mov eax, dword [esi]
push ebp
push 1
mov ecx, esi
call dword [eax + 0x14c]
mov eax, dword [esi + 0xf8]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.004fdb2c
mov edx, dword [esi + 0xf8]
mov eax, dword [edx + 0x1c]
push 0
push 0x212
push 0x1b3
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x54], 1
call ebx
push 0
push 0
push 0
lea ecx, [esp + 0x30]
push ecx
mov edi, eax
call dword [sym.imp.USER32.dll_GetMessageW]
mov eax, dword [esp + 0x28]
cmp eax, 0x202
je 0x49f296
jmp 0x49f1a2
mov ebp, dword [esp + 0x10]
cmp eax, 0x200
jne 0x49f1e5
mov eax, dword [esp + 0x30]
mov ebp, dword [esi]
movzx ecx, ax
shr eax, 0x10
push eax
push ecx
lea edx, [esp + 0x48]
push edx
call dword [sym.imp.USER32.dll_PtInRect]
push eax
mov ecx, esi
call dword [ebp + 0xfc]
test eax, eax
je 0x49f276
call ebx
push 1
mov ecx, esi
mov edi, eax
call fcn.0047c0d0
jmp 0x49f276
cmp eax, 0x113
jne 0x49f257
cmp dword [esp + 0x2c], 0x1b3
jne 0x49f257
mov eax, dword [esi + 0xa0]
test eax, eax
je 0x49f22e
call ebx
sub eax, edi
shr eax, 0xa
cmp eax, 5
mov ecx, 1
jb 0x49f218
mov ecx, 0x14
jmp 0x49f222
cmp eax, 2
jb 0x49f222
mov ecx, 5
mov eax, dword [esi]
push ebp
push ecx
mov ecx, esi
call dword [eax + 0x14c]
mov eax, dword [esp + 0x54]
test eax, eax
je 0x49f24f
mov ecx, dword [esi + 0xf8]
mov edx, dword [ecx + 0x1c]
push 0
push 0x64
push 0x1b3
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esp + 0x54], 0
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.004fdb2c
cmp eax, dword [esi + 0xf8]
jne 0x49f296
push 0
push 0
push 0
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.USER32.dll_GetMessageW]
mov eax, dword [esp + 0x28]
cmp eax, 0x202
jne 0x49f19e
mov edx, dword [esi + 0xf8]
mov eax, dword [edx + 0x1c]
push 0x1b3
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [esi + 0xa4], 0
call dword [sym.imp.USER32.dll_ReleaseCapture]
push 0
mov ecx, esi
call fcn.0047c0d0
mov ecx, dword [esi + 0xf8]
cmp dword [ecx + 0xf4], 5
pop edi
pop esi
pop ebp
pop ebx
je 0x49f2e5
mov edx, dword [ecx]
push 0
push 1
push 0
call dword [edx + 0x134]
add esp, 0x40
ret 8