Function at 0x40a050
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4b7d
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x53d058]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x70], esi
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
cmp eax, 4
jne 0x40a11e
call fcn.00404140
push edi
mov eax, dword [eax + 0x7c]
call eax
xor esi, esi
test eax, eax
cmove esi, edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x68], 0
call fcn.00404140
push 1
lea ecx, [ebp - 0x68]
push ecx
mov eax, dword [eax + 0xec]
push esi
call eax
push 2
push dword [ebp - 0x68]
call dword [sym.imp.USER32.dll_GetAncestor]
mov ecx, dword [ebp - 0x70]
mov edi, eax
add ecx, 4
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x24]
xorps xmm0, xmm0
push eax
push edi
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [ebp - 0x70]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], ecx
call fcn.00404140
push esi
mov eax, dword [eax + 0xe4]
call eax
mov byte [edi + 0x14], 1
mov dword [ebp - 4], 1
jmp 0x40a44c
cmp eax, 2
jne 0x40a229
cmp dword [ebp + 0x1c], 1
jne 0x40a45e
cmp byte [esi + 0x14], 0
je 0x40a45e
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
mov dword [ebp - 0x18], 0
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
mov ecx, dword [ebp - 0x18]
sub ecx, dword [esi + 8]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x1c]
sub eax, dword [esi + 4]
add dword [ebp - 0x68], ecx
add eax, edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x14], eax
call fcn.00404140
push edi
mov eax, dword [eax + 0x7c]
call eax
xor esi, esi
test eax, eax
cmove esi, edi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], 2
mov dword [ebp - 0x70], 0
call fcn.00404140
push 1
lea ecx, [ebp - 0x70]
push ecx
mov eax, dword [eax + 0xec]
push esi
call eax
push 2
push dword [ebp - 0x70]
call dword [sym.imp.USER32.dll_GetAncestor]
mov esi, eax
mov dword [ebp - 4], 3
mov edi, dword [ebp - 0x6c]
test edi, edi
je 0x40a1d6
call fcn.00404140
push edi
mov ecx, dword [eax + 0x80]
call ecx
test esi, esi
je 0x40a20a
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], 0
push eax
call dword [sym.imp.dwmapi.dll_DwmIsCompositionEnabled]
test eax, eax
jne 0x40a1f5
cmp dword [ebp - 0x6c], 1
je 0x40a20a
push 0xffffffffffffffec
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x80000
mov eax, 0x15
je 0x40a20f
mov eax, 0x1d
push eax
mov eax, dword [ebp - 0x68]
push 0
push 0
push eax
push dword [ebp - 0x14]
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x40a45e
cmp eax, 3
jne 0x40a45e
mov byte [esi + 0x14], 0
call fcn.00404140
push edi
mov eax, dword [eax + 0x7c]
call eax
xor esi, esi
test eax, eax
cmove esi, edi
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], 4
call fcn.00404140
push esi
mov eax, dword [eax + 0xe8]
call eax
mov dword [ebp - 0x6c], 0
call fcn.00404140
push 1
lea ecx, [ebp - 0x6c]
push ecx
mov eax, dword [eax + 0xec]
push esi
call eax
push 2
push dword [ebp - 0x6c]
call dword [sym.imp.USER32.dll_GetAncestor]
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x14], eax
push ecx
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x80], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.USER32.dll_MonitorFromRect]
test eax, eax
je 0x40a445
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], 0x28
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
push ecx
push eax
movups xmmword [ebp - 0x60], xmm0
movups xmmword [ebp - 0x50], xmm0
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
test eax, eax
je 0x40a445
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov edi, dword [sym.imp.USER32.dll_MonitorFromPoint]
push 0
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
call edi
push 0
push dword [ebp - 0x7c]
test eax, eax
push dword [ebp - 0x78]
setne byte [ebp - 0x83]
call edi
push 0
push dword [ebp - 0x74]
test eax, eax
push dword [ebp - 0x80]
setne byte [ebp - 0x82]
call edi
push 0
push dword [ebp - 0x74]
test eax, eax
push dword [ebp - 0x78]
setne byte [ebp - 0x84]
call edi
mov ecx, dword [ebp - 0x74]
test eax, eax
setne dl
sub ecx, dword [ebp - 0x7c]
sub ecx, dword [ebp - 0x74]
xor al, al
mov byte [ebp - 0x81], al
mov eax, dword [ebp - 0x30]
add eax, 0xffffffa0
mov byte [ebp - 0x85], dl
add eax, ecx
mov ecx, dword [sym.imp.USER32.dll_OffsetRect]
mov dword [ebp - 0x68], ecx
jns 0x40a383
test dl, dl
jne 0x40a383
cmp byte [ebp - 0x84], dl
jne 0x40a383
push eax
push 0
lea eax, [ebp - 0x80]
push eax
lfence
call ecx
mov ecx, dword [ebp - 0x68]
mov byte [ebp - 0x81], 1
mov eax, dword [ebp - 0x7c]
sub eax, dword [ebp - 0x38]
add eax, 0x15
jns 0x40a3b5
cmp byte [ebp - 0x83], 0
jne 0x40a3b5
cmp byte [ebp - 0x82], 0
jne 0x40a3b5
neg eax
push eax
push 0
lea eax, [ebp - 0x80]
push eax
lfence
call ecx
mov byte [ebp - 0x81], 1
mov edx, dword [ebp - 0x78]
mov ecx, edx
mov edi, dword [ebp - 0x80]
sub ecx, edi
mov eax, dword [ebp - 0x34]
sub ecx, edx
add eax, 0xffffffa0
add eax, ecx
jns 0x40a3f4
cmp byte [ebp - 0x82], 0
jne 0x40a3f4
cmp byte [ebp - 0x85], 0
jne 0x40a3f4
push 0
push eax
lea eax, [ebp - 0x80]
push eax
lfence
call dword [ebp - 0x68]
mov edx, dword [ebp - 0x78]
mov cl, 1
mov edi, dword [ebp - 0x80]
jmp 0x40a3fa
mov cl, byte [ebp - 0x81]
sub edx, edi
lea eax, [edi - 0x60]
sub edx, dword [ebp - 0x3c]
add eax, edx
jns 0x40a42c
cmp byte [ebp - 0x83], 0
jne 0x40a42c
cmp byte [ebp - 0x84], 0
jne 0x40a42c
push 0
neg eax
push eax
lea eax, [ebp - 0x80]
push eax
lfence
call dword [ebp - 0x68]
mov edi, dword [ebp - 0x80]
jmp 0x40a430
test cl, cl
je 0x40a445
push 0x15
push 0
push 0
push dword [ebp - 0x7c]
push edi
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [ebp - 4], 5
test esi, esi
je 0x40a45e
call fcn.00404140
push esi
mov eax, dword [eax + 0x80]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049852a
mov esp, ebp
pop ebp
ret 0x1c