Function at 0x140039740
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov rbx, rdx
xor esi, esi
movzx eax, byte [0x1401b3964]
test al, al
jne 0x14003989f
movsxd rax, dword [0x1401b3960]
lea rdx, str.none
mov rdx, qword [rdx + rax*8]
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x10], rsi
mov qword [rbp - 8], 0xf
mov byte [rbp - 0x20], sil
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140039796
lea rcx, [rbp - 0x20]
call fcn.1400072b0
nop
mov r8d, 0xa
lea rdx, [0x14013a608]
lea rcx, [rbp - 0x20]
call fcn.140007410
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x38], rsi
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x40], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], 0x10
cmovae rcx, qword [rbp - 0x50]
xor r8d, r8d
mov rdx, rbx
call fcn.140030e20
movzx ebx, al
mov rdx, qword [rbp - 0x38]
cmp rdx, 0x10
jb 0x140039844
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003983f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003983f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ed134
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x38], 0xf
mov byte [rbp - 0x50], 0
mov rdx, qword [rbp - 8]
cmp rdx, 0x10
jb 0x140039892
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003988d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003988d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ed134
test bl, bl
je 0x140039911
mov byte [0x1401b3964], 1
jmp 0x140039911
cmp al, 1
jne 0x140039911
xor r8d, r8d
lea rcx, str....keybind
call fcn.140030e20
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rbx, [0x1401390c0]
lea rdi, fcn.14003ad40
nop dword [rax + rax]
mov ecx, dword [rbx]
cmp ecx, 1
je 0x140039900
cmp ecx, 0xa4
je 0x140039900
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x140039900
mov byte [0x1401b3964], sil
mov eax, dword [rbx]
cmp eax, 0x1b
je 0x14003990b
mov dword [0x1401b3960], eax
add rbx, 4
cmp rbx, rdi
je 0x140039911
jmp 0x1400398d0
mov dword [0x1401b3960], esi
lea r14, str.keybind
mov rbx, qword [0x1401b3990]
mov rax, qword [rbx + 8]
mov qword [rbp - 0x50], rax
mov dword [rbp - 0x48], esi
mov rcx, rbx
cmp byte [rax + 0x19], 0
jne 0x140039959
mov qword [rbp - 0x50], rax
cmp dword [rax + 0x1c], r14d
jae 0x140039946
mov dword [rbp - 0x48], esi
mov rax, qword [rax + 0x10]
jmp 0x140039953
mov dword [rbp - 0x48], 1
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140039933
cmp byte [rcx + 0x19], 0
jne 0x140039965
cmp r14d, dword [rcx + 0x1c]
jae 0x1400399d7
movabs rax, 0x3ffffffffffffff
cmp qword [0x1401b3998], rax
je 0x1400399f3
lea rdi, [0x1401b3990]
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], rsi
mov ecx, 0x40
call fcn.1400ecea0
nop
mov dword [rax + 0x1c], r14d
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rax + 0x20], xmm0
mov qword [rax + 0x30], rcx
mov qword [rax + 0x34], rcx
mov qword [rax + 0x2c], rsi
mov dword [rax + 0x38], esi
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbx
mov word [rax + 0x18], cx
movups xmm0, xmmword [rbp - 0x50]
movaps xmmword [rbp - 0x20], xmm0
mov r8, rax
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.14000a1d0
mov rcx, rax
mov dword [rcx + 0x20], 0xff
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.1400019d0
int3