Function at 0x1401540b0
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 0x14015410d
mov eax, dword [rbx]
sub eax, 9
cmp eax, 9
ja 0x14015410d
mov rcx, qword [rdi + 0x60]
mov rdx, rbx
test rcx, rcx
je 0x1401546b0
mov rax, qword [rcx]
call qword [rax + 0x2b8]
jmp case.0x1401543bd.13
mov ecx, dword [rbx]
cmp ecx, 0x15
jne 0x140154120
mov byte [rdi + 0x1d5], 1
jmp case.0x1401543bd.13
cmp ecx, 0x14
jne 0x140154131
mov byte [rdi + 0x1d5], 0
jmp case.0x1401543bd.13
cmp ecx, 3
je 0x140154392
lea eax, [rcx - 0xd]
test eax, 0xfffffffd
je 0x140154180
cmp ecx, 0x12
jne case.0x1401543bd.14
movzx ecx, word [rbx + 0x20]
test ecx, ecx
je 0x14015416f
cmp ecx, 1
jne case.0x1401543bd.14
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x3a8]
jmp case.0x1401543bd.13
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x3a0]
jmp case.0x1401543bd.13
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
lea rdx, str.AutoTableItem
call qword [rax + 0x28]
mov rsi, rax
test rax, rax
je case.0x1401543bd.13
cmp byte [rdi + 0x621], 0
je 0x1401541ab
mov rbx, qword [rax]
jmp 0x140154218
cmp byte [rdi + 0x620], 0
jne 0x1401541b9
mov rax, qword [rax]
jmp 0x1401541eb
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 0x140154202
test al, al
jne 0x140154202
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
mov edx, eax
xor r8d, r8d
mov rcx, rdi
call fcn.1401556f0
jmp case.0x1401543bd.13
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
test bpl, bpl
je 0x14015422e
mov dword [rdi + 0x624], 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.0x1401543bd.13
mov ebp, dword [rdi + 0x624]
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 0x140154272
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov rcx, rax
call fcn.1400c6950
mov qword [r14], rax
jmp 0x140154275
mov r14, rbx
mov rax, qword [rdi + 0x608]
mov rdx, r14
lea rcx, [rdi + 0x608]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [r14]
mov rbx, qword [rax]
cmp rbx, rax
je 0x140154304
mov edx, dword [rbx + 0x1c]
cmp edx, esi
jl 0x14015429f
cmp edx, ebp
jle 0x1401542b0
mov rax, qword [rdi + 0x608]
lea rcx, [rdi + 0x608]
call qword [rax + SafeArrayCopy]
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x1401542dc
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x1401542d7
cmp rbx, qword [rax + 0x10]
jne 0x1401542d7
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1401542c4
mov rbx, rax
jmp 0x1401542ff
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x1401542ff
nop dword [rax + rax]
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x1401542f0
cmp rbx, qword [r14]
jne 0x140154294
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.0x1401543bd.13
nop dword [rax]
nop dword [rax + rax]
mov rcx, qword [rdi + 0x648]
add rcx, 0x5c0
mov rax, qword [rcx]
mov edx, esi
call qword [rax]
mov r8, qword [rax]
lea rdx, str.AutoTableItem
mov rcx, rax
call qword [r8 + 0x28]
test rax, rax
je 0x140154387
mov r8, qword [rax]
mov dl, 1
mov rcx, rax
call qword [r8 + 0x28]
inc esi
cmp esi, ebp
jle 0x140154350
jmp case.0x1401543bd.13
movzx eax, word [rbx + 0x1c]
add eax, 0xfffffff3
cmp eax, 0x54
ja case.0x1401543bd.14
cdqe
lea rdx, [0x140000000]
movzx eax, byte [rdx + rax + 0x154700]
mov ecx, dword [rdx + rax*4 + 0x1546d4]
add rcx, rdx
jmp rcx
mov ecx, reloc.COMCTL32.dll_InitCommonControls
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns case.0x1401543bd.13
lea rcx, [rdi + 0x5c0]
mov rax, qword [rcx]
call qword [rax + SafeArrayCopy]
cmp eax, 1
jle 0x1401543f2
cmp byte [rdi + 0x620], 0
je case.0x1401543bd.13
mov rcx, rdi
call fcn.1401554e0
jmp case.0x1401543bd.13
cmp byte [rdi + 0x621], 0
jne case.0x1401543bd.13
mov ebx, dword [rdi + 0x624]
mov rcx, qword [rdi + 0x648]
call fcn.1401392d0
cmp ebx, eax
jge 0x140154430
mov rcx, qword [rdi + 0x648]
call fcn.1401392d0
add ebx, eax
mov rcx, qword [rdi + 0x648]
call fcn.1401392d0
sub ebx, eax
js case.0x1401543bd.13
mov rax, qword [rdi + 0x5c0]
mov edx, ebx
lea rcx, [rdi + 0x5c0]
call qword [rax]
test rax, rax
je 0x14015446b
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x238]
test al, al
jne 0x140154470
sub ebx, 1
jmp 0x14015443e
xor r8d, r8d
mov edx, ebx
mov rcx, rdi
call fcn.1401556f0
mov edx, ebx
mov rcx, rdi
call fcn.140154aa0
jmp case.0x1401543bd.13
cmp byte [rdi + 0x621], 0
jne case.0x1401543bd.13
mov esi, dword [rdi + 0x624]
mov rcx, qword [rdi + 0x648]
add rcx, 0x5c0
mov rax, qword [rcx]
call qword [rax + SafeArrayCopy]
mov ebx, eax
mov rcx, qword [rdi + 0x648]
call fcn.1401392d0
sub ebx, eax
cmp esi, ebx
jl 0x1401544d5
mov rcx, qword [rdi + 0x648]
call fcn.1401392d0
sub esi, eax
mov rcx, qword [rdi + 0x648]
call fcn.1401392d0
lea ebx, [rsi + rax]
lea rsi, [rdi + 0x5c0]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + SafeArrayCopy]
cmp ebx, eax
jge case.0x1401543bd.13
mov rax, qword [rsi]
mov edx, ebx
mov rcx, rsi
call qword [rax]
test rax, rax
je 0x14015451f
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x238]
test al, al
jne 0x140154470
inc ebx
jmp 0x1401544eb
cmp byte [rdi + 0x621], 0
jne case.0x1401543bd.13
mov eax, dword [rdi + 0x624]
mov ecx, 1
cmp eax, ecx
cmovl eax, ecx
lea ebx, [rax - 1]
test ebx, ebx
js case.0x1401543bd.13
mov rax, qword [rdi + 0x5c0]
mov edx, ebx
lea rcx, [rdi + 0x5c0]
call qword [rax]
test rax, rax
je 0x140154576
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x238]
test al, al
jne 0x140154470
sub ebx, 1
jmp 0x140154545
cmp byte [rdi + 0x621], 0
jne case.0x1401543bd.13
mov eax, dword [rdi + 0x624]
mov ecx, 0xffffffff
cmp eax, ecx
cmovl eax, ecx
lea ebx, [rax + 1]
lea rsi, [rdi + 0x5c0]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + SafeArrayCopy]
cmp ebx, eax
jge case.0x1401543bd.13
mov rax, qword [rsi]
mov edx, ebx
mov rcx, rsi
call qword [rax]
test rax, rax
je 0x1401545d6
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x238]
test al, al
jne 0x140154470
inc ebx
jmp 0x1401545a2
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x3b0]
jmp case.0x1401543bd.13
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x3b8]
jmp case.0x1401543bd.13
cmp byte [rdi + 0x621], 0
jne case.0x1401543bd.13
xor ebx, ebx
lea rsi, [rdi + 0x5c0]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + SafeArrayCopy]
test eax, eax
jle case.0x1401543bd.13
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 0x140154470
inc ebx
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + SafeArrayCopy]
cmp ebx, eax
jl 0x140154623
jmp case.0x1401543bd.13
cmp byte [rdi + 0x621], 0
jne case.0x1401543bd.13
mov rax, qword [rdi + 0x5c0]
lea rcx, [rdi + 0x5c0]
call qword [rax + SafeArrayCopy]
mov ebx, eax
sub ebx, 1
js case.0x1401543bd.13
nop dword [rax]
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 0x140154470
sub ebx, 1
jns 0x140154680
jmp case.0x1401543bd.13
mov rdx, rbx
mov rcx, rdi
call fcn.140117330
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