Function at 0x1400ec0b0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1401ef0c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov ebx, dword [r8]
mov rax, rdx
mov r14, r9
sub rax, 0x100
je 0x1400ec161
sub rax, 1
je 0x1400ec0f7
sub rax, 3
je 0x1400ec161
cmp rax, 1
jne case.0x1400ec213.58
cmp rdx, 0xd
jne 0x1400ec10a
test byte [r8 + 8], 1
mov eax, 0x10d
cmovne ebx, eax
mov ecx, ebx
call fcn.14007bd70
movsxd rsi, eax
test eax, eax
je case.0x1400ec213.58
mov rdi, qword [0x1402718d8]
cmp byte [rdi + 0x37b1], 0
je 0x1400ec13d
xorps xmm3, xmm3
lea rcx, [rdi + 8]
xor r8d, r8d
mov edx, esi
call fcn.140053230
cmp ebx, 0x1ff
ja 0x1400ec35e
movsxd rax, ebx
mov dword [rdi + rax*4 + 0xf8], esi
mov al, 1
mov dword [rdi + rsi*4 + 0xf8], ebx
jmp 0x1400ec364
cmp rdx, 0xd
jne 0x1400ec174
test byte [r8 + 8], 1
mov eax, 0x10d
cmovne ebx, eax
mov ecx, ebx
call fcn.14007bd70
movsxd rsi, eax
test eax, eax
je case.0x1400ec213.58
mov rdi, qword [0x1402718d8]
add rdi, 8
cmp byte [rdi + 0x37a9], 0
je 0x1400ec1af
movss xmm3, dword [0x1401caf0c]
mov r8b, 1
mov edx, esi
mov rcx, rdi
call fcn.140053230
cmp ebx, 0x1ff
ja 0x1400ec1c8
movsxd rax, ebx
mov dword [rdi + rax*4 + 0xf0], esi
mov dword [rdi + rsi*4 + 0xf0], ebx
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
movzx edi, ax
mov ecx, 0x14
shr edi, 0xf
and dil, 1
call qword [sym.imp.USER32.dll_GetKeyState]
and al, 1
lea r8d, [rbx - 0x30]
cmp r8d, 0x39
ja case.0x1400ec213.58
lea r9, [0x140000000]
movzx ecx, byte [r9 + r8 + 0xec394]
mov edx, dword [r9 + rcx*4 + 0xec384]
add rdx, r9
jmp rdx
test al, al
jne case.0x1400ec213.48
test dil, dil
jne case.0x1400ec213.48
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x54], r8d
test r8d, r8d
je case.0x1400ec213.58
add ebx, 0xffffffbf
cmp ebx, 0x16
ja 0x1400ec24f
mov eax, 0x440009
bt eax, ebx
jae 0x1400ec24f
mov al, 1
jmp 0x1400ec251
mov r8d, ebx
mov dword [rsp + 0x54], ebx
jmp 0x1400ec227
xor al, al
mov rbx, qword [0x1402718d8]
mov byte [r14], al
call fcn.1400f2840
mov rcx, qword [rax + 0x28]
call qword [sym.imp.USER32.dll_IsWindowUnicode]
test eax, eax
je 0x1400ec283
movzx edx, word [rsp + 0x54]
lea rcx, [rbx + 8]
call fcn.140053170
mov al, 1
jmp 0x1400ec364
mov r9d, 1
mov dword [rsp + 0x28], 1
lea rax, [rsp + 0x50]
xor edi, edi
mov edx, r9d
mov word [rsp + 0x50], di
lea r8, [rsp + 0x54]
mov qword [rsp + 0x20], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movzx edx, word [rsp + 0x50]
mov rcx, qword [rbx + 0xdf8]
test edx, edx
je 0x1400ec35e
cmp byte [rbx + 0x37b1], dil
je 0x1400ec35e
mov eax, dword [rcx + 0x3e74]
lea rbx, [rcx + 0x3e50]
mov dword [rsp + 0x38], eax
inc eax
mov dword [rcx + 0x3e74], eax
mov ecx, dword [rbx]
mov r8d, dword [rbx + 4]
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x30], 5
mov dword [rsp + 0x34], 2
mov dword [rsp + 0x3c], edx
cmp ecx, r8d
jne 0x1400ec338
inc ecx
test r8d, r8d
je 0x1400ec324
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x1400ec329
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
mov rcx, rbx
call fcn.140068b30
movsxd rax, dword [rbx]
movups xmm0, xmmword [rsp + 0x30]
movsd xmm1, qword [rsp + 0x40]
imul rcx, rax, 0x1c
mov rax, qword [rbx + 8]
movups xmmword [rcx + rax], xmm0
movsd qword [rcx + rax + 0x10], xmm1
mov dword [rcx + rax + 0x18], edi
inc dword [rbx]
mov al, 1
jmp 0x1400ec364
xor al, al
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14015d760
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret