Function at 0x14004a020
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0xf8
movaps xmmword [rsp + 0xe0], xmm6
mov rax, qword [0x140111200]
xor rax, rsp
mov qword [rbp - 0x11], rax
mov rdi, r9
mov ebx, r8d
mov r14, rdx
mov rsi, rcx
cmp r8d, 0x1a
je 0x14004a814
cmp ebx, 0x7e
je 0x14004a792
cmp ebx, 0x312
je 0x14004a6fd
lea rcx, [rbp - 0x79]
call qword [sym.imp.USER32.dll_GetPhysicalCursorPos]
cmp ebx, dword [0x140119484]
jne 0x14004a45a
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r14, rax
xor edi, edi
mov r15d, edi
call fcn.14005e8a0
cmp byte [rax + 0x10], dil
jne 0x14004a0b7
xor edx, edx
mov rcx, r14
call qword [sym.imp.USER32.dll_MonitorFromWindow]
mov r15, rax
call fcn.14005e8a0
xorps xmm0, xmm0
mov qword [rbp - 0x61], rdi
lea r9, [rbp - 0x71]
lea r8, [0x14004e110]
xor edx, edx
xor ecx, ecx
movdqu xmmword [rbp - 0x71], xmm0
cmp byte [rax + 8], dil
je 0x14004a313
call qword [sym.imp.USER32.dll_EnumDisplayMonitors]
lea rdx, [rbp - 0x31]
mov rcx, r14
call qword [sym.imp.USER32.dll_GetWindowRect]
movabs r12, 0xaaaaaaaaaaaaaaab
test eax, eax
je 0x14004a26e
lea rbx, [rsi + 0xa8]
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movaps xmm6, xmmword [rbp - 0x31]
mov qword [rsp + 0x40], r15
lea rdx, [rsp + 0x40]
mov rcx, rbx
bt ax, 0xf
jae 0x14004a175
call fcn.14004e050
test al, al
je 0x14004a2c1
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14004c7e0
movdqa xmmword [rsp + 0x40], xmm6
lea rcx, [rsi + 0x80]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp + 0x7f]
lea r8, [rsp + 0x40]
mov rdx, r14
call fcn.14006f5f0
jmp 0x14004a2c1
call fcn.14004e050
test al, al
je 0x14004a2c1
mov qword [rsi + 0x80], rdi
mov qword [rsi + 0xa0], 0xffffffffffffffff
mov rax, qword [rsi + 0x88]
cmp rax, qword [rsi + 0x90]
je 0x14004a1ab
mov qword [rsi + 0x90], rax
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14004c7e0
mov rdi, rax
mov rcx, qword [rbp - 0x69]
sub rcx, qword [rbp - 0x71]
sar rcx, 3
imul rcx, r12
cmp rcx, 1
jbe 0x14004a248
call fcn.14005e8a0
cmp byte [rax + 7], 0
je 0x14004a248
mov rax, qword [rdi]
movdqa xmmword [rsp + 0x40], xmm6
mov esi, dword [rbp + 0x7f]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x20], 0
mov r9d, esi
lea r8, [rsp + 0x40]
mov rdx, r14
call fcn.14006eeb0
test al, al
jne 0x14004a2c1
movdqa xmmword [rsp + 0x40], xmm6
lea rax, [rbp - 0x71]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r15
mov r9d, esi
lea r8, [rsp + 0x40]
mov rdx, r14
call fcn.14006e2a0
test al, al
je 0x14004a2c1
mov rdx, r14
mov rcx, qword [rdi]
call fcn.140074ad0
jmp 0x14004a2c1
movdqa xmmword [rsp + 0x40], xmm6
mov rax, qword [rdi]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x20], 1
mov r9d, dword [rbp + 0x7f]
lea r8, [rsp + 0x40]
mov rdx, r14
call fcn.14006eeb0
jmp 0x14004a2c1
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x60], rdi
lea rax, str.Error_snapping_window_by_keyboard_shortcut:_failed_to_get_window_rect
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0x45
movups xmm0, xmmword [rsp + 0x50]
movaps xmmword [rbp - 0x51], xmm0
movsd xmm1, qword [rsp + 0x60]
movsd qword [rbp - 0x41], xmm1
lea r9, [rsp + 0x40]
mov r8d, 4
lea rdx, [rbp - 0x51]
mov rcx, qword [0x140119a58]
call fcn.1400093f0
mov rcx, qword [rbp - 0x71]
test rcx, rcx
je 0x14004a897
mov rax, qword [rbp - 0x61]
sub rax, rcx
sar rax, 3
imul rax, r12
lea rdx, [rax + rax*2]
shl rdx, 3
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a450
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004a8c7
jmp 0x14004a450
lea r13, [rsi + 0x80]
call qword [sym.imp.USER32.dll_EnumDisplayMonitors]
lea rcx, [rbp - 0x71]
call fcn.14007b750
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x31], xmm0
mov qword [rbp - 0x21], rdi
mov rdi, qword [rbp - 0x69]
mov rbx, qword [rbp - 0x71]
cmp rbx, rdi
je 0x14004a38e
mov rdx, qword [rbp - 0x29]
nop word [rax + rax]
mov rax, qword [rbx]
mov qword [rsp + 0x40], rax
cmp rdx, qword [rbp - 0x21]
je 0x14004a36f
mov qword [rdx], rax
mov rdx, qword [rbp - 0x29]
add rdx, 8
mov qword [rbp - 0x29], rdx
jmp 0x14004a381
lea r8, [rsp + 0x40]
lea rcx, [rbp - 0x31]
call fcn.14005bd10
mov rdx, qword [rbp - 0x29]
add rbx, 0x18
cmp rbx, rdi
jne 0x14004a350
mov rbx, qword [rbp - 0x71]
test rbx, rbx
je 0x14004a3e1
mov rax, qword [rbp - 0x61]
sub rax, rbx
sar rax, 3
movabs r12, 0xaaaaaaaaaaaaaaab
imul rax, r12
lea rdx, [rax + rax*2]
shl rdx, 3
mov rax, rbx
cmp rdx, 0x1000
jb 0x14004a3d9
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004a8cd
mov rcx, rbx
call fcn.14009ecd8
add rsi, 0xa8
mov r8d, dword [rbp + 0x7f]
lea eax, [r8 - 0x25]
test eax, 0xfffffffd
jne 0x14004a413
lea rax, [rbp - 0x31]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
mov r9, r15
mov rdx, r14
mov rcx, r13
call fcn.14006df80
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x14004a897
mov rdx, qword [rbp - 0x21]
sub rdx, rcx
and rdx, 0xfffffffffffffff8
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a450
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004a8c1
call fcn.14009ecd8
jmp 0x14004a897
cmp ebx, dword [0x14011947c]
jne 0x14004a4e8
lea rax, str.Initialization
mov qword [rsp + 0x40], rax
lea rax, str.Display_changed__type:_
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x29], 0x19
xor edi, edi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x60], rdi
movaps xmm0, xmmword [rbp - 0x31]
movdqa xmmword [rbp - 0x31], xmm0
movups xmm1, xmmword [rsp + 0x50]
movaps xmmword [rbp - 0x51], xmm1
movsd xmm0, qword [rsp + 0x60]
movsd qword [rbp - 0x41], xmm0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x31]
lea rdx, [rbp - 0x51]
mov rcx, qword [0x140119a58]
call fcn.140050200
call fcn.14005e8a0
movzx edx, byte [rax + 5]
mov rcx, rsi
call fcn.14004ade0
nop
jmp 0x14004a897
cmp ebx, dword [0x1401194a0]
jne 0x14004a574
lea rax, str.VirtualDesktop
mov qword [rsp + 0x40], rax
lea rax, str.Display_changed__type:_
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x29], 0x19
xor edi, edi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x60], rdi
movaps xmm0, xmmword [rbp - 0x31]
movdqa xmmword [rbp - 0x31], xmm0
movups xmm1, xmmword [rsp + 0x50]
movaps xmmword [rbp - 0x51], xmm1
movsd xmm0, qword [rsp + 0x60]
movsd qword [rbp - 0x41], xmm0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x31]
lea rdx, [rbp - 0x51]
mov rcx, qword [0x140119a58]
call fcn.140050200
call fcn.14004bd00
xor edx, edx
mov rcx, rsi
call fcn.14004ade0
nop
jmp 0x14004a897
cmp ebx, dword [0x140119474]
jne 0x14004a58a
xor edi, edi
mov qword [rsi + 0x210], rdi
jmp 0x14004a897
cmp ebx, dword [0x1401194a4]
jne 0x14004a5cc
xor edx, edx
mov rcx, qword [rbp - 0x79]
call qword [sym.imp.USER32.dll_MonitorFromPoint]
mov rbx, rax
test rax, rax
je 0x14004a897
mov r8, rax
mov rdx, rdi
mov rcx, rsi
call fcn.140048e20
lea r8, [rbp - 0x79]
mov rdx, rbx
mov rcx, rsi
call fcn.140049060
jmp 0x14004a897
cmp ebx, dword [0x14011948c]
jne 0x14004a5e1
mov rcx, rsi
call fcn.1400490f0
jmp 0x14004a897
cmp ebx, dword [0x140119470]
jne 0x14004a612
xor edx, edx
mov rcx, qword [rbp - 0x79]
call qword [sym.imp.USER32.dll_MonitorFromPoint]
test rax, rax
je 0x14004a897
lea r8, [rbp - 0x79]
mov rdx, rax
mov rcx, rsi
call fcn.140049060
jmp 0x14004a897
cmp ebx, dword [0x14011949c]
jne 0x14004a62a
mov rdx, rdi
mov rcx, rsi
call fcn.1400497f0
jmp 0x14004a897
cmp ebx, dword [0x140119494]
jne 0x14004a644
call fcn.140085430
mov rcx, rax
call fcn.1400854a0
jmp 0x14004a897
cmp ebx, dword [0x140119478]
jne 0x14004a65e
call fcn.14007dc10
mov rcx, rax
call fcn.14007dc80
jmp 0x14004a897
cmp ebx, dword [0x140119488]
jne 0x14004a678
call fcn.14006b720
mov rcx, rax
call fcn.14006b790
jmp 0x14004a897
cmp ebx, dword [0x140119480]
jne 0x14004a69a
call fcn.140065fd0
mov rcx, rax
call fcn.140066040
mov rcx, rsi
call fcn.14004c0a0
jmp 0x14004a897
cmp ebx, dword [0x140119498]
jne 0x14004a6b4
call fcn.1400790c0
mov rcx, rax
call fcn.140079130
jmp 0x14004a897
cmp ebx, dword [0x14011946c]
jne 0x14004a6cc
mov edx, dword [rbp + 0x7f]
mov rcx, rsi
call fcn.14004c100
jmp 0x14004a897
cmp ebx, dword [0x140119468]
jne 0x14004a6e6
call fcn.14005e8a0
mov rcx, rax
call fcn.14005eab0
jmp 0x14004a897
mov r9, qword [rbp + 0x7f]
mov r8, rdi
mov edx, ebx
mov rcx, r14
call qword [sym.imp.USER32.dll_DefWindowProcW]
jmp 0x14004a899
cmp rdi, 1
jne 0x14004a70d
call fcn.140049de0
jmp 0x14004a897
lea rax, [r9 - 2]
cmp rax, 1
ja 0x14004a897
cmp rdi, 3
sete r15b
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r14, rax
call fcn.14005e8a0
cmp byte [rax + 0x10], 0
je 0x14004a73b
xor edi, edi
jmp 0x14004a749
xor edx, edx
mov rcx, r14
call qword [sym.imp.USER32.dll_MonitorFromWindow]
mov rdi, rax
mov qword [rsp + 0x40], rdi
lea r8, [rsp + 0x40]
lea rdx, [rbp - 0x79]
lea rcx, [rsi + 0xa8]
call fcn.140073f10
mov rax, qword [rbp - 0x79]
cmp rax, qword [rsi + 0xb0]
je 0x14004a78d
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x14004a78d
add rcx, 0xa0
movzx r8d, r15b
mov rdx, r14
call fcn.140085cf0
nop
jmp 0x14004a897
lea rax, str.DisplayChange
mov qword [rsp + 0x40], rax
lea rax, str.Display_changed__type:_
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x29], 0x19
xor edi, edi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x60], rdi
movaps xmm0, xmmword [rbp - 0x31]
movdqa xmmword [rbp - 0x31], xmm0
movups xmm1, xmmword [rsp + 0x50]
movaps xmmword [rbp - 0x51], xmm1
movsd xmm0, qword [rsp + 0x60]
movsd qword [rbp - 0x41], xmm0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x31]
lea rdx, [rbp - 0x51]
mov rcx, qword [0x140119a58]
call fcn.140050200
call fcn.14005e8a0
movzx edx, byte [rax + 3]
mov rcx, rsi
call fcn.14004ade0
nop
jmp 0x14004a897
cmp rdi, 0x2f
jne 0x14004a897
lea rax, str.WorkArea
mov qword [rsp + 0x40], rax
lea rax, str.Display_changed__type:_
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x29], 0x19
xor edi, edi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x60], rdi
movaps xmm0, xmmword [rbp - 0x31]
movdqa xmmword [rbp - 0x31], xmm0
movups xmm1, xmmword [rsp + 0x50]
movaps xmmword [rbp - 0x51], xmm1
movsd xmm0, qword [rsp + 0x60]
movsd qword [rbp - 0x41], xmm0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x31]
lea rdx, [rbp - 0x51]
mov rcx, qword [0x140119a58]
call fcn.140050200
call fcn.14005e8a0
movzx edx, byte [rax + 3]
mov rcx, rsi
call fcn.14004ade0
nop
xor eax, eax
mov rcx, qword [rbp - 0x11]
xor rcx, rsp
call fcn.14009ea10
movaps xmm6, xmmword [rsp + 0xe0]
add rsp, 0xf8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1400a5cd4
int3
call fcn.1400a5cd4
int3
call fcn.1400a5cd4
int3