Function at 0x1400dd1f8
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov r15d, r9d
mov r12d, r8d
mov ebp, edx
mov r14, rcx
cmp qword [rcx - 0x170], 0
jne 0x1400dd22a
xor eax, eax
jmp 0x1400dd345
mov ecx, reloc.COMCTL32.dll_InitCommonControls
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
mov esi, 0x8000
mov ecx, InitCommonControls
call qword [sym.imp.USER32.dll_GetKeyState]
movzx edi, ax
and edi, esi
test esi, ebx
jne 0x1400dd335
mov ecx, ebp
sub ecx, 0x23
je 0x1400dd46f
sub ecx, 1
je 0x1400dd35c
cmp ecx, 0xa
jne 0x1400dd335
mov rcx, r14
call fcn.1400a7a84
mov rcx, qword [rax + 0x7b8]
cmp qword [rcx + 0xc0], 0
jne 0x1400dd335
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x280]
test eax, eax
jne 0x1400dd335
test edi, edi
jne 0x1400dd335
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x98]
test eax, eax
je 0x1400dd335
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x68]
test eax, eax
je 0x1400dd335
mov rax, qword [r14]
xor edx, edx
mov rcx, r14
call qword [rax + 0x20]
mov rax, qword [r14]
xor edx, edx
mov rcx, r14
call qword [rax + 0x38]
mov rcx, r14
call fcn.1400a7a84
mov rsi, rax
mov rcx, qword [rax]
mov rdi, qword [rcx + 0x800]
mov rbx, qword [r14 + 0x20]
lea rdx, [0x140134658]
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__12]
nop
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 2
lea r9, [rsp + 0x60]
mov r8d, dword [r14 + 0x1c]
mov edx, dword [r14 + 0x18]
mov rcx, rsi
call rdi
nop
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov r9d, r15d
mov r8d, r12d
mov edx, ebp
mov rcx, r14
call fcn.1400a8ad0
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov rcx, r14
call fcn.1400a7a84
mov r10, qword [rax]
and dword [rsp + 0x20], 0
mov r9d, 2
mov r8d, dword [r14 + 0x1c]
mov edx, dword [r14 + 0x18]
mov rcx, rax
call qword [r10 + COleCurrency::operator=]
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x68]
test eax, eax
je 0x1400dd335
mov rcx, r14
call fcn.1400a7e70
test eax, eax
jne 0x1400dd3ae
mov rax, qword [r14]
mov r8d, dword [r14 + 0x1c]
mov edx, dword [r14 + 0x18]
mov rcx, r14
call qword [rax + 0x48]
mov rax, qword [r14]
mov ebx, 1
mov edx, ebx
mov rcx, r14
call qword [rax + 0x20]
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x138]
or esi, 0xffffffff
xor ebp, ebp
mov rcx, qword [r14 - 0x28]
test rcx, rcx
jle 0x1400dd443
xor edi, edi
cmp esi, 0xffffffff
jne 0x1400dd406
test rdi, rdi
js 0x1400dd566
cmp rdi, rcx
jge 0x1400dd566
mov rcx, qword [r14 - 0x30]
mov rcx, qword [rcx + rdi*8]
call fcn.1400f68e4
test bl, al
je 0x1400dd40f
mov esi, ebp
jmp 0x1400dd40f
test rdi, rdi
js 0x1400dd566
cmp rdi, qword [r14 - 0x28]
jge 0x1400dd566
mov rax, qword [r14 - 0x30]
mov rcx, qword [rax + rdi*8]
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x38]
add ebp, ebx
add rdi, rbx
mov rcx, qword [r14 - 0x28]
movsxd rax, ebp
cmp rax, rcx
jl 0x1400dd3da
cmp esi, 0xffffffff
je 0x1400dd443
mov dword [r14 - 0x70], esi
movsxd rax, dword [r14 - 0x70]
test rax, rax
js 0x1400dd566
cmp rax, rcx
jge 0x1400dd566
mov rcx, qword [r14 - 0x30]
mov rcx, qword [rcx + rax*8]
mov r8, qword [rcx]
mov edx, ebx
call qword [r8 + 0x38]
jmp 0x1400dd55f
mov rcx, r14
call fcn.1400a7a84
mov r10, qword [rax]
and dword [rsp + 0x20], 0
mov r9d, 2
mov r8d, dword [r14 + 0x1c]
mov edx, dword [r14 + 0x18]
mov rcx, rax
call qword [r10 + COleCurrency::operator=]
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x68]
test eax, eax
je 0x1400dd335
mov rcx, r14
call fcn.1400a7e70
test eax, eax
jne 0x1400dd4c5
mov rax, qword [r14]
mov r8d, dword [r14 + 0x1c]
mov edx, dword [r14 + 0x18]
mov rcx, r14
call qword [rax + 0x48]
mov rax, qword [r14]
mov ebx, 1
mov edx, ebx
mov rcx, r14
call qword [rax + 0x20]
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x138]
or esi, 0xffffffff
xor ebp, ebp
mov rcx, qword [r14 - 0x28]
test rcx, rcx
jle 0x1400dd541
xor edi, edi
test rdi, rdi
js 0x1400dd566
cmp rdi, rcx
jge 0x1400dd566
mov rcx, qword [r14 - 0x30]
mov rcx, qword [rcx + rdi*8]
call fcn.1400f68e4
test bl, al
mov eax, ebp
cmove eax, esi
mov esi, eax
cmp rdi, qword [r14 - 0x28]
jge 0x1400dd566
mov rax, qword [r14 - 0x30]
mov rcx, qword [rax + rdi*8]
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x38]
add ebp, ebx
add rdi, rbx
mov rcx, qword [r14 - 0x28]
movsxd rax, ebp
cmp rax, rcx
jl 0x1400dd4f1
cmp esi, 0xffffffff
je 0x1400dd541
mov dword [r14 - 0x70], esi
movsxd rdx, dword [r14 - 0x70]
test rdx, rdx
js 0x1400dd566
cmp rdx, rcx
jge 0x1400dd566
mov rax, qword [r14 - 0x30]
mov rcx, qword [rax + rdx*8]
mov rax, qword [rcx]
mov edx, ebx
call qword [rax + 0x38]
mov eax, ebx
jmp 0x1400dd345
call sub.mfc140u.dll_AfxRegDeleteKey
int3