Function at 0x180046470
Capabilities:
Log keystrokes via polling

Disassembly:
test dl, dl
je 0x180046d22
sub rsp, 0x1e8
mov rax, qword [0x1802138c0]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov ecx, 2
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x180046d0b
movss xmm0, dword [0x1801d4870]
mov qword [rsp + 0x1f0], rbx
movabs rbx, 0xe2587f8cbbd87b1d
mov qword [rsp + 0x1e0], rdi
mov qword [rsp + 0x1c8], r14
mov qword [rsp + 0x1c0], r15
xor r15d, r15d
comiss xmm0, dword [0x180254af4]
jbe 0x180046549
call fcn.180026500
mov dword [rax + 8], r15d
mov dword [rax + 0x18], r15d
call fcn.180026500
mov edx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov dword [rcx + rdx*8], 2
inc dword [rax + 8]
call fcn.180026500
mov edx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov dword [rcx + rdx*8], 0x105
mov rcx, rbx
inc dword [rax + 8]
call fcn.1800263a0
call fcn.180026500
mov rcx, qword [rax]
cmp dword [rcx], r15d
je 0x180046549
movss xmm0, dword [0x180254af4]
addss xmm0, dword [0x1801d47cc]
movss dword [0x180254af4], xmm0
call fcn.180026500
mov dword [rax + 8], r15d
mov dword [rax + 0x18], r15d
call fcn.180026500
mov r8d, dword [rax + 8]
mov rdx, qword [rax + 0x10]
mov dword [rdx + r8*8], 2
inc dword [rax + 8]
call fcn.180026500
mov rcx, rbx
mov r8d, dword [rax + 8]
mov rdx, qword [rax + 0x10]
mov dword [rdx + r8*8], 0x106
inc dword [rax + 8]
call fcn.1800263a0
call fcn.180026500
mov rcx, qword [rax]
cmp dword [rcx], r15d
je 0x1800465b3
movss xmm0, dword [0x180254af4]
addss xmm0, dword [0x1801d49a0]
movss dword [0x180254af4], xmm0
mov dword [rsp + 0xc0], 0xa
call fcn.180026500
movabs rdi, 0xd80958fc74e988a6
mov rcx, rdi
mov dword [rax + 8], r15d
mov dword [rax + 0x18], r15d
call fcn.1800263a0
call fcn.180026500
mov rcx, qword [rax]
mov ebx, dword [rcx]
call fcn.180026500
mov dword [rax + 8], r15d
mov dword [rax + 0x18], r15d
call fcn.180026500
mov edx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov dword [rcx + rdx*8], ebx
inc dword [rax + 8]
call fcn.180026500
lea r8, [rsp + 0xc0]
mov edx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov qword [rcx + rdx*8], r8
inc dword [rax + 8]
call fcn.180026500
movabs rcx, 0x23f8f5fc7e8c4a6b
mov r8d, dword [rax + 8]
mov rdx, qword [rax + 0x10]
mov dword [rdx + r8*8], 0xffffffff
inc dword [rax + 8]
call fcn.1800263a0
call fcn.180026500
mov dword [rsp + 0x60], 0xa
call fcn.180026500
mov rcx, rdi
mov dword [rax + 8], r15d
mov dword [rax + 0x18], r15d
call fcn.1800263a0
call fcn.180026500
mov rcx, qword [rax]
mov ebx, dword [rcx]
call fcn.180026500
mov dword [rax + 8], r15d
mov dword [rax + 0x18], r15d
call fcn.180026500
mov edx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov dword [rcx + rdx*8], ebx
inc dword [rax + 8]
call fcn.180026500
lea r8, [rsp + 0x60]
mov edx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov qword [rcx + rdx*8], r8
movabs rcx, 0xcff869cbfa210d82
inc dword [rax + 8]
call fcn.1800263a0
call fcn.180026500
mov rcx, qword [rax]
movsxd r14, dword [rcx]
test r14, r14
jle 0x180046ceb
mov qword [rsp + 0x1f8], rbp
movabs rdi, 0x9a9112a0fe9a4713
mov qword [rsp + 0x200], rsi
mov rbp, r15
mov qword [rsp + 0x1d8], r12
movabs rsi, 0x837765a25378f0bb
mov qword [rsp + 0x1d0], r13
movabs r12, 0x524ac5ecea15343e
movaps xmmword [rsp + 0x1b0], xmm6
movabs r13, 0x997abd671d25ca0b
movaps xmmword [rsp + 0x1a0], xmm7
movaps xmmword [rsp + 0x190], xmm8
movaps xmmword [rsp + 0x180], xmm9
movaps xmmword [rsp + 0x170], xmm10
xorps xmm10, xmm10
movaps xmmword [rsp + 0x160], xmm11
movaps xmmword [rsp + 0x150], xmm12
movss xmm12, dword [0x1801d46ec]
movaps xmmword [rsp + 0x140], xmm13
movss xmm13, dword [0x1801d4d40]
movaps xmmword [rsp + 0x130], xmm14
movss xmm14, dword [0x1801d4d10]
mov ebx, dword [rsp + rbp*8 + 0x68]
call fcn.180026500
mov dword [rax + 8], r15d
mov dword [rax + 0x18], r15d
call fcn.180026500
mov edx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov dword [rcx + rdx*8], ebx
mov rcx, r12
inc dword [rax + 8]
call fcn.1800263a0
call fcn.180026500
mov rcx, qword [rax]
cmp dword [rcx], r15d
je 0x18004685a
mov ebx, dword [rsp + rbp*8 + 0x68]
call fcn.180026500
mov dword [rax + 8], r15d
mov dword [rax + 0x18], r15d
call fcn.180026500
mov edx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov dword [rcx + rdx*8], ebx
inc dword [rax + 8]
call fcn.180026500
mov edx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov dword [rcx + rdx*8], r15d
mov rcx, r13
inc dword [rax + 8]
call fcn.1800263a0
call fcn.180026500
mov rcx, qword [rax]
cmp dword [rcx], r15d
je 0x18004685a
mov ebx, dword [rsp + rbp*8 + 0x68]
call fcn.180026500
mov dword [rax + 8], r15d
mov dword [rax + 0x18], r15d
call fcn.180026500
mov edx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov dword [rcx + rdx*8], ebx
inc dword [rax + 8]
call fcn.180026500
mov edx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov dword [rcx + rdx*8], r15d
mov rcx, rdi
inc dword [rax + 8]
call fcn.1800263a0
call fcn.180026500
mov rcx, qword [rax]
mov eax, dword [rcx]
mov dword [rsp + rbp*8 + 0x68], eax
call fcn.180026500
mov dword [rax + 8], r15d
mov dword [rax + 0x18], r15d
call fcn.180026500
mov edx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov dword [rcx + rdx*8], r15d
mov rcx, rsi
inc dword [rax + 8]
call fcn.1800263a0
call fcn.180026500
xorps xmm9, xmm9
xorps xmm8, xmm8
mov rcx, qword [rax]
movups xmm0, xmmword [rcx]
movsd xmm1, qword [rcx + 0x10]
mulss xmm0, xmm12
mulss xmm1, xmm12
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, xmm14
cvtps2pd xmm7, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_sin
movss xmm6, dword [0x180254af4]
xorps xmm2, xmm2
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movaps xmm0, xmm8
xorps xmm1, xmm13
cvtss2sd xmm2, xmm1
mulsd xmm2, xmm7
cvtpd2ps xmm11, xmm2
mulss xmm11, 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
cvtsd2ss xmm7, xmm0
mulss xmm7, xmm6
call fcn.180026500
movabs rcx, 0x14d6f5678d8f1b37
mov dword [rax + 8], r15d
mov dword [rax + 0x18], r15d
call fcn.1800263a0
call fcn.180026500
mov ebx, dword [rsp + rbp*8 + 0x68]
mov rcx, qword [rax]
movups xmm0, xmmword [rcx]
movsd xmm9, qword [rcx + 0x10]
addss xmm11, xmm0
shufps xmm0, xmm0, 0xaa
addss xmm8, xmm0
addss xmm9, xmm7
call fcn.180026500
mov dword [rax + 8], r15d
mov dword [rax + 0x18], r15d
call fcn.180026500
mov edx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov dword [rcx + rdx*8], ebx
inc dword [rax + 8]
call fcn.180026500
mov edx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov dword [rcx + rdx*8], r15d
movabs rcx, 0x3fef770d40960d5a
inc dword [rax + 8]
call fcn.1800263a0
call fcn.180026500
mov rcx, qword [rax]
mov rax, qword [0x180254b80]
movups xmm7, xmmword [rcx]
movsd xmm0, qword [rcx + 0x10]
movzx esi, byte [rax + 0x12a]
movzx edi, byte [rax + 0x129]
movzx ebx, byte [rax + 0x128]
movups xmmword [rsp + 0x20], xmm7
movsd qword [rsp + 0x30], xmm0
call fcn.180026500
mov dword [rax + 8], r15d
mov dword [rax + 0x18], r15d
call fcn.180026500
mov edx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
movss dword [rcx + rdx*8], xmm11
inc dword [rax + 8]
call fcn.180026500
mov edx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
movss dword [rcx + rdx*8], xmm8
inc dword [rax + 8]
call fcn.180026500
mov edx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
movss dword [rcx + rdx*8], xmm9
inc dword [rax + 8]
call fcn.180026500
mov edx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov dword [rcx + rdx*8], 0x40800000
inc dword [rax + 8]
call fcn.180026500
mov edx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov dword [rcx + rdx*8], ebx
inc dword [rax + 8]
call fcn.180026500
mov edx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov dword [rcx + rdx*8], edi
inc dword [rax + 8]
call fcn.180026500
mov edx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov dword [rcx + rdx*8], esi
inc dword [rax + 8]
call fcn.180026500
mov edx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov dword [rcx + rdx*8], 0x3f000000
movabs rcx, 0x799017f9e3b10112
inc dword [rax + 8]
call fcn.1800263a0
mov edx, dword [rsp + rbp*8 + 0x68]
call fcn.180032cf0
mov edx, dword [rsp + rbp*8 + 0xc8]
call fcn.180032cf0
comiss xmm11, xmm10
jbe 0x180046ad7
comiss xmm7, xmm10
jbe 0x180046ad7
movaps xmm6, xmm11
subss xmm6, xmm7
movss dword [0x1802d942c], xmm6
jmp 0x180046adf
movss xmm6, dword [0x1802d942c]
comiss xmm10, xmm11
jbe 0x180046afb
comiss xmm10, xmm7
jbe 0x180046afb
movaps xmm6, xmm11
subss xmm6, xmm7
movss dword [0x1802d942c], xmm6
comiss xmm11, xmm10
jbe 0x180046b17
comiss xmm10, xmm7
jbe 0x180046b17
movaps xmm6, xmm11
addss xmm6, xmm7
movss dword [0x1802d942c], xmm6
comiss xmm10, xmm11
jbe 0x180046b33
comiss xmm7, xmm10
jbe 0x180046b33
movaps xmm6, xmm11
addss xmm6, xmm7
movss dword [0x1802d942c], xmm6
comiss xmm8, xmm10
movss xmm0, dword [rsp + 0x28]
movaps xmm11, xmm6
jbe 0x180046b59
comiss xmm0, xmm10
jbe 0x180046b59
movaps xmm6, xmm8
subss xmm6, xmm0
movss dword [0x1802d942c], xmm6
comiss xmm10, xmm8
jbe 0x180046b75
comiss xmm10, xmm0
jbe 0x180046b75
movaps xmm6, xmm8
subss xmm6, xmm0
movss dword [0x1802d942c], xmm6
comiss xmm8, xmm10
jbe 0x180046b91
comiss xmm10, xmm0
jbe 0x180046b91
movaps xmm6, xmm8
addss xmm6, xmm0
movss dword [0x1802d942c], xmm6
comiss xmm10, xmm8
jbe 0x180046bad
comiss xmm0, xmm10
jbe 0x180046bad
movaps xmm6, xmm8
addss xmm6, xmm0
movss dword [0x1802d942c], xmm6
comiss xmm9, xmm10
movss xmm0, dword [rsp + 0x30]
movaps xmm7, xmm6
jbe 0x180046bd2
comiss xmm0, xmm10
jbe 0x180046bd2
movaps xmm6, xmm9
subss xmm6, xmm0
movss dword [0x1802d942c], xmm6
comiss xmm10, xmm9
jbe 0x180046bee
comiss xmm10, xmm0
jbe 0x180046bee
movaps xmm6, xmm9
subss xmm6, xmm0
movss dword [0x1802d942c], xmm6
comiss xmm9, xmm10
jbe 0x180046c0a
comiss xmm10, xmm0
jbe 0x180046c0a
movaps xmm6, xmm9
addss xmm6, xmm0
movss dword [0x1802d942c], xmm6
comiss xmm10, xmm9
jbe 0x180046c26
comiss xmm0, xmm10
jbe 0x180046c26
movaps xmm6, xmm9
addss xmm6, xmm0
movss dword [0x1802d942c], xmm6
mov ecx, dword [rsp + rbp*8 + 0xc8]
addss xmm6, xmm6
addss xmm7, xmm7
addss xmm11, xmm11
movaps xmm3, xmm6
movaps xmm2, xmm7
movaps xmm1, xmm11
call fcn.18003f180
mov ecx, dword [rsp + rbp*8 + 0x68]
movaps xmm3, xmm6
movaps xmm2, xmm7
movaps xmm1, xmm11
call fcn.18003f180
inc rbp
movabs rdi, 0x9a9112a0fe9a4713
movabs rsi, 0x837765a25378f0bb
cmp rbp, r14
jl 0x180046787
movaps xmm14, xmmword [rsp + 0x130]
movaps xmm13, xmmword [rsp + 0x140]
movaps xmm12, xmmword [rsp + 0x150]
movaps xmm11, xmmword [rsp + 0x160]
movaps xmm10, xmmword [rsp + 0x170]
movaps xmm9, xmmword [rsp + 0x180]
movaps xmm8, xmmword [rsp + 0x190]
movaps xmm7, xmmword [rsp + 0x1a0]
movaps xmm6, xmmword [rsp + 0x1b0]
mov r13, qword [rsp + 0x1d0]
mov r12, qword [rsp + 0x1d8]
mov rsi, qword [rsp + 0x200]
mov rbp, qword [rsp + 0x1f8]
mov r14, qword [rsp + 0x1c8]
mov rdi, qword [rsp + 0x1e0]
mov rbx, qword [rsp + 0x1f0]
mov r15, qword [rsp + 0x1c0]
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.180168800
add rsp, 0x1e8
ret