Function at 0x140127fd0
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1402fa010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov esi, edx
mov r14, rcx
mov qword [rsp + 0x38], rcx
xor ebp, ebp
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x40], rbp
call fcn.1400195b0
mov rcx, rax
test rax, rax
je 0x1401282c0
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140038716.0]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov r8, rax
xor edx, edx
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov edi, eax
add esi, 0xffffffdf
cmp esi, 0xd
ja case.0x14012805d.41
lea rdx, [0x140000000]
mov ecx, dword [rdx + rsi*4 + 0x1282d8]
add rcx, rdx
jmp rcx
bts edi, 8
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 0x400
or eax, ecx
jge 0x14012808b
mov edx, 0x400
lea rcx, [rsp + 0x40]
call fcn.140018ec0
mov rbx, qword [rsp + 0x40]
shl edi, 0x10
mov r8d, 0x3ff
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.USER32.dll_GetKeyNameTextW]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.1401fa6e8
test eax, eax
js 0x1401282b5
cmp eax, dword [rbx - 0xc]
jg 0x1401282b5
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], bp
movsxd rdi, dword [rbx - 0x10]
test edi, edi
js 0x1401282b5
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x1401280f3
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.140018ec0
mov rbx, qword [rsp + 0x40]
lea eax, [rdi + 1]
movsxd rdx, eax
mov rcx, rbx
call fcn.140211f34
cmp edi, dword [rbx - 0xc]
jg 0x1401282b5
mov dword [rbx - 0x10], edi
mov word [rbx + rdi*2], bp
mov qword [rsp + 0x48], rbp
call fcn.1400195b0
mov rcx, rax
test rax, rax
je 0x1401282cb
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140038716.0]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x48], rdi
mov ecx, 1
sub ecx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, 0x400
or eax, ecx
jge 0x140128165
mov edx, 0x400
lea rcx, [rsp + 0x48]
call fcn.140018ec0
mov rdi, qword [rsp + 0x48]
mov r9d, dword [rbx - 0x10]
inc r9d
mov dword [rsp + 0x28], 0x3ff
mov qword [rsp + 0x20], rdi
mov r8, rbx
mov edx, 0x300
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_LCMapStringW]
movsxd rdx, dword [rdi - 0xc]
mov rcx, rdi
call fcn.1401fa6e8
test eax, eax
js 0x1401282aa
cmp eax, dword [rdi - 0xc]
jg 0x1401282aa
mov dword [rdi - 0x10], eax
cdqe
mov word [rdi + rax*2], bp
cmp dword [rdi - 0x10], 0
jne 0x140128249
cmp dword [rbx - 0x10], 0
je 0x140128249
lea rsi, [rbx - 0x18]
mov rcx, rsi
call fcn.1400191a0
add rax, 0x18
mov qword [r14], rax
mov dword [rsp + 0x30], 1
lea rdx, [rdi - 0x18]
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140128207
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038716.0]
nop
lock xadd dword [rsi + 0x10], ebx
sub ebx, 1
jg 0x140128224
mov rcx, qword [rsi]
mov r8, qword [rcx]
mov rdx, rsi
mov rax, qword [r8 + 8]
call qword [case.0x140038716.0]
mov rax, r14
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401f3bf0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
lea rcx, [rdi - 0x18]
call fcn.1400191a0
add rax, 0x18
mov qword [r14], rax
mov dword [rsp + 0x30], 1
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdi - 8], eax
sub eax, 1
jg 0x140128288
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
lea rdx, [rdi - 0x18]
mov rax, qword [rax + 8]
call qword [case.0x140038716.0]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x140128224
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
jmp 0x14012821e
mov ecx, 0x80070057
call fcn.140019320
nop
mov ecx, 0x80070057
call fcn.140019320
nop
mov ecx, 0x80004005
call fcn.140019320
nop
mov ecx, 0x80004005
call fcn.140019320
int3