Function at 0x1400be870
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x118
mov rax, qword [0x1400f3040]
xor rax, rsp
mov qword [rsp + 0x108], rax
mov eax, dword [0x1400f354c]
mov rcx, qword [rsp + 0x130]
add rax, qword [rcx + 0x48]
lea r8, [0x140165f5c]
mov rdx, rax
lea rcx, [0x140167618]
call fcn.14001c880
movzx eax, al
test eax, eax
jne 0x1400be8c4
jmp 0x1400bec89
cmp dword [0x140165f5c], 0xffffffff
jne 0x1400be8d2
jmp 0x1400bec89
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x37]
call fcn.140005c70
mov qword [rsp + 0x50], rax
mov eax, dword [0x140165f5c]
shr eax, 9
lea eax, [rax*8 + 0x10]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x44], 0
lea rax, [rsp + 0x48]
mov r8, rax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xc0]
call fcn.140006bb0
lea rcx, [rsp + 0xa0]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0xb0]
lea rcx, [rsp + 0xa0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov r8, qword [rsp + 0x50]
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x58]
call fcn.14000b0b0
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
lea rcx, [0x140167650]
call fcn.1400202f0
mov qword [rsp + 0x78], rax
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
lea rcx, [0x140167618]
call fcn.1400222c0
mov qword [0x140165f60], rax
cmp qword [0x140165f60], 0
jne 0x1400be9c3
jmp 0x1400bec89
mov eax, dword [0x140165f5c]
and eax, 0x1ff
imul eax, eax, 0x78
mov eax, eax
mov rcx, qword [0x140165f60]
add rcx, rax
mov rax, rcx
lea r8, [0x140165f68]
mov rdx, rax
lea rcx, [0x140167618]
call fcn.140007cc0
movzx eax, al
test eax, eax
jne 0x1400bea02
jmp 0x1400bec89
lea rdx, [0x140165f68]
lea rcx, [0x140166f30]
call fcn.1400226c0
movzx eax, al
test eax, eax
jne 0x1400bea21
jmp 0x1400bec89
movzx eax, byte [0x140167521]
test eax, eax
jne 0x1400bea45
mov rax, qword [rsp + 0x130]
xorps xmm0, xmm0
comiss xmm0, dword [rax + 0x104]
jae 0x1400bea45
jmp 0x1400bec89
movzx eax, byte [0x140167520]
test eax, eax
je 0x1400bea8a
mov eax, dword [0x1400f350c]
mov rcx, qword [rsp + 0x130]
add rax, qword [rcx + 0x48]
lea r8, [rsp + 0xe8]
mov rdx, rax
lea rcx, [0x140167618]
call fcn.14001bf90
movzx eax, byte [rsp + 0xe8]
test eax, eax
jne 0x1400bea8a
jmp 0x1400bec89
movzx eax, byte [0x1400f30e9]
test eax, eax
je 0x1400bead3
mov rax, qword [rsp + 0x130]
mov ecx, dword [0x140167020]
cmp dword [rax + 0xf0], ecx
je 0x1400beabe
cmp dword [0x140167010], 0
jle 0x1400beabe
mov dword [rsp + 0x38], 1
jmp 0x1400beac6
mov dword [rsp + 0x38], 0
movzx eax, byte [rsp + 0x38]
mov byte [0x140165f46], al
jmp 0x1400beaf9
cmp dword [0x140167010], 0
jle 0x1400beae6
mov dword [rsp + 0x3c], 1
jmp 0x1400beaee
mov dword [rsp + 0x3c], 0
movzx eax, byte [rsp + 0x3c]
mov byte [0x140165f46], al
movzx eax, byte [0x140165f46]
test eax, eax
jne 0x1400beb09
jmp 0x1400bec89
mov eax, 4
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rax + rcx]
cmp dword [0x1401679d0], eax
jle 0x1400beb54
lea rcx, [0x1401679d0]
call fcn.1400c1568
cmp dword [0x1401679d0], 0xffffffff
jne 0x1400beb54
lea rcx, [0x1401679d8]
call fcn.140009f00
lea rcx, [0x1401679d0]
call fcn.1400c14fc
lea rcx, [rsp + 0xf0]
call fcn.140009f00
lea rax, [rsp + 0x31]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x32], al
movzx eax, byte [rsp + 0x32]
mov byte [rsp + 0x34], al
lea rdx, [0x1400f3094]
lea rcx, [rsp + 0x90]
call fcn.14001c030
mov qword [rsp + 0x80], rax
lea r8, [0x1401679d8]
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0x98]
call fcn.140020d40
mov qword [rsp + 0x88], rax
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
call fcn.14001e850
mov byte [rsp + 0x33], al
movzx eax, byte [rsp + 0x33]
mov byte [rsp + 0x35], al
movzx edx, byte [rsp + 0x34]
movzx ecx, byte [rsp + 0x35]
call fcn.140009e90
movzx eax, al
test eax, eax
je 0x1400bec89
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
jge 0x1400bec17
mov byte [rsp + 0x30], 1
jmp 0x1400bec1c
mov byte [rsp + 0x30], 0
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x36], al
movzx eax, byte [rsp + 0x36]
test eax, eax
jne 0x1400bec7a
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 2
call qword [sym.imp.USER32.dll_mouse_event]
lea rdx, [0x1400be830]
lea rcx, [rsp + 0xf8]
call fcn.1400bee90
nop
lea rcx, [rsp + 0xf8]
call fcn.1400be7a0
nop
lea rcx, [rsp + 0xf8]
call fcn.1400be740
mov rax, qword [rsp + 0xf0]
mov qword [0x1401679d8], rax
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.1400c14a0
add rsp, 0x118
pop rdi
pop rsi
ret