Function at 0x1400069e0
Capabilities:
Get keyboard layout

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push r12
push r14
push r15
sub rsp, 0x50
mov qword [rax - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov r15d, r9d
mov r14d, r8d
mov r12, rdx
mov rsi, rcx
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
call qword [0x14003d100]
mov ebx, eax
mov dword [rsp + 0x30], eax
mov rcx, qword [0x140054f08]
xor edi, edi
test rcx, rcx
je 0x140006a68
call fcn.14000b6b4
test rax, rax
je 0x140006a42
mov rbx, qword [rax + 0x38]
jmp 0x140006a45
mov rbx, rdi
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetActiveWindow]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov ebx, edi
mov dword [rsp + 0x30], ebx
mov r14d, 1
jmp 0x140006bcd
test ebx, ebx
js 0x140006ac2
mov rax, qword [0x140054fc8]
or dword [rax + 0x10], 0xffffffff
mov qword [rax + 0x18], rdi
mov qword [rax + 0x268], rdi
mov byte [rax + 0x50], dil
mov r8, qword [0x140054fc8]
add r8, 0x40
xor r9d, r9d
xor edx, edx
lea ecx, [rdx + 0x1b]
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 0x38]
call qword [0x14003d100]
mov qword [rsi + 0x10], rax
mov ecx, 0x8007000e
test rax, rax
cmove ebx, ecx
mov dword [rsp + 0x30], ebx
test r15d, r15d
jne 0x140006b21
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov r8, rax
movzx r15d, ax
mov rax, qword [rsi + 0x10]
mov rdx, qword [rax + 0x248]
mov rcx, qword [rax + 0x240]
jmp 0x140006af4
cmp word [rcx], r8w
je 0x140006af9
add rcx, 2
cmp rcx, rdx
jne 0x140006aea
cmp rcx, rdx
jne 0x140006b21
mov rcx, qword [rax + 0x240]
mov rax, rdx
sub rax, rcx
sar rax, 1
test eax, eax
jle 0x140006b21
test rax, rax
movzx eax, di
je 0x140006b1d
movzx eax, word [rcx]
movzx r15d, ax
test ebx, ebx
js 0x140006b4e
mov r9d, r15d
mov r8d, r14d
mov rdx, r12
mov rcx, qword [rsi + 0x10]
call fcn.14000a460
mov ebx, eax
mov r14d, 1
cmp eax, 0x80070057
cmove ebx, r14d
mov dword [rsp + 0x30], ebx
jmp 0x140006b54
mov r14d, 1
test ebx, ebx
jne 0x140006bb1
mov rdx, qword [0x140054fc8]
add rdx, 0x68
mov rcx, qword [rsi + 0x10]
call fcn.14000f0d0
mov ebx, eax
mov dword [rsp + 0x30], eax
test eax, eax
jne 0x140006bb1
mov rcx, qword [rsi + 0x10]
mov rax, qword [rcx]
mov edx, r15d
mov rax, qword [rax + 0xb8]
call qword [0x14003d100]
mov ebx, eax
mov dword [rsp + 0x30], eax
test eax, eax
jne 0x140006bb1
mov rcx, qword [rsi + 0x10]
mov rax, qword [rcx]
mov rax, qword [rax + 0x188]
call qword [0x14003d100]
mov ebx, eax
mov dword [rsp + 0x30], eax
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x140006bcd
mov rax, qword [rcx]
mov edx, r14d
mov rax, qword [rax]
call qword [0x14003d100]
mov qword [rsi + 0x10], rdi
jmp 0x140006bde
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 0x30]
call qword [0x14003d100]
test ebx, ebx
jns 0x140006c1b
mov rax, qword [0x140054fc8]
mov byte [rax + 0x50], r14b
or dword [rsp + 0x28], 0xffffffff
mov edx, 0x5f
lea r9d, [rdx - 0x3f]
lea r8d, [rdx - 5]
call fcn.140007af4
nop
jmp 0x140006c1b
mov eax, ebx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret