Function at 0x18009fba0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
push rsi
sub rsp, 0x28
mov rax, qword [rcx + 0x78]
mov rsi, rdx
mov rbx, rcx
cmp byte [rax], 0
jne 0x18009fbd0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], 0xfa
call fcn.18008de20
add rsp, 0x28
pop rsi
pop rbx
ret
mov rax, qword gs:[0x58]
mov ecx, dword [0x180152b6c]
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rdi
mov ebp, 4
mov rdi, qword [rax + rcx*8]
mov eax, dword [rdi + rbp]
cmp dword [0x180155da8], eax
jle 0x18009fc2a
lea rcx, [0x180155da8]
call fcn.1800d1288
cmp dword [0x180155da8], 0xffffffff
jne 0x18009fc2a
lea rcx, [0x1800dbc20]
call fcn.1800d18a4
lea rcx, [0x180155da8]
call fcn.1800d121c
cmp byte [0x180153180], 0
je 0x18009fe21
cmp byte [0x180153288], 0
mov qword [rsp + 0x20], r14
movabs r14, 0x431bde82d7b634db
je 0x18009fdb3
mov eax, dword [rdi + rbp]
cmp dword [0x180155dac], eax
jle 0x18009fc9e
lea rcx, [0x180155dac]
call fcn.1800d1288
cmp dword [0x180155dac], 0xffffffff
jne 0x18009fc9e
lea rcx, [rsp + 0x40]
mov qword [0x180155db0], 0
call fcn.18008e520
lea rcx, [0x180155dac]
mov rdx, qword [rax]
mov qword [0x180155db0], rdx
call fcn.1800d121c
mov rax, qword [0x180153270]
mov rdx, qword [0x180153278]
cmp rax, rdx
je 0x18009fd6d
lea rcx, [rsp + 0x40]
call fcn.18008e520
xorps xmm0, xmm0
mov rcx, qword [rax]
mov rax, r14
sub rcx, qword [0x180155db0]
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cvtsi2ss xmm0, rdx
comiss xmm0, dword [0x180136a6c]
jb 0x18009fd5a
lea rcx, [rsp + 0x40]
call fcn.18008e520
mov rdx, qword [0x180153278]
movss xmm1, dword [0x180136f20]
movss xmm2, dword [0x180136888]
mov rcx, qword [rax]
mov qword [0x180155db0], rcx
mov r8, qword [rsi]
movss xmm0, dword [rdx - 0xc]
add r8, 0x24
subss xmm0, dword [r8]
andps xmm0, xmm1
comiss xmm2, xmm0
jbe 0x18009fd74
movss xmm0, dword [rdx - 8]
subss xmm0, dword [r8 + 4]
andps xmm0, xmm1
comiss xmm2, xmm0
jbe 0x18009fd74
movss xmm0, dword [rdx - 4]
subss xmm0, dword [r8 + 8]
andps xmm0, xmm1
comiss xmm2, xmm0
ja 0x18009fd9c
jmp 0x18009fd74
mov rdx, qword [0x180153278]
mov rax, qword [0x180153270]
cmp rax, rdx
jne 0x18009fd9c
mov r8, qword [rsi]
add r8, 0x24
cmp rdx, qword [0x180153280]
je 0x18009fd97
movsd xmm0, qword [r8]
movsd qword [rdx], xmm0
mov eax, dword [r8 + 8]
mov dword [rdx + 8], eax
add qword [0x180153278], 0xc
jmp 0x18009fd9c
call fcn.1800a0550
movzx ecx, byte [rbx + 0x198]
test cl, cl
je 0x18009fdb3
lea rcx, [rbx + 0x1a0]
call fcn.1800a0240
lea rcx, [rsp + 0x40]
call fcn.18008e520
movss xmm0, dword [0x18015035c]
xorps xmm1, xmm1
mulss xmm0, dword [0x180136a98]
mov rcx, qword [rax]
mov rax, r14
sub rcx, qword [rbx + 0x190]
mov r14, qword [rsp + 0x20]
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cvtsi2ss xmm1, rdx
comiss xmm1, xmm0
jb 0x18009fe96
cmp byte [0x180153170], 0
mov byte [0x180153180], 0
je 0x18009fe18
mov byte [0x180153170], 0
mov byte [rbx + 0x199], 0
jmp 0x18009fe96
movzx eax, byte [rbx + 0x198]
test al, al
jne 0x18009fe55
movzx eax, byte [rbx + 0x198]
test al, al
jne 0x18009fe55
mov qword [rsp + 0x40], 1
lea rcx, [rsp + 0x40]
call fcn.18008de20
movzx eax, byte [rbx + 0x198]
test al, al
je 0x18009fe40
mov rax, qword [rbx + 0x1a0]
cmp rax, qword [rbx + 0x1a8]
je 0x18009fe6c
mov qword [rbx + 0x1a8], rax
mov rax, qword [0x180153270]
cmp rax, qword [0x180153278]
je 0x18009fe83
mov qword [0x180153278], rax
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], 0xa
call fcn.18008de20
movzx eax, byte [0x1801530f5]
mov rdi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
test al, al
jne 0x18009ff3c
mov ecx, dword [0x18015328c]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x18009fefd
cmp byte [rbx + 0x199], 0
je 0x18009fefd
cmp byte [0x180153289], 0
mov byte [0x180153180], 1
je 0x18009fee0
mov byte [0x180153170], 1
lea rcx, [rsp + 0x40]
call fcn.18008e520
mov rcx, qword [rax]
mov qword [rbx + 0x190], rcx
mov byte [rbx + 0x199], 0
jmp 0x18009ff3c
mov ecx, dword [0x18015328c]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x18009ff3c
cmp byte [0x180153170], al
mov byte [0x180153180], al
je 0x18009ff22
mov byte [0x180153170], al
lea rcx, [rsp + 0x40]
mov byte [rbx + 0x199], 1
mov qword [rsp + 0x40], 0xa
call fcn.18008de20
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], 1
call fcn.18008de20
add rsp, 0x28
pop rsi
pop rbx
ret