Function at 0x14004bfa8
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 0x14004c017
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x14004c017
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.1400d30e8
cmp ebp, 0x201
jne 0x14004c115
cmp dword [0x140254ef8], 0
jne 0x14004c045
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x14004c115
mov rbx, qword [0x140254f80]
test rbx, rbx
je 0x14004c115
mov rdi, rbx
mov rbx, qword [rbx]
mov rdi, qword [rdi + 0x10]
test rdi, rdi
je 0x14004c10f
mov rcx, qword [rdi + 0x40]
call fcn.1400197ac
test rax, rax
je 0x14004c04c
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 0x14004c04c
mov edx, eax
mov rcx, rdi
call fcn.14002b280
mov rcx, rax
mov rbx, rax
mov rdx, qword [rax]
call qword [rdx + 0x70]
test rax, rax
je 0x14004c115
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x70]
cmp rax, rsi
jne 0x14004c115
mov rdx, qword [rsp + 0x60]
lea rcx, [rbx + 0x60]
call qword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x14004c115
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 0x14004c3fb
call fcn.1400129dc
int3
xor esi, esi
cmp dword [0x140254ef8], esi
jne 0x14004c3f9
mov rcx, qword [0x140255ec8]
test rcx, rcx
je 0x14004c3f9
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14004c3f9
mov rax, qword [rsp + 0x70]
mov rcx, qword [0x140255ec8]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x60], rax
call fcn.1400474b8
cmp eax, 4
jne 0x14004c434
call fcn.1400485fc
mov rdi, rax
test rax, rax
je 0x14004c1f3
mov rcx, qword [rax + 0x17f0]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14004c1f3
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 0x14004c1f3
mov rcx, qword [rdi + 0x17f0]
call fcn.1400197ac
lea rcx, str.CMFCPopupMenu
mov rdx, rax
call fcn.1400580b0
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 0x14004c3fb
mov rcx, qword [0x140255ec8]
lea rdx, [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x350]
mov rdi, rax
test rax, rax
je 0x14004c349
lea rcx, str.CMFCPopupMenuBar
mov rdx, rax
call fcn.1400580b0
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 0x14004c2bf
test rbx, rbx
je 0x14004c268
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x848]
test eax, eax
je 0x14004c292
mov rcx, qword [0x140255ec8]
mov rax, qword [rcx]
call qword [rax + 0x340]
test eax, eax
jne 0x14004c292
mov rcx, qword [0x140255ec8]
xor r9d, r9d
lea edx, [rax + 0x10]
mov rcx, qword [rcx + 0x40]
jmp 0x14004c0fc
cmp ebp, 0x204
je 0x14004c2a6
cmp ebp, 0x205
jne 0x14004c105
mov rax, qword [0x140255ec8]
cmp qword [rax + 0x17e8], rsi
je 0x14004c105
jmp 0x14004c1ec
test rbx, rbx
je 0x14004c349
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x848]
test eax, eax
jne 0x14004c349
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.140019768
lea rcx, str.CMFCPopupMenu
mov rdx, rax
call fcn.1400580b0
mov rbx, rax
test rax, rax
je 0x14004c349
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.1400474b8
test eax, eax
je 0x14004c1ec
jle 0x14004c349
cmp eax, 2
jle 0x14004c40e
cmp eax, 3
je 0x14004c1ec
cmp eax, 5
je 0x14004c1ec
mov rcx, qword [0x140255ec8]
mov rax, qword [rcx]
call qword [rax + 0x340]
test eax, eax
jne 0x14004c3f9
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.140019768
test rax, rax
je 0x14004c3c5
lea rdx, str.CMFCToolBar
mov rcx, rax
call fcn.14005807c
test eax, eax
je 0x14004c3c5
mov rcx, qword [r12 + 0x118]
call fcn.140010038
test esi, esi
je 0x14004c3f9
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.USER32.dll_WindowFromPoint]
mov rcx, rax
call fcn.140019768
lea rcx, str.CView
mov rdx, rax
call fcn.1400580b0
test rax, rax
je 0x14004c3f7
cmp qword [rax + 0x40], 0
jne 0x14004c3f9
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.140010038
jmp 0x14004c105
cmp eax, 1
je 0x14004c43e
cmp eax, 2
jne 0x14004c3f9
mov rcx, qword [0x140255ec8]
mov rcx, qword [rcx + 0x40]
jmp 0x14004c412