Function at 0x14003d8e0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0xa0
mov r14, r9
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
xor r15d, r15d
cmp byte [r8], r15b
jne 0x14003dae2
movsxd rdx, dword [rcx]
lea rax, str.LZ_a_
mov rdx, qword [rax + rdx*8]
lea rcx, [rbp + 7]
call fcn.14004d500
mov rcx, rax
mov rdx, qword [rax + 0x10]
mov r8, qword [rax + 0x18]
mov rax, r8
sub rax, rdx
cmp rax, 1
jb 0x14003d95a
lea rax, [rdx + 1]
mov qword [rcx + 0x10], rax
mov rax, rcx
cmp r8, 0xf
jbe 0x14003d952
mov rax, qword [rcx]
mov word [rax + rdx], 0x20
jmp 0x14003d977
mov qword [rsp + 0x20], 1
lea r9, [0x140075308]
mov edx, 1
call fcn.140051e40
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 9], xmm1
movups xmm0, xmmword [rcx]
movups xmmword [rbp - 0x19], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rbp - 9], xmm1
mov qword [rcx + 0x10], r15
mov qword [rcx + 0x18], 0xf
mov byte [rcx], 0
mov rdx, r14
lea rcx, [rbp - 0x19]
call fcn.140051150
xorps xmm0, xmm0
movups xmmword [rbp - 0x39], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x29], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x39], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x29], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rcx, [rbp - 0x39]
cmp qword [rbp - 0x21], 0xf
cmova rcx, qword [rbp - 0x39]
mov rdx, rbx
call fcn.140039ac0
movzx ebx, al
mov rdx, qword [rbp - 0x21]
cmp rdx, 0xf
jbe 0x14003da34
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003da2f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003da2f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006b8f0
movdqa xmm0, xmmword [0x1400777b0]
movdqu xmmword [rbp - 0x29], xmm0
mov byte [rbp - 0x39], 0
mov rdx, qword [rbp - 1]
cmp rdx, 0xf
jbe 0x14003da83
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003da7e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003da7e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006b8f0
movdqa xmm0, xmmword [0x1400777b0]
movdqu xmmword [rbp - 9], xmm0
mov byte [rbp - 0x19], 0
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0xf
jbe 0x14003dad2
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003dacd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003dacd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006b8f0
test bl, bl
je 0x14003dbd7
mov byte [rdi], 1
jmp 0x14003dbd7
lea rcx, str.waiting...__press_esc_to_cancel_
call fcn.140039ac0
mov qword [rbp - 0x41], 1
lea rcx, [rbp - 0x41]
call fcn.14004d620
mov ecx, 0x1b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x14003db1a
mov dword [rsi], r15d
mov byte [rdi], r15b
jmp 0x14003dbd7
cmp byte [rbp + 0x7f], r15b
jne 0x14003db9c
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1400a9f98], eax
jle 0x14003db87
lea rcx, [0x1400a9f98]
call fcn.14006ba10
cmp dword [0x1400a9f98], 0xffffffff
jne 0x14003db87
movdqa xmm0, xmmword [0x140077780]
movdqa xmmword [0x1400a9f50], xmm0
movdqa xmm1, xmmword [0x140077b20]
movdqa xmmword [0x1400a9f60], xmm1
mov dword [0x1400a9f70], 4
lea rcx, [0x1400a9f98]
call fcn.14006b9a4
mov ecx, dword [0x1400a9f94]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x14003db12
lea rbx, [0x1400747a0]
lea r14, [0x140074a38]
nop word [rax + rax]
mov ecx, dword [rbx]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x14003dbce
mov ecx, dword [rbx]
lea eax, [rcx - 1]
cmp eax, 0xa4
ja 0x14003dbce
mov dword [rsi], ecx
mov byte [rdi], r15b
add rbx, 4
cmp rbx, r14
jne 0x14003dbb0
mov rbx, qword [rsp + 0xd8]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret