Function at 0x140008ca0
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rdx
push rbp
lea rbp, [rax - 0x68]
sub rsp, 0x160
movaps xmmword [rax - 0x18], xmm6
mov rbx, rdx
movaps xmm6, xmm0
ucomisd xmm0, qword [0x1400c6818]
jp 0x140008cd5
je 0x140008ee4
cmp byte [0x140191a5a], 0
je 0x140008ee4
mov rax, qword [0x1401bc430]
cmp qword [rax + 0x20], 0
je 0x140008ee4
movzx ecx, byte [reloc.WS2_32.dll_bind]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x140008ee4
xorps xmm1, xmm1
mov eax, dword [0x140191a54]
test eax, eax
jne 0x140008d6e
mov rax, qword [rbx]
mov rcx, qword [rax + 8]
test rcx, rcx
jne 0x140008d33
movups xmmword [rsp + 0x40], xmm1
xorps xmm0, xmm0
movsd qword [rsp + 0x50], xmm0
jmp 0x140008d48
mov r8d, WSAGetLastError
lea rdx, [rsp + 0x40]
call fcn.140005990
movups xmm1, xmmword [rsp + 0x40]
movaps xmmword [rbp - 0x80], xmm1
movsd xmm0, qword [rsp + 0x50]
movsd qword [rbp - 0x70], xmm0
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x30]
call fcn.1400055f0
movupd xmm1, xmmword [rax]
jmp 0x140008e48
cmp eax, 1
jne 0x140008db1
mov rax, qword [rbx]
mov r8d, 0x42
lea rdx, [rbp]
mov rcx, qword [rax + 8]
call fcn.140005990
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x60], xmm0
movsd xmm1, qword [rax + 0x10]
movsd qword [rbp - 0x50], xmm1
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x30]
call fcn.1400055f0
movupd xmm1, xmmword [rax]
jmp 0x140008e48
cmp eax, 2
jne 0x140008e48
mov rax, qword [rbx]
mov r8d, Ordinal_41
lea rdx, [rbp + 0x18]
mov rcx, qword [rax + 8]
call fcn.140005990
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x40], xmm0
movsd xmm1, qword [rax + 0x10]
movsd qword [rbp - 0x30], xmm1
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x58]
call fcn.1400055f0
mov rax, qword [rbx]
mov r8d, 8
lea rdx, [rbp + 0x30]
mov rcx, qword [rax + 8]
call fcn.140005990
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x20], xmm0
movsd xmm1, qword [rax + 0x10]
movsd qword [rbp - 0x10], xmm1
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x30]
call fcn.1400055f0
movsd xmm1, qword [rsp + 0x30]
subsd xmm1, qword [rsp + 0x58]
mulsd xmm1, qword [0x1400c6698]
addsd xmm1, qword [rsp + 0x58]
movsd xmm0, qword [rsp + 0x60]
unpcklpd xmm1, xmm0
movdqa xmmword [rsp + 0x70], xmm1
movd xmm2, dword [0x140191aa0]
cvtdq2ps xmm2, xmm2
movd xmm1, dword [0x140191a9c]
cvtdq2ps xmm1, xmm1
lea rcx, [rsp + 0x70]
call fcn.140005b30
cmp byte [0x140191a5b], 0
je 0x140008ee4
movsd xmm0, qword [0x1400c66e8]
comisd xmm0, xmm6
jbe 0x140008ee4
mov rax, qword [rbx]
cmp dword [rax + 0x3c], 0xf
jge 0x140008ee4
mov rcx, qword [0x1401bc430]
add rcx, 0x48
cmp qword [rcx + 0x18], 0x10
jb 0x140008ea3
mov rcx, qword [rcx]
lea rdx, str.Shotgun
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
je 0x140008ee4
xor edi, edi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea ecx, [rdi + 2]
call qword [sym.imp.USER32.dll_mouse_event]
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea ecx, [rdi + 4]
call qword [sym.imp.USER32.dll_mouse_event]
nop
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x140008f19
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140008f19
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140008f19
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop rbp
ret