Function at 0x140051394
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rdi, rcx
mov ecx, 0x11
mov rbx, rdx
call qword [sym.imp.USER32.dll_GetKeyState]
xor r15d, r15d
cmp ax, r15w
jge 0x1400513cb
lea eax, [r15 + 1]
jmp 0x14005179f
lea rcx, str.CPaneFrameWnd
mov rdx, rbx
mov esi, 1
call fcn.1400580b0
mov rbp, rax
mov rax, qword [rdi + 0x308]
cmp rax, r15
je 0x1400513fd
cmp dword [rax + 0xc], r15d
je 0x1400513fd
mov r13d, esi
cmp dword [rax + 8], r15d
jne 0x140051400
mov r13d, r15d
cmp rbp, r15
je 0x14005179d
mov rcx, qword [rbx + 0x40]
lea rdx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov r11, qword [rbp]
mov rcx, rbp
call qword [r11 + 0x290]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
lea rcx, vtable.CGlobalUtils.0
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x4c], eax
call fcn.1400ca9f4
mov r9d, dword [rsp + 0x54]
mov r8d, dword [rsp + 0x50]
mov dword [rsp + 0x30], 0x15
xor edx, edx
mov rcx, rbp
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
call fcn.14001019c
lea rcx, [rsp + 0xb8]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov r11, qword [rbp]
mov rcx, rbp
call qword [r11 + 0x300]
lea rcx, str.CPane
mov rdx, rax
call fcn.1400580b0
mov r12, rax
cmp rax, r15
je 0x1400514da
cmp r13d, r15d
jne 0x1400515a8
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x330]
test al, 0x40
je 0x1400515a8
lea rdx, str.CDockablePane
mov rcx, r12
call fcn.14005807c
cmp eax, r15d
je 0x1400515a8
mov rax, qword [rdi]
mov rdx, qword [rsp + 0xb8]
mov r9d, esi
mov r8, rbp
mov rcx, rdi
call qword [rax + 0x28]
mov r14, rax
cmp rax, r15
je 0x1400515a8
mov rcx, qword [rax + 0xf0]
call fcn.1400197ac
mov rcx, qword [rbp + 0xf0]
mov rbx, rax
call fcn.1400197ac
cmp rbx, rax
jne 0x1400515a8
lea rcx, str.CMultiPaneFrameWnd
mov rdx, r14
call fcn.1400580b0
mov rbx, rax
cmp rax, r15
je 0x14005179d
cmp qword [rdi + 0x1f8], r15
jne 0x140051557
call fcn.140185940
mov qword [rdi + 0x1f8], rbx
mov dword [rdi + 0x200], eax
cmp qword [rdi + 0x1f8], rbx
jne 0x14005179d
call fcn.140185940
sub eax, dword [rdi + 0x200]
cmp eax, dword [0x14024a9a4]
jle 0x14005179d
mov rax, qword [rbx]
mov r8d, esi
mov rdx, rbp
mov rcx, rbx
call qword [rax + 0x440]
mov ebx, eax
call fcn.140185940
mov qword [rdi + 0x1f8], r15
mov dword [rdi + 0x200], eax
mov eax, ebx
jmp 0x14005179f
mov qword [rdi + 0x1f8], r15
cmp r12, r15
je 0x14005179d
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 0x2e0]
test eax, 0xf000
je 0x14005179d
mov rax, qword [r12]
mov edx, dword [0x14024a9b0]
lea r8, [rsp + 0xb0]
mov rcx, r12
mov qword [rsp + 0xb0], r15
call qword [rax + 0x520]
mov ebx, eax
mov rax, qword [rsp + 0xb0]
cmp r12, rax
cmove ebx, r15d
cmp rax, r15
jne 0x140051612
cmp ebx, 2
jne 0x1400516cd
cmp r13d, r15d
jne 0x1400516cd
cmp rax, r15
je 0x14005163a
lea rdx, str.CDockSite
mov rcx, rax
call fcn.14005807c
mov r15d, eax
mov rax, qword [rsp + 0xb0]
test rax, rax
je 0x14005165b
lea rdx, str.CDockablePane
mov rcx, rax
call fcn.14005807c
mov r11d, eax
mov rax, qword [rsp + 0xb0]
jmp 0x14005165e
mov r11d, esi
test r15d, r15d
jne 0x140051668
test r11d, r11d
je 0x1400516ca
mov r14d, dword [0x14024a9a4]
test r15d, r15d
cmovne r14d, dword [0x14024a9a0]
cmp qword [rdi + 0x1f0], rax
jne 0x14005168b
cmp ebx, dword [rdi + 0x204]
je 0x1400516b6
call fcn.140185940
mov edx, r14d
mov rcx, rbp
mov dword [rdi + 0x200], eax
mov rax, qword [rsp + 0xb0]
mov dword [rdi + 0x204], ebx
mov qword [rdi + 0x1f0], rax
call fcn.1400eed44
call fcn.140185940
sub eax, dword [rdi + 0x200]
cmp eax, r14d
jl 0x14005179d
xor r15d, r15d
mov qword [rdi + 0x1f0], r15
call fcn.140185940
mov rcx, rbp
mov dword [rdi + 0x200], eax
mov dword [rdi + 0x204], r15d
call fcn.1400edac4
cmp ebx, esi
jne 0x140051737
mov r8, qword [rsp + 0xb0]
cmp r8, r15
je 0x140051789
mov rax, qword [rbp]
mov r9d, esi
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [rax + 0x2d0]
mov r11, qword [r12]
mov rdx, qword [rsp + 0xb0]
mov rcx, r12
call qword [r11 + 0x4f8]
cmp eax, r15d
je 0x140051781
xor eax, eax
jmp 0x14005179f
cmp ebx, 2
jne 0x14005174d
cmp r13d, r15d
jne 0x140051781
mov r8, qword [rsp + 0xb0]
mov edx, esi
jmp 0x14005178b
cmp ebx, 3
jne 0x140051781
cmp r13d, r15d
jne 0x140051781
mov rax, qword [rbp]
mov r8, qword [rsp + 0xb0]
lea edx, [rbx - 1]
mov r9d, esi
mov rcx, rbp
call qword [rax + 0x2d0]
xor edx, edx
mov rcx, rdi
mov esi, eax
mov rax, qword [rdi]
call qword [rax + 0x70]
jmp 0x14005179d
mov r8, qword [rsp + 0xb0]
xor edx, edx
mov rax, qword [rbp]
mov r9d, esi
mov rcx, rbp
call qword [rax + 0x2d0]
mov esi, eax
mov eax, esi
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret