Function at 0x140006870
Capabilities:
Log keystrokes via polling

Disassembly:
mov r11, rsp
push rbp
lea rbp, [r11 - 0x5f]
sub rsp, 0x100
mov rax, qword [0x1400cb180]
xor rax, rsp
mov qword [rbp - 9], rax
cmp byte [0x1400cb228], 0
je 0x140006c51
mov qword [r11 + 8], rbx
lea rcx, [rbp - 0x51]
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
mov qword [r11 - 0x18], r13
mov qword [r11 - 0x20], r14
mov qword [r11 - 0x28], r15
movaps xmmword [r11 - 0x38], xmm6
movaps xmmword [r11 - 0x48], xmm7
movaps xmmword [r11 - 0x58], xmm8
call fcn.140001350
mov rax, qword [rbp - 0x51]
sub rax, qword [0x1400d2668]
cmp rax, 0xef5f4c0
jl 0x1400068e4
mov byte [0x1400d2758], 1
mov ecx, dword [0x1400cb220]
xor r13d, r13d
mov esi, r13d
test ecx, ecx
je 0x14000691d
sub ecx, 1
je 0x140006908
sub ecx, 1
je 0x140006916
sub ecx, 1
je 0x14000690f
cmp ecx, 1
jne 0x140006922
mov esi, 0x43
jmp 0x140006922
mov esi, 2
jmp 0x140006922
mov esi, 7
jmp 0x140006922
mov esi, WSAGetLastError
mov rcx, qword [0x1400d2648]
lea rax, [rbp + 0x5f]
mov rdi, qword [rax]
lea r14, [rbp + 0x5f]
mov qword [rax], r13
lea r8, [rbp - 0x49]
mov rax, qword [0x1400d27b8]
mov r9d, 0x28
add rax, 0x198
mov qword [rbp - 0x51], r13
mov rbx, qword [r14]
mov edx, 0x220ce8
mov qword [r14], r13
mov qword [rbp - 0x41], rax
lea rax, [rbp - 0x51]
mov qword [rsp + 0x38], r13
mov qword [rbp - 0x39], rax
mov eax, dword [0x1400d2650]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rbp - 0x49], eax
mov dword [rbp - 0x45], r13d
mov dword [rbp - 0x28], r13d
mov word [rbp - 0x24], r13w
mov byte [rbp - 0x22], r13b
mov qword [rbp - 0x31], 8
mov byte [rbp - 0x29], r13b
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov qword [r14], rbx
lea rdx, [rbp - 0x69]
mov rcx, qword [rbp - 0x51]
lea rbx, [rbp + 0x5f]
mov qword [rbx], r13
xorps xmm0, xmm0
xorps xmm8, xmm8
add rcx, 0x120
mov r8d, 0x18
movsd qword [rbp - 0x59], xmm8
movups xmmword [rbp - 0x69], xmm0
call fcn.1400016c0
movss xmm6, dword [0x1400b3520]
mov qword [rbx], rdi
movaps xmm1, xmm6
movsd xmm0, qword [rbp - 0x61]
subsd xmm0, qword [0x1400cb2c8]
cvtpd2ps xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_powf
movaps xmm7, xmm0
movaps xmm1, xmm6
movsd xmm0, qword [rbp - 0x69]
subsd xmm0, qword [0x1400cb2c0]
cvtpd2ps xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_powf
movsd xmm2, qword [rbp - 0x59]
addss xmm7, xmm0
subsd xmm2, qword [0x1400cb2d0]
movaps xmm1, xmm6
cvtpd2ps xmm0, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll_powf
addss xmm7, xmm0
xorps xmm1, xmm1
ucomiss xmm1, xmm7
ja 0x140006a50
xorps xmm0, xmm0
sqrtss xmm0, xmm7
jmp 0x140006a58
movaps xmm0, xmm7
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrtf
cmp byte [0x1400cb22a], r13b
xorps xmm6, xmm6
movaps xmm7, xmmword [rsp + 0xc0]
cvtss2sd xmm0, xmm0
divsd xmm0, qword [0x1400b3568]
cvtsd2ss xmm6, xmm0
je 0x140006a8e
mov ecx, dword [0x1400cb234]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx r14d, ax
jmp 0x140006a94
mov r14d, 1
mov r15, qword [0x1400d27b8]
test r15, r15
je 0x140006c10
movss xmm0, dword [0x1400b3620]
comiss xmm0, xmm6
jb 0x140006c10
mov rcx, qword [0x1400d2740]
lea rdx, [rbp - 0x21]
mov rdi, qword [0x1400d2670]
xorps xmm0, xmm0
mov qword [rsp + 0xf8], r12
add rcx, 0x2698
lea r12, [rbp + 0x5f]
mov r8d, 0x18
mov rbx, qword [r12]
mov qword [r12], r13
movsd qword [rbp - 0x11], xmm8
movups xmmword [rbp - 0x21], xmm0
call fcn.1400016c0
mov rcx, r15
mov qword [r12], rbx
call fcn.140004440
mov r9d, esi
lea rdx, [rbp - 0x49]
mov r8, rdi
mov rcx, rax
call fcn.140006370
movsd xmm2, qword [rbp - 0x49]
movsd xmm1, qword [0x1400b3548]
movaps xmm0, xmm2
movsd xmm3, qword [rbp - 0x21]
subsd xmm0, xmm1
mov r12, qword [rsp + 0xf8]
comisd xmm3, xmm0
jb 0x140006c10
addsd xmm2, xmm1
comisd xmm2, xmm3
jb 0x140006c10
movsd xmm2, qword [rbp - 0x41]
movsd xmm3, qword [rbp - 0x19]
movaps xmm0, xmm2
subsd xmm0, xmm1
comisd xmm3, xmm0
jb 0x140006c10
addsd xmm2, xmm1
comisd xmm2, xmm3
jb 0x140006c10
movsd xmm2, qword [rbp - 0x39]
movsd xmm3, qword [rbp - 0x11]
movaps xmm0, xmm2
subsd xmm0, xmm1
comisd xmm3, xmm0
jb 0x140006c10
addsd xmm2, xmm1
comisd xmm2, xmm3
jb 0x140006c10
test r14d, r14d
je 0x140006c10
cmp byte [0x1400cb229], r13b
je 0x140006bb2
cmp byte [0x1400d2738], 2
jne 0x140006c10
cmp byte [0x1400d2664], r13b
je 0x140006bd5
lea rcx, [rbp - 0x51]
call fcn.140001350
mov byte [0x1400d2664], r13b
mov rcx, qword [rax]
mov qword [0x1400d2680], rcx
lea rcx, [rbp - 0x51]
call fcn.140001350
mov rcx, qword [rax]
movabs rax, 0x431bde82d7b634db
mov qword [0x1400d2678], rcx
sub rcx, qword [0x1400d2680]
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov dword [0x1400d2660], edx
movaps xmm6, xmmword [rsp + 0xd0]
mov r15, qword [rsp + 0xe0]
mov r14, qword [rsp + 0xe8]
mov r13, qword [rsp + 0xf0]
mov rdi, qword [rsp + 0x120]
mov rsi, qword [rsp + 0x118]
mov rbx, qword [rsp + 0x110]
movaps xmm8, xmmword [rsp + 0xb0]
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.14009cee0
add rsp, 0x100
pop rbp
ret