Function at 0x1800166d0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
mov rax, qword [0x1801007a0]
xor rax, rsp
mov qword [rbp + 0x20], rax
cmp byte [0x180174e36], 0
je 0x180017022
mov ecx, 2
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x180017022
movss xmm0, dword [0x1800d7630]
mov qword [rsp + 0x200], rbx
movabs rbx, 0xe2587f8cbbd87b1d
mov qword [rsp + 0x208], rsi
xor esi, esi
comiss xmm0, dword [0x18011cc2c]
mov qword [rsp + 0x210], rdi
jbe 0x1800167af
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x20], 2
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x20], rsi
mov qword [0x18011a8f0], rax
mov dword [rsp + 0x20], 0x105
mov rax, qword [rsp + 0x20]
mov qword [0x18011a8f8], rax
mov dword [0x18011a828], esi
mov qword [0x180177578], rbx
mov dword [0x18011a818], 2
call fcn.18002d330
cmp dword [rax], esi
je 0x1800167af
movss xmm0, dword [0x18011cc2c]
addss xmm0, dword [0x1800d6fac]
movss dword [0x18011cc2c], xmm0
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x20], 2
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x20], rsi
mov qword [0x18011a8f0], rax
mov dword [rsp + 0x20], 0x106
mov rax, qword [rsp + 0x20]
mov qword [0x18011a8f8], rax
mov dword [0x18011a828], esi
mov qword [0x180177578], rbx
mov dword [0x18011a818], 2
call fcn.18002d330
cmp dword [rax], esi
je 0x180016819
movss xmm0, dword [0x18011cc2c]
addss xmm0, dword [0x1800d8bf4]
movss dword [0x18011cc2c], xmm0
movabs rbx, 0xd80958fc74e988a6
mov dword [rbp - 0x40], 0xa
mov qword [0x180177578], rbx
mov dword [0x18011a818], esi
mov dword [0x18011a828], esi
call fcn.18002d330
mov qword [rsp + 0x20], rsi
mov ecx, dword [rax]
movabs rax, 0x23f8f5fc7e8c4a6b
mov qword [0x180177578], rax
mov dword [rsp + 0x20], ecx
mov rax, qword [rsp + 0x20]
mov qword [0x18011a8f0], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rsi
mov qword [0x18011a8f8], rax
mov dword [rsp + 0x20], 0xffffffff
mov rax, qword [rsp + 0x20]
mov qword [0x18011a900], rax
mov dword [0x18011a828], esi
mov dword [0x18011a818], 3
call fcn.18002d330
mov dword [rsp + 0x60], 0xa
mov dword [0x18011a818], esi
mov dword [0x18011a828], esi
mov qword [0x180177578], rbx
call fcn.18002d330
mov qword [rsp + 0x20], rsi
mov ecx, dword [rax]
movabs rax, 0xcff869cbfa210d82
mov qword [0x180177578], rax
mov dword [rsp + 0x20], ecx
mov rax, qword [rsp + 0x20]
mov qword [0x18011a8f0], rax
lea rax, [rsp + 0x60]
mov qword [0x18011a8f8], rax
mov dword [0x18011a828], esi
mov dword [0x18011a818], 2
call fcn.18002d330
movsxd rdi, dword [rax]
test rdi, rdi
jle 0x18001700a
mov qword [rsp + 0x1e8], r12
mov rbx, rsi
mov qword [rsp + 0x1e0], r13
movabs r12, 0x997abd671d25ca0b
mov qword [rsp + 0x1d8], r14
movabs r13, 0x9a9112a0fe9a4713
mov qword [rsp + 0x1d0], r15
movabs r14, 0x1c99bb7b6e96d16f
movaps xmmword [rsp + 0x1c0], xmm6
movabs r15, 0x524ac5ecea15343e
movaps xmmword [rsp + 0x1b0], xmm7
movaps xmmword [rsp + 0x1a0], xmm8
movaps xmmword [rsp + 0x190], xmm9
movaps xmmword [rsp + 0x180], xmm10
movaps xmmword [rsp + 0x170], xmm11
xorps xmm11, xmm11
movaps xmmword [rsp + 0x160], xmm12
movaps xmmword [rsp + 0x150], xmm13
movaps xmmword [rsp + 0x140], xmm14
movss xmm14, dword [0x1800d6dc4]
movaps xmmword [rsp + 0x130], xmm15
movss xmm15, dword [0x1800db140]
mov eax, dword [rsp + rbx*8 + 0x68]
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x20]
mov qword [0x18011a8f0], rax
mov dword [0x18011a828], esi
mov qword [0x180177578], r15
mov dword [0x18011a818], 1
call fcn.18002d330
cmp dword [rax], esi
je 0x180016a90
mov eax, dword [rsp + rbx*8 + 0x68]
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x20]
mov qword [0x18011a8f0], rax
mov dword [0x18011a828], esi
mov qword [0x180177578], r12
mov qword [0x18011a8f8], rsi
mov dword [0x18011a818], 2
call fcn.18002d330
cmp dword [rax], esi
je 0x180016a90
mov eax, dword [rsp + rbx*8 + 0x68]
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x20]
mov qword [0x18011a8f0], rax
mov dword [0x18011a828], esi
mov qword [0x180177578], r13
mov qword [0x18011a8f8], rsi
mov dword [0x18011a818], 2
call fcn.18002d330
mov ecx, dword [rax]
mov dword [rsp + rbx*8 + 0x68], ecx
movabs rax, 0x837765a25378f0bb
mov dword [0x18011a828], esi
mov qword [0x180177578], rax
mov qword [0x18011a8f0], rsi
mov dword [0x18011a818], 1
call fcn.18002d330
xorps xmm9, xmm9
xorps xmm8, xmm8
movups xmm0, xmmword [rax]
movsd xmm1, qword [rax + 0x10]
mulss xmm0, xmm14
mulss xmm1, xmm14
cvtss2sd xmm9, xmm0
cvtss2sd xmm8, xmm1
movaps xmm0, xmm9
call sub.api_ms_win_crt_math_l1_1_0.dll_cos
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movaps xmm0, xmm8
andps xmm1, xmmword [0x1800db110]
cvtps2pd xmm7, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_sin
movss xmm6, dword [0x18011cc2c]
xorps xmm2, xmm2
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movaps xmm0, xmm8
xorps xmm1, xmm15
cvtss2sd xmm2, xmm1
mulsd xmm2, xmm7
cvtpd2ps xmm10, xmm2
mulss xmm10, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_cos
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movaps xmm0, xmm9
cvtps2pd xmm2, xmm1
mulsd xmm2, xmm7
cvtpd2ps xmm8, xmm2
mulss xmm8, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_sin
xorps xmm7, xmm7
mov dword [0x18011a818], esi
cvtsd2ss xmm7, xmm0
movabs rax, 0x14d6f5678d8f1b37
mov dword [0x18011a828], esi
mov qword [0x180177578], rax
mulss xmm7, xmm6
call fcn.18002d330
mov qword [rsp + 0x20], rsi
movups xmm9, xmmword [rax]
movsd xmm13, qword [rax + 0x10]
movabs rax, 0x3fef770d40960d5a
mov qword [0x180177578], rax
addss xmm13, xmm7
mov eax, dword [rsp + rbx*8 + 0x68]
movaps xmm12, xmm9
mov dword [rsp + 0x20], eax
addss xmm12, xmm10
mov rax, qword [rsp + 0x20]
shufps xmm9, xmm9, 0xaa
mov qword [0x18011a8f0], rax
addss xmm9, xmm8
mov dword [0x18011a828], esi
mov qword [0x18011a8f8], rsi
mov dword [0x18011a818], 2
call fcn.18002d330
mov qword [rsp + 0x20], rsi
movss dword [rsp + 0x20], xmm12
movsd xmm0, qword [rax + 0x10]
movups xmm6, xmmword [rax]
mov rax, qword [0x18011cd28]
movsd qword [rsp + 0x38], xmm0
movzx r8d, byte [rax + 0xe6]
movzx edx, byte [rax + 0xe5]
movzx ecx, byte [rax + 0xe4]
movabs rax, 0x799017f9e3b10112
mov qword [0x180177578], rax
mov rax, qword [rsp + 0x20]
mov qword [0x18011a8f0], rax
mov dword [0x18011a828], esi
mov qword [rsp + 0x20], rsi
movss dword [rsp + 0x20], xmm9
mov rax, qword [rsp + 0x20]
mov qword [0x18011a8f8], rax
mov qword [rsp + 0x20], rsi
movss dword [rsp + 0x20], xmm13
mov rax, qword [rsp + 0x20]
mov qword [0x18011a900], rax
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x20], 0x40800000
mov rax, qword [rsp + 0x20]
mov qword [0x18011a908], rax
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x20], ecx
mov rax, qword [rsp + 0x20]
mov qword [0x18011a910], rax
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x20], edx
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x20], r8d
mov qword [0x18011a918], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x20], rsi
mov qword [0x18011a920], rax
mov dword [rsp + 0x20], 0x3f000000
mov rax, qword [rsp + 0x20]
mov qword [0x18011a928], rax
mov dword [0x18011a818], 8
call fcn.18002d330
mov ecx, dword [rsp + rbx*8 + 0x68]
call fcn.18001d9c0
mov ecx, dword [rbp + rbx*8 - 0x38]
call fcn.18001d9c0
comiss xmm12, xmm11
movups xmmword [rsp + 0x28], xmm6
jbe 0x180016d2d
comiss xmm6, xmm11
jbe 0x180016d2d
movaps xmm8, xmm12
subss xmm8, xmm6
movss dword [0x180177920], xmm8
jmp 0x180016d36
movss xmm8, dword [0x180177920]
comiss xmm11, xmm12
jbe 0x180016d54
comiss xmm11, xmm6
jbe 0x180016d54
movaps xmm8, xmm12
subss xmm8, xmm6
movss dword [0x180177920], xmm8
comiss xmm12, xmm11
jbe 0x180016d72
comiss xmm11, xmm6
jbe 0x180016d72
movaps xmm8, xmm12
addss xmm8, xmm6
movss dword [0x180177920], xmm8
comiss xmm11, xmm12
jbe 0x180016d90
comiss xmm6, xmm11
jbe 0x180016d90
movaps xmm8, xmm12
addss xmm8, xmm6
movss dword [0x180177920], xmm8
comiss xmm9, xmm11
movss xmm0, dword [rsp + 0x30]
movaps xmm6, xmm8
jbe 0x180016db6
comiss xmm0, xmm11
jbe 0x180016db6
movaps xmm6, xmm9
subss xmm6, xmm0
movss dword [0x180177920], xmm6
comiss xmm11, xmm9
jbe 0x180016dd2
comiss xmm11, xmm0
jbe 0x180016dd2
movaps xmm6, xmm9
subss xmm6, xmm0
movss dword [0x180177920], xmm6
comiss xmm9, xmm11
jbe 0x180016dee
comiss xmm11, xmm0
jbe 0x180016dee
movaps xmm6, xmm9
addss xmm6, xmm0
movss dword [0x180177920], xmm6
comiss xmm11, xmm9
jbe 0x180016e0a
comiss xmm0, xmm11
jbe 0x180016e0a
movaps xmm6, xmm9
addss xmm6, xmm0
movss dword [0x180177920], xmm6
comiss xmm13, xmm11
movss xmm0, dword [rsp + 0x38]
movaps xmm7, xmm6
jbe 0x180016e2f
comiss xmm0, xmm11
jbe 0x180016e2f
movaps xmm7, xmm13
subss xmm7, xmm0
movss dword [0x180177920], xmm7
comiss xmm11, xmm13
jbe 0x180016e4b
comiss xmm11, xmm0
jbe 0x180016e4b
movaps xmm7, xmm13
subss xmm7, xmm0
movss dword [0x180177920], xmm7
comiss xmm13, xmm11
jbe 0x180016e67
comiss xmm11, xmm0
jbe 0x180016e67
movaps xmm7, xmm13
addss xmm7, xmm0
movss dword [0x180177920], xmm7
comiss xmm11, xmm13
jbe 0x180016e83
comiss xmm0, xmm11
jbe 0x180016e83
movaps xmm7, xmm13
addss xmm7, xmm0
movss dword [0x180177920], xmm7
mov eax, dword [rbp + rbx*8 - 0x38]
addss xmm8, xmm8
mov qword [rsp + 0x20], rsi
addss xmm6, xmm6
mov dword [rsp + 0x20], eax
addss xmm7, xmm7
mov rax, qword [rsp + 0x20]
mov qword [0x18011a8f0], rax
mov qword [rsp + 0x20], rsi
movss dword [rsp + 0x20], xmm8
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x20], rsi
mov qword [0x18011a8f8], rax
movss dword [rsp + 0x20], xmm6
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x20], rsi
mov qword [0x18011a900], rax
movss dword [rsp + 0x20], xmm7
mov rax, qword [rsp + 0x20]
mov qword [0x18011a908], rax
mov dword [0x18011a828], esi
mov qword [0x180177578], r14
mov dword [0x18011a818], 4
call fcn.18002d330
mov eax, dword [rsp + rbx*8 + 0x68]
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x20]
mov qword [0x18011a8f0], rax
mov qword [rsp + 0x20], rsi
movss dword [rsp + 0x20], xmm8
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x20], rsi
mov qword [0x18011a8f8], rax
movss dword [rsp + 0x20], xmm6
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x20], rsi
mov qword [0x18011a900], rax
movss dword [rsp + 0x20], xmm7
mov rax, qword [rsp + 0x20]
mov qword [0x18011a908], rax
mov dword [0x18011a828], esi
mov qword [0x180177578], r14
mov dword [0x18011a818], 4
call fcn.18002d330
inc rbx
cmp rbx, rdi
jl 0x1800169d1
movaps xmm15, xmmword [rsp + 0x130]
movaps xmm14, xmmword [rsp + 0x140]
movaps xmm13, xmmword [rsp + 0x150]
movaps xmm12, xmmword [rsp + 0x160]
movaps xmm11, xmmword [rsp + 0x170]
movaps xmm10, xmmword [rsp + 0x180]
movaps xmm9, xmmword [rsp + 0x190]
movaps xmm8, xmmword [rsp + 0x1a0]
movaps xmm7, xmmword [rsp + 0x1b0]
movaps xmm6, xmmword [rsp + 0x1c0]
mov r15, qword [rsp + 0x1d0]
mov r14, qword [rsp + 0x1d8]
mov r13, qword [rsp + 0x1e0]
mov r12, qword [rsp + 0x1e8]
mov rsi, qword [rsp + 0x208]
mov rbx, qword [rsp + 0x200]
mov rdi, qword [rsp + 0x210]
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.1800a8bf0
add rsp, 0x1f0
pop rbp
ret