Function at 0x140001170
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x140
mov rax, qword [0x1400a1040]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov eax, dword [0x1400a1138]
mov rbx, r8
mov qword [rsp + 0x40], rdx
cmp eax, 1
jne 0x1400011c3
mov ecx, dword [0x1400a113c]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x1400011bd
cmp byte [0x1400a1134], 0
sete al
mov byte [0x1400a1134], al
jmp 0x1400011e9
mov eax, dword [0x1400a1138]
cmp eax, 2
jne 0x1400011e2
mov ecx, dword [0x1400a113c]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
setne al
mov byte [0x1400a1134], al
jmp 0x1400011e9
movzx eax, byte [0x1400a1134]
test al, al
je 0x1400016a2
movss xmm0, dword [rbx + 0x14]
movss xmm1, dword [rbx + 0x10]
mov qword [rsp + 0x150], rbp
mov qword [rsp + 0x160], rsi
mov qword [rsp + 0x168], rdi
mov qword [rsp + 0x138], r12
mov qword [rsp + 0x130], r13
mov qword [rsp + 0x128], r14
mov qword [rsp + 0x120], r15
movaps xmmword [rsp + 0x110], xmm6
movaps xmmword [rsp + 0x100], xmm7
movaps xmmword [rsp + 0xf0], xmm8
movaps xmmword [rsp + 0xe0], xmm9
movaps xmmword [rsp + 0xd0], xmm10
movaps xmmword [rsp + 0xc0], xmm11
movaps xmmword [rsp + 0xb0], xmm12
mulss xmm0, xmm0
movaps xmmword [rsp + 0xa0], xmm13
mulss xmm1, xmm1
movaps xmmword [rsp + 0x90], xmm14
movaps xmmword [rsp + 0x80], xmm15
addss xmm1, xmm0
xorps xmm0, xmm0
ucomiss xmm0, xmm1
ja 0x1400012aa
xorps xmm13, xmm13
sqrtss xmm13, xmm1
jmp 0x1400012b6
movaps xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrtf
movaps xmm13, xmm0
mov eax, dword [rbx + 8]
lea rsi, [0x1400a22c4]
movss xmm9, dword [0x140092ff4]
lea rcx, [0x1400b8248]
movzx r12d, byte [0x1400a1153]
cdq
movzx r13d, byte [0x1400a1152]
sub eax, edx
movzx ebp, byte [0x1400a1151]
movaps xmm8, xmm9
movzx r14d, byte [0x1400a1150]
xorps xmm12, xmm12
mov r15d, dword [0x1400a1144]
xorps xmm10, xmm10
movss xmm14, dword [0x140092f80]
sar eax, 1
movd xmm11, eax
mov eax, dword [rbx + 0xc]
cdq
sub eax, edx
sar eax, 1
cvtdq2ps xmm11, xmm11
movd xmm15, eax
cvtdq2ps xmm15, xmm15
nop word [rax + rax]
cmp byte [rsi + 0x31], 0
je 0x140001468
test r15d, r15d
je 0x140001348
cmp dword [rsi], r15d
jg 0x140001468
mov rax, qword [0x1400b8248]
cmp dword [rsi + 4], eax
je 0x140001451
test r13b, r13b
je 0x140001367
cmp byte [rsi + 0x30], 0
je 0x140001451
test r12b, r12b
jne 0x140001376
cmp dword [rsi - 4], 3
je 0x140001451
xor edi, edi
lea rbx, [rsi - 0x114]
nop
cmp byte [rbx + 4], 0
je 0x14000143b
movsxd rcx, edi
call fcn.140001080
sub eax, 3
je 0x1400013b5
sub eax, 1
je 0x1400013b5
sub eax, 1
je 0x1400013b5
sub eax, 1
je 0x1400013af
cmp eax, 1
jne 0x14000143b
movzx eax, r14b
jmp 0x1400013b9
movzx eax, bpl
test al, al
je 0x14000143b
movss xmm0, dword [rbx - 4]
movss xmm1, dword [rbx]
movaps xmm6, xmm0
movaps xmm7, xmm1
subss xmm0, xmm11
subss xmm1, xmm15
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm1, xmm0
xorps xmm0, xmm0
ucomiss xmm0, xmm1
ja 0x1400013f3
xorps xmm0, xmm0
sqrtss xmm0, xmm1
jmp 0x1400013fb
movaps xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrtf
mulss xmm0, xmm13
divss xmm0, xmm11
call sub.api_ms_win_crt_math_l1_1_0.dll_atanf
addss xmm0, xmm0
mulss xmm0, xmm14
comiss xmm8, xmm0
jbe 0x14000143b
movaps xmm8, xmm0
movaps xmm0, xmm6
unpcklps xmm0, xmm7
movaps xmm1, xmm0
movsd qword [rsp + 0x30], xmm0
movss xmm12, dword [rsp + 0x30]
shufps xmm1, xmm1, 0x55
movaps xmm10, xmm1
inc edi
add rbx, 0xc
cmp edi, 0x15
jb 0x140001380
lea rcx, [0x1400b8248]
add rsi, 0x248
lea rax, [rsi - 0x214]
cmp rax, rcx
jne 0x140001330
comiss xmm8, xmm9
mov r15, qword [rsp + 0x120]
mov r14, qword [rsp + 0x128]
mov r13, qword [rsp + 0x130]
mov r12, qword [rsp + 0x138]
mov rsi, qword [rsp + 0x160]
mov rbp, qword [rsp + 0x150]
jae 0x140001642
comiss xmm8, dword [0x1400a1148]
ja 0x140001642
cmp byte [0x1400a1154], 0
je 0x140001577
movss xmm7, dword [0x140092f34]
lea r8, [rsp + 0x38]
movss xmm6, dword [0x140092e84]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
movaps xmm0, xmm10
addss xmm0, xmm7
movss dword [rsp + 0x20], xmm6
movaps xmm9, xmm12
movaps xmm8, xmm12
addss xmm9, xmm7
mov r9d, 0xffffffff
subss xmm8, xmm7
movss dword [rsp + 0x3c], xmm0
movaps xmm0, xmm10
subss xmm0, xmm7
movss dword [rsp + 0x38], xmm9
movss dword [rsp + 0x30], xmm8
movss dword [rsp + 0x34], xmm0
call fcn.140043170
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x30]
movaps xmm0, xmm10
movss dword [rsp + 0x30], xmm9
movaps xmm1, xmm10
movss dword [rsp + 0x38], xmm8
subss xmm1, dword [0x140093038]
subss xmm0, xmm7
movss dword [rsp + 0x20], xmm6
mov r9d, 0xffffffff
lea rdx, [rsp + 0x38]
movss dword [rsp + 0x3c], xmm1
movss dword [rsp + 0x34], xmm0
call fcn.140043170
movss xmm6, dword [0x140092f18]
subss xmm10, xmm15
divss xmm6, dword [0x1400a1140]
subss xmm12, xmm11
xorps xmm0, xmm0
movaps xmm7, xmm6
mulss xmm6, xmm10
mulss xmm10, xmm10
mulss xmm7, xmm12
mulss xmm12, xmm12
addss xmm10, xmm12
ucomiss xmm0, xmm10
ja 0x1400015c0
xorps xmm0, xmm0
sqrtss xmm0, xmm10
jmp 0x1400015c9
movaps xmm0, xmm10
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrtf
mulss xmm0, xmm13
divss xmm0, xmm11
call sub.api_ms_win_crt_math_l1_1_0.dll_atanf
addss xmm0, xmm0
mulss xmm0, xmm14
comiss xmm0, dword [0x140092ed0]
jbe 0x1400015fa
divss xmm7, dword [0x1400a114c]
divss xmm6, dword [0x1400a114c]
cvttss2si eax, xmm7
mov qword [rsp + 0x48], 0
mov r8d, 0x28
mov dword [rsp + 0x58], 0
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x5c], 1
mov ecx, 1
xorps xmm0, xmm0
mov dword [rsp + 0x50], eax
cvttss2si eax, xmm6
movdqu xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x54], eax
call qword [sym.imp.USER32.dll_SendInput]
movaps xmm14, xmmword [rsp + 0x90]
movaps xmm13, xmmword [rsp + 0xa0]
movaps xmm12, xmmword [rsp + 0xb0]
movaps xmm11, xmmword [rsp + 0xc0]
movaps xmm10, xmmword [rsp + 0xd0]
movaps xmm9, xmmword [rsp + 0xe0]
movaps xmm8, xmmword [rsp + 0xf0]
movaps xmm7, xmmword [rsp + 0x100]
movaps xmm6, xmmword [rsp + 0x110]
mov rdi, qword [rsp + 0x168]
movaps xmm15, xmmword [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400875c0
add rsp, 0x140
pop rbx
ret