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

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esi + 0x100]
mov eax, dword [ecx]
mov edx, dword [eax + 0x148]
push edi
push 0
push 0xffffffffffffffff
call edx
mov ecx, dword [esi + 0x100]
mov eax, dword [ecx]
mov edx, dword [esi + 0x80]
mov eax, dword [eax + 0x148]
push 0
push edx
call eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.0054e070
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]
lea ecx, [esp + 0x14]
test eax, eax
jne 0x54e57a
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, 5
mov dword [esp + 0x4c], ecx
push 0
mov ecx, esi
lea edx, [edx + edx - 1]
mov ebp, edx
mov dword [esi + 0xa8], eax
mov dword [esi + 0xa4], eax
call fcn.004f2920
mov eax, dword [esi]
mov edx, dword [eax + 0x160]
push ebp
push 1
mov ecx, esi
call edx
mov eax, dword [esi + 0x100]
mov eax, dword [eax + 0x20]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.0047f1b7
mov ecx, dword [esi + 0x100]
mov edx, dword [ecx + 0x20]
push 0
push 0x212
push 0x1b3
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x10], 1
call ebx
push 0
push 0
mov edi, eax
push 0
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
mov eax, dword [esp + 0x28]
cmp eax, 0x202
je 0x54e72f
cmp eax, 0x200
jne 0x54e67e
mov eax, dword [esp + 0x30]
movzx ecx, ax
shr eax, 0x10
push eax
push ecx
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x48]
push ecx
mov dword [esp + 0x64], eax
call dword [sym.imp.USER32.dll_PtInRect]
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0xfc]
mov ecx, esi
call eax
test eax, eax
je 0x54e70f
call ebx
push 1
mov ecx, esi
mov edi, eax
call fcn.004f2920
jmp 0x54e70f
cmp eax, 0x113
jne 0x54e6f0
cmp dword [esp + 0x2c], 0x1b3
jne 0x54e6f0
cmp dword [esi + 0xa4], 0
je 0x54e6c8
call ebx
sub eax, edi
shr eax, 0xa
mov ecx, 1
cmp eax, 5
jb 0x54e6b0
mov ecx, 0x14
jmp 0x54e6ba
cmp eax, 2
jb 0x54e6ba
mov ecx, 5
mov edx, dword [esi]
mov eax, dword [edx + 0x160]
push ebp
push ecx
mov ecx, esi
call eax
cmp dword [esp + 0x10], 0
je 0x54e6e8
mov ecx, dword [esi + 0x100]
mov edx, dword [ecx + 0x20]
push 0
push 0x64
push 0x1b3
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esp + 0x10], 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.0047f1b7
cmp eax, dword [esi + 0x100]
jne 0x54e72f
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 0x54e631
mov edx, dword [esi + 0x100]
mov eax, dword [edx + 0x20]
push 0x1b3
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [esi + 0xa8], 0
call dword [sym.imp.USER32.dll_ReleaseCapture]
push 0
mov ecx, esi
call fcn.004f2920
mov ecx, dword [esi + 0x100]
cmp dword [ecx + 0x100], 5
pop edi
pop esi
pop ebp
pop ebx
je 0x54e780
mov edx, dword [ecx]
mov eax, dword [edx + 0x140]
push 0
push 1
push 0
call eax
add esp, 0x40
ret 8