Function at 0x1400d7810
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r9d
mov r13d, r8d
mov r15d, edx
mov rdi, rcx
mov ecx, reloc.COMCTL32.dll_InitCommonControls
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
and ebx, 0x8000
mov ecx, InitCommonControls
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebp, ax
and ebp, 0x8000
xor r14d, r14d
and dword [0x1401a2518], r14d
mov ecx, r15d
sub ecx, 0x23
je 0x1400d79bc
sub ecx, 1
je 0x1400d7973
cmp ecx, 0xa
jne 0x1400d7943
mov rcx, rdi
call fcn.1400a7a84
mov rcx, qword [rax + 0x7b8]
cmp qword [rcx + 0xc0], r14
jne 0x1400d793a
test ebx, ebx
jne 0x1400d793a
test ebp, ebp
jne 0x1400d793a
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x280]
test eax, eax
jne 0x1400d793a
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x98]
test eax, eax
je 0x1400d793a
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x68]
test eax, eax
je 0x1400d793a
mov rax, qword [rdi]
lea edx, [rbx + 1]
mov rcx, rdi
call qword [rax + 0x20]
mov rax, qword [rdi]
mov rbx, qword [rax + 0xe0]
lea rdx, [0x140134658]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__12]
nop
lea rdx, [rsp + 0x30]
mov rcx, rdi
call rbx
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rax, qword [rdi]
lea edx, [rbp + 1]
mov rcx, rdi
call qword [rax + 0x38]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + VarBstrFromDisp]
lea r14d, [rbp + 1]
test r14d, r14d
jne 0x1400d7a17
mov r9d, r12d
mov r8d, r13d
mov edx, r15d
mov rcx, rdi
call fcn.1400a8ad0
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
ret
test ebx, ebx
jne 0x1400d7943
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x68]
test eax, eax
je 0x1400d7943
mov rcx, rdi
call fcn.1400a7e70
test eax, eax
jne 0x1400d79a0
mov rax, qword [rdi]
mov r8d, dword [rdi + 0x1c]
mov edx, dword [rdi + 0x18]
mov rcx, rdi
call qword [rax + 0x48]
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax + 0x20]
lea rcx, [rdi - 0xe8]
xor r8d, r8d
xor edx, edx
jmp 0x1400d7a12
test ebx, ebx
jne 0x1400d7943
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x68]
test eax, eax
je 0x1400d7943
mov rcx, rdi
call fcn.1400a7e70
test eax, eax
jne 0x1400d79ed
mov rax, qword [rdi]
mov r8d, dword [rdi + 0x1c]
mov edx, dword [rdi + 0x18]
mov rcx, rdi
call qword [rax + 0x48]
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax + 0x20]
lea rbx, [rdi - 0xe8]
mov rcx, rbx
call sub.mfc140u.dll_CMFCMousePropertyPage::GetMessageMap
mov r8d, eax
mov edx, eax
mov rcx, rbx
call sub.mfc140u.dll_CFrameWnd::SetHelpCapture
mov rcx, rdi
call fcn.1400a7a84
mov rcx, qword [rax]
mov r10, qword [rcx + 0x600]
and dword [rsp + 0x20], 0
mov r9d, 2
mov r8d, dword [rdi + 0x1c]
mov edx, dword [rdi + 0x18]
mov rcx, rax
call r10
test eax, eax
jne 0x1400d7a51
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + 0x138]
mov eax, 1
jmp 0x1400d7954