Function at 0x1800a5420
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 [0x18011d040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, rdx
mov rbx, rcx
movzx eax, byte [0x1801200bc]
mov byte [rcx + 0x31], al
cmp byte [0x1801200bc], 0
jne 0x1800a5485
mov qword [rsp + 0x20], 0xfa
jmp 0x1800a5a3c
cmp byte [0x1801200bb], 0
je 0x1800a569d
mov rax, qword [rdx]
movss xmm8, dword [0x180107470]
comiss xmm8, dword [rax + 0x5c]
ja 0x1800a5a46
cmp byte [0x1801200ba], 0
je 0x1800a54d4
movss xmm1, dword [rax + 0x60]
addss xmm1, dword [rax + 0x58]
andps xmm1, xmmword [0x180107650]
movss xmm0, dword [0x180107228]
comiss xmm0, xmm1
ja 0x1800a5a46
cmp byte [0x1801200b9], 0
je 0x1800a54f1
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1800a5a46
mov rax, qword [rsi]
mov ecx, dword [rax + 0x3c]
test ecx, ecx
jle 0x1800a5692
cmp byte [0x180120400], 0
jne 0x1800a5a33
lea rcx, [0x180120420]
call fcn.180005a50
mov ecx, eax
imul rax, rcx, 0x65
cmp eax, 0x43
ja 0x1800a553a
lea rcx, [0x180120420]
call fcn.180005a50
mov ecx, eax
imul rax, rcx, 0x65
cmp eax, 0x44
jb 0x1800a5523
shr rax, 0x20
cmp dword [0x18011d38c], eax
jl 0x1800a5686
cmp byte [0x1801200b8], 0
je 0x1800a55d5
mov rbx, qword [rsi]
movss xmm0, dword [rbx + 0x48]
subss xmm0, dword [0x1801073dc]
movss xmm6, dword [0x180107408]
addss xmm0, xmm6
cvtps2pd xmm0, xmm0
movsd xmm1, qword [0x180107358]
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 0x1800a559a
addss xmm7, dword [0x180107420]
subss xmm7, xmm6
mulss xmm7, dword [0x180107340]
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 0x1800a5686
mov byte [0x180120400], 1
xor ebx, ebx
mov qword [0x18011d2b8], 0x20
mov dword [0x18011d2c0], ebx
mov qword [0x18011d2c8], rbx
lea r8d, [rbx + 0x28]
lea rdx, [0x18011d2b0]
lea ecx, [rbx + 1]
call qword [sym.imp.USER32.dll_SendInput]
lea rcx, [0x180120420]
call fcn.180005a50
mov ecx, eax
imul rax, rcx, 0x1f
cmp eax, 3
ja 0x1800a5638
lea rcx, [0x180120420]
call fcn.180005a50
mov ecx, eax
imul rax, rcx, 0x1f
cmp eax, 4
jb 0x1800a5621
shr rax, 0x20
lea ecx, [rax + 0x28]
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x20]
call fcn.1800048b0
mov dword [0x18011d2b8], 0x20
mov qword [0x18011d2bc], 2
mov qword [0x18011d2c8], rbx
mov r8d, 0x28
lea rdx, [0x18011d2b0]
lea ecx, [r8 - 0x27]
call qword [sym.imp.USER32.dll_SendInput]
jmp 0x1800a5a33
mov byte [0x180120400], 1
jmp 0x1800a5a46
jne 0x1800a5a33
jmp 0x1800a5a2c
movss xmm11, dword [0x180107650]
cmp byte [0x1801200ba], 0
je 0x1800a56d1
mov rax, qword [rdx]
movss xmm1, dword [rax + 0x60]
addss xmm1, dword [rax + 0x58]
andps xmm1, xmm11
movss xmm0, dword [0x180107228]
comiss xmm0, xmm1
ja 0x1800a5a46
cmp byte [0x1801200b9], 0
je 0x1800a56ee
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1800a5a46
mov rax, qword [rsi]
mov edx, dword [rax + 0x3c]
test edx, edx
jle 0x1800a5a24
cmp byte [0x180120400], 0
jne 0x1800a5a33
mov ecx, dword [0x1801203fc]
cmp ecx, edx
jge 0x1800a571b
mov ecx, edx
mov dword [0x1801203fc], edx
cvttss2si eax, dword [0x1801200b4]
sub ecx, eax
cmp edx, ecx
jne 0x1800a5a33
lea rcx, [0x180120420]
call fcn.180005a50
mov ecx, eax
imul rax, rcx, 0x65
cmp eax, 0x43
ja 0x1800a575b
lea rcx, [0x180120420]
call fcn.180005a50
mov ecx, eax
imul rax, rcx, 0x65
cmp eax, 0x44
jb 0x1800a5744
shr rax, 0x20
cmp eax, dword [0x18011d388]
jle 0x1800a5773
mov byte [0x180120400], 1
jmp 0x1800a5a33
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
mov rcx, qword [rbx + 0x40]
call fcn.180086cb0
nop
mov rdi, qword [rsp + 0x20]
mov r8, qword [rdi]
mov edx, 0x11
mov rcx, qword [rdi + 0x10]
call fcn.180088d80
mov r8, rax
xorps xmm7, xmm7
test rax, rax
jne 0x1800a57b1
xorps xmm10, xmm10
jmp 0x1800a57ce
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.180088d80
mov r8, rax
test rax, rax
jne 0x1800a57ed
xorps xmm8, xmm8
jmp 0x1800a580a
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 [0x1801200b8], 0
je 0x1800a58f3
mov rax, qword [rsi]
movss xmm0, dword [rax + 0x48]
subss xmm0, dword [0x1801073dc]
movss xmm6, dword [0x180107408]
addss xmm0, xmm6
cvtps2pd xmm0, xmm0
movsd xmm1, qword [0x180107358]
call sub.api_ms_win_crt_math_l1_1_0.dll_fmod
xorps xmm9, xmm9
cvtsd2ss xmm9, xmm0
comiss xmm7, xmm9
jbe 0x1800a585b
addss xmm9, dword [0x180107420]
subss xmm9, xmm6
mulss xmm9, dword [0x180107340]
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 [0x180107470]
comiss xmm1, xmm0
jbe 0x1800a58f3
mov byte [0x180120400], 1
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x1800a5a46
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1800a5a46
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 0x1800a5a46
mov rcx, qword [rsp + 0x28]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x1800a5a46
movss xmm6, dword [0x18011d384]
divss xmm6, dword [0x1801073e8]
movaps xmm9, xmm6
mulss xmm9, xmm10
mulss xmm6, xmm8
andps xmm10, xmm11
comiss xmm10, xmm7
jbe 0x1800a594a
mov rbx, qword [rdi]
mov r8, rbx
mov edx, 0x11
mov rcx, qword [rdi + 0x10]
call fcn.180088d80
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 0x1800a5982
mov rbx, qword [rdi]
mov r8, rbx
mov edx, 0x13
mov rcx, qword [rdi + 0x10]
call fcn.180088d80
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 [0x1801073e4]
movss xmm6, dword [0x18011d380]
comiss xmm0, xmm6
jb 0x1800a59de
mov rax, qword [rsi]
movss xmm0, dword [rax + 0x5c]
comiss xmm0, xmm7
jbe 0x1800a59de
divss xmm6, dword [0x1801073e8]
mulss xmm6, xmm0
mov rbx, qword [rdi]
mov r8, rbx
mov edx, 0x12
mov rcx, qword [rdi + 0x10]
call fcn.180088d80
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 [0x180120400], 1
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x1800a5a33
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1800a5a33
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 0x1800a5a33
mov rcx, qword [rsp + 0x28]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x1800a5a33
xor ebx, ebx
mov dword [0x1801203fc], ebx
mov byte [0x180120400], 0
mov qword [rsp + 0x20], 1
lea rcx, [rsp + 0x20]
call fcn.1800048b0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1800a7090
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