Function at 0x140050670
Capabilities:
Check for unmoving mouse cursor
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r14
sub rsp, 0x40
cmp dword [rsp + 0x90], 0
mov rbp, r9
mov rsi, qword [rsp + 0x88]
mov edi, r8d
mov rbx, rcx
jne 0x140050913
xor r12d, r12d
cmp r8d, 1
jne 0x1400507f1
test rcx, rcx
mov qword [rsp + 0x60], r15
lea r15, [rcx - 0x48]
cmove r15, r12
movzx eax, byte [r15 + 0x48]
neg al
sbb rdx, rdx
xor ecx, ecx
add rdx, 0x7f85
call qword [sym.imp.USER32.dll_LoadCursorW]
lea r14, [r15 + 0x48]
mov qword [r15 + 0x88], rax
test byte [r14 + 0x60], 0x10
jne 0x140050704
movzx eax, byte [r14]
neg al
sbb ecx, ecx
add ecx, 0x21
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [r14 + 0x3c], eax
test r14, r14
mov edx, 0xffffffec
cmove r15, r12
mov rcx, qword [r15 + 8]
call qword [sym.imp.USER32.dll_GetWindowLongW]
mov r15, qword [rsp + 0x60]
and eax, 0x200
movzx eax, byte [r14]
je 0x140050742
neg al
sbb ecx, ecx
add ecx, 0x2e
call qword [sym.imp.USER32.dll_GetSystemMetrics]
add eax, eax
mov dword [r14 + 0x4c], eax
mov eax, r12d
jmp 0x140050755
neg al
mov dword [r14 + 0x4c], r12d
sbb ecx, ecx
add ecx, 0x2e
call qword [sym.imp.USER32.dll_GetSystemMetrics]
add eax, eax
xor edx, edx
mov dword [r14 + 0x48], eax
lea r8, [r14 + 0x50]
xor r9d, r9d
lea ecx, [rdx + 0x26]
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
mov qword [rsi], 1
mov ecx, dword [rbx + 0x60]
mov eax, ecx
shr eax, 1
not al
test al, 1
je 0x140050c17
cmp edi, 0x20
jne 0x140050858
cmp rbp, qword [rbx - 0x40]
jne 0x140050910
cmp word [rsp + 0x80], 1
jne 0x140050910
call qword [sym.imp.USER32.dll_GetMessagePos]
movsx ecx, ax
lea rdx, [rsp + 0x30]
shr eax, 0x10
cwde
mov dword [rsp + 0x30], ecx
mov rcx, qword [rbx - 0x40]
mov dword [rsp + 0x34], eax
call qword [sym.imp.USER32.dll_ScreenToClient]
mov r8d, dword [rsp + 0x34]
mov rcx, rbx
mov edx, dword [rsp + 0x30]
call fcn.14004b250
test al, al
je 0x140050910
mov qword [rsi], 1
lea eax, [rdi - 0x1f]
jmp 0x140050915
cmp edi, 0xf
jne 0x140050820
mov r9, qword [rsp + 0x80]
lea rax, [rsp + 0x90]
mov r8, rbp
mov qword [rsp + 0x20], rax
mov edx, edi
call fcn.14004dc30
mov qword [rsi], rax
lea eax, [rdi - 0xe]
jmp 0x140050915
cmp edi, 0x318
jne 0x140050772
mov r9, qword [rsp + 0x80]
lea rax, [rsp + 0x90]
mov r8, rbp
mov qword [rsp + 0x20], rax
mov edx, edi
call fcn.14004dc30
mov qword [rsi], rax
mov eax, 1
jmp 0x140050915
cmp edi, 0x200
jne 0x14005092e
mov rax, qword [rsp + 0x80]
movsx edi, ax
shr rax, 0x10
movsx ebp, ax
call qword [sym.imp.USER32.dll_GetCapture]
cmp rax, qword [rbx - 0x40]
jne 0x1400508f5
mov eax, dword [rbx + 0x54]
cmp byte [rbx], r12b
je 0x14005088f
sub edi, dword [rbx + 0x18]
jmp 0x140050894
mov edi, ebp
sub edi, dword [rbx + 0x1c]
sub edi, eax
mov eax, 0xfffffffe
cmp edi, 0xffffffff
cmove edi, eax
cmp dword [rbx + 0x28], edi
je case.0x140050b07.14
mov rcx, rbx
cmp byte [rbx + 0x50], r12b
je 0x1400508d1
mov r8b, 1
mov edx, edi
call fcn.1400548a0
test al, al
je case.0x140050b07.14
mov rcx, qword [rbx - 0x40]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov qword [rsi], r12
jmp 0x140050915
call fcn.140048f50
xor r8d, r8d
mov edx, edi
mov rcx, rbx
call fcn.1400548a0
mov rcx, rbx
call fcn.140048f50
mov qword [rsi], r12
mov eax, 1
jmp 0x140050915
mov r8d, ebp
mov edx, edi
mov rcx, rbx
call fcn.14004b250
test al, al
je 0x140050910
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.USER32.dll_SetCursor]
mov qword [rsi], r12
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r12
pop rdi
ret
cmp edi, 0x201
jne 0x140050a0a
mov rax, qword [rsp + 0x80]
mov r14, qword [rbx - 0x40]
movsx edi, ax
shr rax, 0x10
movsx ebp, ax
call qword [sym.imp.USER32.dll_GetCapture]
cmp rax, r14
je 0x1400509d3
mov r8d, ebp
mov edx, edi
mov rcx, rbx
call fcn.14004b250
test al, al
je 0x1400509d3
mov eax, dword [rbx + 0x28]
mov rcx, r14
mov dword [rbx + 0x2c], eax
call qword [sym.imp.USER32.dll_SetCapture]
mov rcx, qword [rbx - 0x40]
call qword [sym.imp.USER32.dll_SetFocus]
mov rcx, qword [rbx + 0x40]
mov qword [rbx + 0x30], rax
call qword [sym.imp.USER32.dll_SetCursor]
cmp byte [rbx + 0x50], r12b
jne 0x1400509a1
mov rcx, rbx
call fcn.140048f50
mov eax, dword [rbx + 0x28]
cmp byte [rbx], r12b
je 0x1400509bd
sub edi, dword [rbx + 0x18]
sub edi, eax
mov dword [rbx + 0x54], edi
mov qword [rsi], 1
jmp 0x140050913
mov edi, ebp
sub edi, dword [rbx + 0x1c]
sub edi, eax
mov dword [rbx + 0x54], edi
mov qword [rsi], 1
jmp 0x140050913
call qword [sym.imp.USER32.dll_GetCapture]
cmp rax, qword [rbx - 0x40]
jne 0x140050c45
mov r8d, ebp
mov edx, edi
mov rcx, rbx
call fcn.14004b250
test al, al
jne 0x140050c45
call qword [sym.imp.USER32.dll_ReleaseCapture]
mov qword [rsi], 1
jmp 0x140050913
cmp edi, 0x202
jne 0x140050a3a
call qword [sym.imp.USER32.dll_GetCapture]
cmp rax, qword [rbx - 0x40]
jne 0x140050c45
mov eax, dword [rbx + 0x28]
mov dword [rbx + 0x2c], eax
call qword [sym.imp.USER32.dll_ReleaseCapture]
mov qword [rsi], 1
jmp 0x140050913
cmp edi, 0x203
jne 0x140050a5f
mov r8b, 1
mov edx, 0xffffffff
mov rcx, rbx
call fcn.1400548a0
mov eax, 1
mov qword [rsi], r12
jmp 0x140050915
cmp edi, 0x215
jne 0x140050ac4
cmp byte [rbx + 0x50], r12b
jne 0x140050a75
mov rcx, rbx
call fcn.140048f50
mov eax, dword [rbx + 0x2c]
cmp eax, 0xffffffff
je 0x140050aa4
cmp byte [rbx + 0x50], r12b
je 0x140050a88
cmp dword [rbx + 0x28], eax
je 0x140050aa4
mov rcx, rbx
mov dword [rbx + 0x28], eax
mov dword [rbx + 0x2c], 0xffffffff
call fcn.140034e80
mov rcx, qword [rbx - 0x40]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je case.0x140050b07.14
call qword [sym.imp.USER32.dll_SetFocus]
mov eax, 1
mov qword [rsi], r12
jmp 0x140050915
cmp edi, 0x100
jne 0x140050c17
call qword [sym.imp.USER32.dll_GetCapture]
cmp rax, qword [rbx - 0x40]
jne 0x140050910
lea rax, [rbp - 0xd]
cmp rax, 0x1b
ja case.0x140050b07.14
lea rdx, [0x140000000]
movzx eax, byte [rdx + rax + 0x50d28]
mov ecx, dword [rdx + rax*4 + 0x50d14]
add rcx, rdx
jmp rcx
mov eax, dword [rbx + 0x28]
mov dword [rbx + 0x2c], eax
call qword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, 1
mov qword [rsi], r12
jmp 0x140050915
cmp byte [rbx], r12b
je case.0x140050b07.14
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], r12
call qword [sym.imp.USER32.dll_GetCursorPos]
mov r9d, dword [rbx + 0x4c]
cmp rbp, 0x25
mov edx, dword [rbx + 0x48]
mov eax, 0xfffffff6
mov r8d, dword [rbx + 0x28]
mov ecx, 0xa
cmove ecx, eax
add ecx, r8d
lea eax, [rdx + r9]
cmp ecx, eax
jl 0x140050b77
mov eax, dword [rbx + 0x20]
sub eax, dword [rbx + 0x3c]
sub eax, dword [rbx + 0x18]
sub eax, edx
mov edx, ecx
sub eax, r9d
cmp ecx, eax
cmovg edx, eax
mov ecx, dword [rsp + 0x30]
sub edx, r8d
add ecx, edx
mov edx, dword [rsp + 0x34]
mov dword [rsp + 0x30], ecx
call qword [sym.imp.USER32.dll_SetCursorPos]
mov eax, 1
mov qword [rsi], r12
jmp 0x140050915
cmp byte [rbx], r12b
jne case.0x140050b07.14
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x38], r12
call qword [sym.imp.USER32.dll_GetCursorPos]
mov r9d, dword [rbx + 0x4c]
cmp rbp, 0x26
mov r8d, dword [rbx + 0x48]
mov eax, 0xfffffff6
mov edx, dword [rbx + 0x28]
mov ecx, 0xa
cmove ecx, eax
add ecx, edx
lea eax, [r8 + r9]
cmp ecx, eax
jl 0x140050bf2
mov eax, dword [rbx + 0x24]
sub eax, dword [rbx + 0x3c]
sub eax, dword [rbx + 0x1c]
sub eax, r8d
mov r8d, ecx
sub eax, r9d
cmp ecx, eax
cmovg r8d, eax
mov ecx, dword [rsp + 0x38]
sub r8d, edx
mov edx, dword [rsp + 0x3c]
add edx, r8d
mov dword [rsp + 0x3c], edx
call qword [sym.imp.USER32.dll_SetCursorPos]
mov eax, 1
mov qword [rsi], r12
jmp 0x140050915
cmp edi, 7
jne 0x140050c51
call qword [sym.imp.USER32.dll_GetCapture]
cmp rax, qword [rbx - 0x40]
je 0x140050c45
movsxd rax, dword [rbx + 0x64]
cmp eax, 0xffffffff
jne 0x140050c3a
movsxd rax, dword [rbx + 0x38]
cmp eax, 1
ja 0x140050c45
mov rcx, qword [rbx + rax*8 + 8]
call qword [sym.imp.USER32.dll_SetFocus]
mov qword [rsi], 1
jmp 0x140050913
cmp edi, 0x21
jne 0x140050c83
mov r9, qword [rsp + 0x80]
lea rax, [rsp + 0x90]
mov r8, rbp
mov qword [rsp + 0x20], rax
mov edx, edi
mov rcx, rbx
call fcn.14004dac0
mov qword [rsi], rax
lea eax, [rdi - 0x20]
jmp 0x140050915
cmp edi, 0x1a
jne 0x140050913
test cl, 0x10
jne 0x140050ca4
movzx eax, byte [rbx]
neg al
sbb ecx, ecx
add ecx, 0x21
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rbx + 0x3c], eax
mov rcx, qword [rbx - 0x40]
mov edx, 0xffffffec
call qword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0x200
movzx eax, byte [rbx]
je 0x140050cd4
neg al
sbb ecx, ecx
add ecx, 0x2e
call qword [sym.imp.USER32.dll_GetSystemMetrics]
add eax, eax
mov dword [rbx + 0x4c], eax
mov eax, r12d
jmp 0x140050ce7
neg al
mov dword [rbx + 0x4c], r12d
sbb ecx, ecx
add ecx, 0x2e
call qword [sym.imp.USER32.dll_GetSystemMetrics]
add eax, eax
xor edx, edx
mov dword [rbx + 0x48], eax
lea r8, [rbx + 0x50]
xor r9d, r9d
lea ecx, [rdx + 0x26]
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
mov rcx, rbx
call fcn.140034e80
mov eax, 1
mov qword [rsi], r12
jmp 0x140050915