Function at 0x14004e4e4
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x18], r8
push rsi
push rdi
push r12
sub rsp, 0x40
mov r12, rcx
mov rcx, qword [rcx + 0x180]
mov rsi, r9
mov ebp, edx
test rcx, rcx
je 0x14004e553
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x14004e553
mov rcx, qword [r12 + 0x180]
lea rdx, [rsp + 0x20]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_PtInRect]
mov rcx, qword [r12 + 0x180]
mov edx, eax
call fcn.1400d591c
cmp ebp, 0x201
jne 0x14004e651
cmp dword [0x140257f98], 0
jne 0x14004e581
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x14004e651
mov rbx, qword [0x140258020]
test rbx, rbx
je 0x14004e651
mov rdi, rbx
mov rbx, qword [rbx]
mov rdi, qword [rdi + 0x10]
test rdi, rdi
je 0x14004e64b
mov rcx, qword [rdi + 0x40]
call fcn.14001bd38
test rax, rax
je 0x14004e588
mov rax, qword [rsp + 0x70]
mov rcx, qword [rdi + 0x40]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x60], rax
call qword [sym.imp.USER32.dll_ScreenToClient]
mov r11, qword [rdi]
mov rdx, qword [rsp + 0x60]
mov rcx, rdi
call qword [r11 + 0x6d8]
test eax, eax
js 0x14004e588
mov edx, eax
mov rcx, rdi
call fcn.14002d8d0
mov rcx, rax
mov rbx, rax
mov rdx, qword [rax]
call qword [rdx + 0x70]
test rax, rax
je 0x14004e651
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x70]
cmp rax, rsi
jne 0x14004e651
mov rdx, qword [rsp + 0x60]
lea rcx, [rbx + 0x60]
call qword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x14004e651
movzx r9d, word [rsp + 0x64]
movzx eax, word [rsp + 0x60]
mov rcx, qword [rdi + 0x40]
shl r9d, 0x10
mov edx, 0x201
or r9, rax
xor r8d, r8d
call qword [sym.imp.USER32.dll_SendMessageW]
mov eax, 1
jmp 0x14004e937
call fcn.14001505c
int3
xor esi, esi
cmp dword [0x140257f98], esi
jne 0x14004e935
mov rcx, qword [0x140258f68]
test rcx, rcx
je 0x14004e935
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14004e935
mov rax, qword [rsp + 0x70]
mov rcx, qword [0x140258f68]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x60], rax
call fcn.1400499b8
cmp eax, 4
jne 0x14004e970
call fcn.14004aafc
mov rdi, rax
test rax, rax
je 0x14004e72f
mov rcx, qword [rax + 0x17f0]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14004e72f
mov rcx, qword [rdi + 0x17f0]
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x14004e72f
mov rcx, qword [rdi + 0x17f0]
call fcn.14001bd38
lea rcx, str.CMFCPopupMenu
mov rdx, rax
call fcn.14005a7e4
mov rcx, qword [rdi + 0x40]
and qword [rdi + 0x17f0], rsi
lea edx, [rsi + 0x10]
xor r9d, r9d
xor r8d, r8d
mov rbx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
mov qword [0x140258f68], rbx
xor eax, eax
jmp 0x14004e937
mov rcx, qword [0x140258f68]
lea rdx, [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x350]
mov rdi, rax
test rax, rax
je 0x14004e885
lea rcx, str.CMFCPopupMenuBar
mov rdx, rax
call fcn.14005a7e4
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x60], rcx
mov rcx, qword [rdi + 0x40]
mov rbx, rax
call qword [sym.imp.USER32.dll_ScreenToClient]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x14004e7fb
test rbx, rbx
je 0x14004e7a4
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x848]
test eax, eax
je 0x14004e7ce
mov rcx, qword [0x140258f68]
mov rax, qword [rcx]
call qword [rax + 0x340]
test eax, eax
jne 0x14004e7ce
mov rcx, qword [0x140258f68]
xor r9d, r9d
lea edx, [rax + 0x10]
mov rcx, qword [rcx + 0x40]
jmp 0x14004e638
cmp ebp, 0x204
je 0x14004e7e2
cmp ebp, 0x205
jne 0x14004e641
mov rax, qword [0x140258f68]
cmp qword [rax + 0x17e8], rsi
je 0x14004e641
jmp 0x14004e728
test rbx, rbx
je 0x14004e885
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x848]
test eax, eax
jne 0x14004e885
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x830]
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
call fcn.14001bcf4
lea rcx, str.CMFCPopupMenu
mov rdx, rax
call fcn.14005a7e4
mov rbx, rax
test rax, rax
je 0x14004e885
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.1400499b8
test eax, eax
je 0x14004e728
jle 0x14004e885
cmp eax, 2
jle 0x14004e94a
cmp eax, 3
je 0x14004e728
cmp eax, 5
je 0x14004e728
mov rcx, qword [0x140258f68]
mov rax, qword [rcx]
call qword [rax + 0x340]
test eax, eax
jne 0x14004e935
mov rcx, qword [0x140258f68]
mov rax, qword [rcx]
call qword [rax + 0x360]
mov rcx, qword [0x140258f68]
mov rcx, qword [rcx + 0x40]
test eax, eax
sete sil
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_SendMessageW]
call qword [sym.imp.USER32.dll_GetFocus]
mov rcx, rax
call fcn.14001bcf4
test rax, rax
je 0x14004e901
lea rdx, str.CMFCToolBar
mov rcx, rax
call fcn.14005a7b0
test eax, eax
je 0x14004e901
mov rcx, qword [r12 + 0x118]
call fcn.1400126b0
test esi, esi
je 0x14004e935
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.USER32.dll_WindowFromPoint]
mov rcx, rax
call fcn.14001bcf4
lea rcx, str.CView
mov rdx, rax
call fcn.14005a7e4
test rax, rax
je 0x14004e933
cmp qword [rax + 0x40], 0
jne 0x14004e935
xor esi, esi
mov eax, esi
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
mov rcx, qword [rbx + 0x40]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [r12 + 0x118]
call fcn.1400126b0
jmp 0x14004e641
cmp eax, 1
je 0x14004e97a
cmp eax, 2
jne 0x14004e935
mov rcx, qword [0x140258f68]
mov rcx, qword [rcx + 0x40]
jmp 0x14004e94e