Function at 0x1800a0490
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 0x1800a04c0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], 0xfa
call fcn.18008e7b0
add rsp, 0x28
pop rsi
pop rbx
ret
mov rax, qword gs:[0x58]
mov ecx, dword [0x180151b50]
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x58], rdi
mov ebp, 4
mov rdi, qword [rax + rcx*8]
mov eax, dword [rdi + rbp]
cmp dword [0x180154d88], eax
jle 0x1800a051a
lea rcx, [0x180154d88]
call fcn.1800d18d8
cmp dword [0x180154d88], 0xffffffff
jne 0x1800a051a
lea rcx, [0x1800dbe70]
call fcn.1800d1ef4
lea rcx, [0x180154d88]
call fcn.1800d186c
cmp byte [0x180152160], 0
je 0x1800a0711
cmp byte [0x180152268], 0
mov qword [rsp + 0x20], r14
movabs r14, 0x431bde82d7b634db
je 0x1800a06a3
mov eax, dword [rdi + rbp]
cmp dword [0x180154d8c], eax
jle 0x1800a058e
lea rcx, [0x180154d8c]
call fcn.1800d18d8
cmp dword [0x180154d8c], 0xffffffff
jne 0x1800a058e
lea rcx, [rsp + 0x40]
mov qword [0x180154d90], 0
call fcn.18008ee80
lea rcx, [0x180154d8c]
mov rdx, qword [rax]
mov qword [0x180154d90], rdx
call fcn.1800d186c
mov rax, qword [0x180152250]
mov rdx, qword [0x180152258]
cmp rax, rdx
je 0x1800a065d
lea rcx, [rsp + 0x40]
call fcn.18008ee80
xorps xmm0, xmm0
mov rcx, qword [rax]
mov rax, r14
sub rcx, qword [0x180154d90]
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cvtsi2ss xmm0, rdx
comiss xmm0, dword [0x1801369fc]
jb 0x1800a064a
lea rcx, [rsp + 0x40]
call fcn.18008ee80
mov rdx, qword [0x180152258]
movss xmm1, dword [0x180136c50]
movss xmm2, dword [0x180136818]
mov rcx, qword [rax]
mov qword [0x180154d90], rcx
mov r8, qword [rsi]
movss xmm0, dword [rdx - 0xc]
add r8, 0x24
subss xmm0, dword [r8]
andps xmm0, xmm1
comiss xmm2, xmm0
jbe 0x1800a0664
movss xmm0, dword [rdx - 8]
subss xmm0, dword [r8 + 4]
andps xmm0, xmm1
comiss xmm2, xmm0
jbe 0x1800a0664
movss xmm0, dword [rdx - 4]
subss xmm0, dword [r8 + 8]
andps xmm0, xmm1
comiss xmm2, xmm0
ja 0x1800a068c
jmp 0x1800a0664
mov rdx, qword [0x180152258]
mov rax, qword [0x180152250]
cmp rax, rdx
jne 0x1800a068c
mov r8, qword [rsi]
add r8, 0x24
cmp rdx, qword [0x180152260]
je 0x1800a0687
movsd xmm0, qword [r8]
movsd qword [rdx], xmm0
mov eax, dword [r8 + 8]
mov dword [rdx + 8], eax
add qword [0x180152258], 0xc
jmp 0x1800a068c
call fcn.1800a0e40
movzx ecx, byte [rbx + 0x198]
test cl, cl
je 0x1800a06a3
lea rcx, [rbx + 0x1a0]
call fcn.1800a0b30
lea rcx, [rsp + 0x40]
call fcn.18008ee80
movss xmm0, dword [0x18014f334]
xorps xmm1, xmm1
mulss xmm0, dword [0x180136a28]
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 0x1800a0786
cmp byte [0x180152150], 0
mov byte [0x180152160], 0
je 0x1800a0708
mov byte [0x180152150], 0
mov byte [rbx + 0x199], 0
jmp 0x1800a0786
movzx eax, byte [rbx + 0x198]
test al, al
jne 0x1800a0745
movzx eax, byte [rbx + 0x198]
test al, al
jne 0x1800a0745
mov qword [rsp + 0x40], 1
lea rcx, [rsp + 0x40]
call fcn.18008e7b0
movzx eax, byte [rbx + 0x198]
test al, al
je 0x1800a0730
mov rax, qword [rbx + 0x1a0]
cmp rax, qword [rbx + 0x1a8]
je 0x1800a075c
mov qword [rbx + 0x1a8], rax
mov rax, qword [0x180152250]
cmp rax, qword [0x180152258]
je 0x1800a0773
mov qword [0x180152258], rax
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], 0xa
call fcn.18008e7b0
movzx eax, byte [0x1801520d5]
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
test al, al
jne 0x1800a082c
mov ecx, dword [0x18015226c]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1800a07ed
cmp byte [rbx + 0x199], 0
je 0x1800a07ed
cmp byte [0x180152269], 0
mov byte [0x180152160], 1
je 0x1800a07d0
mov byte [0x180152150], 1
lea rcx, [rsp + 0x50]
call fcn.18008ee80
mov rcx, qword [rax]
mov qword [rbx + 0x190], rcx
mov byte [rbx + 0x199], 0
jmp 0x1800a082c
mov ecx, dword [0x18015226c]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x1800a082c
cmp byte [0x180152150], al
mov byte [0x180152160], al
je 0x1800a0812
mov byte [0x180152150], al
lea rcx, [rsp + 0x40]
mov byte [rbx + 0x199], 1
mov qword [rsp + 0x40], 0xa
call fcn.18008e7b0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], 1
call fcn.18008e7b0
add rsp, 0x28
pop rsi
pop rbx
ret