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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x1402ba4e0]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov ebx, ecx
mov r12d, r8d
mov rsi, rdx
shr ebx, 0x10
mov r13d, ecx
mov byte [rbp + 0x30], 0
test bl, 2
je 0x1400d1969
xor edx, edx
lea ecx, [rdx + 0x11]
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
lea rdx, [rsp + 0x20]
mov r8d, 0x104
bts eax, 9
mov byte [rsp + 0x20], 0
shl eax, 0x10
mov ecx, eax
call qword [sym.imp.USER32.dll_GetKeyNameTextA]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x30]
repne scasb al, byte [rdi]
cmp byte [rsp + 0x20], al
je 0x1400d1941
lea rdx, [rsp + 0x20]
xor ecx, ecx
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x1400d1930
jmp 0x1400d1954
mov eax, dword [str.Ctrl]
mov dword [rdi - 1], eax
movzx eax, byte [0x140231184]
mov byte [rdi + 3], al
xor eax, eax
lea rdi, [rbp + 0x30]
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
mov eax, dword [0x14020b128]
mov dword [rdi - 1], eax
test bl, 4
je 0x1400d19e0
xor edx, edx
lea ecx, [rdx + 0x12]
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
lea rdx, [rsp + 0x20]
mov r8d, 0x104
bts eax, 9
mov byte [rsp + 0x20], 0
shl eax, 0x10
mov ecx, eax
call qword [sym.imp.USER32.dll_GetKeyNameTextA]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x30]
repne scasb al, byte [rdi]
cmp byte [rsp + 0x20], al
je 0x1400d19c2
lea rdx, [rsp + 0x20]
xor ecx, ecx
movzx eax, byte [rdx + rcx]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x1400d19b1
jmp 0x1400d19cb
mov eax, dword [0x14023117c]
mov dword [rdi - 1], eax
xor eax, eax
lea rdi, [rbp + 0x30]
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
mov eax, dword [0x14020b128]
mov dword [rdi - 1], eax
test bl, 1
je 0x1400d1a6a
xor edx, edx
lea ecx, [rdx + 0x10]
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
lea rdx, [rsp + 0x20]
mov r8d, 0x104
bts eax, 9
mov byte [rsp + 0x20], 0
shl eax, 0x10
mov ecx, eax
call qword [sym.imp.USER32.dll_GetKeyNameTextA]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x30]
repne scasb al, byte [rdi]
cmp byte [rsp + 0x20], al
je 0x1400d1a41
lea rdx, [rsp + 0x20]
xor ecx, ecx
nop dword [rax]
movzx eax, byte [rdx + rcx]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x1400d1a30
jmp 0x1400d1a55
mov eax, dword [str.Shift]
mov dword [rdi - 1], eax
movzx eax, word [0x140231178]
mov word [rdi + 3], ax
xor eax, eax
lea rdi, [rbp + 0x30]
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
mov eax, dword [0x14020b128]
mov dword [rdi - 1], eax
test bl, 8
je 0x1400d1aef
xor edx, edx
lea ecx, [rdx + 0x5b]
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
lea rdx, [rsp + 0x20]
mov r8d, 0x104
bts eax, 9
mov byte [rsp + 0x20], 0
shl eax, 0x10
mov ecx, eax
call qword [sym.imp.USER32.dll_GetKeyNameTextA]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x30]
repne scasb al, byte [rdi]
cmp byte [rsp + 0x20], al
je 0x1400d1ad1
lea rdx, [rsp + 0x20]
xor ecx, ecx
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x1400d1ac0
jmp 0x1400d1ada
mov eax, dword [0x14022052c]
mov dword [rdi - 1], eax
xor eax, eax
lea rdi, [rbp + 0x30]
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
mov eax, dword [0x14020b128]
mov dword [rdi - 1], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx ecx, r13w
xor edx, edx
mov r8, rax
call qword [sym.imp.USER32.dll_MapVirtualKeyExA]
lea rdx, [rsp + 0x20]
mov r8d, 0x104
bts eax, 9
shl eax, 0x10
mov ecx, eax
call qword [sym.imp.USER32.dll_GetKeyNameTextA]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rbp + 0x30]
repne scasb al, byte [rdi]
lea rcx, [rsp + 0x20]
xor edx, edx
nop word [rax + rax]
movzx eax, byte [rcx + rdx]
inc rdx
mov byte [rdi + rdx - 2], al
test al, al
jne 0x1400d1b40
lea rdx, [rbp + 0x30]
mov r8, r12
mov rcx, rsi
call fcn.1400c9950
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.14010d170
mov rbx, qword [rsp + 0x298]
add rsp, 0x250
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret