Function at 0x18013dc10
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x18028ab00]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rdx
cmp byte [rcx + 0xc], 0
je 0x18013deb3
cmp byte [reloc.WS2_32.dll_accept], 0
je 0x18013dc5d
mov ecx, 2
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x18013deb3
cmp byte [0x1803937ef], 0
jne 0x18013deb3
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, qword [0x180392300]
jne 0x18013deb3
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x28], xmm1
movdqu xmmword [rbp - 0x18], xmm0
lea rdx, [rbp - 0x38]
mov rcx, rbx
call fcn.18014f430
mov edi, 0xffffffff
test al, al
je 0x18013de10
mov r8, rbx
lea rdx, [rbp - 0x48]
mov rcx, qword [rbp - 0x38]
call fcn.180150a00
nop
mov r8, rbx
lea rdx, [rbp - 0x58]
mov rcx, qword [rbp - 0x28]
call fcn.18014bfa0
nop
mov rax, qword [rbp - 0x48]
cmp qword [rax + 8], 0
je 0x18013dce8
mov ecx, 5
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x18013dda0
cmp byte [reloc.WS2_32.dll_accept], 0
je 0x18013dd05
mov rdx, rbx
mov rcx, qword [rbp - 0x58]
call fcn.180145c00
test al, al
je 0x18013dda0
mov edx, 1
mov r8d, 5
call fcn.18011b910
movsxd rbx, eax
xor r9d, r9d
mov edx, 0x204
mov r8d, 2
mov rcx, qword [0x180392300]
call qword [sym.imp.USER32.dll_SendMessageW]
mov qword [rbp - 0x60], rbx
lea rcx, [rbp - 0x60]
call fcn.1800ebe40
xor r9d, r9d
mov edx, 0x205
mov r8d, 2
mov rcx, qword [0x180392300]
call qword [sym.imp.USER32.dll_SendMessageW]
movss xmm2, dword [0x180259738]
divss xmm2, dword [0x180386ee8]
movaps xmm1, xmm2
mulss xmm1, dword [0x1802592e8]
movaps xmm0, xmm1
addss xmm0, xmm2
subss xmm2, xmm1
cvttss2si r8d, xmm0
cvttss2si edx, xmm2
call fcn.18011b910
movsxd rcx, eax
mov qword [rbp - 0x60], rcx
lea rcx, [rbp - 0x60]
call fcn.1800ebe40
nop
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x18013ddd8
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x18013ddd8
mov rbx, qword [rbp - 0x50]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x18013ddd8
mov rcx, qword [rbp - 0x50]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x18013de10
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x18013de10
mov rbx, qword [rbp - 0x40]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x18013de10
mov rcx, qword [rbp - 0x40]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x18013de47
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x18013de47
mov rbx, qword [rbp - 0x10]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x18013de47
mov rcx, qword [rbp - 0x10]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x18013de7e
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x18013de7e
mov rbx, qword [rbp - 0x20]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x18013de7e
mov rcx, qword [rbp - 0x20]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x18013deb3
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x18013deb3
mov rbx, qword [rbp - 0x30]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x18013deb3
mov rcx, qword [rbp - 0x30]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1801cb9c0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret