Function at 0x14004b6d0
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 0x14004b73f
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x14004b73f
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.1400d2804
cmp ebp, 0x201
jne 0x14004b83d
cmp dword [0x140254ef8], 0
jne 0x14004b76d
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x14004b83d
mov rbx, qword [0x140254f80]
test rbx, rbx
je 0x14004b83d
mov rdi, rbx
mov rbx, qword [rbx]
mov rdi, qword [rdi + 0x10]
test rdi, rdi
je 0x14004b837
mov rcx, qword [rdi + 0x40]
call fcn.1400191c0
test rax, rax
je 0x14004b774
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 0x14004b774
mov edx, eax
mov rcx, rdi
call fcn.14002aa40
mov rcx, rax
mov rbx, rax
mov rdx, qword [rax]
call qword [rdx + 0x70]
test rax, rax
je 0x14004b83d
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x70]
cmp rax, rsi
jne 0x14004b83d
mov rdx, qword [rsp + 0x60]
lea rcx, [rbx + 0x60]
call qword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x14004b83d
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 0x14004bb23
call fcn.1400124d4
int3
xor esi, esi
cmp dword [0x140254ef8], esi
jne 0x14004bb21
mov rcx, qword [0x140255ec8]
test rcx, rcx
je 0x14004bb21
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14004bb21
mov rax, qword [rsp + 0x70]
mov rcx, qword [0x140255ec8]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x60], rax
call fcn.140046be0
cmp eax, 4
jne 0x14004bb5c
call fcn.140047d24
mov rdi, rax
test rax, rax
je 0x14004b91b
mov rcx, qword [rax + 0x17f0]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14004b91b
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 0x14004b91b
mov rcx, qword [rdi + 0x17f0]
call fcn.1400191c0
lea rcx, str.CMFCPopupMenu
mov rdx, rax
call fcn.1400577f4
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 [0x140255ec8], rbx
xor eax, eax
jmp 0x14004bb23
mov rcx, qword [0x140255ec8]
lea rdx, [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x350]
mov rdi, rax
test rax, rax
je 0x14004ba71
lea rcx, str.CMFCPopupMenuBar
mov rdx, rax
call fcn.1400577f4
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 0x14004b9e7
test rbx, rbx
je 0x14004b990
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x848]
test eax, eax
je 0x14004b9ba
mov rcx, qword [0x140255ec8]
mov rax, qword [rcx]
call qword [rax + 0x340]
test eax, eax
jne 0x14004b9ba
mov rcx, qword [0x140255ec8]
xor r9d, r9d
lea edx, [rax + 0x10]
mov rcx, qword [rcx + 0x40]
jmp 0x14004b824
cmp ebp, 0x204
je 0x14004b9ce
cmp ebp, 0x205
jne 0x14004b82d
mov rax, qword [0x140255ec8]
cmp qword [rax + 0x17e8], rsi
je 0x14004b82d
jmp 0x14004b914
test rbx, rbx
je 0x14004ba71
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x848]
test eax, eax
jne 0x14004ba71
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.14001917c
lea rcx, str.CMFCPopupMenu
mov rdx, rax
call fcn.1400577f4
mov rbx, rax
test rax, rax
je 0x14004ba71
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.140046be0
test eax, eax
je 0x14004b914
jle 0x14004ba71
cmp eax, 2
jle 0x14004bb36
cmp eax, 3
je 0x14004b914
cmp eax, 5
je 0x14004b914
mov rcx, qword [0x140255ec8]
mov rax, qword [rcx]
call qword [rax + 0x340]
test eax, eax
jne 0x14004bb21
mov rcx, qword [0x140255ec8]
mov rax, qword [rcx]
call qword [rax + 0x360]
mov rcx, qword [0x140255ec8]
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.14001917c
test rax, rax
je 0x14004baed
lea rdx, str.CMFCToolBar
mov rcx, rax
call fcn.1400577c0
test eax, eax
je 0x14004baed
mov rcx, qword [r12 + 0x118]
call fcn.14000fb24
test esi, esi
je 0x14004bb21
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.USER32.dll_WindowFromPoint]
mov rcx, rax
call fcn.14001917c
lea rcx, str.CView
mov rdx, rax
call fcn.1400577f4
test rax, rax
je 0x14004bb1f
cmp qword [rax + 0x40], 0
jne 0x14004bb21
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.14000fb24
jmp 0x14004b82d
cmp eax, 1
je 0x14004bb66
cmp eax, 2
jne 0x14004bb21
mov rcx, qword [0x140255ec8]
mov rcx, qword [rcx + 0x40]
jmp 0x14004bb3a