Function at 0x140160c30
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x78
mov rax, qword [0x14025f760]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r14, qword [rbp + 0x78]
xor r15d, r15d
mov r13, r9
mov qword [rbp - 0x50], r8
mov rbx, rdx
movsxd r12, ecx
and dword [r14], 0
cmp dword [rdx + 0x10], r15d
jle 0x140160c9e
movsxd rdx, dword [rdx + 0x10]
xor ecx, ecx
test rcx, rcx
js 0x1401611ad
cmp rcx, qword [rbx + 0x10]
jge 0x1401611ad
mov rax, qword [rbx + 8]
cmp qword [rax + rcx*8], r9
je 0x140160cbd
inc r15d
inc rcx
cmp rcx, rdx
jl 0x140160c76
xor eax, eax
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140192d50
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
test r15d, r15d
js 0x140160c9e
lea rdx, str.CMFCRibbonTab
mov rcx, r9
call fcn.14001b660
xor edi, edi
cmp r12d, 9
jne 0x140160edc
lea ecx, [rdi + 0x10]
movsxd r13, eax
or esi, 0xffffffff
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x140160df9
lea edi, [r15 - 1]
test edi, edi
jns 0x140160d1b
cmp dword [rbp + 0x68], 0
jne 0x140160df0
cmp dword [rbp + 0x70], 0
jne 0x140160de4
mov edi, dword [rbx + 0x10]
dec edi
cmp edi, r15d
je 0x140160c9e
test r13, r13
je 0x140160d56
movsxd rax, edi
test edi, edi
js 0x14016117d
cmp rax, qword [rbx + 0x10]
jge 0x14016117d
mov rcx, qword [rbx + 8]
lea rdx, str.CMFCRibbonTab
mov rcx, qword [rcx + rax*8]
call fcn.14001b660
test eax, eax
jne 0x140160db5
movsxd r12, edi
test edi, edi
js 0x140161189
cmp r12, qword [rbx + 0x10]
jge 0x140161189
mov rax, qword [rbx + 8]
mov rcx, qword [rax + r12*8]
mov rax, qword [rcx]
call qword [rax + 0x238]
test eax, eax
je 0x140160db5
test edi, edi
js 0x140161183
cmp r12, qword [rbx + 0x10]
jge 0x140161183
mov rax, qword [rbx + 8]
mov rcx, qword [rax + r12*8]
movups xmm0, xmmword [rcx + 0xc8]
lea rcx, [rbp - 0x40]
movdqu xmmword [rbp - 0x40], xmm0
call qword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
cmove esi, edi
dec edi
test esi, esi
js 0x140160cfe
movsxd rdi, esi
test esi, esi
js 0x14016119b
cmp rdi, qword [rbx + 0x10]
jge 0x14016119b
mov rax, qword [rbx + 8]
mov rdi, qword [rax + rdi*8]
mov rax, rdi
jmp 0x140160ca0
mov dword [r14], 2
jmp 0x140160c9e
or dword [r14], 0xffffffff
jmp 0x140160c9e
lea r12d, [r15 + 1]
movsxd r15, r15d
movsxd rdi, r12d
cmp r12d, dword [rbx + 0x10]
jl 0x140160e22
cmp dword [rbp + 0x70], 0
jne 0x140160ed0
cmp dword [rbp + 0x68], 0
jne 0x140160ec4
xor r12d, r12d
xor edi, edi
cmp rdi, r15
je 0x140160c9e
test r13, r13
je 0x140160e5b
test rdi, rdi
js 0x14016118f
cmp rdi, qword [rbx + 0x10]
jge 0x14016118f
mov rcx, qword [rbx + 8]
lea rdx, str.CMFCRibbonTab
mov rcx, qword [rcx + rdi*8]
call fcn.14001b660
test eax, eax
jne 0x140160eb1
test rdi, rdi
js 0x1401611a1
cmp rdi, qword [rbx + 0x10]
jge 0x1401611a1
mov rax, qword [rbx + 8]
mov rcx, qword [rax + rdi*8]
mov rax, qword [rcx]
call qword [rax + 0x238]
test eax, eax
je 0x140160eb1
cmp rdi, qword [rbx + 0x10]
jge 0x140161195
mov rax, qword [rbx + 8]
mov rcx, qword [rax + rdi*8]
movups xmm0, xmmword [rcx + 0xc8]
lea rcx, [rbp - 0x40]
movdqu xmmword [rbp - 0x40], xmm0
call qword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
cmove esi, r12d
inc r12d
inc rdi
test esi, esi
jns 0x140160dbf
jmp 0x140160e03
mov dword [r14], 0xfffffffe
jmp 0x140160c9e
mov dword [r14], 1
jmp 0x140160c9e
mov rax, qword [r13]
mov rcx, r13
call qword [rax + 0x2c0]
test eax, eax
jne 0x140160c9e
movups xmm0, xmmword [r13 + 0xc8]
mov ecx, r12d
mov qword [rbp - 0x48], r12
mov r8, r12
movdqu xmmword [rbp - 0x40], xmm0
sub ecx, 0x25
je 0x14016101c
sub ecx, 1
je 0x140160f28
sub ecx, 1
je 0x14016101c
cmp ecx, 1
jne 0x140160ddc
mov r13, qword [rbp - 0x40]
mov rcx, qword [rbp - 0x38]
lea eax, [rcx + r13]
shr rcx, 0x20
inc ecx
shr r13, 0x20
cdq
dec r13d
sub eax, edx
sar eax, 1
cmp r12d, 0x28
mov r14d, eax
mov r12, qword [rbp - 0x50]
mov r15d, r14d
cmove r13d, ecx
mov dword [rbp - 0x58], r14d
mov ecx, 0xfffffffb
mov qword [rbp - 0x40], r13
lea eax, [rcx + 0xa]
cmove ecx, eax
mov dword [rbp - 0x54], ecx
mov esi, r13d
cmp r15d, dword [r12]
jge 0x140160f82
cmp r14d, dword [r12 + 8]
jg 0x140160ddc
test rdi, rdi
jne 0x140161004
mov r13d, dword [rbp - 0x54]
mov dword [rbp - 0x50], r15d
mov r15, qword [rbp - 0x48]
mov dword [rbp - 0x4c], esi
mov rdx, rbx
mov rcx, qword [rbp - 0x50]
call fcn.140160bb0
mov rdi, rax
test rax, rax
jne 0x140160fc5
mov dword [rbp - 0x30], r14d
mov rdx, rbx
mov dword [rbp - 0x2c], esi
mov rcx, qword [rbp - 0x30]
call fcn.140160bb0
mov rdi, rax
test rax, rax
je 0x140160fd9
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x238]
neg eax
sbb rcx, rcx
and rdi, rcx
add esi, r13d
cmp r15, 0x28
jne 0x140160feb
cmp esi, dword [r12 + 0xc]
jg 0x140160ff7
jmp 0x140160ff2
cmp esi, dword [r12 + 4]
jl 0x140160ff7
test rdi, rdi
je 0x140160f93
mov r15d, dword [rbp - 0x58]
mov eax, 5
mov r13, qword [rbp - 0x40]
sub r15d, eax
add r14d, eax
mov dword [rbp - 0x58], r15d
test rdi, rdi
je 0x140160f6e
jmp 0x140160ddc
mov rdx, qword [rbp - 0x40]
mov ecx, 0xfffffffb
cmp r12d, 0x27
lea eax, [rcx + 0xa]
cmove ecx, eax
lea esi, [rdx - 6]
mov dword [rbp - 0x54], ecx
mov rcx, qword [rbp - 0x38]
lea eax, [rcx + 1]
cmove esi, eax
mov rax, qword [rbp - 0x50]
cmp r8, 0x27
jne 0x140161066
cmp esi, dword [rax + 8]
jle 0x140161081
cmp dword [rbp + 0x70], 0
jne 0x140160ed0
cmp dword [rbp + 0x68], 0
jne 0x140160ec4
mov esi, dword [rax]
jmp 0x140161081
cmp esi, dword [rax]
jge 0x140161081
cmp dword [rbp + 0x68], 0
jne 0x140160df0
cmp dword [rbp + 0x70], 0
jne 0x140160de4
mov esi, dword [rax + 8]
cmp esi, edx
jl 0x14016108d
cmp esi, ecx
jle 0x140160ddc
cmp dword [r13 + 0x12c], 0
lea eax, [rsi + 5]
mov edx, dword [rbp - 0x3c]
mov ecx, dword [rbp - 0x34]
mov dword [rbp - 0x28], eax
mov dword [rbp - 0x30], esi
mov dword [rbp - 0x2c], edx
mov dword [rbp - 0x24], ecx
jne 0x1401610b6
cmp dword [r13 + 0x130], 0
je 0x1401610cd
mov rax, qword [r13]
mov rcx, r13
call qword [rax + 0x288]
test eax, eax
je 0x1401610f0
mov ecx, dword [rbp - 0x24]
mov edx, dword [rbp - 0x2c]
sub ecx, edx
mov eax, 0x55555555
imul ecx
sub edx, ecx
lea rcx, [rbp - 0x30]
sar edx, 1
mov r8d, edx
shr r8d, 0x1f
add r8d, edx
xor edx, edx
call qword [sym.imp.USER32.dll_InflateRect]
and dword [rbp - 0x58], 0
xor r15d, r15d
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
cmp dword [rbx + 0x10], r15d
jle 0x140161160
test r15, r15
js 0x1401611a7
cmp r15, qword [rbx + 0x10]
jge 0x1401611a7
mov rax, qword [rbx + 8]
mov r12, qword [rax + r15*8]
mov rcx, r12
mov rax, qword [r12]
call qword [rax + 0x238]
test eax, eax
je 0x14016114b
lea rdx, [r12 + 0xc8]
lea r8, [rbp - 0x30]
lea rcx, [rbp - 0x20]
call qword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
jne 0x14016115d
mov eax, dword [rbp - 0x58]
inc r15
inc eax
mov dword [rbp - 0x58], eax
cmp eax, dword [rbx + 0x10]
jge 0x140161160
jmp 0x140161105
mov rdi, r12
add esi, dword [rbp - 0x54]
test rdi, rdi
jne 0x140160ddc
mov rcx, qword [rbp - 0x38]
mov rdx, qword [rbp - 0x40]
mov r8, qword [rbp - 0x48]
jmp 0x14016103f
call fcn.14000ce6c
int3
call fcn.14000ce6c
int3
call fcn.14000ce6c
int3
call fcn.14000ce6c
int3
call fcn.14000ce6c
int3
call fcn.14000ce6c
int3
call fcn.14000ce6c
int3
call fcn.14000ce6c
int3
call fcn.14000ce6c
int3