Function at 0x140140de0
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 0x140140e3d
mov eax, dword [rbx]
sub eax, 9
cmp eax, 9
ja 0x140140e3d
mov rcx, qword [rdi + 0x60]
mov rdx, rbx
test rcx, rcx
je 0x1401412d0
mov rax, qword [rcx]
call qword [rax + 0x2b8]
jmp case.0x1401410ed.13
mov ecx, dword [rbx]
cmp ecx, 0x15
jne 0x140140e50
mov byte [rdi + 0x1d5], 1
jmp case.0x1401410ed.13
cmp ecx, 0x14
jne 0x140140e61
mov byte [rdi + 0x1d5], 0
jmp case.0x1401410ed.13
cmp ecx, 3
je 0x1401410c2
lea eax, [rcx - 0xd]
test eax, 0xfffffffd
je 0x140140eb0
cmp ecx, 0x12
jne case.0x1401410ed.14
movzx ecx, word [rbx + 0x20]
test ecx, ecx
je 0x140140e9f
cmp ecx, 1
jne case.0x1401410ed.14
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x3a8]
jmp case.0x1401410ed.13
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x3a0]
jmp case.0x1401410ed.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.0x1401410ed.13
mov ecx, reloc.COMCTL32.dll_InitCommonControls
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
test ax, ax
sets bpl
mov ecx, InitCommonControls
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
sets al
test bx, bx
js 0x140140f28
test al, al
jne 0x140140f28
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
mov edx, eax
xor r8d, r8d
mov rcx, rdi
call fcn.140143ad0
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
mov edx, eax
mov rcx, rdi
call fcn.1401420a0
jmp case.0x1401410ed.13
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
test bpl, bpl
je 0x140140f54
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.0x1401410ed.13
mov ebp, dword [rdi + 0x64c]
mov esi, ebp
cmp eax, ebp
cmovl esi, eax
cmovg ebp, eax
lea rdx, [0x1403d8608]
mov ecx, InitCommonControls
call fcn.140172710
mov r14, rax
mov qword [rsp + 0x50], rax
xor ebx, ebx
test rax, rax
je 0x140140f98
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov rcx, rax
call fcn.1400c6950
mov qword [r14], rax
jmp 0x140140f9b
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 0x140141034
nop word [rax + rax]
mov edx, dword [rbx + 0x1c]
cmp edx, esi
jl 0x140140fcb
cmp edx, ebp
jle 0x140140fdc
mov rax, qword [rdi + 0x630]
lea rcx, [rdi + 0x630]
call qword [rax + SafeArrayCopy]
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x140141008
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x140141003
cmp rbx, qword [rax + 0x10]
jne 0x140141003
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140140ff0
mov rbx, rax
jmp 0x14014102f
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x14014102f
nop dword [rax]
nop dword [rax + rax]
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x140141020
cmp rbx, qword [r14]
jne 0x140140fc0
mov rcx, r14
call fcn.140115fb0
mov r8, qword [r14]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.140116080
mov edx, 0x20
mov rcx, qword [r14]
call fcn.140171af0
mov edx, InitCommonControls
mov rcx, r14
call fcn.140171af0
cmp esi, ebp
jg case.0x1401410ed.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 0x1401410b7
mov r8, qword [rax]
mov dl, 1
mov rcx, rax
call qword [r8 + 0x28]
inc esi
cmp esi, ebp
jle 0x140141080
jmp case.0x1401410ed.13
movzx eax, word [rbx + 0x1c]
add eax, 0xfffffff3
cmp eax, 0x54
ja case.0x1401410ed.14
cdqe
lea rdx, [0x140000000]
movzx eax, byte [rdx + rax + 0x141318]
mov ecx, dword [rdx + rax*4 + 0x1412f4]
add rcx, rdx
jmp rcx
mov ecx, reloc.COMCTL32.dll_InitCommonControls
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns case.0x1401410ed.13
mov rcx, rdi
call fcn.1401438d0
jmp case.0x1401410ed.13
cmp dword [rdi + 0x64c], 1
jge 0x14014113b
mov rcx, qword [rdi + 0x670]
add rcx, 0x5c0
mov rax, qword [rcx]
call qword [rax + SafeArrayCopy]
test eax, eax
jle 0x14014113b
mov dword [rdi + 0x64c], 1
mov ebx, dword [rdi + 0x64c]
sub ebx, 1
js case.0x1401410ed.13
mov rax, qword [rdi + 0x5c0]
mov edx, ebx
lea rcx, [rdi + 0x5c0]
call qword [rax]
test rax, rax
je 0x140141141
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x238]
test al, al
je 0x140141141
xor r8d, r8d
mov edx, ebx
mov rcx, rdi
call fcn.140143ad0
mov edx, ebx
mov rcx, rdi
call fcn.1401420a0
jmp case.0x1401410ed.13
mov rcx, qword [rdi + 0x670]
add rcx, 0x5c0
mov rax, qword [rcx]
call qword [rax + SafeArrayCopy]
test eax, eax
jle 0x1401411ce
mov rcx, qword [rdi + 0x670]
add rcx, 0x5c0
mov rax, qword [rcx]
call qword [rax + SafeArrayCopy]
dec eax
mov ecx, dword [rdi + 0x64c]
cmp ecx, eax
jl 0x1401411ce
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 + SafeArrayCopy]
cmp ebx, eax
jge case.0x1401410ed.13
mov rax, qword [rsi]
mov edx, ebx
mov rcx, rsi
call qword [rax]
test rax, rax
je 0x1401411db
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x238]
test al, al
je 0x1401411db
jmp 0x140141171
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x3b0]
jmp case.0x1401410ed.13
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x3b8]
jmp case.0x1401410ed.13
xor ebx, ebx
lea rsi, [rdi + 0x5c0]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + SafeArrayCopy]
test eax, eax
jle case.0x1401410ed.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 0x140141171
inc ebx
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + SafeArrayCopy]
cmp ebx, eax
jl 0x140141250
jmp case.0x1401410ed.13
mov rax, qword [rdi + 0x5c0]
lea rcx, [rdi + 0x5c0]
call qword [rax + SafeArrayCopy]
mov ebx, eax
sub ebx, 1
js case.0x1401410ed.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 0x140141171
sub ebx, 1
jns 0x1401412a0
jmp case.0x1401410ed.13
mov rdx, rbx
mov rcx, rdi
call fcn.140106d40
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