Function at 0x14004e1e8
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 0x14004e257
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x14004e257
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.1400d5374
cmp ebp, 0x201
jne 0x14004e355
cmp dword [0x140258fb8], 0
jne 0x14004e285
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x14004e355
mov rbx, qword [0x140259040]
test rbx, rbx
je 0x14004e355
mov rdi, rbx
mov rbx, qword [rbx]
mov rdi, qword [rdi + 0x10]
test rdi, rdi
je 0x14004e34f
mov rcx, qword [rdi + 0x40]
call fcn.14001bd3c
test rax, rax
je 0x14004e28c
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 0x14004e28c
mov edx, eax
mov rcx, rdi
call fcn.14002d5f4
mov rcx, rax
mov rbx, rax
mov rdx, qword [rax]
call qword [rdx + 0x70]
test rax, rax
je 0x14004e355
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x70]
cmp rax, rsi
jne 0x14004e355
mov rdx, qword [rsp + 0x60]
lea rcx, [rbx + 0x60]
call qword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x14004e355
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 0x14004e63b
call fcn.14001501c
int3
xor esi, esi
cmp dword [0x140258fb8], esi
jne 0x14004e639
mov rcx, qword [0x140259f88]
test rcx, rcx
je 0x14004e639
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14004e639
mov rax, qword [rsp + 0x70]
mov rcx, qword [0x140259f88]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x60], rax
call fcn.140049628
cmp eax, 4
jne 0x14004e674
call fcn.14004a76c
mov rdi, rax
test rax, rax
je 0x14004e433
mov rcx, qword [rax + 0x17f0]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14004e433
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 0x14004e433
mov rcx, qword [rdi + 0x17f0]
call fcn.14001bd3c
lea rcx, str.CMFCPopupMenu
mov rdx, rax
call fcn.14005a468
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 [0x140259f88], rbx
xor eax, eax
jmp 0x14004e63b
mov rcx, qword [0x140259f88]
lea rdx, [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x350]
mov rdi, rax
test rax, rax
je 0x14004e589
lea rcx, str.CMFCPopupMenuBar
mov rdx, rax
call fcn.14005a468
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 0x14004e4ff
test rbx, rbx
je 0x14004e4a8
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x848]
test eax, eax
je 0x14004e4d2
mov rcx, qword [0x140259f88]
mov rax, qword [rcx]
call qword [rax + 0x340]
test eax, eax
jne 0x14004e4d2
mov rcx, qword [0x140259f88]
xor r9d, r9d
lea edx, [rax + 0x10]
mov rcx, qword [rcx + 0x40]
jmp 0x14004e33c
cmp ebp, 0x204
je 0x14004e4e6
cmp ebp, 0x205
jne 0x14004e345
mov rax, qword [0x140259f88]
cmp qword [rax + 0x17e8], rsi
je 0x14004e345
jmp 0x14004e42c
test rbx, rbx
je 0x14004e589
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x848]
test eax, eax
jne 0x14004e589
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.14001bcf8
lea rcx, str.CMFCPopupMenu
mov rdx, rax
call fcn.14005a468
mov rbx, rax
test rax, rax
je 0x14004e589
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.140049628
test eax, eax
je 0x14004e42c
jle 0x14004e589
cmp eax, 2
jle 0x14004e64e
cmp eax, 3
je 0x14004e42c
cmp eax, 5
je 0x14004e42c
mov rcx, qword [0x140259f88]
mov rax, qword [rcx]
call qword [rax + 0x340]
test eax, eax
jne 0x14004e639
mov rcx, qword [0x140259f88]
mov rax, qword [rcx]
call qword [rax + 0x360]
mov rcx, qword [0x140259f88]
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.14001bcf8
test rax, rax
je 0x14004e605
lea rdx, str.CMFCToolBar
mov rcx, rax
call fcn.14005a434
test eax, eax
je 0x14004e605
mov rcx, qword [r12 + 0x118]
call fcn.14001259c
test esi, esi
je 0x14004e639
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.USER32.dll_WindowFromPoint]
mov rcx, rax
call fcn.14001bcf8
lea rcx, str.CView
mov rdx, rax
call fcn.14005a468
test rax, rax
je 0x14004e637
cmp qword [rax + 0x40], 0
jne 0x14004e639
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.14001259c
jmp 0x14004e345
cmp eax, 1
je 0x14004e67e
cmp eax, 2
jne 0x14004e639
mov rcx, qword [0x140259f88]
mov rcx, qword [rcx + 0x40]
jmp 0x14004e652