Function at 0x14013e810
Capabilities:
Log keystrokes via polling

Disassembly:
push rdi
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
mov rbx, rdx
mov rdi, rcx
mov rax, qword [rcx]
call qword [rax + 0x250]
test al, al
jne 0x14013e86d
mov eax, dword [rbx]
sub eax, 9
cmp eax, 9
ja 0x14013e86d
mov rcx, qword [rdi + 0x60]
mov rdx, rbx
test rcx, rcx
je 0x14013ed00
mov rax, qword [rcx]
call qword [rax + 0x2b8]
jmp case.0x14013eb1d.13
mov ecx, dword [rbx]
cmp ecx, 0x15
jne 0x14013e880
mov byte [rdi + 0x1d5], 1
jmp case.0x14013eb1d.13
cmp ecx, 0x14
jne 0x14013e891
mov byte [rdi + 0x1d5], 0
jmp case.0x14013eb1d.13
cmp ecx, 3
je 0x14013eaf2
lea eax, [rcx - 0xd]
test eax, 0xfffffffd
je 0x14013e8e0
cmp ecx, 0x12
jne case.0x14013eb1d.14
movzx ecx, word [rbx + 0x20]
test ecx, ecx
je 0x14013e8cf
cmp ecx, 1
jne case.0x14013eb1d.14
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x3a8]
jmp case.0x14013eb1d.13
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x3a0]
jmp case.0x14013eb1d.13
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
lea rdx, str.AutoListItem
call qword [rax + 0x28]
mov rsi, rax
test rax, rax
je case.0x14013eb1d.13
mov ecx, reloc.COMCTL32.dll_InitCommonControls
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
test ax, ax
sets bpl
mov ecx, ILClone
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
sets al
test bx, bx
js 0x14013e958
test al, al
jne 0x14013e958
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
mov edx, eax
xor r8d, r8d
mov rcx, rdi
call fcn.140141500
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
mov edx, eax
mov rcx, rdi
call fcn.14013fad0
jmp case.0x14013eb1d.13
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
test bpl, bpl
je 0x14013e984
mov dword [rdi + 0x64c], eax
mov rbx, qword [rsi]
mov rcx, rsi
call qword [rbx + 0x20]
test al, al
sete dl
mov rcx, rsi
call qword [rbx + 0x28]
jmp case.0x14013eb1d.13
mov ebp, dword [rdi + 0x64c]
mov esi, ebp
cmp eax, ebp
cmovl esi, eax
cmovg ebp, eax
lea rdx, [0x1402b83a0]
mov ecx, ILClone
call fcn.140160c1c
mov r14, rax
mov qword [rsp + 0x50], rax
xor ebx, ebx
test rax, rax
je 0x14013e9c8
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov rcx, rax
call fcn.140053440
mov qword [r14], rax
jmp 0x14013e9cb
mov r14, rbx
mov rax, qword [rdi + 0x630]
mov rdx, r14
lea rcx, [rdi + 0x630]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [r14]
mov rbx, qword [rax]
cmp rbx, rax
je 0x14013ea64
nop word [rax + rax]
mov edx, dword [rbx + 0x1c]
cmp edx, esi
jl 0x14013e9fb
cmp edx, ebp
jle 0x14013ea0c
mov rax, qword [rdi + 0x630]
lea rcx, [rdi + 0x630]
call qword [rax + ILCombine]
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x14013ea38
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x14013ea33
cmp rbx, qword [rax + 0x10]
jne 0x14013ea33
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x14013ea20
mov rbx, rax
jmp 0x14013ea5f
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x14013ea5f
nop dword [rax]
nop dword [rax + rax]
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x14013ea50
cmp rbx, qword [r14]
jne 0x14013e9f0
mov rcx, r14
call fcn.1401125b0
mov r8, qword [r14]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.140112680
mov edx, 0x20
mov rcx, qword [r14]
call fcn.1401606e8
mov edx, ILClone
mov rcx, r14
call fcn.1401606e8
cmp esi, ebp
jg case.0x14013eb1d.13
nop dword [rax]
nop dword [rax + rax]
mov rcx, qword [rdi + 0x670]
add rcx, 0x5c0
mov rax, qword [rcx]
mov edx, esi
call qword [rax]
mov r8, qword [rax]
lea rdx, str.AutoListItem
mov rcx, rax
call qword [r8 + 0x28]
test rax, rax
je 0x14013eae7
mov r8, qword [rax]
mov dl, 1
mov rcx, rax
call qword [r8 + 0x28]
inc esi
cmp esi, ebp
jle 0x14013eab0
jmp case.0x14013eb1d.13
movzx eax, word [rbx + 0x1c]
add eax, 0xfffffff3
cmp eax, 0x54
ja case.0x14013eb1d.14
cdqe
lea rdx, [0x140000000]
movzx eax, byte [rdx + rax + 0x13ed48]
mov ecx, dword [rdx + rax*4 + 0x13ed24]
add rcx, rdx
jmp rcx
mov ecx, reloc.COMCTL32.dll_InitCommonControls
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns case.0x14013eb1d.13
mov rcx, rdi
call fcn.140141300
jmp case.0x14013eb1d.13
cmp dword [rdi + 0x64c], 1
jge 0x14013eb6b
mov rcx, qword [rdi + 0x670]
add rcx, 0x5c0
mov rax, qword [rcx]
call qword [rax + ILCombine]
test eax, eax
jle 0x14013eb6b
mov dword [rdi + 0x64c], 1
mov ebx, dword [rdi + 0x64c]
sub ebx, 1
js case.0x14013eb1d.13
mov rax, qword [rdi + 0x5c0]
mov edx, ebx
lea rcx, [rdi + 0x5c0]
call qword [rax]
test rax, rax
je 0x14013eb71
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x238]
test al, al
je 0x14013eb71
xor r8d, r8d
mov edx, ebx
mov rcx, rdi
call fcn.140141500
mov edx, ebx
mov rcx, rdi
call fcn.14013fad0
jmp case.0x14013eb1d.13
mov rcx, qword [rdi + 0x670]
add rcx, 0x5c0
mov rax, qword [rcx]
call qword [rax + ILCombine]
test eax, eax
jle 0x14013ebfe
mov rcx, qword [rdi + 0x670]
add rcx, 0x5c0
mov rax, qword [rcx]
call qword [rax + ILCombine]
dec eax
mov ecx, dword [rdi + 0x64c]
cmp ecx, eax
jl 0x14013ebfe
lea eax, [rcx - 1]
mov dword [rdi + 0x64c], eax
mov ebx, dword [rdi + 0x64c]
lea rsi, [rdi + 0x5c0]
inc ebx
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + ILCombine]
cmp ebx, eax
jge case.0x14013eb1d.13
mov rax, qword [rsi]
mov edx, ebx
mov rcx, rsi
call qword [rax]
test rax, rax
je 0x14013ec0b
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x238]
test al, al
je 0x14013ec0b
jmp 0x14013eba1
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x3b0]
jmp case.0x14013eb1d.13
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x3b8]
jmp case.0x14013eb1d.13
xor ebx, ebx
lea rsi, [rdi + 0x5c0]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + ILCombine]
test eax, eax
jle case.0x14013eb1d.13
nop
mov rax, qword [rsi]
mov edx, ebx
mov rcx, rsi
call qword [rax]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x238]
test al, al
jne 0x14013eba1
inc ebx
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + ILCombine]
cmp ebx, eax
jl 0x14013ec80
jmp case.0x14013eb1d.13
mov rax, qword [rdi + 0x5c0]
lea rcx, [rdi + 0x5c0]
call qword [rax + ILCombine]
mov ebx, eax
sub ebx, 1
js case.0x14013eb1d.13
nop word [rax + rax]
mov rax, qword [rdi + 0x5c0]
mov edx, ebx
lea rcx, [rdi + 0x5c0]
call qword [rax]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x238]
test al, al
jne 0x14013eba1
sub ebx, 1
jns 0x14013ecd0
jmp case.0x14013eb1d.13
mov rdx, rbx
mov rcx, rdi
call fcn.140134770
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret