Function at 0x49a660
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x1c], 0
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov esi, ecx
jne 0x49a8d0
mov edi, dword [ebp + 0xc]
cmp edi, 1
jne 0x49a7bb
neg ecx
lea eax, [esi - 0x24]
sbb ecx, ecx
and ecx, eax
xor eax, eax
mov dword [ebp + 0x1c], ecx
cmp byte [ecx + 0x24], al
sete al
add eax, 0x7f84
push eax
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
mov edx, dword [ebp + 0x1c]
lea ecx, [edx + 0x24]
mov dword [ebp + 0x18], ecx
mov dword [edx + 0x54], eax
test byte [ecx + 0x4c], 0x10
jne 0x49a6d2
xor eax, eax
cmp byte [ecx], al
sete al
add eax, 0x20
push eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x1c]
mov dword [ecx + 0x2c], eax
xor eax, eax
test ecx, ecx
push 0xffffffffffffffec
cmove edx, eax
push dword [edx + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0x200
mov eax, dword [ebp + 0x18]
mov cl, byte [eax]
je 0x49a70d
xor eax, eax
test cl, cl
sete al
add eax, 0x2d
push eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp + 0x18]
add eax, eax
mov dword [ecx + 0x38], eax
xor ecx, ecx
jmp 0x49a729
mov dword [eax + 0x38], 0
xor eax, eax
test cl, cl
sete al
add eax, 0x2d
push eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, eax
add ecx, ecx
mov eax, dword [ebp + 0x18]
push 0
mov dword [eax + 0x34], ecx
add eax, 0x3c
push eax
push 0
push 0x26
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov dword [ebx], 1
mov eax, dword [esi + 0x4c]
shr eax, 1
not al
test al, 1
je 0x49abb8
cmp edi, 0x20
jne 0x49a80a
mov eax, dword [ebp + 0x10]
cmp eax, dword [esi - 0x20]
jne 0x49a8ca
cmp word [ebp + 0x14], 1
jne 0x49a8ca
call dword [sym.imp.USER32.dll_GetMessagePos]
movsx ecx, ax
shr eax, 0x10
cwde
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push dword [esi - 0x20]
mov dword [ebp - 8], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
push dword [ebp - 4]
mov ecx, esi
push dword [ebp - 8]
call fcn.004911b0
test al, al
je 0x49a8ca
lea eax, [edi - 0x1f]
mov dword [ebx], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp edi, 0xf
jne 0x49a7de
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
call fcn.00497060
mov dword [ebx], eax
lea eax, [edi - 0xe]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp edi, 0x318
jne 0x49a745
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
call fcn.00497060
pop edi
mov dword [ebx], eax
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp edi, 0x200
jne 0x49a8db
mov eax, dword [ebp + 0x14]
movsx edi, ax
shr eax, 0x10
cwde
mov dword [ebp + 0x14], eax
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [esi - 0x20]
jne 0x49a8b2
cmp byte [esi], 0
mov eax, dword [esi + 0x40]
je 0x49a83f
sub edi, dword [esi + 0xc]
jmp 0x49a845
mov edi, dword [ebp + 0x14]
sub edi, dword [esi + 0x10]
sub edi, eax
mov eax, 0xfffffffe
cmp edi, 0xffffffff
cmove edi, eax
cmp dword [esi + 0x1c], edi
je case.0x49aaaf.14
cmp byte [esi + 0x3c], 0
mov ecx, esi
je 0x49a888
push 1
push edi
call fcn.0049f200
test al, al
je case.0x49aaaf.14
push dword [esi - 0x20]
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
pop esi
mov dword [ebx], 0
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x18
call fcn.0048c940
push 0
push edi
mov ecx, esi
call fcn.0049f200
mov ecx, esi
call fcn.0048c940
pop edi
pop esi
mov dword [ebx], 0
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push dword [ebp + 0x14]
mov ecx, esi
push edi
call fcn.004911b0
test al, al
je 0x49a8ca
push dword [esi + 0x30]
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [ebx], 0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp edi, 0x201
jne 0x49a9bb
mov eax, dword [ebp + 0x14]
movsx edi, ax
shr eax, 0x10
cwde
mov dword [ebp + 0x14], eax
mov eax, dword [esi - 0x20]
mov dword [ebp + 0x10], eax
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [ebp + 0x10]
je 0x49a982
push dword [ebp + 0x14]
mov ecx, esi
push edi
call fcn.004911b0
test al, al
je 0x49a982
mov eax, dword [esi + 0x1c]
push dword [ebp + 0x10]
mov dword [esi + 0x20], eax
call dword [sym.imp.USER32.dll_SetCapture]
push dword [esi - 0x20]
call dword [sym.imp.USER32.dll_SetFocus]
push dword [esi + 0x30]
mov dword [esi + 0x24], eax
call dword [sym.imp.USER32.dll_SetCursor]
cmp byte [esi + 0x3c], 0
jne 0x49a945
mov ecx, esi
call fcn.0048c940
cmp byte [esi], 0
mov eax, dword [esi + 0x1c]
je 0x49a966
sub edi, dword [esi + 0xc]
sub edi, eax
xor eax, eax
mov dword [esi + 0x40], edi
pop edi
pop esi
mov dword [ebx], 1
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov edi, dword [ebp + 0x14]
sub edi, dword [esi + 0x10]
sub edi, eax
xor eax, eax
mov dword [esi + 0x40], edi
pop edi
pop esi
mov dword [ebx], 1
pop ebx
mov esp, ebp
pop ebp
ret 0x18
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [esi - 0x20]
jne 0x49abe6
push dword [ebp + 0x14]
mov ecx, esi
push edi
call fcn.004911b0
test al, al
jne 0x49abe6
call dword [sym.imp.USER32.dll_ReleaseCapture]
pop edi
pop esi
mov dword [ebx], 1
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp edi, 0x202
jne 0x49a9ef
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [esi - 0x20]
jne 0x49abe6
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x20], eax
call dword [sym.imp.USER32.dll_ReleaseCapture]
pop edi
pop esi
mov dword [ebx], 1
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp edi, 0x203
jne 0x49aa16
push 1
push 0xffffffffffffffff
mov ecx, esi
call fcn.0049f200
pop edi
pop esi
mov dword [ebx], 0
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp edi, 0x215
jne 0x49aa7e
cmp byte [esi + 0x3c], 0
jne 0x49aa2b
mov ecx, esi
call fcn.0048c940
mov eax, dword [esi + 0x20]
cmp eax, 0xffffffff
je 0x49aa58
cmp byte [esi + 0x3c], 0
je 0x49aa3e
cmp dword [esi + 0x1c], eax
je 0x49aa58
mov ecx, esi
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], 0xffffffff
call fcn.004a0df0
push dword [esi - 0x20]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [esi + 0x24]
test eax, eax
je case.0x49aaaf.14
push eax
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
mov dword [ebx], 0
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp edi, 0x100
jne 0x49abb8
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [esi - 0x20]
jne 0x49a8ca
mov edi, dword [ebp + 0x10]
lea eax, [edi - 0xd]
cmp eax, 0x1b
ja case.0x49aaaf.14
movzx eax, byte [eax + 0x49ac54]
jmp dword [eax*4 + 0x49ac40]
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x20], eax
call dword [sym.imp.USER32.dll_ReleaseCapture]
pop edi
pop esi
mov dword [ebx], 0
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp byte [esi], 0
je case.0x49aaaf.14
lea eax, [ebp - 8]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 8], xmm0
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esi + 0x1c]
cmp edi, 0x25
mov edi, dword [esi + 0x38]
mov ecx, 0xfffffff6
mov edx, 0xa
mov dword [ebp + 0x14], eax
cmove edx, ecx
mov ecx, dword [esi + 0x34]
add edx, eax
lea eax, [ecx + edi]
cmp edx, eax
jl 0x49ab2a
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0x2c]
sub eax, dword [esi + 0xc]
sub eax, ecx
mov ecx, edx
sub eax, edi
cmp edx, eax
cmovg ecx, eax
mov eax, dword [ebp - 8]
sub ecx, dword [ebp + 0x14]
push dword [ebp - 4]
add eax, ecx
mov dword [ebp - 8], eax
push eax
jmp 0x49ab9e
cmp byte [esi], 0
jne case.0x49aaaf.14
lea eax, [ebp - 0x10]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x10], xmm0
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esi + 0x1c]
cmp edi, 0x26
mov edi, dword [esi + 0x38]
mov ecx, 0xfffffff6
mov edx, 0xa
mov dword [ebp + 0x14], eax
cmove edx, ecx
mov ecx, dword [esi + 0x34]
add edx, eax
lea eax, [ecx + edi]
cmp edx, eax
jl 0x49ab8f
mov eax, dword [esi + 0x18]
sub eax, dword [esi + 0x2c]
sub eax, dword [esi + 0x10]
sub eax, ecx
mov ecx, edx
sub eax, edi
cmp edx, eax
cmovg ecx, eax
mov eax, dword [ebp - 0xc]
sub ecx, dword [ebp + 0x14]
add eax, ecx
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
call dword [sym.imp.USER32.dll_SetCursorPos]
pop edi
pop esi
mov dword [ebx], 0
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp edi, 7
jne 0x49abf7
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [esi - 0x20]
je 0x49abe6
mov eax, dword [esi + 0x50]
cmp eax, 0xffffffff
jne 0x49abdc
mov eax, dword [esi + 0x28]
test eax, eax
je 0x49abdc
cmp eax, 1
jne 0x49abe6
push dword [esi + eax*4 + 4]
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
mov dword [ebx], 1
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp edi, 0x21
jne 0x49ac1c
lea eax, [ebp + 0x18]
mov ecx, esi
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
call fcn.00496700
mov dword [ebx], eax
lea eax, [edi - 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp edi, 0x1a
jne 0x49a8d0
push 1
mov ecx, esi
call fcn.0048f210
lea eax, [edi - 0x19]
mov dword [ebx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18