Function at 0x1400bc950
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 0x1400bc982
xor eax, eax
jmp 0x1400bca9d
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 0x1400bca8d
mov ecx, ebp
sub ecx, 0x23
je 0x1400bcbc7
sub ecx, 1
je 0x1400bcab4
cmp ecx, 0xa
jne 0x1400bca8d
mov rcx, r14
call fcn.14003ad38
mov rcx, qword [rax + 0x7b8]
cmp qword [rcx + 0xc0], 0
jne 0x1400bca8d
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x280]
test eax, eax
jne 0x1400bca8d
test edi, edi
jne 0x1400bca8d
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x98]
test eax, eax
je 0x1400bca8d
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x68]
test eax, eax
je 0x1400bca8d
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.14003ad38
mov rsi, rax
mov rcx, qword [rax]
mov rdi, qword [rcx + 0x800]
mov rbx, qword [r14 + 0x20]
lea rdx, [0x140130d34]
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.140007d00
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.14003ad38
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 0x1400bca8d
mov rcx, r14
call fcn.140089d14
test eax, eax
jne 0x1400bcb06
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 0x1400bcb9b
xor edi, edi
cmp esi, 0xffffffff
jne 0x1400bcb5e
test rdi, rdi
js 0x1400bccbe
cmp rdi, rcx
jge 0x1400bccbe
mov rcx, qword [r14 - 0x30]
mov rcx, qword [rcx + rdi*8]
call fcn.1400dbd18
test bl, al
je 0x1400bcb67
mov esi, ebp
jmp 0x1400bcb67
test rdi, rdi
js 0x1400bccbe
cmp rdi, qword [r14 - 0x28]
jge 0x1400bccbe
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 0x1400bcb32
cmp esi, 0xffffffff
je 0x1400bcb9b
mov dword [r14 - 0x70], esi
movsxd rax, dword [r14 - 0x70]
test rax, rax
js 0x1400bccbe
cmp rax, rcx
jge 0x1400bccbe
mov rcx, qword [r14 - 0x30]
mov rcx, qword [rcx + rax*8]
mov r8, qword [rcx]
mov edx, ebx
call qword [r8 + 0x38]
jmp 0x1400bccb7
mov rcx, r14
call fcn.14003ad38
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 0x1400bca8d
mov rcx, r14
call fcn.140089d14
test eax, eax
jne 0x1400bcc1d
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 0x1400bcc99
xor edi, edi
test rdi, rdi
js 0x1400bccbe
cmp rdi, rcx
jge 0x1400bccbe
mov rcx, qword [r14 - 0x30]
mov rcx, qword [rcx + rdi*8]
call fcn.1400dbd18
test bl, al
mov eax, ebp
cmove eax, esi
mov esi, eax
cmp rdi, qword [r14 - 0x28]
jge 0x1400bccbe
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 0x1400bcc49
cmp esi, 0xffffffff
je 0x1400bcc99
mov dword [r14 - 0x70], esi
movsxd rdx, dword [r14 - 0x70]
test rdx, rdx
js 0x1400bccbe
cmp rdx, rcx
jge 0x1400bccbe
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 0x1400bca9d
call sub.mfc140u.dll_AfxRegDeleteKey
int3