Function at 0x1800a5180
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0xa0
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
movaps xmmword [rax - 0x38], xmm8
movaps xmmword [rax - 0x48], xmm9
movaps xmmword [rax - 0x58], xmm10
movaps xmmword [rax - 0x68], xmm11
mov rax, qword [0x18011c028]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, rdx
mov rbx, rcx
movzx eax, byte [0x18011f09c]
mov byte [rcx + 0x31], al
cmp byte [0x18011f09c], 0
jne 0x1800a51e5
mov qword [rsp + 0x20], 0xfa
jmp 0x1800a57a9
cmp byte [0x18011f09b], 0
je 0x1800a540b
mov rax, qword [rdx]
movss xmm8, dword [0x1801062e8]
comiss xmm8, dword [rax + 0x5c]
ja 0x1800a57b3
cmp byte [0x18011f09a], 0
je 0x1800a5234
movss xmm1, dword [rax + 0x60]
addss xmm1, dword [rax + 0x58]
andps xmm1, xmmword [0x180106730]
movss xmm0, dword [0x18010609c]
comiss xmm0, xmm1
ja 0x1800a57b3
cmp byte [0x18011f099], 0
je 0x1800a5251
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1800a57b3
mov rax, qword [rsi]
mov ecx, dword [rax + 0x3c]
test ecx, ecx
jle 0x1800a53f2
cmp byte [0x18011f3d9], 0
jne 0x1800a57a0
lea rcx, [0x18011f400]
call fcn.180005b10
mov ecx, eax
imul rax, rcx, 0x65
cmp eax, 0x43
ja 0x1800a529a
lea rcx, [0x18011f400]
call fcn.180005b10
mov ecx, eax
imul rax, rcx, 0x65
cmp eax, 0x44
jb 0x1800a5283
shr rax, 0x20
cmp dword [0x18011c32c], eax
jl 0x1800a53e6
cmp byte [0x18011f098], 0
je 0x1800a5335
mov rbx, qword [rsi]
movss xmm0, dword [rbx + 0x48]
subss xmm0, dword [0x18010624c]
movss xmm6, dword [0x180106280]
addss xmm0, xmm6
cvtps2pd xmm0, xmm0
movsd xmm1, qword [0x1801061c8]
call sub.api_ms_win_crt_math_l1_1_0.dll_fmod
xorps xmm7, xmm7
cvtsd2ss xmm7, xmm0
xorps xmm1, xmm1
comiss xmm1, xmm7
jbe 0x1800a52fa
addss xmm7, dword [0x180106298]
subss xmm7, xmm6
mulss xmm7, dword [0x1801061b0]
divss xmm7, xmm6
movaps xmm0, xmm7
call sub.api_ms_win_crt_math_l1_1_0.dll_sinf
movaps xmm6, xmm0
mulss xmm6, dword [rbx + 0x60]
movaps xmm0, xmm7
call sub.api_ms_win_crt_math_l1_1_0.dll_cosf
mulss xmm0, dword [rbx + 0x58]
addss xmm6, xmm0
comiss xmm8, xmm6
ja 0x1800a53e6
mov byte [0x18011f3d9], 1
xor ebx, ebx
mov qword [0x18011c258], 0x20
mov dword [0x18011c260], ebx
mov qword [0x18011c268], rbx
lea r8d, [rbx + 0x28]
lea rdx, [0x18011c250]
lea ecx, [rbx + 1]
call qword [sym.imp.USER32.dll_SendInput]
lea rcx, [0x18011f400]
call fcn.180005b10
mov ecx, eax
imul rax, rcx, 0x1f
cmp eax, 3
ja 0x1800a5398
lea rcx, [0x18011f400]
call fcn.180005b10
mov ecx, eax
imul rax, rcx, 0x1f
cmp eax, 4
jb 0x1800a5381
shr rax, 0x20
lea ecx, [rax + 0x28]
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x20]
call fcn.1800048d0
mov dword [0x18011c258], 0x20
mov qword [0x18011c25c], 2
mov qword [0x18011c268], rbx
mov r8d, 0x28
lea rdx, [0x18011c250]
lea ecx, [r8 - 0x27]
call qword [sym.imp.USER32.dll_SendInput]
jmp 0x1800a57a0
mov byte [0x18011f3d9], 1
jmp 0x1800a57b3
movzx eax, byte [0x18011f3d9]
xor ebx, ebx
test ecx, ecx
cmove eax, ebx
mov byte [0x18011f3d9], al
jmp 0x1800a57a0
movss xmm11, dword [0x180106730]
cmp byte [0x18011f09a], 0
je 0x1800a543f
mov rax, qword [rdx]
movss xmm1, dword [rax + 0x60]
addss xmm1, dword [rax + 0x58]
andps xmm1, xmm11
movss xmm0, dword [0x18010609c]
comiss xmm0, xmm1
ja 0x1800a57b3
cmp byte [0x18011f099], 0
je 0x1800a545c
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1800a57b3
mov rax, qword [rsi]
mov edx, dword [rax + 0x3c]
test edx, edx
jle 0x1800a5791
cmp byte [0x18011f3d9], 0
jne 0x1800a57a0
mov ecx, dword [0x18011f3dc]
cmp ecx, edx
cmovl ecx, edx
mov dword [0x18011f3dc], ecx
cvttss2si eax, dword [0x18011f094]
sub ecx, eax
cmp edx, ecx
jne 0x1800a57a0
lea rcx, [0x18011f400]
call fcn.180005b10
mov ecx, eax
imul rax, rcx, 0x65
cmp eax, 0x43
ja 0x1800a54c8
lea rcx, [0x18011f400]
call fcn.180005b10
mov ecx, eax
imul rax, rcx, 0x65
cmp eax, 0x44
jb 0x1800a54b1
shr rax, 0x20
cmp eax, dword [0x18011c328]
jle 0x1800a54e0
mov byte [0x18011f3d9], 1
jmp 0x1800a57a0
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
mov rcx, qword [rbx + 0x40]
call fcn.180087490
nop
mov rdi, qword [rsp + 0x20]
mov r8, qword [rdi]
mov edx, 0x11
mov rcx, qword [rdi + 0x10]
call fcn.180089560
mov r8, rax
xorps xmm7, xmm7
test rax, rax
jne 0x1800a551e
xorps xmm10, xmm10
jmp 0x1800a553b
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov r9, qword [rax + 0x338]
mov rdx, qword [rdi + 0x10]
call r9
xorps xmm10, xmm10
cvtsd2ss xmm10, xmm0
mov r8, qword [rdi]
mov edx, 0x13
mov rcx, qword [rdi + 0x10]
call fcn.180089560
mov r8, rax
test rax, rax
jne 0x1800a555a
xorps xmm8, xmm8
jmp 0x1800a5577
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov r9, qword [rax + 0x338]
mov rdx, qword [rdi + 0x10]
call r9
xorps xmm8, xmm8
cvtsd2ss xmm8, xmm0
cmp byte [0x18011f098], 0
je 0x1800a5660
mov rax, qword [rsi]
movss xmm0, dword [rax + 0x48]
subss xmm0, dword [0x18010624c]
movss xmm6, dword [0x180106280]
addss xmm0, xmm6
cvtps2pd xmm0, xmm0
movsd xmm1, qword [0x1801061c8]
call sub.api_ms_win_crt_math_l1_1_0.dll_fmod
xorps xmm9, xmm9
cvtsd2ss xmm9, xmm0
comiss xmm7, xmm9
jbe 0x1800a55c8
addss xmm9, dword [0x180106298]
subss xmm9, xmm6
mulss xmm9, dword [0x1801061b0]
divss xmm9, xmm6
movaps xmm0, xmm9
call sub.api_ms_win_crt_math_l1_1_0.dll_cosf
movaps xmm6, xmm0
movaps xmm0, xmm9
call sub.api_ms_win_crt_math_l1_1_0.dll_sinf
mulss xmm0, xmm8
mulss xmm6, xmm10
addss xmm0, xmm6
movss xmm1, dword [0x1801062e8]
comiss xmm1, xmm0
jbe 0x1800a5660
mov byte [0x18011f3d9], 1
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x1800a57b3
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1800a57b3
mov rbx, qword [rsp + 0x28]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1800a57b3
mov rcx, qword [rsp + 0x28]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x1800a57b3
movss xmm6, dword [0x18011c324]
divss xmm6, dword [0x180106258]
movaps xmm9, xmm6
mulss xmm9, xmm10
mulss xmm6, xmm8
andps xmm10, xmm11
comiss xmm10, xmm7
jbe 0x1800a56b7
mov rbx, qword [rdi]
mov r8, rbx
mov edx, 0x11
mov rcx, qword [rdi + 0x10]
call fcn.180089560
mov r8, qword [rbx]
mov r9, qword [r8 + 0x380]
cvtps2pd xmm3, xmm9
mov r8, rax
mov rdx, qword [rdi + 0x10]
mov rcx, rbx
call r9
andps xmm8, xmm11
comiss xmm8, xmm7
jbe 0x1800a56ef
mov rbx, qword [rdi]
mov r8, rbx
mov edx, 0x13
mov rcx, qword [rdi + 0x10]
call fcn.180089560
mov r8, qword [rbx]
mov r9, qword [r8 + 0x380]
cvtps2pd xmm3, xmm6
mov r8, rax
mov rdx, qword [rdi + 0x10]
mov rcx, rbx
call r9
movss xmm0, dword [0x180106254]
movss xmm6, dword [0x18011c320]
comiss xmm0, xmm6
jb 0x1800a574b
mov rax, qword [rsi]
movss xmm0, dword [rax + 0x5c]
comiss xmm0, xmm7
jbe 0x1800a574b
divss xmm6, dword [0x180106258]
mulss xmm6, xmm0
mov rbx, qword [rdi]
mov r8, rbx
mov edx, 0x12
mov rcx, qword [rdi + 0x10]
call fcn.180089560
mov r8, qword [rbx]
mov r9, qword [r8 + 0x380]
cvtps2pd xmm3, xmm6
mov r8, rax
mov rdx, qword [rdi + 0x10]
mov rcx, rbx
call r9
mov byte [0x18011f3d9], 1
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x1800a57a0
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1800a57a0
mov rbx, qword [rsp + 0x28]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1800a57a0
mov rcx, qword [rsp + 0x28]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x1800a57a0
mov byte [0x18011f3d9], 0
xor ebx, ebx
mov dword [0x18011f3dc], ebx
mov qword [rsp + 0x20], 1
lea rcx, [rsp + 0x20]
call fcn.1800048d0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1800a6c70
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
mov rsp, r11
pop rdi
ret