Function at 0x1400a54d0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r13d, dword [rcx + 0x3a0]
xor edi, edi
movsxd rsi, edx
mov rbx, rcx
mov ebp, 0xffffffff
cmp r13d, 1
jne 0x1400a553a
mov rdx, qword [rcx + 0x368]
mov ebp, edi
test rdx, rdx
je 0x1400a5535
cmp rdi, rdx
jae 0x1400a57e2
mov rax, qword [rbx + 0x360]
mov rcx, qword [rax + rbp*8]
cmp dword [rcx + 0x20], edi
jne 0x1400a553a
inc rbp
cmp rbp, rdx
jb 0x1400a551d
mov ebp, 0xffffffff
test r8d, r8d
jne 0x1400a5671
cmp dword [rbx + 0x388], edi
je 0x1400a5586
lea ecx, [r8 + 0x11]
call qword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
bt ecx, 0x10
jb 0x1400a558e
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
bt ecx, 0x10
jb 0x1400a558e
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
bt ecx, 0x10
jb 0x1400a558e
mov rcx, rbx
call fcn.1400a4c80
test esi, esi
js 0x1400a5735
cmp esi, dword [rbx + 0x368]
jge 0x1400a5735
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
bt edx, 0x10
jb 0x1400a55ca
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
bt ecx, 0x10
jae 0x1400a55ff
mov r8d, dword [rbx + 0x3a4]
test r8d, r8d
js 0x1400a55ff
cmp r8d, dword [rbx + 0x368]
jge 0x1400a55ff
mov edx, esi
mov rcx, rbx
call fcn.1400a4d60
mov eax, dword [rbx + 0x3a4]
cmp esi, eax
cmovg eax, esi
mov dword [rbx + 0x3a8], eax
jmp 0x1400a572f
mov r14d, 1
cmp rsi, qword [rbx + 0x368]
jae 0x1400a57e2
mov rax, qword [rbx + 0x360]
mov rdx, qword [rax + rsi*8]
mov r15d, dword [rdx + 0x20]
cmp dword [rbx + 0x388], edi
je 0x1400a5646
lea ecx, [r14 + 0x10]
call qword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
bt ecx, 0x10
jae 0x1400a5646
test r15d, r15d
mov r14d, edi
sete r14b
cmp rsi, qword [rbx + 0x368]
jae 0x1400a57e2
mov rax, qword [rbx + 0x360]
mov rcx, qword [rax + rsi*8]
mov dword [rcx + 0x20], r14d
sub r14d, r15d
add dword [rbx + 0x3a0], r14d
jmp 0x1400a5723
cmp r8d, 2
jne 0x1400a56da
test esi, esi
js 0x1400a56d0
cmp esi, dword [rbx + 0x368]
jge 0x1400a56d0
cmp rsi, qword [rbx + 0x368]
jae 0x1400a57e2
mov rax, qword [rbx + 0x360]
mov rcx, qword [rax + rsi*8]
cmp dword [rcx + 0x20], edi
jne 0x1400a5735
mov rcx, rbx
call fcn.1400a4c80
cmp rsi, qword [rbx + 0x368]
jae 0x1400a57e2
mov rax, qword [rbx + 0x360]
mov r14d, 1
mov rcx, qword [rax + rsi*8]
mov dword [rcx + 0x20], r14d
jmp 0x1400a571c
mov rcx, rbx
call fcn.1400a4c80
jmp 0x1400a5735
cmp r8d, 3
jne 0x1400a5735
mov rcx, rbx
call fcn.1400a4c80
test esi, esi
js 0x1400a5735
cmp esi, dword [rbx + 0x368]
jge 0x1400a5735
cmp rsi, qword [rbx + 0x368]
jae 0x1400a57e2
mov rax, qword [rbx + 0x360]
mov r14d, 1
mov rcx, qword [rax + rsi*8]
mov dword [rcx + 0x20], r14d
mov dword [rbx + 0x3ac], esi
mov dword [rbx + 0x3a0], r14d
mov dword [rbx + 0x3a4], esi
mov dword [rbx + 0x3a8], esi
mov dword [rbx + 0x3b0], esi
cmp qword [rbx + 0x258], rdi
je 0x1400a5744
mov dword [rbx + 0x3b4], esi
mov rcx, rbx
call fcn.1400a45f0
mov eax, dword [rbx + 0x3a0]
cmp eax, 1
jne 0x1400a578f
cmp r13d, eax
jne 0x1400a578f
mov rdx, qword [rbx + 0x368]
test rdx, rdx
je 0x1400a5786
cmp rdi, rdx
jae 0x1400a57e2
mov rax, qword [rbx + 0x360]
mov rcx, qword [rax + rdi*8]
cmp dword [rcx + 0x20], 0
jne 0x1400a578b
inc rdi
cmp rdi, rdx
jb 0x1400a576d
mov edi, 0xffffffff
cmp ebp, edi
je 0x1400a57c5
mov r8d, dword [rbx + 0x188]
xor r9d, r9d
mov edx, dword [0x14030c244]
mov rcx, rbx
call fcn.14009a620
mov rcx, qword [rbx + 0x398]
test rcx, rcx
je 0x1400a57c5
mov rax, qword [rcx]
mov edx, dword [rbx + 0x188]
mov rax, qword [rax]
call qword [case.0x140038ca6.0]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov ecx, 0x80070057
call fcn.140019300
int3