Function at 0x14019dea0
Capabilities:
Log keystrokes via polling

Disassembly:
push rsi
sub rsp, 0x50
mov rax, qword [0x1402b5020]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r9d, edx
mov rsi, rcx
cmp edx, 0x28
ja 0x14019e135
movabs rcx, 0x15e00000000
bt rcx, r9
jae 0x14019e135
mov rax, qword [rsi + 0x128]
mov r8d, dword [rax]
test r8d, r8d
je 0x14019e120
lea eax, ds:[r9 - 0x21]
mov qword [rsp + 0x78], rdi
cmp eax, 7
ja case.0x14019df1a.37
lea rdx, [0x140000000]
mov ecx, dword [rdx + rax*4 + 0x19e14c]
add rcx, rdx
jmp rcx
mov rax, qword [rsi + 0x98]
test rax, rax
je case.0x14019df1a.36
mov edi, dword [rax + 0x2c]
test edi, edi
je case.0x14019df1a.36
dec edi
jmp 0x14019dfec
mov rax, qword [rsi + 0x98]
test rax, rax
je case.0x14019df1a.36
mov eax, dword [rax + 0x2c]
lea edi, [r8 - 1]
inc eax
cmp eax, r8d
cmovb edi, eax
jmp 0x14019dfec
lea edi, [r8 - 1]
jmp 0x14019dfec
mov rdi, qword [rsi + 0x98]
test rdi, rdi
je 0x14019df76
mov edi, dword [rdi + 0x2c]
test byte [rsi + 0x40], 8
je 0x14019df82
mov ecx, dword ds:[rsi + 0x7c]
jmp 0x14019df84
xor ecx, ecx
mov eax, dword [rsi + 0x6c]
sub eax, dword [rsi + 0x70]
sub eax, ecx
js 0x14019e11b
cdq
idiv dword [rsi + 0x74]
mov ecx, eax
sub ecx, 1
js 0x14019e11b
mov eax, dword [rsi + 0x80]
cmp r9d, 0x21
jne 0x14019dfc6
cmp edi, eax
jbe 0x14019dfba
mov edi, eax
jmp 0x14019dfec
cmp edi, ecx
jb case.0x14019df1a.36
sub edi, ecx
jmp 0x14019dfec
xor edi, edi
jmp 0x14019dfec
add eax, ecx
lea r9d, [r8 - 1]
cmp eax, r8d
mov edx, r9d
cmovb edx, eax
cmp edi, edx
jae 0x14019dfdd
mov edi, edx
jmp 0x14019dfec
add edi, ecx
cmp edi, r8d
cmovae edi, r9d
jmp 0x14019dfec
mov edi, dword [rsp + 0x30]
mov qword ss:[rsp + 0x68], rbx
mov ecx, 0x11
mov qword [rsp + 0x70], rbp
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebp, ax
mov ecx, 0x10
shr bp, 0xf
call qword [sym.imp.USER32.dll_GetKeyState]
mov rcx, qword [rsi + 0x128]
movzx ebx, ax
mov r8d, edi
mov rdx, qword [rcx + 8]
mov rcx, rsi
mov rdx, qword [rdx + r8*8]
xor r8d, r8d
mov qword [rsi + 0x98], rdx
call fcn.14019d420
shr bx, 0xf
test bl, bl
mov rbx, qword [rsp + 0x68]
je 0x14019e065
mov edx, dword [rsi + 0xa4]
cmp edx, 0xffffffff
je 0x14019e065
cmp edi, edx
mov r8d, edi
cmovbe r8d, edx
cmovbe edx, edi
jmp 0x14019e07f
test bpl, bpl
jne 0x14019e0da
mov rax, qword [rsi + 0x98]
mov r8d, edi
mov edx, edi
mov ecx, dword [rax + 0x2c]
mov dword [rsi + 0xa4], ecx
lea rax, ds:[rsp + 0x34]
mov r9d, 4
mov qword [rsp + 0x28], rax
mov rcx, rsi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call fcn.14019d240
mov r8d, dword ds:[rsp + 0x34]
lea rax, [rsp + 0x38]
mov edx, dword [rsp + 0x30]
mov r9b, 1
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.14019cee0
test al, al
je 0x14019e0da
mov rcx, qword [rsi]
lea rdx, [rsp + 0x38]
xor r8d, r8d
call qword [sym.imp.USER32.dll_InvalidateRect]
mov edx, edi
mov rcx, rsi
call fcn.14019d8a0
mov rcx, qword [rsi + 0x38]
mov rbp, qword [rsp + 0x70]
test rcx, rcx
je 0x14019e11b
xor r9d, r9d
xor r8d, r8d
mov edx, 0x41c
call qword [sym.imp.USER32.dll_SendMessageW]
mov qword [rsi + 0x158], 0xffffffffffffffff
mov dword [rsi + 0x188], 0xffffffff
mov rdi, qword [rsp + 0x78]
mov al, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401dd6a0
add rsp, 0x50
pop rsi
ret
xor al, al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401dd6a0
add rsp, 0x50
pop rsi
ret