Function at 0x140050920
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rsi, rcx
xor r12d, r12d
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax]
mov edx, dword [rdx + rax]
cmp dword [0x140068c24], edx
jle 0x14005098d
lea rcx, [0x140068c24]
call fcn.140056838
cmp dword [0x140068c24], 0xffffffff
jne 0x14005098d
lea rcx, [0x1400581f0]
call fcn.140056ba8
lea rcx, [0x140068c24]
call fcn.1400567cc
xorps xmm1, xmm1
mov ecx, 0xd
call fcn.140004200
mov rbx, qword [0x140068a40]
lea rcx, [rbx + 0x1ec8]
movss xmm1, dword [rbx + 0x16e8]
movss xmm0, dword [rbx + 0x16ec]
mov dword [rbp - 0x29], 0x17
movss dword [rbp - 0x25], xmm1
movss dword [rbp - 0x21], xmm0
lea rdx, [rbp - 0x29]
call fcn.140025270
mov dword [rbx + 0x16e8], r12d
mov dword [rbx + 0x16ec], 0x3f000000
mov rbx, qword [0x140068a40]
mov dword [rbp - 0x29], r12d
movups xmm0, xmmword [rbx + 0x1718]
movups xmmword [rbp - 0x25], xmm0
lea rcx, [rbx + 0x1eb8]
lea rdx, [rbp - 0x29]
call fcn.140025360
mov dword [rbx + 0x1718], 0x3ebd70a4
mov dword [rbx + 0x171c], 0x3ebd70a4
mov dword [rbx + 0x1720], 0x3ebd70a4
mov dword [rbx + 0x1724], 0x3f800000
mov dword [rbp - 0x29], 0x428c0000
mov dword [rbp - 0x25], 0x41a00000
lea rdi, str._Not_Bound_
mov rcx, rdi
cmp qword [0x1400680d0], 0xf
cmova rcx, qword [str._Not_Bound_]
xor r8d, r8d
lea rdx, [rbp - 0x29]
call fcn.14003d480
test al, al
je 0x140050a75
mov r9b, 1
mov byte [0x140068c0c], r9b
jmp 0x140050a7d
movzx r9d, byte [0x140068c0c]
mov r8, qword [0x140068a40]
movsxd rax, dword [r8 + 0x1ec8]
lea rcx, [rax + rax*2]
mov rdx, qword [r8 + 0x1ed0]
movsxd rax, dword [rdx + rcx*4 - 0xc]
lea r11, [rax + rax*2]
lea rbx, [0x140059d60]
mov r10d, dword [rbx + r11*4 + 8]
cmp dword [rbx + r11*4], 8
jne 0x140050ae7
mov eax, dword [rbx + r11*4 + 4]
cmp eax, 1
jne 0x140050aca
mov eax, dword [rdx + rcx*4 - 8]
mov dword [r10 + r8 + 0x1650], eax
jmp 0x140050ae7
cmp eax, 2
jne 0x140050ae7
mov eax, dword [rdx + rcx*4 - 8]
mov dword [r10 + r8 + 0x1650], eax
mov eax, dword [rdx + rcx*4 - 4]
mov dword [r10 + r8 + 0x1654], eax
movsxd rcx, dword [r8 + 0x1ec8]
lea eax, [rcx - 1]
mov dword [r8 + 0x1ec8], eax
lea rax, [rcx - 2]
lea rcx, [rax + rax*2]
mov rdx, qword [r8 + 0x1ed0]
movsxd rax, dword [rdx + rcx*4]
lea rax, [rax + rax*2]
mov r10d, dword [rbx + rax*4 + 8]
cmp dword [rbx + rax*4], 8
jne 0x140050b4e
mov eax, dword [rbx + rax*4 + 4]
cmp eax, 1
jne 0x140050b31
mov eax, dword [rdx + rcx*4 + 4]
mov dword [r10 + r8 + 0x1650], eax
jmp 0x140050b4e
cmp eax, 2
jne 0x140050b4e
mov eax, dword [rdx + rcx*4 + 4]
mov dword [r10 + r8 + 0x1650], eax
mov eax, dword [rdx + rcx*4 + 8]
mov dword [r10 + r8 + 0x1654], eax
dec dword [r8 + 0x1ec8]
movsxd rax, dword [r8 + 0x1eb8]
lea rdx, [rax + rax*4]
mov rcx, qword [r8 + 0x1ec0]
movsxd rax, dword [rcx + rdx*4 - 0x14]
add rax, rax
movups xmm0, xmmword [rcx + rdx*4 - 0x10]
movups xmmword [r8 + rax*8 + 0x1718], xmm0
dec dword [r8 + 0x1eb8]
test r9b, r9b
je 0x140050c1b
mov ebx, 1
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x140050bb6
cmp ebx, 0xc
je 0x140050bb6
mov eax, ebx
cmp ebx, 0x1b
cmove eax, r12d
mov dword [rsi], eax
mov byte [0x140068c0c], r12b
inc ebx
cmp ebx, 0x100
jl 0x140050b92
mov rax, qword [0x1400680d0]
cmp rax, 5
jb 0x140050c02
cmp rax, 0xf
cmova rdi, qword [str._Not_Bound_]
mov qword [0x1400680c8], 5
mov r8d, 5
lea rdx, str._..._
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + 5], r12b
jmp 0x140050e65
lea r9, str._..._
mov edx, 5
mov rcx, rdi
call fcn.140055f10
jmp 0x140050e65
mov edx, dword [rsi]
test edx, edx
jne 0x140050c7a
mov rax, qword [0x1400680d0]
cmp rax, 0xb
jb 0x140050c61
cmp rax, 0xf
cmova rdi, qword [str._Not_Bound_]
mov qword [0x1400680c8], 0xb
lea r8d, [rdx + 0xb]
lea rdx, [0x14005e410]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + 0xb], r12b
jmp 0x140050e65
lea r9, [0x14005e410]
mov edx, 0xb
mov rcx, rdi
call fcn.140055f10
jmp 0x140050e65
lea rcx, [rbp + 0x17]
call fcn.14004fa70
mov rdi, rax
mov rcx, qword [rax + 0x10]
mov rdx, qword [rax + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x140050d16
lea r8, [rcx + 1]
mov qword [rdi + 0x10], r8
mov rsi, rdi
cmp rdx, 0xf
jbe 0x140050cae
mov rsi, qword [rdi]
lea rax, [0x14005e15d]
mov ebx, 1
lea r14, [0x14005e15c]
cmp rax, rsi
jbe 0x140050ce1
lea rax, [rsi + rcx]
cmp r14, rax
ja 0x140050ce1
cmp rsi, r14
ja 0x140050cd9
mov r15, r12
jmp 0x140050ce4
mov r15, rsi
sub r15, r14
jmp 0x140050ce4
mov r15, rbx
lea rcx, [rsi + 1]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memmove
mov r8, r15
mov rdx, r14
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov r8, rbx
sub r8, r15
lea rdx, [r14 + 1]
add rdx, r15
lea rcx, [rsi + r15]
call sub.VCRUNTIME140.dll_memcpy
jmp 0x140050d39
mov ebx, 1
mov qword [rsp + 0x28], rbx
lea r14, [0x14005e15c]
mov qword [rsp + 0x20], r14
mov edx, ebx
mov rcx, rdi
call fcn.1400565e0
mov rdi, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x19], xmm1
movups xmm0, xmmword [rdi]
movups xmmword [rbp - 0x29], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbp - 0x19], xmm1
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], r12
mov byte [rdi], 0
mov r8, rbx
lea rcx, [rbp - 0x29]
call fcn.1400556c0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 9], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 7], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rdx, [rbp - 9]
call fcn.1400554f0
mov rdx, qword [rbp + 0xf]
cmp rdx, 0xf
jbe 0x140050dd8
inc rdx
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050dd2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140050dd2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140056bc0
nop
mov rdx, qword [rbp - 0x11]
cmp rdx, 0xf
jbe 0x140050e16
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050e11
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140050e11
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140056bc0
movdqa xmm0, xmmword [0x14005e900]
movdqu xmmword [rbp - 0x19], xmm0
mov byte [rbp - 0x29], 0
mov rdx, qword [rbp + 0x2f]
cmp rdx, 0xf
jbe 0x140050e65
inc rdx
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050e60
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140050e60
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140056bc0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret