Function at 0x14004b290
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x140071010]
xor rax, rsp
mov qword [rbp + 0x58], rax
mov rdi, rdx
mov qword [rbp - 0x40], rdx
mov ecx, dword [0x140078ec4]
mov r12d, 2
cmp byte [0x140079087], 0
cmovne ecx, r12d
mov r13d, 1
cmp byte [0x140079085], 0
cmovne ecx, r13d
mov eax, 0x14
cmp byte [0x14007908a], 0
cmovne ecx, eax
mov eax, 0xa0
cmp byte [0x1400790c5], 0
cmovne ecx, eax
mov dword [0x140078ec4], ecx
xor r15d, r15d
ucomisd xmm0, qword [0x140067db0]
jp 0x14004b328
je 0x14004b5b0
cmp byte [0x1400790ab], r15b
je 0x14004b5b0
mov rax, qword [0x140079130]
cmp qword [rax + 0xc0], r15
je 0x14004b5b0
lea r14, [rbp + 0x88]
mov rsi, qword [r14]
mov qword [r14], r15
movzx ecx, cl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
and eax, 0x8000
mov qword [r14], rsi
jne 0x14004b3a0
mov qword [r14], r15
mov rbx, qword [0x140078f60]
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 - 8], xmm0
movq rax, xmm0
shr rax, 0x30
mov qword [r14], rsi
test al, al
je 0x14004b5b0
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
cmp byte [0x1400790b6], r15b
je 0x14004b438
mov rax, qword [rdi]
mov rcx, qword [rax + 8]
mov rsi, qword [r14]
mov qword [r14], r15
test rcx, rcx
je 0x14004b3d6
mov r8d, 0x6d
lea rdx, [rbp - 0x80]
call fcn.140047600
mov rbx, r14
mov qword [rbx], rsi
mov rax, qword [rdi]
mov rcx, qword [rax + 8]
mov rsi, qword [r14]
mov qword [r14], r15
test rcx, rcx
jne 0x14004b401
xorps xmm1, xmm1
movups xmmword [rsp + 0x60], xmm1
xorps xmm0, xmm0
movsd qword [rsp + 0x70], xmm0
jmp 0x14004b416
mov r8d, 0x6d
lea rdx, [rsp + 0x60]
call fcn.140047600
movups xmm1, xmmword [rsp + 0x60]
mov qword [rbx], rsi
movaps xmmword [rsp + 0x40], xmm1
movsd xmm0, qword [rsp + 0x70]
movsd qword [rsp + 0x50], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 8]
jmp 0x14004b58e
cmp byte [0x140079094], r15b
je 0x14004b48a
mov rax, qword [rdi]
mov r8d, 0x42
lea rdx, [rbp - 0x80]
mov rcx, qword [rax + 8]
call fcn.140047600
mov rax, qword [rdi]
mov r8d, 0x42
lea rdx, [rbp - 0x60]
mov rcx, qword [rax + 8]
call fcn.140047600
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x40], xmm0
movsd xmm1, qword [rax + 0x10]
movsd qword [rsp + 0x50], xmm1
lea rdx, [rsp + 0x40]
jmp 0x14004b589
cmp byte [0x1400790d8], r15b
je 0x14004b545
mov rax, qword [rdi]
mov r8d, 0x25
lea rdx, [rbp + 0x18]
mov rcx, qword [rax + 8]
call fcn.140047600
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 + 0x40]
call fcn.1400428e0
mov rax, qword [rdi]
mov r8d, 8
lea rdx, [rbp - 0x38]
mov rcx, qword [rax + 8]
call fcn.140047600
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x80], xmm0
movsd xmm1, qword [rax + 0x10]
movsd qword [rbp - 0x70], xmm1
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.1400428e0
mov rax, qword [rdi]
mov r8d, 8
lea rdx, [rbp - 0x20]
mov rcx, qword [rax + 8]
call fcn.140047600
movsd xmm1, qword [rsp + 0x60]
subsd xmm1, qword [rsp + 0x40]
mulsd xmm1, qword [0x140067ad8]
addsd xmm1, qword [rsp + 0x40]
movsd qword [rsp + 0x20], xmm1
movsd xmm0, qword [rsp + 0x48]
movsd qword [rsp + 0x28], xmm0
jmp 0x14004b59b
cmp byte [0x1400790de], r15b
je 0x14004b59b
mov rax, qword [rdi]
mov r8d, r12d
lea rdx, [rbp - 0x20]
mov rcx, qword [rax + 8]
call fcn.140047600
mov rax, qword [rdi]
mov r8d, r12d
lea rdx, [rbp - 0x38]
mov rcx, qword [rax + 8]
call fcn.140047600
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x80], xmm0
movsd xmm1, qword [rax + 0x10]
movsd qword [rbp - 0x70], xmm1
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.1400428e0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x20], xmm0
movups xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
call fcn.14004af70
cmp byte [0x1400790a1], r15b
je 0x14004b6bd
mov rax, qword [0x140079130]
mov rcx, qword [rax + 0x18]
add rcx, 0x1840
call fcn.14005ac80
mov rcx, rax
call fcn.14005ac80
mov rsi, rax
movzx ecx, byte [0x140078ec4]
lea r14, [rbp + 0x88]
mov rbx, qword [r14]
mov qword [r14], r15
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
and eax, 0x8000
mov qword [r14], rbx
je 0x14004b61f
cmp byte [0x140078129], r15b
je 0x14004b631
mov rax, rsi
mov qword [0x140078e80], rax
mov byte [0x140078129], r15b
jmp 0x14004b638
cmp byte [0x140078129], r15b
jne 0x14004b631
mov byte [0x140078129], r13b
jmp 0x14004b69b
mov rax, qword [0x140078e80]
test rax, rax
je 0x14004b6a5
cmp rax, rsi
je 0x14004b6bd
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x34], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x48], xmm1
mov dword [rbp + 0x30], r15d
mov dword [rbp + 0x44], r12d
mov r8d, 0x28
lea rdx, [rbp + 0x30]
mov ecx, r13d
call qword [sym.imp.USER32.dll_SendInput]
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x34], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x48], xmm1
mov dword [rbp + 0x30], r15d
mov dword [rbp + 0x44], 4
mov r8d, 0x28
lea rdx, [rbp + 0x30]
mov ecx, r13d
call qword [sym.imp.USER32.dll_SendInput]
mov rax, r15
mov qword [0x140078e80], rax
cmp rax, rsi
je 0x14004b6bd
test rax, rax
je 0x14004b6bd
mov edx, 0x1f4
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Beep]
nop
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x14004b6f2
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14004b6f2
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14004b6f2
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov rcx, qword [rbp + 0x58]
xor rcx, rsp
call fcn.14005cdc0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret