Function at 0x14001bb08
Capabilities:
Get keyboard layout

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r12
sub rsp, 0x120
xor r12d, r12d
mov eax, 0xc350
lea rsi, [0x140007030]
mov qword [rsp + 0x30], rsi
mov qword [r11 - 0x10], r12
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r12
mov qword [r11 - 0x58], r12
mov qword [r11 - 0x50], r12
mov byte [rsp + 0x78], r12b
mov byte [rsp + 0x79], r12b
mov byte [rsp + 0x7a], r12b
mov dword [rsp + 0x7c], eax
mov qword [r11 - 0x80], r12
mov qword [r11 - 0x78], r12
mov qword [r11 - 0x70], r12
mov byte [r11 - 0x88], r12b
mov byte [r11 - 0x87], r12b
mov byte [r11 - 0x86], r12b
mov dword [rsp + 0xa4], eax
mov qword [r11 - 0x98], r12
mov qword [r11 - 0x90], r12
mov dword [rsp + 0x80], 2
mov dword [r11 - 0xa4], r12d
mov dword [r11 - 0xa0], r12d
mov byte [rsp + 0x50], r12b
mov byte [rsp + 0x51], r12b
mov qword [rsp + 0x58], r12
mov dword [rsp + 0x60], r12d
mov byte [rsp + 0x65], r12b
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], r12
mov byte [r11 - 0x20], r12b
mov qword [r11 - 0x60], r12
mov qword [r11 - 0x68], r12
lea rcx, [rsp + 0x30]
mov byte [rsp + 0x64], r12b
call qword [0x140007080]
lea edi, [r12 + 0x18]
mov rcx, rdi
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__
mov qword [rsp + 0x90], rax
cmp rax, r12
je 0x14001bd4b
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
lea ecx, [rdi + 0x38]
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__
cmp rax, r12
je 0x14001bc58
lea rbx, [rax + 8]
lea r8d, [r12 + 3]
lea r9, [0x1400083fc]
mov dword [rax], r8d
lea rax, [fcn.1400150fc]
mov rdx, rdi
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.14002a208
jmp 0x14001bc5b
mov rbx, r12
mov qword [rsp + 0x98], rbx
cmp rbx, r12
jne 0x14001bc7a
mov rcx, qword [rsp + 0x90]
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
jmp 0x14001bd4b
mov rbx, r12
xor r9d, r9d
xor edx, edx
xor ecx, ecx
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rcx, qword [rsp + 0x90]
mov qword [rbx + rcx], rax
mov rax, qword [rsp + 0x90]
cmp qword [rbx + rax], r12
je 0x14001bd41
add rbx, 8
cmp rbx, rdi
jl 0x14001bc7d
lea rcx, [rsp + 0x30]
call fcn.14002754c
lea rcx, [rsp + 0x30]
mov byte [rsp + 0xa0], al
call fcn.1400274c8
lea rcx, [rsp + 0x30]
mov byte [rsp + 0xa0], al
mov rax, qword [rsp + 0x30]
xor edx, edx
mov bl, r12b
call qword [rax + 0x38]
cmp eax, 1
je 0x14001bcf6
cmp eax, r12d
jne 0x14001bcf9
cmp eax, 1
sete bl
lea rcx, [rsp + 0x30]
mov byte [rsp + 0xa2], bl
call fcn.140027860
xor ecx, ecx
mov dword [rsp + 0xa4], eax
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
lea rcx, [rsp + 0x30]
movzx edx, ax
call fcn.1400285e4
cmp eax, r12d
jbe 0x14001bd4b
lea rcx, [rsp + 0x30]
call fcn.140027b68
cmp al, r12b
jne 0x14001bd4b
mov edi, 1
jmp 0x14001bd4e
lea rcx, [rsp + 0x30]
call fcn.1400271a0
mov edi, r12d
mov qword [rsp + 0x30], rsi
mov rsi, qword [rsp + 0x40]
cmp rsi, r12
je 0x14001bdb2
mov eax, dword [rsp + 0x38]
cmp eax, r12d
jbe 0x14001bda5
lea rbx, [rsi + 0x38]
mov rbp, rax
mov rcx, qword [rbx - 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rbx - 8]
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rbx]
cmp rcx, r12
je 0x14001bd8d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rbx - 0x18]
cmp rcx, r12
je 0x14001bd9b
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
add rbx, 0x40
sub rbp, 1
jne 0x14001bd6d
mov rcx, rsi
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov qword [rsp + 0x40], r12
mov rcx, qword [rsp + 0x58]
cmp rcx, r12
je 0x14001bdc6
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov qword [rsp + 0x58], r12
lea rcx, [rsp + 0x30]
call fcn.1400271a0
lea r11, [rsp + 0x120]
mov eax, edi
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret