Function at 0x4d2a70
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x5e2320]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
cmp esi, 0x11
jne 0x4d2ab5
mov ecx, dword [edi + 0x528]
mov eax, dword [ecx]
call dword [eax]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.005600c0
mov esp, ebp
pop ebp
ret 0xc
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [sym.imp.USER32.dll_GetCursorPos]
cmp esi, 0x47
jne 0x4d2bac
mov ecx, dword [edi + 0x530]
test ecx, ecx
je 0x4d2b3e
cmp dword [edi + 0x540], 0
je 0x4d2b3e
lea eax, [esp + 0x1c]
push eax
mov eax, dword [ecx]
call dword [eax]
push eax
call ebx
mov ecx, dword [edi + 0x540]
lea eax, [esp + 0x2c]
push eax
call fcn.00521870
push eax
call ebx
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
sub ecx, edx
sub eax, dword [esp + 0x2c]
cmp eax, ecx
jg 0x4d2b3e
mov eax, dword [esp + 0x20]
cmp edx, dword [esp + 0x2c]
jne 0x4d2b22
cmp eax, dword [esp + 0x30]
je 0x4d2b3e
mov ecx, dword [edi + 0x540]
push 5
push 0
push 0
push eax
push edx
push 0
call fcn.00521870
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [edi + 0x530]
test ecx, ecx
je 0x4d2ba0
cmp dword [edi + 0x574], 0
je 0x4d2ba0
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx]
call dword [eax]
push eax
call ebx
mov ecx, dword [edi + 0x574]
lea eax, [esp + 0x1c]
push eax
call fcn.00521870
push eax
call ebx
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
cmp ecx, dword [esp + 0x1c]
jne 0x4d2b84
cmp eax, dword [esp + 0x20]
je 0x4d2ba0
push 5
push 0
push 0
push eax
push ecx
mov ecx, dword [edi + 0x574]
push 0
call fcn.00521870
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, edi
call fcn.004df5b0
jmp 0x4d2d0e
cmp esi, 0xa1
jne 0x4d2c1c
cmp dword [ebp + 0xc], 2
jne 0x4d2d0e
lea eax, [esp + 0x1c]
mov byte [edi + 0x624], 1
push eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esp + 0x1c]
push dword [edi + 4]
mov dword [edi + 0x61c], eax
mov eax, dword [esp + 0x24]
mov dword [edi + 0x620], eax
call dword [sym.imp.USER32.dll_SetCapture]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_BringWindowToTop]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.005600c0
mov esp, ebp
pop ebp
ret 0xc
cmp esi, 0x201
jne 0x4d2d0e
cmp dword [edi + 0x540], 0
je 0x4d2c9e
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
mov dword [esp + 0x24], 0
call ecx
lea eax, [esp + 0x2c]
push eax
push dword [edi + 4]
call ebx
mov eax, dword [esp + 0x30]
push dword [esp + 0x20]
add eax, 0x24
push dword [esp + 0x20]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4d2c98
mov eax, dword [esp + 0x1c]
push dword [edi + 4]
mov dword [edi + 0x61c], eax
mov eax, dword [esp + 0x24]
mov byte [edi + 0x624], 1
mov dword [edi + 0x620], eax
call dword [sym.imp.USER32.dll_SetCapture]
mov ecx, dword [sym.imp.USER32.dll_GetCursorPos]
cmp dword [edi + 0x574], 0
je 0x4d2d0e
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
mov dword [esp + 0x24], 0
call ecx
lea eax, [esp + 0x2c]
push eax
push dword [edi + 4]
call ebx
mov eax, dword [esp + 0x30]
push dword [esp + 0x20]
add eax, 0x24
push dword [esp + 0x20]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4d2d0e
mov eax, dword [esp + 0x1c]
push dword [edi + 4]
mov dword [edi + 0x61c], eax
mov eax, dword [esp + 0x24]
mov byte [edi + 0x624], 1
mov dword [edi + 0x620], eax
call dword [sym.imp.USER32.dll_SetCapture]
mov ecx, dword [edi + 0x52c]
mov edx, dword [ebp + 0x10]
test ecx, ecx
je 0x4d2d2e
mov eax, dword [ecx]
push edx
push dword [ebp + 0xc]
push esi
push dword [edi + 4]
call dword [eax + 0xfc]
mov edx, dword [ebp + 0x10]
push edx
push dword [ebp + 0xc]
mov ecx, edi
push esi
call fcn.00515f90
mov dword [esp + 0x14], eax
cmp esi, 0x200
jne 0x4d2fca
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
mov eax, dword [sym.imp.USER32.dll_GetCursorPos]
mov dword [esp + 0x24], 0
call eax
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cmp byte [edi + 0x624], 0
je 0x4d30e3
add eax, 0xffffffd3
cmp eax, dword [esp + 0x20]
jle 0x4d30e3
test byte [ebp + 0xc], 1
mov esi, dword [sym.imp.USER32.dll_GetCapture]
je 0x4d2fb1
mov eax, dword [edi + 4]
mov dword [esp + 0x18], eax
call esi
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jne 0x4d2fb1
mov eax, dword [edi + 0x530]
test eax, eax
je 0x4d2f42
cmp dword [edi + 0x540], 0
je 0x4d2e6a
push 2
call dword [sym.imp.USER32.dll_BeginDeferWindowPos]
mov ebx, eax
lea eax, [esp + 0x2c]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x20]
sub ecx, dword [edi + 0x620]
mov eax, dword [esp + 0x1c]
sub eax, dword [edi + 0x61c]
mov esi, dword [sym.imp.USER32.dll_OffsetRect]
push ecx
push eax
lea eax, [esp + 0x34]
push eax
call esi
push 5
push 0
push 0
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push 0
push dword [edi + 4]
mov edi, dword [sym.imp.USER32.dll_DeferWindowPos]
push ebx
call edi
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x2c]
push eax
mov ecx, dword [ecx + 0x540]
call fcn.00521870
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
sub eax, dword [ecx + 0x620]
push eax
mov eax, dword [esp + 0x20]
sub eax, dword [ecx + 0x61c]
push eax
lea eax, [esp + 0x34]
push eax
call esi
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 0x540]
jmp 0x4d2f1c
test eax, eax
je 0x4d2f42
cmp dword [edi + 0x574], 0
je 0x4d2f42
push 2
call dword [sym.imp.USER32.dll_BeginDeferWindowPos]
mov ebx, eax
lea eax, [esp + 0x2c]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x20]
sub ecx, dword [edi + 0x620]
mov eax, dword [esp + 0x1c]
sub eax, dword [edi + 0x61c]
mov esi, dword [sym.imp.USER32.dll_OffsetRect]
push ecx
push eax
lea eax, [esp + 0x34]
push eax
call esi
push 5
push 0
push 0
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push 0
push dword [edi + 4]
mov edi, dword [sym.imp.USER32.dll_DeferWindowPos]
push ebx
call edi
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x2c]
push eax
mov ecx, dword [ecx + 0x574]
call fcn.00521870
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
sub eax, dword [ecx + 0x620]
push eax
mov eax, dword [esp + 0x20]
sub eax, dword [ecx + 0x61c]
push eax
lea eax, [esp + 0x34]
push eax
call esi
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 0x574]
push 5
push 0
push 0
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push 0
call fcn.00521870
push eax
push ebx
call edi
push ebx
call dword [sym.imp.USER32.dll_EndDeferWindowPos]
mov edi, dword [esp + 0x10]
jmp 0x4d2f84
lea eax, [esp + 0x2c]
push eax
push ecx
call ebx
mov eax, dword [esp + 0x20]
sub eax, dword [edi + 0x620]
push eax
mov eax, dword [esp + 0x20]
sub eax, dword [edi + 0x61c]
push eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push 5
push 0
push 0
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x61c], eax
mov eax, dword [esp + 0x20]
mov dword [edi + 0x620], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.005600c0
mov esp, ebp
pop ebp
ret 0xc
call esi
cmp eax, dword [edi + 4]
jne 0x4d2fbe
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov byte [edi + 0x624], 0
jmp 0x4d30e3
cmp esi, 0x202
jne 0x4d30e7
cmp byte [edi + 0x624], 0
je 0x4d2fff
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [edi + 4]
jne 0x4d2ff0
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov byte [edi + 0x624], 0
mov dword [esp + 0x14], 0
mov ecx, dword [edi + 0x540]
mov esi, dword [sym.imp.USER32.dll_SetFocus]
test ecx, ecx
je 0x4d302d
call fcn.00521870
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4d302d
mov ecx, dword [edi + 0x540]
call fcn.00521870
push eax
call esi
mov ecx, dword [edi + 0x574]
test ecx, ecx
je 0x4d3055
call fcn.00521870
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4d3055
mov ecx, dword [edi + 0x574]
call fcn.00521870
push eax
call esi
lea eax, [esp + 0x2c]
push eax
push dword [edi + 4]
call ebx
mov eax, dword [esp + 0x30]
sub dword [esp + 0x34], 0x104
add eax, 0x28
mov dword [esp + 0x38], eax
lea eax, [esp + 0x1c]
push eax
mov eax, dword [sym.imp.USER32.dll_GetCursorPos]
call eax
push dword [esp + 0x20]
lea eax, [esp + 0x30]
push dword [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4d30e3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
call dword [sym.imp.USER32.dll_GetDoubleClickTime]
mov ecx, esi
sub ecx, dword [edi + 0x628]
cmp ecx, eax
ja 0x4d30dd
push 0xfffffffffffffff0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push 0
test eax, 0x1000000
je 0x4d30ca
push 0xf120
jmp 0x4d30cf
push 0xf030
push 0x112
push dword [edi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [edi + 0x628], esi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005600c0
mov esp, ebp
pop ebp
ret 0xc