Function at 0x14004be30
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 - 0x47]
sub rsp, 0xc0
mov rax, qword [0x140071040]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rsi, rdx
mov qword [rbp + 7], rdx
cmp byte [0x140078fd7], 0
je 0x14004be7b
mov ecx, 2
mov dword [0x140078e48], ecx
jmp 0x14004be81
mov ecx, dword [0x140078e48]
cmp byte [0x140078fd5], 0
je 0x14004be95
mov ecx, 1
mov dword [0x140078e48], ecx
cmp byte [0x140078fda], 0
je 0x14004bea9
mov ecx, 0x14
mov dword [0x140078e48], ecx
cmp byte [0x140079019], 0
je 0x14004bebd
mov ecx, 0xa0
mov dword [0x140078e48], ecx
xor r15d, r15d
ucomisd xmm0, qword [0x140067dd8]
jp 0x14004bed0
je 0x14004c106
cmp byte [0x140078ffb], r15b
je 0x14004c106
mov rax, qword [0x140079090]
cmp qword [rax + 0xc0], r15
je 0x14004c106
lea rbx, [rbp + 0x5f]
mov rdi, qword [rbx]
mov qword [rbx], r15
movzx ecx, cl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt eax, 0xf
mov qword [rbx], rdi
jb 0x14004bf48
lea r14, [rbp + 0x5f]
mov qword [r14], r15
mov rbx, qword [0x140078eb0]
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 - 0x19], xmm0
mov qword [r14], rdi
movq rax, xmm0
shr rax, 0x30
test al, al
je 0x14004c106
xorps xmm1, xmm1
cmp byte [0x140079006], r15b
je 0x14004bfc6
mov rax, qword [rsi]
mov rcx, qword [rax + 8]
lea rbx, [rbp + 0x5f]
mov qword [rbx], r15
test rcx, rcx
je 0x14004bf76
mov r8d, 0x6e
lea rdx, [rbp - 0x59]
call fcn.1400481a0
mov qword [rbx], rdi
mov rax, qword [rsi]
mov rcx, qword [rax + 8]
lea rax, [rbp + 0x5f]
mov qword [rax], r15
test rcx, rcx
jne 0x14004bf9d
xorps xmm1, xmm1
movups xmmword [rbp - 0x31], xmm1
xorps xmm0, xmm0
movsd qword [rbp - 0x21], xmm0
jmp 0x14004bfb0
mov r8d, 0x6e
lea rdx, [rbp - 0x31]
call fcn.1400481a0
movups xmm1, xmmword [rbp - 0x31]
mov qword [rbx], rdi
movaps xmmword [rbp - 0x59], xmm1
movsd xmm0, qword [rbp - 0x21]
movsd qword [rbp - 0x49], xmm0
jmp 0x14004c0e7
cmp byte [0x140078fe4], r15b
je 0x14004bff4
mov rax, qword [rsi]
mov r8d, 0x42
lea rdx, [rbp - 0x59]
mov rcx, qword [rax + 8]
call fcn.1400481a0
mov r8d, 0x42
lea rdx, [rbp - 0x31]
jmp 0x14004c0ca
cmp byte [0x140079030], r15b
je 0x14004c0a1
mov rax, qword [rsi]
mov r8d, 0x25
lea rdx, [rbp - 0x19]
mov rcx, qword [rax + 8]
call fcn.1400481a0
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x59], xmm0
movsd xmm1, qword [rax + 0x10]
movsd qword [rbp - 0x49], xmm1
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x31]
call fcn.140042a90
mov rax, qword [rsi]
mov r8d, 8
lea rdx, [rbp + 0xf]
mov rcx, qword [rax + 8]
call fcn.1400481a0
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x59], xmm0
movsd xmm1, qword [rax + 0x10]
movsd qword [rbp - 0x49], xmm1
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x19]
call fcn.140042a90
mov rax, qword [rsi]
mov r8d, 8
lea rdx, [rbp + 0xf]
mov rcx, qword [rax + 8]
call fcn.1400481a0
movsd xmm1, qword [rbp - 0x19]
subsd xmm1, qword [rbp - 0x31]
mulsd xmm1, qword [0x140067b18]
addsd xmm1, qword [rbp - 0x31]
movsd xmm0, qword [rbp - 0x29]
unpcklpd xmm1, xmm0
jmp 0x14004c0f8
cmp byte [0x140079036], r15b
je 0x14004c0f8
mov rax, qword [rsi]
mov r8d, 2
lea rdx, [rbp + 0xf]
mov rcx, qword [rax + 8]
call fcn.1400481a0
mov r8d, 2
lea rdx, [rbp + 0xf]
mov rax, qword [rsi]
mov rcx, qword [rax + 8]
call fcn.1400481a0
movsd xmm1, qword [rax + 0x10]
movups xmm0, xmmword [rax]
movsd qword [rbp - 0x49], xmm1
movaps xmmword [rbp - 0x59], xmm0
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x19]
call fcn.140042a90
movupd xmm1, xmmword [rax]
movdqa xmmword [rbp - 0x19], xmm1
lea rcx, [rbp - 0x19]
call fcn.14004bb00
cmp byte [0x140078ff1], r15b
je 0x14004c21a
mov rax, qword [0x140079090]
mov rcx, qword [rax + 0x18]
add rcx, 0x1898
call fcn.14005be90
mov rcx, rax
call fcn.14005be90
mov rdi, rax
movzx ecx, byte [0x140078e48]
lea r14, [rbp + 0x5f]
mov rbx, qword [r14]
mov qword [r14], r15
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt eax, 0xf
mov qword [r14], rbx
jae 0x14004c171
cmp byte [0x140078059], r15b
je 0x14004c183
mov rax, rdi
mov qword [0x140078db0], rax
mov byte [0x140078059], r15b
jmp 0x14004c18a
cmp byte [0x140078059], r15b
jne 0x14004c183
mov byte [0x140078059], 1
jmp 0x14004c1f8
mov rax, qword [0x140078db0]
test rax, rax
je 0x14004c202
cmp rax, rdi
je 0x14004c21a
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x13], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x27], xmm1
mov dword [rbp + 0xf], r15d
mov dword [rbp + 0x23], 2
mov r8d, 0x28
lea rdx, [rbp + 0xf]
mov ecx, 1
call qword [sym.imp.USER32.dll_SendInput]
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x13], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x27], xmm1
mov dword [rbp + 0xf], r15d
mov dword [rbp + 0x23], 4
mov r8d, 0x28
lea rdx, [rbp + 0xf]
mov ecx, 1
call qword [sym.imp.USER32.dll_SendInput]
mov rax, r15
mov qword [0x140078db0], rax
cmp rax, rdi
je 0x14004c21a
test rax, rax
je 0x14004c21a
mov edx, 0x1f4
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Beep]
nop
mov rbx, qword [rsi + 8]
test rbx, rbx
je 0x14004c24f
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14004c24f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14004c24f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14005da30
lea r11, [rsp + 0xc0]
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