Function at 0x14004cc30
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x1400f30c0]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov rdi, rdx
mov qword [rbp - 0x70], rdx
cmp byte [0x1400fbbd7], 0
je 0x14004cc81
mov ecx, 2
mov dword [0x1400fb7a8], ecx
jmp 0x14004cc87
mov ecx, dword [0x1400fb7a8]
cmp byte [0x1400fbbd5], 0
je 0x14004cc9b
mov ecx, 1
mov dword [0x1400fb7a8], ecx
cmp byte [0x1400fbbda], 0
je 0x14004ccaf
mov ecx, reloc.WS2_32.dll_sendto
mov dword [0x1400fb7a8], ecx
cmp byte [0x1400fbc15], 0
je 0x14004ccc3
mov ecx, 0xa0
mov dword [0x1400fb7a8], ecx
xor r15d, r15d
ucomisd xmm0, qword [0x1400e0e10]
jp 0x14004ccd6
je 0x14004cf5c
cmp byte [0x1400fbbfb], r15b
je 0x14004cf5c
mov rax, qword [0x1400fbc90]
cmp qword [rax + 0xc0], r15
je 0x14004cf5c
lea rbx, [rbp + 0xb8]
mov rsi, qword [rbx]
mov qword [rbx], r15
movzx ecx, cl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt eax, 0xf
mov qword [rbx], rsi
jb 0x14004cd54
lea r14, [rbp + 0xb8]
mov qword [r14], r15
mov rbx, qword [0x1400fb818]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov rdx, rbx
mov ecx, dword [rbx + 0x10]
call qword [sym.imp.XINPUT1_4.dll_Ordinal_2]
movups xmm0, xmmword [rbx]
movups xmmword [rbp], xmm0
mov qword [r14], rsi
movq rax, xmm0
shr rax, 0x30
test al, al
je 0x14004cf5c
xorps xmm1, xmm1
cmp byte [0x1400fbc06], r15b
je 0x14004cdec
mov rax, qword [rdi]
mov rcx, qword [rax + 8]
lea rbx, [rbp + 0xb8]
mov qword [rbx], r15
test rcx, rcx
je 0x14004cd89
mov r8d, WSASetLastError
lea rdx, [rbp + 0x20]
call fcn.140048f40
mov qword [rbx], rsi
mov rax, qword [rdi]
mov rcx, qword [rax + 8]
lea rax, [rbp + 0xb8]
mov qword [rax], r15
test rcx, rcx
jne 0x14004cdb5
xorps xmm1, xmm1
movups xmmword [rsp + 0x50], xmm1
xorps xmm0, xmm0
movsd qword [rsp + 0x60], xmm0
jmp 0x14004cdca
mov r8d, WSASetLastError
lea rdx, [rsp + 0x50]
call fcn.140048f40
movups xmm1, xmmword [rsp + 0x50]
mov qword [rbx], rsi
movaps xmmword [rsp + 0x30], xmm1
movsd xmm0, qword [rsp + 0x60]
movsd qword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x10]
jmp 0x14004cf45
cmp byte [0x1400fbbe4], r15b
je 0x14004ce3f
mov rax, qword [rdi]
mov r8d, 0x42
lea rdx, [rbp + 0x38]
mov rcx, qword [rax + 8]
call fcn.140048f40
mov rax, qword [rdi]
mov r8d, 0x42
lea rdx, [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.140048f40
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
movsd xmm1, qword [rax + 0x10]
movsd qword [rsp + 0x40], xmm1
lea rdx, [rsp + 0x30]
jmp 0x14004cf40
cmp byte [0x1400fbc38], r15b
je 0x14004cef4
mov rax, qword [rdi]
mov r8d, Ordinal_41
lea rdx, [rbp + 0x50]
mov rcx, qword [rax + 8]
call fcn.140048f40
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x50], xmm0
movsd xmm1, qword [rax + 0x10]
movsd qword [rbp - 0x40], xmm1
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x30]
call fcn.1400442a0
mov rax, qword [rdi]
mov r8d, 8
lea rdx, [rbp - 0x30]
mov rcx, qword [rax + 8]
call fcn.140048f40
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x70], xmm0
movsd xmm1, qword [rax + 0x10]
movsd qword [rbp - 0x80], xmm1
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.1400442a0
mov rax, qword [rdi]
mov r8d, 8
lea rdx, [rbp - 0x18]
mov rcx, qword [rax + 8]
call fcn.140048f40
movsd xmm1, qword [rsp + 0x50]
subsd xmm1, qword [rsp + 0x30]
mulsd xmm1, qword [0x1400e0b40]
addsd xmm1, qword [rsp + 0x30]
movsd xmm0, qword [rsp + 0x38]
unpcklpd xmm1, xmm0
jmp 0x14004cf4e
cmp byte [0x1400fbc3e], r15b
je 0x14004cf4e
mov rax, qword [rdi]
mov r8d, 2
lea rdx, [rbp - 0x18]
mov rcx, qword [rax + 8]
call fcn.140048f40
mov rax, qword [rdi]
mov r8d, 2
lea rdx, [rbp - 0x30]
mov rcx, qword [rax + 8]
call fcn.140048f40
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x70], xmm0
movsd xmm1, qword [rax + 0x10]
movsd qword [rbp - 0x80], xmm1
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.1400442a0
movupd xmm1, xmmword [rax]
movdqa xmmword [rbp - 0x60], xmm1
lea rcx, [rbp - 0x60]
call fcn.14004c900
cmp byte [0x1400fbbf1], r15b
je 0x14004d077
mov rax, qword [0x1400fbc90]
mov rcx, qword [rax + 0x18]
add rcx, 0x1840
call fcn.14005ffc0
mov rcx, rax
call fcn.14005ffc0
mov rsi, rax
movzx ecx, byte [0x1400fb7a8]
lea r14, [rbp + 0xb8]
mov rbx, qword [r14]
mov qword [r14], r15
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt eax, 0xf
mov qword [r14], rbx
jae 0x14004cfca
cmp byte [0x1400fa9b9], r15b
je 0x14004cfdc
mov rax, rsi
mov qword [0x1400fb720], rax
mov byte [0x1400fa9b9], r15b
jmp 0x14004cfe3
cmp byte [0x1400fa9b9], r15b
jne 0x14004cfdc
mov byte [0x1400fa9b9], 1
jmp 0x14004d055
mov rax, qword [0x1400fb720]
test rax, rax
je 0x14004d05f
cmp rax, rsi
je 0x14004d077
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x6c], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x80], xmm1
mov dword [rbp + 0x68], r15d
mov dword [rbp + 0x7c], 2
mov r8d, Ordinal_45
lea rdx, [rbp + 0x68]
lea ecx, [r8 - 0x27]
call qword [sym.imp.USER32.dll_SendInput]
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x6c], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x80], xmm1
mov dword [rbp + 0x68], r15d
mov dword [rbp + 0x7c], 4
mov r8d, Ordinal_45
lea rdx, [rbp + 0x68]
lea ecx, [r8 - 0x27]
call qword [sym.imp.USER32.dll_SendInput]
mov rax, r15
mov qword [0x1400fb720], rax
cmp rax, rsi
je 0x14004d077
test rax, rax
je 0x14004d077
mov edx, 0x1f4
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Beep]
nop
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x14004d0ac
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14004d0ac
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14004d0ac
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.1400c5d80
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret