Function at 0x180004eb0
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
push rbp
push r13
lea rbp, [rax - 0x5f]
sub rsp, 0xe8
cmp byte [0x1800dc9ed], 0
mov r13, rcx
je 0x18000557d
cmp qword [0x1800dca00], 0
je 0x18000557d
mov qword [rax - 0x38], r15
xor r15d, r15d
cmp byte [0x1800dc9ec], r15b
movaps xmmword [rax - 0x48], xmm6
movss xmm6, dword [0x18007f8a4]
movaps xmmword [rax - 0x58], xmm7
movaps xmmword [rax - 0x68], xmm8
movaps xmmword [rsp + 0x60], xmm13
xorps xmm13, xmm13
mov qword [rax + 8], rbx
mov qword [rax - 0x18], rsi
mov qword [rax - 0x20], rdi
mov qword [rax - 0x28], r12
mov qword [rax - 0x30], r14
mov rax, qword [0x1800dcbe0]
movss dword [rbp + 0x6f], xmm6
mov qword [rbp - 0x69], 0
mov dword [rbp - 0x61], 0
movss xmm7, dword [rax + 0x130]
movss xmm8, dword [rax + 0x134]
lea rax, [rbp + 0x7f]
mov qword [rbp - 0x59], rax
lea rax, [rbp + 0x6f]
mov qword [rbp - 0x51], rax
lea rax, [rbp - 0x69]
mov qword [rbp - 0x49], rax
mov rax, qword [0x18008dab8]
movss dword [rbp + 0x7f], xmm7
movss dword [rbp + 0x83], xmm8
je 0x1800050ca
mov r12, qword [rax + 8]
mov rsi, qword [rax]
cmp rsi, r12
je 0x1800050fe
movabs r11, 0x2aaaaaaaaaaaaaab
nop dword [rax]
mov r9, qword [rsi + 0x40]
mov rax, r11
mov r8, qword [rsi + 0x38]
mov rcx, r9
sub rcx, r8
mov r14d, r15d
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x1800050bb
mov r10, r15
mov rbx, r15
cmp r8, r9
je 0x180005086
sub r9, r8
mov rax, r11
imul r9
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r10, rdx
jae 0x180005086
movsd xmm0, qword [rbx + r8]
lea rdx, [rbp - 0x59]
mov edi, dword [rbx + r8 + 8]
lea r8, [rbp + 0x77]
movsd qword [rbp - 0x59], xmm0
mov dword [rbp - 0x51], edi
mov qword [rbp + 0x77], r15
call fcn.180004d90
test eax, eax
je 0x180005086
movaps xmm0, xmm7
movaps xmm1, xmm8
subss xmm0, dword [rbp + 0x77]
subss xmm1, dword [rbp + 0x7b]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm1, xmm0
xorps xmm0, xmm0
ucomiss xmm0, xmm1
ja 0x180005050
xorps xmm0, xmm0
sqrtss xmm0, xmm1
jmp 0x180005062
movaps xmm0, xmm1
call fcn.18006bc58
movabs r11, 0x2aaaaaaaaaaaaaab
comiss xmm6, xmm0
jbe 0x180005086
movss xmm1, dword [rbp - 0x55]
movaps xmm6, xmm0
movss dword [rbp + 0x6f], xmm0
movss xmm0, dword [rbp - 0x59]
movss dword [rbp - 0x69], xmm0
movss dword [rbp - 0x65], xmm1
mov dword [rbp - 0x61], edi
mov r9, qword [rsi + 0x40]
inc r14d
mov r8, qword [rsi + 0x38]
mov rcx, r9
sub rcx, r8
movsxd r10, r14d
mov rax, r11
add rbx, 0x18
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r10, rdx
jb 0x180004fd1
add rsi, 0x70
cmp rsi, r12
jne 0x180004fa0
jmp 0x1800050fe
mov rdi, qword [rax + 8]
mov rbx, qword [rax]
cmp rbx, rdi
je 0x1800050fe
mov esi, dword [0x1800dc9f0]
nop dword [rax]
lea rdx, [rbx + 0x38]
mov r8d, esi
lea rcx, [rbp - 0x59]
call fcn.180005590
add rbx, 0x70
cmp rbx, rdi
jne 0x1800050e0
movss xmm6, dword [rbp + 0x6f]
movss xmm0, dword [0x18008dab4]
comiss xmm0, xmm6
mov r12, qword [rsp + 0xd0]
jb 0x180005536
movsxd rcx, dword [0x1800dc9f4]
lea rax, [0x18007a178]
mov ecx, dword [rax + rcx*4]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x180005536
mov rcx, qword [0x1800dca00]
movaps xmmword [rsp + 0x80], xmm9
movaps xmmword [rsp + 0x70], xmm10
call fcn.180004900
mov rcx, qword gs:[0x58]
mov rbx, rax
mov edx, dword [0x1800dbdc4]
mov rsi, qword [0x1800dca00]
mov r14d, 4
mov rdi, qword [rcx + rdx*8]
mov ecx, dword [rdi + r14]
cmp dword [0x1800dca08], ecx
jle 0x1800051e0
lea rcx, [0x1800dca08]
call fcn.180048b68
cmp dword [0x1800dca08], 0xffffffff
jne 0x1800051e0
mov rax, qword [0x1800db420]
mov rcx, qword [0x1800db428]
cmp rax, rcx
je 0x1800051cb
movabs rdx, 0xe7fab19569b35a61
cmp qword [rax], rdx
je 0x1800051c1
add rax, 0x10
cmp rax, rcx
jne 0x1800051b3
cmp rax, rcx
je 0x1800051cb
mov ecx, dword [rax + 8]
jmp 0x1800051ce
mov ecx, r15d
mov dword [0x1800dc9e0], ecx
lea rcx, [0x1800dca08]
call fcn.180048afc
mov eax, dword [0x1800dc9e0]
movss xmm0, dword [rbx]
movss xmm1, dword [rbx + 4]
movss xmm7, dword [rbp - 0x69]
addss xmm0, dword [rax + rsi]
addss xmm1, dword [rax + rsi + 4]
movss xmm8, dword [rbp - 0x65]
movss xmm6, dword [rbp - 0x61]
subss xmm7, xmm0
movss xmm0, dword [rbx + 8]
addss xmm0, dword [rax + rsi + 8]
subss xmm8, xmm1
subss xmm6, xmm0
movaps xmm0, xmm7
mulss xmm0, xmm7
movaps xmm1, xmm8
mulss xmm1, xmm8
xorps xmm6, xmmword [0x18007fdb0]
addss xmm1, xmm0
xorps xmm0, xmm0
ucomiss xmm0, xmm1
ja 0x18000524e
xorps xmm0, xmm0
sqrtss xmm0, xmm1
jmp 0x180005256
movaps xmm0, xmm1
call fcn.18006bc58
movaps xmm1, xmm0
movaps xmm0, xmm6
call fcn.1800683a0
xorps xmm2, xmm2
movaps xmm1, xmm7
cvtss2sd xmm2, xmm0
movaps xmm0, xmm8
mulsd xmm2, qword [0x18007f7d0]
cvtpd2ps xmm9, xmm2
call fcn.1800683a0
xorps xmm1, xmm1
cvtss2sd xmm1, xmm0
mulsd xmm1, qword [0x18007f7d0]
cvtpd2ps xmm7, xmm1
call fcn.1800049a0
cmp dword [rax], r15d
jle 0x18000534b
mov eax, dword [rdi + r14]
cmp dword [0x1800dca14], eax
mov rbx, qword [0x1800dca00]
jle 0x180005311
lea rcx, [0x1800dca14]
call fcn.180048b68
cmp dword [0x1800dca14], 0xffffffff
jne 0x180005311
mov rax, qword [0x1800db420]
mov rcx, qword [0x1800db428]
cmp rax, rcx
je 0x1800052fe
movabs rdx, 0xc00b6117fa3186e9
cmp qword [rax], rdx
je 0x1800052f5
add rax, 0x10
cmp rax, rcx
jne 0x1800052e7
cmp rax, rcx
je 0x1800052fe
mov r15d, dword [rax + 8]
lea rcx, [0x1800dca14]
mov dword [0x1800dc9fc], r15d
call fcn.180048afc
mov eax, dword [0x1800dc9fc]
movsd xmm4, qword [rax + rbx]
mov eax, dword [rax + rbx + 8]
movaps xmm2, xmm4
shufps xmm2, xmm2, 0x55
movaps xmm1, xmm4
mulss xmm2, dword [0x18007f7ac]
mov dword [rbp - 0x51], eax
mulss xmm1, dword [0x18007f7ac]
subss xmm7, xmm2
movsd qword [rbp - 0x59], xmm4
subss xmm9, xmm1
movss xmm10, dword [0x18007f86c]
movaps xmm0, xmm9
movaps xmm1, xmm10
call fcn.18004ea18
movaps xmm6, xmm0
movaps xmm1, xmm10
movaps xmm0, xmm7
movss dword [rbp - 0x59], xmm6
call fcn.18004ea18
movaps xmm9, xmm0
movaps xmm1, xmm10
movaps xmm0, xmm13
movss dword [rbp - 0x55], xmm9
call fcn.18004ea18
movss xmm7, dword [0x18007f8cc]
lea rcx, [rbp - 0x59]
comiss xmm7, xmm6
mov dword [rbp + 0x77], 0x42b20000
movss dword [rbp - 0x51], xmm0
jbe 0x1800053af
movaps xmm8, xmm7
jmp 0x1800053c3
comiss xmm6, dword [0x18007f844]
lea rax, [rbp + 0x77]
cmovbe rax, rcx
movss xmm8, dword [rax]
movss xmm6, dword [0x18007f8d4]
lea rcx, [rbp - 0x55]
comiss xmm6, xmm9
mov dword [rbp + 0x77], 0x43340000
movss dword [rbp - 0x59], xmm8
jbe 0x1800053e8
movaps xmm9, xmm6
jmp 0x1800053fd
comiss xmm9, dword [0x18007f854]
lea rax, [rbp + 0x77]
cmovbe rax, rcx
movss xmm9, dword [rax]
lea rdx, [rbp - 0x59]
mov rcx, r13
call fcn.180004be0
subss xmm8, dword [rbp - 0x59]
movss xmm1, dword [0x18007f764]
divss xmm1, dword [0x18008dab0]
subss xmm9, dword [rbp - 0x55]
movss xmm2, dword [rbp - 0x51]
mulss xmm8, xmm1
addss xmm2, xmm13
mulss xmm9, xmm1
movaps xmm1, xmm10
addss xmm8, dword [rbp - 0x59]
movss dword [rbp - 0x71], xmm2
addss xmm9, dword [rbp - 0x55]
movaps xmm0, xmm8
movss dword [rbp - 0x79], xmm8
movss dword [rbp - 0x75], xmm9
call fcn.18004ea18
movss dword [rbp - 0x79], xmm0
movaps xmm1, xmm10
movss xmm0, dword [rbp - 0x75]
call fcn.18004ea18
movss dword [rbp - 0x75], xmm0
movaps xmm1, xmm10
movss xmm0, dword [rbp - 0x71]
call fcn.18004ea18
movaps xmm10, xmmword [rsp + 0x70]
lea rcx, [rbp - 0x79]
movaps xmm9, xmmword [rsp + 0x80]
movaps xmm1, xmm0
movss xmm0, dword [rbp - 0x79]
comiss xmm7, xmm0
mov dword [rbp + 0x77], 0x42b20000
movss dword [rbp - 0x71], xmm1
ja 0x1800054c8
comiss xmm0, dword [0x18007f844]
lea rax, [rbp + 0x77]
cmovbe rax, rcx
movss xmm7, dword [rax]
movss xmm0, dword [rbp - 0x75]
lea rcx, [rbp - 0x75]
comiss xmm6, xmm0
mov dword [rbp + 0x77], 0x43340000
movss dword [rbp - 0x79], xmm7
ja 0x1800054f5
comiss xmm0, dword [0x18007f854]
lea rax, [rbp + 0x77]
cmovbe rax, rcx
movss xmm6, dword [rax]
movss xmm0, dword [0x18007f8c8]
lea rcx, [rbp - 0x71]
comiss xmm0, xmm1
mov dword [rbp + 0x77], 0x42340000
movss dword [rbp - 0x75], xmm6
ja 0x180005525
comiss xmm1, dword [0x18007f830]
lea rax, [rbp + 0x77]
cmovbe rax, rcx
movss xmm0, dword [rax]
lea rdx, [rbp - 0x79]
movss dword [rbp - 0x71], xmm0
mov rcx, r13
call fcn.180004a40
mov rsi, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xd8]
mov r14, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0x100]
mov r15, qword [rsp + 0xc0]
movaps xmm6, xmmword [rsp + 0xb0]
movaps xmm7, xmmword [rsp + 0xa0]
movaps xmm8, xmmword [rsp + 0x90]
movaps xmm13, xmmword [rsp + 0x60]
add rsp, 0xe8
pop r13
pop rbp
ret