Function at 0x510ba4
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff60
push ebx
push esi
push edi
mov esi, edx
mov edi, eax
xor ebx, ebx
cmp dword [esi + 4], 7
jne 0x510ebb
lea eax, [ebp - 0x68]
xor ecx, ecx
mov edx, 0x3c
call fcn.0042b3e0
mov dword [ebp - 0x68], 0x3c
lea ecx, [ebp - 0x10]
movzx edx, word [esi + 0xa]
movzx eax, word [esi + 8]
call fcn.00408b18
mov eax, dword [esi + 4]
cmp eax, 6
jne 0x510c13
mov dword [ebp - 0x14], 0x114
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x68]
push eax
mov ecx, 0xfffffffa
mov edx, dword [edi + 0x50]
mov eax, dword [edi + 0x4c]
call fcn.004ecdc8
mov byte [ebp - 0x15], al
jmp 0x510c3d
cmp eax, 7
jne 0x510c3d
mov dword [ebp - 0x14], 0x115
mov dword [ebp - 0x1c], 1
lea eax, [ebp - 0x68]
push eax
mov ecx, 0xfffffffb
mov edx, dword [edi + 0x50]
mov eax, dword [edi + 0x4c]
call fcn.004ecdc8
mov byte [ebp - 0x15], al
cmp byte [ebp - 0x15], 0
je 0x510ebb
cmp dword [ebp - 0x1c], 0
jne 0x510c55
mov esi, dword [ebp - 0x10]
sub esi, dword [ebp - 0x64]
jmp 0x510c5b
mov esi, dword [ebp - 0xc]
sub esi, dword [ebp - 0x60]
cmp esi, dword [ebp - 0x50]
jl 0x510ebb
cmp esi, dword [ebp - 0x4c]
jg 0x510ebb
mov eax, dword [edi + 0x50]
push eax
call sub.USER32.DLL_SetCapture
lea eax, [ebp - 8]
push eax
call sub.USER32.DLL_GetCursorPos
mov dword [ebp - 0xa0], 0x1c
mov dword [ebp - 0x9c], 0x17
lea eax, [ebp - 0xa0]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [edi + 0x50]
push eax
call sub.USER32.DLL_GetScrollInfo
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x50]
mov ebx, edx
mov eax, dword [edi + 0x9c]
sub ebx, eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x58]
sub ecx, dword [ebp - 0x60]
add eax, eax
sub ecx, eax
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x4c]
sub eax, edx
mov dword [ebp - 0x20], eax
mov eax, dword [edi + 0x50]
push eax
call sub.USER32.DLL_SetCapture
mov bl, 1
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x84]
push eax
call sub.USER32.DLL_PeekMessageA
test eax, eax
je 0x510eac
mov eax, dword [ebp - 0x80]
sub eax, 0xa0
je 0x510d24
sub eax, 2
je 0x510e64
sub eax, 0x15e
je 0x510d24
sub eax, 2
je 0x510e64
jmp 0x510e94
lea eax, [ebp - 0x84]
push eax
call sub.USER32.DLL_TranslateMessage
lea eax, [ebp - 0x84]
push eax
call sub.USER32.DLL_DispatchMessageA
lea eax, [ebp - 0x10]
push eax
call sub.USER32.DLL_GetCursorPos
cmp dword [ebp - 0x1c], 1
jne 0x510d56
mov esi, dword [ebp - 0x2c]
add esi, dword [ebp - 0xc]
sub esi, dword [ebp - 4]
jmp 0x510d5f
mov esi, dword [ebp - 0x2c]
add esi, dword [ebp - 0x10]
sub esi, dword [ebp - 8]
test esi, esi
jge 0x510d65
xor esi, esi
cmp dword [ebp - 0x90], 0
jne 0x510da7
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x20]
cmp esi, eax
jle 0x510d7a
mov esi, eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x94]
sub eax, dword [ebp - 0x98]
push eax
push esi
call sub.KERNEL32.DLL_MulDiv
add eax, dword [ebp - 0x98]
mov esi, eax
mov eax, dword [ebp - 0x94]
cmp esi, eax
jle 0x510e1d
mov esi, eax
jmp 0x510e1d
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x20]
cmp esi, eax
jle 0x510db8
mov esi, dword [ebp - 0x28]
sub esi, dword [ebp - 0x20]
inc esi
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x94]
sub eax, dword [ebp - 0x98]
sub eax, dword [ebp - 0x90]
push eax
push esi
call sub.KERNEL32.DLL_MulDiv
add eax, dword [ebp - 0x98]
mov esi, eax
mov eax, esi
cdq
push edx
push eax
mov ecx, dword [ebp - 0x94]
mov eax, ecx
cdq
push edx
push eax
mov eax, dword [ebp - 0x90]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
cmp edx, dword [esp + 4]
jne 0x510e10
cmp eax, dword [esp]
pop edx
pop eax
ja 0x510e1d
jmp 0x510e14
pop edx
pop eax
jg 0x510e1d
mov esi, ecx
sub esi, dword [ebp - 0x90]
inc esi
mov eax, dword [ebp - 0x98]
cmp esi, eax
jge 0x510e29
mov esi, eax
cmp esi, dword [ebp - 0x24]
je 0x510e5f
mov dword [ebp - 0x9c], 4
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x88], esi
push 0
mov edx, esi
mov ax, 5
call fcn.00403294
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [edi + 0x50]
push eax
call sub.USER32.DLL_SendMessageA
mov dword [ebp - 0x24], esi
jmp 0x510eac
xor ebx, ebx
push 0
mov edx, esi
mov ax, 4
call fcn.00403294
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [edi + 0x50]
push eax
call sub.USER32.DLL_SendMessageA
push 0
push 8
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [edi + 0x50]
push eax
call sub.USER32.DLL_PostMessageA
jmp 0x510eac
lea eax, [ebp - 0x84]
push eax
call sub.USER32.DLL_TranslateMessage
lea eax, [ebp - 0x84]
push eax
call sub.USER32.DLL_DispatchMessageA
test bl, bl
jne 0x510ce0
call sub.USER32.DLL_ReleaseCapture
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret