Function at 0x1401915d0
Capabilities:
Check for unmoving mouse cursor
Log keystrokes via polling

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 8]
sub rsp, 0x108
movaps xmmword [rsp + 0xf0], xmm6
mov rax, qword [0x14039e2e8]
xor rax, rsp
mov qword [rbp - 0x20], rax
movzx r14d, r9b
mov byte [rsp + 0x60], r14b
movzx r12d, r8b
mov qword [rbp - 0x70], rdx
mov rdi, rcx
mov esi, dword [rbp + 0x70]
mov dword [rbp - 0x80], esi
lea rax, [rbp - 0x40]
mov qword [rbp - 0x50], rax
lea rdx, str.C:UsersScottBrAppDataLocalTempDitto_BuildQuickPaste.cpp
lea rcx, [rbp - 0x40]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
mov rbx, rax
mov dword [rbp - 0x7c], r14d
mov dword [rbp - 0x78], r12d
mov dword [rsp + 0x20], esi
mov r9d, r14d
mov r8d, r12d
lea rdx, str.Start_of_ShowQPasteWnd__AtPrevPos:__d__FromKeyboard:__d__RefillList:__d
lea rcx, [rsp + 0x70]
call fcn.14015b330
nop
mov rcx, rax
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
nop
mov r9d, 0x50
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.14015b6c0
nop
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
test r14b, r14b
jne 0x140191763
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jae 0x140191763
mov ecx, select
call qword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jae 0x140191763
mov ecx, 0xa5
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1401916db
mov ecx, 0xa2
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x140191763
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1401916fb
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_CloseWindow]
mov rcx, qword [rdi + 8]
mov rax, qword [rcx]
call qword [rax + 0xd0]
lea rdx, str.C:UsersScottBrAppDataLocalTempDitto_BuildQuickPaste.cpp
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
mov r9d, 0x5a
mov r8, rax
xor edx, edx
lea rcx, str.CloseQPasteWnd_called_closing_qpastewnd_from_keyboard
call fcn.14015b6c0
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140191738
mov rax, qword [rcx]
mov edx, 1
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor esi, esi
mov qword [rdi + 8], rsi
lea rcx, [0x1403c44c8]
call fcn.140143670
mov dl, 1
lea rcx, [rsp + 0x70]
call fcn.140169cd0
mov rcx, rax
call fcn.140146340
jmp 0x140191de3
cmp dword [0x1403c535c], 0
je 0x1401917a0
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1401917a0
mov edx, 5
call sub.mfc140u.dll_COleControlSite::SetPropertyV
mov edx, 3
mov rcx, qword [rdi + 8]
call fcn.140243160
mov rcx, qword [rdi + 8]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x140191de3
call fcn.14016ced0
mov r13d, eax
xor esi, esi
mov qword [rsp + 0x68], rsi
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x30], xmm0
mov qword [rsp + 0x58], rsi
mov rax, qword [rdi + 8]
test rax, rax
jne 0x1401917f2
mov ecx, 0x16b0
call sub.mfc140u.dll_CMFCRibbonInfo::XElementButtonLinkCtrl::XElementButtonLinkCtrl
mov qword [rbp - 0x50], rax
test rax, rax
je 0x1401917e2
mov rcx, rax
call fcn.14017ea60
jmp 0x1401917e5
mov rax, rsi
mov qword [rdi + 8], rax
test rax, rax
je 0x140191de3
mov edx, 3
mov rcx, rax
call fcn.140243160
mov rcx, qword [rdi + 8]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14019185a
mov rcx, qword [rdi + 8]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x14019185a
cmp byte [rdi + 0x10], al
jne 0x14019185a
mov rcx, qword [rdi + 8]
lea rdx, [rbp - 0x30]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [rbp - 0x24]
sub ecx, dword [rbp - 0x2c]
mov eax, dword [rbp - 0x28]
sub eax, dword [rbp - 0x30]
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x5c], ecx
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x58], rax
jmp 0x1401918b0
lea rcx, [rsp + 0x68]
call fcn.14016ce30
lea rcx, [rsp + 0x58]
call fcn.14016cf20
mov rcx, qword [rdi + 8]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1401918b0
mov rcx, qword [rdi + 8]
add rcx, 0x200
mov edx, dword [rsp + 0x58]
call fcn.140133ad0
mov dword [rsp + 0x58], eax
mov rcx, qword [rdi + 8]
add rcx, 0x200
mov edx, dword [rsp + 0x5c]
call fcn.140133ad0
mov dword [rsp + 0x5c], eax
lea rdx, [rsp + 0x50]
lea rcx, [0x1403c45e8]
call fcn.14014f980
cmp dword [rsp + 0x50], 0xffffffff
je 0x1401918d3
cmp dword [rsp + 0x54], 0xffffffff
jne 0x1401919ee
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
lea rdx, [rbp - 0x50]
mov rcx, qword [0x1403c45e8]
call qword [sym.imp.USER32.dll_GetWindowRect]
cmp byte [0x1403c45f9], 0
jne 0x140191953
mov r8d, dword [rbp - 0x48]
mov eax, r8d
mov r9d, dword [rbp - 0x50]
sub eax, r9d
test eax, eax
jle 0x140191953
mov ecx, dword [rbp - 0x44]
mov eax, ecx
mov edx, dword [rbp - 0x4c]
sub eax, edx
test eax, eax
jle 0x140191953
lea eax, [rcx + rdx]
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
lea eax, [r8 + r9]
cdq
sub eax, edx
sar eax, 1
mov r8d, eax
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x54], ecx
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x50], rcx
mov eax, dword [rsp + 0x58]
cdq
sub eax, edx
sar eax, 1
sub r8d, eax
mov dword [rsp + 0x50], r8d
jmp 0x1401919df
lea rcx, [rsp + 0x68]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x70], eax
inc eax
mov dword [rsp + 0x78], eax
mov rax, qword [rsp + 0x68]
mov rcx, rax
shr rcx, 0x20
mov dword [rsp + 0x74], ecx
shr rax, 0x20
inc eax
mov dword [rsp + 0x7c], eax
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x70], xmm0
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x40]
call fcn.14015a9a0
mov eax, dword [rbp - 0x3c]
add eax, dword [rbp - 0x34]
cdq
sub eax, edx
sar eax, 1
mov r8d, eax
mov eax, dword [rbp - 0x38]
add eax, dword [rbp - 0x40]
cdq
sub eax, edx
sar eax, 1
mov r9d, eax
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x54], r8d
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x50], rcx
mov eax, dword [rsp + 0x58]
cdq
sub eax, edx
sar eax, 1
sub r9d, eax
mov dword [rsp + 0x50], r9d
mov eax, dword [rsp + 0x5c]
cdq
sub eax, edx
sar eax, 1
neg eax
add dword [rsp + 0x54], eax
test r12b, r12b
je 0x140191a09
lea rcx, [rsp + 0x68]
call fcn.14016ce30
lea rcx, [rsp + 0x58]
call fcn.14016cf20
jmp 0x140191a48
cmp r13d, 1
jne 0x140191a1b
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x68], rax
jmp 0x140191a48
cmp r13d, 2
jne 0x140191a38
lea rcx, [rsp + 0x68]
call qword [sym.imp.USER32.dll_GetCursorPos]
add dword [rsp + 0x68], r13d
add dword [rsp + 0x6c], r13d
jmp 0x140191a48
cmp r13d, 3
jne 0x140191a48
lea rcx, [rsp + 0x68]
call fcn.14016ce30
mov r8d, dword [rsp + 0x68]
mov dword [rbp - 0x60], r8d
mov r9d, dword [rsp + 0x58]
add r9d, r8d
mov dword [rbp - 0x58], r9d
mov rax, qword [rsp + 0x68]
mov rdx, rax
shr rdx, 0x20
mov dword [rbp - 0x5c], edx
mov rcx, qword [rsp + 0x58]
shr rcx, 0x20
shr rax, 0x20
add ecx, eax
mov dword [rbp - 0x54], ecx
movzx r14d, byte [rdi + 0x10]
mov r15d, 1
cmp dword [0x1403c539c], 0
je 0x140191aaf
lea rcx, [rbp - 0x60]
call fcn.140158c30
test eax, eax
cmovne r14d, r15d
mov ecx, dword [rbp - 0x54]
mov r9d, dword [rbp - 0x58]
mov edx, dword [rbp - 0x5c]
mov r8d, dword [rbp - 0x60]
lea eax, [r9 - 0x14]
cmp r8d, eax
jge 0x140191ac3
lea eax, [rcx - 0x14]
cmp edx, eax
jl 0x140191ba2
movaps xmm6, xmmword [rbp - 0x60]
mov eax, dword [rsp + 0x50]
mov dword [rbp - 0x60], eax
add eax, 0x12c
mov dword [rbp - 0x58], eax
mov rax, qword [rsp + 0x50]
mov rcx, rax
shr rcx, 0x20
mov dword [rbp - 0x5c], ecx
shr rax, 0x20
add eax, 0x12c
mov dword [rbp - 0x54], eax
movaps xmm0, xmmword [rbp - 0x60]
movdqa xmmword [rbp - 0x60], xmm0
movzx r14d, r15b
lea rax, [rsp + 0x70]
mov qword [rbp - 0x50], rax
lea rdx, str.C:UsersScottBrAppDataLocalTempDitto_BuildQuickPaste.cpp
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
mov rbx, rax
mov ecx, dword [rbp - 0x54]
mov dword [rsp + 0x48], ecx
mov ecx, dword [rbp - 0x58]
mov dword [rsp + 0x40], ecx
mov ecx, dword [rbp - 0x5c]
mov dword [rsp + 0x38], ecx
mov ecx, dword [rbp - 0x60]
mov dword [rsp + 0x30], ecx
movdqa xmm0, xmm6
psrldq xmm0, 0xc
movd dword [rsp + 0x28], xmm0
movdqa xmm1, xmm6
psrldq xmm1, 8
movd dword [rsp + 0x20], xmm1
movdqa xmm0, xmm6
psrldq xmm0, 4
movd r9d, xmm0
movd r8d, xmm6
lea rdx, str.Invalid_initial_size__d__d__d__d__Centered_Window__d__d__d__d
lea rcx, [rbp - 0x40]
call fcn.14015b330
nop
mov rcx, rax
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
nop
mov r9d, 0xd4
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.14015b6c0
nop
lea rcx, [rbp - 0x40]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
xor bl, bl
mov rcx, qword [rdi + 8]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x140191be1
call fcn.14016dca0
test eax, eax
mov r8, qword [rbp - 0x70]
cmovne r8, rsi
mov rcx, qword [rdi + 8]
mov rax, qword [rcx]
movaps xmm0, xmmword [rbp - 0x60]
movdqa xmmword [rbp - 0x50], xmm0
lea rdx, [rbp - 0x50]
call qword [rax + 0x2e0]
mov bl, 1
mov rcx, qword [rdi + 8]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x140191c99
mov edx, 9
mov rcx, qword [rdi + 8]
call sub.mfc140u.dll_COleControlSite::SetPropertyV
lea eax, [r13 - 1]
cmp eax, 1
jbe 0x140191c1c
test r12b, r12b
jne 0x140191c1c
test r14b, r14b
je 0x140191d32
test bl, bl
je 0x140191c6e
mov rcx, qword [rdi + 8]
add rcx, 0x200
mov edx, dword [rbp - 0x58]
sub edx, dword [rbp - 0x60]
call fcn.140133ad0
add eax, dword [rbp - 0x60]
mov dword [rbp - 0x58], eax
mov rcx, qword [rdi + 8]
add rcx, 0x200
mov edx, dword [rbp - 0x54]
sub edx, dword [rbp - 0x5c]
call fcn.140133ad0
mov r8d, dword [rbp - 0x5c]
add eax, r8d
mov dword [rbp - 0x54], eax
cmp dword [0x1403c539c], 0
je 0x140191c72
lea rcx, [rbp - 0x60]
call fcn.140158c30
mov r8d, dword [rbp - 0x5c]
mov eax, dword [rbp - 0x54]
sub eax, r8d
mov r9d, dword [rbp - 0x58]
mov edx, dword [rbp - 0x60]
sub r9d, edx
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], eax
mov rcx, qword [rdi + 8]
call sub.mfc140u.dll_Ordinal_8507
jmp 0x140191d32
lea eax, [r13 - 1]
cmp eax, 1
jbe 0x140191cac
test r12b, r12b
jne 0x140191cac
test r14b, r14b
je 0x140191d24
test bl, bl
je 0x140191cfe
mov rcx, qword [rdi + 8]
add rcx, 0x200
mov edx, dword [rbp - 0x58]
sub edx, dword [rbp - 0x60]
call fcn.140133ad0
add eax, dword [rbp - 0x60]
mov dword [rbp - 0x58], eax
mov rcx, qword [rdi + 8]
add rcx, 0x200
mov edx, dword [rbp - 0x54]
sub edx, dword [rbp - 0x5c]
call fcn.140133ad0
mov r8d, dword [rbp - 0x5c]
add eax, r8d
mov dword [rbp - 0x54], eax
cmp dword [0x1403c539c], 0
je 0x140191d02
lea rcx, [rbp - 0x60]
call fcn.140158c30
mov r8d, dword [rbp - 0x5c]
mov eax, dword [rbp - 0x54]
sub eax, r8d
mov r9d, dword [rbp - 0x58]
mov edx, dword [rbp - 0x60]
sub r9d, edx
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], eax
mov rcx, qword [rdi + 8]
call sub.mfc140u.dll_Ordinal_8507
mov edx, 5
mov rcx, qword [rdi + 8]
call sub.mfc140u.dll_COleControlSite::SetPropertyV
movzx edx, byte [rsp + 0x60]
mov rcx, qword [rdi + 8]
call fcn.14018f160
mov esi, dword [rbp - 0x80]
test esi, esi
je 0x140191d52
mov edx, esi
mov rcx, qword [rdi + 8]
call fcn.14018fca0
mov rcx, qword [rdi + 8]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
lea rax, [rbp - 0x70]
mov qword [rbp - 0x50], rax
lea rdx, str.C:UsersScottBrAppDataLocalTempDitto_BuildQuickPaste.cpp
lea rcx, [rbp - 0x70]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
mov rbx, rax
mov ecx, dword [rbp - 0x54]
mov dword [rsp + 0x40], ecx
mov ecx, dword [rbp - 0x58]
mov dword [rsp + 0x38], ecx
mov ecx, dword [rbp - 0x5c]
mov dword [rsp + 0x30], ecx
mov ecx, dword [rbp - 0x60]
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], esi
mov r9d, dword [rbp - 0x7c]
mov r8d, dword [rbp - 0x78]
lea rdx, str.END_of_ShowQPasteWnd__AtPrevPos:__d__FromKeyboard:__d__RefillList:__d__Position___d__d__d__d
lea rcx, [rsp + 0x70]
call fcn.14015b330
nop
mov rcx, rax
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
nop
mov r9d, ATL::CStringT<wchar_t,StrTraitMFC_DLL<wchar_t,ATL::ChTraitsCRT<wchar_t>
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.14015b6c0
nop
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov byte [rdi + 0x10], 0
mov rcx, qword [rbp - 0x20]
xor rcx, rsp
call fcn.1402654f0
movaps xmm6, xmmword [rsp + 0xf0]
add rsp, 0x108
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret