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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov r12, rdx
xor r13d, r13d
mov r15d, r13d
mov dword [rbp + 0xe0], r13d
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x38], r13
mov rsi, rcx
cmp qword [rcx + 0x18], 7
jbe 0x1400014fe
mov rsi, qword [rcx]
mov rdi, qword [rcx + 0x10]
movabs rbx, 0x7ffffffffffffffe
cmp rdi, rbx
ja 0x140001af9
mov ecx, 0xa
mov qword [rsp + 0x38], 7
cmp rdi, 7
ja 0x14000153b
mov qword [rsp + 0x30], rdi
movups xmm0, xmmword [rsi]
movups xmmword [rsp + 0x20], xmm0
jmp 0x1400015e9
mov rax, rdi
or rax, 7
cmp rax, rbx
jbe 0x140001557
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x140001584
mov rbx, rax
cmp rax, rcx
cmovb rbx, rcx
lea rcx, [rbx + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x140001af3
add rcx, rcx
cmp rcx, 0x1000
jb 0x1400015b3
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001af3
mov rcx, rax
call fcn.1400060bc
mov rcx, rax
test rax, rax
je 0x140001ac3
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x1400015c2
test rcx, rcx
je 0x1400015bf
call fcn.1400060bc
jmp 0x1400015c2
mov rax, r13
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rbx
lea r8, [rdi*2 + 2]
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rdi, qword [rsp + 0x30]
lea rsi, [rsp + 0x20]
mov rdx, qword [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova rsi, rdx
lea rax, [rsp + 0x20]
cmova rax, rdx
lea r14, [rax + rdi*2]
lea rbx, [rsp + 0x20]
cmova rbx, rdx
cmp rbx, r14
je 0x14000163b
sub rsi, rbx
nop dword [rax + rax]
movzx ecx, word [rbx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towupper]
mov word [rsi + rbx], ax
add rbx, 2
cmp rbx, r14
jne 0x140001620
mov rdi, qword [rsp + 0x30]
cmp rdi, 1
jne 0x14000169c
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova rcx, qword [rsp + 0x20]
movzx ecx, word [rcx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_iswalpha]
test eax, eax
je 0x140001697
lea rbx, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova rbx, qword [rsp + 0x20]
movzx ebx, word [rbx]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov rdx, rax
movzx ecx, bx
call qword [sym.imp.USER32.dll_VkKeyScanExW]
movzx ecx, al
mov dword [r12], ecx
movzx ebx, dil
jmp 0x140001a8a
mov rdi, qword [rsp + 0x30]
cmp rdi, 2
jb 0x1400017f2
lea rax, [rsp + 0x20]
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x38]
cmp rcx, 7
cmova rax, rdx
cmp word [rax], 0x46
jne 0x1400017f2
lea rax, [rsp + 0x20]
cmp rcx, 7
cmova rax, rdx
movzx ecx, word [rax + 2]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isdigit]
test eax, eax
je 0x1400017ed
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x70], xmm1
mov rax, qword [rsp + 0x30]
cmp rax, 1
jb 0x140001aff
dec rax
mov r8, 0xffffffffffffffff
cmp rax, r8
cmovb r8, rax
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova rdx, qword [rsp + 0x20]
add rdx, 2
lea rcx, [rbp - 0x80]
call fcn.1400058d0
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rsi, rax
lea rbx, [rbp - 0x80]
cmp qword [rbp - 0x68], 7
cmova rbx, qword [rbp - 0x80]
mov dword [rax], r13d
mov r8d, 0xa
lea rdx, [rbp + 0xe0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstol]
mov edi, eax
cmp rbx, qword [rbp + 0xe0]
jne 0x14000177d
lea rcx, str.invalid_stoi_argument
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const____ptr64_]
int3
cmp dword [rsi], 0x22
jne 0x140001790
lea rcx, str.stoi_argument_out_of_range
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_]
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 7
jbe 0x1400017d3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400017ce
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400017ce
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006338
lea eax, [rdi - 1]
cmp eax, 0xb
ja 0x140001a88
lea ecx, [rdi + 0x6f]
mov dword [r12], ecx
mov bl, 1
jmp 0x140001a8a
mov rdi, qword [rsp + 0x30]
cmp rdi, 3
jb 0x140001888
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
mov r8d, 2
cmp rdi, r8
cmovb r8, rdi
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.1400058d0
mov r15d, 3
lea r8, [rsp + 0x40]
mov r9, qword [rsp + 0x40]
mov r10, qword [rsp + 0x58]
cmp r10, 7
cmova r8, r9
mov rdx, qword [rsp + 0x50]
cmp rdx, 2
jne 0x140001892
lea rcx, [0x14000862c]
test rdx, rdx
je 0x140001884
sub r8, rcx
nop dword [rax]
movzx eax, word [rcx]
cmp word [rcx + r8], ax
jne 0x140001892
add rcx, 2
sub rdx, 1
jne 0x140001870
mov bl, 1
jmp 0x140001894
mov r10, qword [rsp + 0x58]
mov r9, qword [rsp + 0x40]
xor bl, bl
test r15b, 1
je 0x1400018dc
and r15d, 0xfffffffe
cmp r10, 7
jbe 0x1400018dc
lea rdx, [r10*2 + 2]
mov rax, r9
cmp rdx, 0x1000
jb 0x1400018d4
add rdx, 0x27
mov r9, qword [r9 - 8]
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400018d4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r9
call fcn.140006338
test bl, bl
je 0x140001a88
lea rax, [0x140009950]
mov qword [rbp - 0x60], rax
lea rax, [0x140009970]
mov qword [rbp - 0x50], rax
lea rcx, [rbp + 0x38]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
nop
or r15d, 4
mov dword [rbp + 0xe0], r15d
xor r8d, r8d
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x60]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t______ptr64____ptr64]
nop
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp + rcx - 0x60], rdi
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 0x64], edx
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
lea rbx, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp - 0x48], rbx
mov qword [rbp + 0x20], r13
mov dword [rbp + 0x28], r13d
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
mov rax, qword [rsp + 0x30]
cmp rax, 2
jb 0x140001aed
add rax, 0xfffffffffffffffe
mov r8, 0xffffffffffffffff
cmp rax, r8
cmovb r8, rax
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova rdx, qword [rsp + 0x20]
add rdx, 4
lea rcx, [rsp + 0x60]
call fcn.1400058d0
nop
lea rdx, [0x140001390]
lea rcx, [rbp - 0x50]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 7
cmova rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x70]
mov rcx, rax
call fcn.140005b10
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x140001a2c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001a27
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001a27
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006338
mov rdx, r12
lea rcx, [rbp - 0x60]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_int____ptr64____ptr64]
nop
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x60], rdi
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 0x64], edx
mov qword [rbp - 0x48], rbx
lea rcx, [rbp - 0x48]
call fcn.1400051f0
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
lea rcx, [rbp - 0x40]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
lea rcx, [rbp + 0x38]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
mov bl, 1
jmp 0x140001a8a
xor bl, bl
mov rcx, qword [rsp + 0x38]
cmp rcx, 7
jbe 0x140001acf
lea rdx, [rcx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001aca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001aca
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006338
movzx eax, bl
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140005310
nop
call fcn.140001210
int3
call fcn.1400012b0
nop
call fcn.140005310
int3