Function at 0x1400d7ca4
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
cmp qword [0x1401a76d8], 0
mov rsi, rdx
mov rdi, rcx
jne 0x1400d7d37
mov rcx, qword [0x1401790a0]
lea rdx, str.MENUACC
call qword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov rcx, qword [0x1401790a0]
lea rdx, str.LISTACC
mov qword [0x1401a76d8], rax
call qword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov rcx, qword [0x1401790a0]
lea rdx, str.FILEACC
mov qword [0x1401a76e0], rax
call qword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov rcx, qword [0x1401790a0]
lea rdx, str.VIEWACC
mov qword [0x1401a76e8], rax
call qword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov qword [0x1401a76f0], rax
xor r9d, r9d
lea rcx, [rbp - 0x30]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x1400d8062
mov eax, dword [0x140143d58]
cmp dword [rbp - 0x28], eax
jne 0x1400d7d7e
cmp qword [rbp - 0x20], 0
mov rbx, qword [rbp - 0x18]
setne dl
mov rcx, rbx
call fcn.1400cf608
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x1400d8060
call qword [sym.imp.USER32.dll_GetFocus]
mov rbx, rax
test rax, rax
je 0x1400d804c
cmp qword [0x140142bb0], 0
je 0x1400d7dd2
cmp qword [0x1401a76f0], 0
je 0x1400d7dd2
mov rcx, rax
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, qword [0x140142bb0]
cmp rax, rcx
jne 0x1400d7dd2
mov rdx, qword [0x1401a76f0]
lea r8, [rbp - 0x30]
call qword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x1400d8060
mov rdx, qword [0x1401a76e8]
lea rcx, [rbp - 0x30]
call fcn.1400c414c
test al, al
jne 0x1400d8060
mov rcx, qword [0x140142bb8]
test rcx, rcx
je 0x1400d7e08
lea rdx, [rbp - 0x30]
call qword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x1400d8060
mov rcx, qword [0x140142bc0]
test rcx, rcx
je 0x1400d7e26
lea rdx, [rbp - 0x30]
call qword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x1400d8060
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp dword [rbp - 0x28], 0x100
jne 0x1400d7e5c
cmp qword [rbp - 0x20], 9
jne 0x1400d7e5c
neg al
sbb ecx, ecx
and ecx, 0xfffffffe
inc ecx
call fcn.1400d8078
test al, al
jne 0x1400d8060
call fcn.1400d2cfc
mov ecx, dword [rbp - 0x28]
test eax, eax
je 0x1400d7e92
cmp ecx, 0x100
jne 0x1400d7e92
cmp qword [rbp - 0x20], 0x70
jne 0x1400d7eed
mov rcx, qword [0x140142ba0]
lea rdx, str.HELPArcComment
xor r8d, r8d
call fcn.1400c33fc
jmp 0x1400d8060
mov rax, qword [0x14016a2c0]
cmp ecx, 0x205
jne 0x1400d7ea7
cmp qword [rbp - 0x30], rax
je 0x1400d7eb6
cmp ecx, 0xa5
jne 0x1400d7ec7
cmp qword [rbp - 0x20], 5
jne 0x1400d7eed
lea rcx, [0x14016a2c0]
call fcn.1400aa964
jmp 0x1400d8060
cmp ecx, 0x203
jne 0x1400d7eed
cmp qword [rbp - 0x30], rax
jne 0x1400d7eed
mov rdx, qword [0x140142ba0]
lea rcx, [0x14016a2c0]
call fcn.1400a880c
jmp 0x1400d8060
mov rax, qword [0x140168090]
cmp rbx, rax
je 0x1400d7fac
cmp rbx, qword [0x14014e600]
je 0x1400d7fac
mov rcx, qword [0x140142bb0]
test rcx, rcx
je 0x1400d7f34
mov rdx, qword [0x1401a76f0]
test rdx, rdx
je 0x1400d7f3b
lea r8, [rbp - 0x30]
call qword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x1400d8060
mov rdx, qword [0x1401a76f0]
mov rcx, qword [0x140142bb8]
test rcx, rcx
je 0x1400d7f6f
mov rax, qword [0x1401a76e8]
test rax, rax
je 0x1400d7f6f
lea r8, [rbp - 0x30]
mov rdx, rax
call qword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x1400d8060
mov rdx, qword [0x1401a76f0]
mov rcx, qword [0x140142bc8]
test rcx, rcx
je 0x1400d8018
lea r8, [rbp - 0x30]
call qword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x1400d8060
mov rcx, qword [0x140142bc8]
lea r9, [rbp - 0x30]
xor r8d, r8d
mov edx, 0x8009
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x1400d8018
mov rdx, qword [0x1401a76e0]
test rdx, rdx
je 0x1400d7fd6
cmp rbx, rax
jne 0x1400d7fd6
mov rcx, qword [0x140142ba0]
lea r8, [rbp - 0x30]
call qword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x1400d8060
mov rdx, qword [0x1401a76d8]
test rdx, rdx
je 0x1400d7ff7
mov rcx, qword [0x140142ba0]
lea r8, [rbp - 0x30]
call qword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x1400d8060
mov rdx, qword [0x1401a76e8]
test rdx, rdx
je 0x1400d8018
mov rcx, qword [0x140142ba0]
lea r8, [rbp - 0x30]
call qword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x1400d8060
test rdi, rdi
je 0x1400d802e
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x1400d8060
test rsi, rsi
je 0x1400d804c
lea r9, [rbp - 0x30]
xor r8d, r8d
mov edx, 0x475
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x1400d8060
lea rcx, [rbp - 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageW]
mov al, 1
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop rbp
ret