Function at 0x14012a850
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 [0x140300040]
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.140019590
mov rcx, rax
test rax, rax
je 0x14012ab40
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140038ca6.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.0x14012a8dd.41
lea rdx, [0x140000000]
mov ecx, dword [rdx + rsi*4 + 0x12ab58]
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 0x14012a90b
mov edx, 0x400
lea rcx, [rsp + 0x40]
call fcn.140018ea0
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.1401fe5d0
test eax, eax
js 0x14012ab35
cmp eax, dword [rbx - 0xc]
jg 0x14012ab35
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], bp
movsxd rdi, dword [rbx - 0x10]
test edi, edi
js 0x14012ab35
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14012a973
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.140018ea0
mov rbx, qword [rsp + 0x40]
lea eax, [rdi + 1]
movsxd rdx, eax
mov rcx, rbx
call fcn.140215e24
cmp edi, dword [rbx - 0xc]
jg 0x14012ab35
mov dword [rbx - 0x10], edi
mov word [rbx + rdi*2], bp
mov qword [rsp + 0x48], rbp
call fcn.140019590
mov rcx, rax
test rax, rax
je 0x14012ab4b
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140038ca6.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 0x14012a9e5
mov edx, 0x400
lea rcx, [rsp + 0x48]
call fcn.140018ea0
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.1401fe5d0
test eax, eax
js 0x14012ab2a
cmp eax, dword [rdi - 0xc]
jg 0x14012ab2a
mov dword [rdi - 0x10], eax
cdqe
mov word [rdi + rax*2], bp
cmp dword [rdi - 0x10], 0
jne 0x14012aac9
cmp dword [rbx - 0x10], 0
je 0x14012aac9
lea rsi, [rbx - 0x18]
mov rcx, rsi
call fcn.140019180
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 0x14012aa87
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
nop
lock xadd dword [rsi + 0x10], ebx
sub ebx, 1
jg 0x14012aaa4
mov rcx, qword [rsi]
mov r8, qword [rcx]
mov rdx, rsi
mov rax, qword [r8 + 8]
call qword [case.0x140038ca6.0]
mov rax, r14
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401f74b0
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.140019180
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 0x14012ab08
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
lea rdx, [rdi - 0x18]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x14012aaa4
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
jmp 0x14012aa9e
mov ecx, 0x80070057
call fcn.140019300
nop
mov ecx, 0x80070057
call fcn.140019300
nop
mov ecx, 0x80004005
call fcn.140019300
nop
mov ecx, 0x80004005
call fcn.140019300
int3