Function at 0x1400a3130
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 0x1400a319a
mov rdx, qword [rcx + 0x368]
mov ebp, edi
test rdx, rdx
je 0x1400a3195
cmp rdi, rdx
jae 0x1400a3442
mov rax, qword [rbx + 0x360]
mov rcx, qword [rax + rbp*8]
cmp dword [rcx + 0x20], edi
jne 0x1400a319a
inc rbp
cmp rbp, rdx
jb 0x1400a317d
mov ebp, 0xffffffff
test r8d, r8d
jne 0x1400a32d1
cmp dword [rbx + 0x388], edi
je 0x1400a31e6
lea ecx, [r8 + 0x11]
call qword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
bt ecx, 0x10
jb 0x1400a31ee
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
bt ecx, 0x10
jb 0x1400a31ee
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
bt ecx, 0x10
jb 0x1400a31ee
mov rcx, rbx
call fcn.1400a28e0
test esi, esi
js 0x1400a3395
cmp esi, dword [rbx + 0x368]
jge 0x1400a3395
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
bt edx, 0x10
jb 0x1400a322a
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
bt ecx, 0x10
jae 0x1400a325f
mov r8d, dword [rbx + 0x3a4]
test r8d, r8d
js 0x1400a325f
cmp r8d, dword [rbx + 0x368]
jge 0x1400a325f
mov edx, esi
mov rcx, rbx
call fcn.1400a29c0
mov eax, dword [rbx + 0x3a4]
cmp esi, eax
cmovg eax, esi
mov dword [rbx + 0x3a8], eax
jmp 0x1400a338f
mov r14d, 1
cmp rsi, qword [rbx + 0x368]
jae 0x1400a3442
mov rax, qword [rbx + 0x360]
mov rdx, qword [rax + rsi*8]
mov r15d, dword [rdx + 0x20]
cmp dword [rbx + 0x388], edi
je 0x1400a32a6
lea ecx, [r14 + 0x10]
call qword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
bt ecx, 0x10
jae 0x1400a32a6
test r15d, r15d
mov r14d, edi
sete r14b
cmp rsi, qword [rbx + 0x368]
jae 0x1400a3442
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 0x1400a3383
cmp r8d, 2
jne 0x1400a333a
test esi, esi
js 0x1400a3330
cmp esi, dword [rbx + 0x368]
jge 0x1400a3330
cmp rsi, qword [rbx + 0x368]
jae 0x1400a3442
mov rax, qword [rbx + 0x360]
mov rcx, qword [rax + rsi*8]
cmp dword [rcx + 0x20], edi
jne 0x1400a3395
mov rcx, rbx
call fcn.1400a28e0
cmp rsi, qword [rbx + 0x368]
jae 0x1400a3442
mov rax, qword [rbx + 0x360]
mov r14d, 1
mov rcx, qword [rax + rsi*8]
mov dword [rcx + 0x20], r14d
jmp 0x1400a337c
mov rcx, rbx
call fcn.1400a28e0
jmp 0x1400a3395
cmp r8d, 3
jne 0x1400a3395
mov rcx, rbx
call fcn.1400a28e0
test esi, esi
js 0x1400a3395
cmp esi, dword [rbx + 0x368]
jge 0x1400a3395
cmp rsi, qword [rbx + 0x368]
jae 0x1400a3442
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 0x1400a33a4
mov dword [rbx + 0x3b4], esi
mov rcx, rbx
call fcn.1400a2240
mov eax, dword [rbx + 0x3a0]
cmp eax, 1
jne 0x1400a33ef
cmp r13d, eax
jne 0x1400a33ef
mov rdx, qword [rbx + 0x368]
test rdx, rdx
je 0x1400a33e6
cmp rdi, rdx
jae 0x1400a3442
mov rax, qword [rbx + 0x360]
mov rcx, qword [rax + rdi*8]
cmp dword [rcx + 0x20], 0
jne 0x1400a33eb
inc rdi
cmp rdi, rdx
jb 0x1400a33cd
mov edi, 0xffffffff
cmp ebp, edi
je 0x1400a3425
mov r8d, dword [rbx + 0x188]
xor r9d, r9d
mov edx, dword [0x140306144]
mov rcx, rbx
call fcn.1400982a0
mov rcx, qword [rbx + 0x398]
test rcx, rcx
je 0x1400a3425
mov rax, qword [rcx]
mov edx, dword [rbx + 0x188]
mov rax, qword [rax]
call qword [case.0x140038716.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.140019320
int3