Function at 0x1800053f0
Capabilities:
Log keystrokes via polling

Disassembly:
mov r11, rsp
push rbp
push r13
lea rbp, [r11 - 0x5f]
sub rsp, 0xe8
cmp byte [0x1800dd9ed], 0
mov r13, rcx
je 0x1800059d9
cmp qword [0x1800dda08], 0
je 0x1800059d9
cmp byte [0x1800dd9ec], 0
mov rax, qword [0x1800ddbf0]
movaps xmmword [r11 - 0x48], xmm6
movss xmm6, dword [0x180080c9c]
movaps xmmword [r11 - 0x58], xmm7
movss xmm7, dword [rax + 0x130]
movaps xmmword [r11 - 0x68], xmm8
movss xmm8, dword [rax + 0x134]
lea rax, [rbp + 0x7f]
movaps xmmword [rsp + 0x60], xmm13
xorps xmm13, xmm13
mov qword [r11 + 8], rbx
mov qword [rbp - 0x59], rax
lea rax, [rbp + 0x6f]
mov qword [r11 - 0x18], rsi
mov qword [rbp - 0x51], rax
lea rax, [rbp - 0x69]
mov qword [r11 - 0x20], rdi
mov qword [rbp - 0x49], rax
mov rax, qword [0x18008eab8]
mov qword [r11 - 0x28], r12
movss dword [rbp + 0x7f], xmm7
movss dword [rbp + 0x83], xmm8
movss dword [rbp + 0x6f], xmm6
mov qword [r11 - 0x30], r14
mov qword [rbp - 0x69], 0
mov dword [rbp - 0x61], 0
je 0x18000561d
mov r12, qword [rax + 8]
mov rsi, qword [rax]
cmp rsi, r12
je 0x180005661
mov qword [r11 - 0x38], r15
movabs r10, 0x2aaaaaaaaaaaaaab
nop dword [rax + rax]
mov r8, qword [rsi + 0x40]
mov rax, r10
mov rbx, qword [rsi + 0x38]
mov rcx, r8
sub rcx, rbx
xor r15d, r15d
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x180005606
xor r9d, r9d
xor edi, edi
cmp rbx, r8
je 0x1800055d1
sub r8, rbx
mov rax, r10
imul r8
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r9, rdx
jae 0x1800055d1
movsd xmm0, qword [rdi + rbx]
lea r8, [rbp + 0x77]
mov r14d, dword [rdi + rbx + 8]
lea rdx, [rbp - 0x59]
movsd qword [rbp - 0x59], xmm0
mov dword [rbp - 0x51], r14d
mov qword [rbp + 0x77], 0
call fcn.180004f20
test eax, eax
je 0x1800055d1
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 0x180005593
xorps xmm0, xmm0
sqrtss xmm0, xmm1
jmp 0x1800055a5
movaps xmm0, xmm1
call fcn.18006c438
movabs r10, 0x2aaaaaaaaaaaaaab
comiss xmm6, xmm0
jbe 0x1800055d1
cmp byte [rdi + rbx + 0x15], 0
je 0x1800055d1
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], r14d
mov r8, qword [rsi + 0x40]
inc r15d
mov rbx, qword [rsi + 0x38]
mov rcx, r8
sub rcx, rbx
movsxd r9, r15d
mov rax, r10
add rdi, 0x18
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r9, rdx
jb 0x180005510
add rsi, 0x70
cmp rsi, r12
jne 0x1800054e0
mov r15, qword [rsp + 0xc0]
jmp 0x180005661
mov rsi, qword [rax + 8]
mov rbx, qword [rax]
cmp rbx, rsi
je 0x180005661
mov r14d, dword [0x1800dd9f0]
lea rdi, [rbx + 0x38]
nop dword [rax]
nop dword [rax + rax]
mov r8d, r14d
lea rcx, [rbp - 0x59]
mov rdx, rdi
call fcn.1800059f0
add rbx, 0x70
add rdi, 0x70
cmp rbx, rsi
jne 0x180005640
movss xmm6, dword [rbp + 0x6f]
movss xmm0, dword [0x18008eab4]
comiss xmm0, xmm6
mov r14, qword [rsp + 0xc8]
mov r12, qword [rsp + 0xd0]
mov rdi, qword [rsp + 0xd8]
mov rsi, qword [rsp + 0xe0]
jb 0x1800059b2
movsxd rcx, dword [0x1800dd9f8]
lea rax, [0x18007b118]
mov ecx, dword [rax + rcx*4]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x1800059b2
mov rcx, qword [0x1800dda08]
movaps xmmword [rsp + 0x80], xmm9
movaps xmmword [rsp + 0x70], xmm10
call fcn.1800049f0
mov rbx, rax
call fcn.180004950
movss xmm0, dword [rbx]
movss xmm1, dword [rbx + 4]
movss xmm8, dword [rbp - 0x69]
addss xmm0, dword [rax]
addss xmm1, dword [rax + 4]
movss xmm9, dword [rbp - 0x65]
movss xmm6, dword [rbp - 0x61]
subss xmm8, xmm0
movss xmm0, dword [rbx + 8]
addss xmm0, dword [rax + 8]
subss xmm9, xmm1
subss xmm6, xmm0
movaps xmm0, xmm8
mulss xmm0, xmm8
movaps xmm1, xmm9
mulss xmm1, xmm9
xorps xmm6, xmmword [0x180081120]
addss xmm1, xmm0
xorps xmm0, xmm0
ucomiss xmm0, xmm1
ja 0x18000573e
xorps xmm0, xmm0
sqrtss xmm0, xmm1
jmp 0x180005746
movaps xmm0, xmm1
call fcn.18006c438
movaps xmm1, xmm0
movaps xmm0, xmm6
call fcn.180068b80
xorps xmm2, xmm2
movaps xmm1, xmm8
cvtss2sd xmm2, xmm0
movaps xmm0, xmm9
mulsd xmm2, qword [0x180080bc8]
cvtpd2ps xmm7, xmm2
call fcn.180068b80
xorps xmm1, xmm1
cvtss2sd xmm1, xmm0
mulsd xmm1, qword [0x180080bc8]
cvtpd2ps xmm6, xmm1
call fcn.180004b30
cmp dword [rax], 0
jle 0x1800057c4
call fcn.180004a90
movsd xmm4, qword [rax]
mov eax, dword [rax + 8]
movaps xmm2, xmm4
shufps xmm2, xmm2, 0x55
movaps xmm1, xmm4
mulss xmm2, dword [0x180080ba4]
mov dword [rbp - 0x51], eax
mulss xmm1, dword [0x180080ba4]
subss xmm6, xmm2
movsd qword [rbp - 0x59], xmm4
subss xmm7, xmm1
movss xmm10, dword [0x180080c5c]
movaps xmm0, xmm7
movaps xmm1, xmm10
call fcn.18004fa58
movaps xmm8, xmm0
movaps xmm1, xmm10
movaps xmm0, xmm6
movss dword [rbp - 0x59], xmm8
call fcn.18004fa58
movaps xmm9, xmm0
movaps xmm1, xmm10
movaps xmm0, xmm13
movss dword [rbp - 0x55], xmm9
call fcn.18004fa58
movss xmm7, dword [0x180080cc4]
lea rcx, [rbp - 0x59]
comiss xmm7, xmm8
mov dword [rbp + 0x77], 0x42b20000
movss dword [rbp - 0x51], xmm0
jbe 0x18000582a
movaps xmm8, xmm7
jmp 0x18000583f
comiss xmm8, dword [0x180080c34]
lea rax, [rbp + 0x77]
cmovbe rax, rcx
movss xmm8, dword [rax]
movss xmm6, dword [0x180080ccc]
lea rcx, [rbp - 0x55]
comiss xmm6, xmm9
mov dword [rbp + 0x77], 0x43340000
movss dword [rbp - 0x59], xmm8
jbe 0x180005864
movaps xmm9, xmm6
jmp 0x180005879
comiss xmm9, dword [0x180080c44]
lea rax, [rbp + 0x77]
cmovbe rax, rcx
movss xmm9, dword [rax]
lea rdx, [rbp - 0x59]
mov rcx, r13
call fcn.180004d70
subss xmm8, dword [rbp - 0x59]
movss xmm1, dword [0x180080b58]
divss xmm1, dword [0x18008eab0]
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.18004fa58
movss dword [rbp - 0x79], xmm0
movaps xmm1, xmm10
movss xmm0, dword [rbp - 0x75]
call fcn.18004fa58
movss dword [rbp - 0x75], xmm0
movaps xmm1, xmm10
movss xmm0, dword [rbp - 0x71]
call fcn.18004fa58
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 0x180005944
comiss xmm0, dword [0x180080c34]
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 0x180005971
comiss xmm0, dword [0x180080c44]
lea rax, [rbp + 0x77]
cmovbe rax, rcx
movss xmm6, dword [rax]
movss xmm0, dword [0x180080cc0]
lea rcx, [rbp - 0x71]
comiss xmm0, xmm1
mov dword [rbp + 0x77], 0x42340000
movss dword [rbp - 0x75], xmm6
ja 0x1800059a1
comiss xmm1, dword [0x180080c28]
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.180004bd0
mov rbx, qword [rsp + 0x100]
movaps xmm7, xmmword [rsp + 0xa0]
movaps xmm6, xmmword [rsp + 0xb0]
movaps xmm8, xmmword [rsp + 0x90]
movaps xmm13, xmmword [rsp + 0x60]
add rsp, 0xe8
pop r13
pop rbp
ret