Function at 0x14006c470
Capabilities:
Get keyboard layout

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x250
mov rbp, rcx
mov rbx, r9
xor ecx, ecx
mov r14, r8
mov rdi, rdx
xor sil, sil
call qword [sym.imp.ole32.dll_CoInitialize]
xor edx, edx
lea rax, [rsp + 0x30]
lea r9, [0x1400e8f70]
mov qword [rsp + 0x20], rax
lea rcx, [0x1400e8f80]
lea r8d, [rdx + 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x14006c6bf
mov rcx, qword [rsp + 0x30]
mov rdx, rdi
mov rax, qword [rcx]
call qword [rax + 0xa0]
cmp word [rbx], 0
je 0x14006c4f9
mov rcx, qword [rsp + 0x30]
mov rdx, rbx
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rdx, qword [rsp + 0x280]
cmp word [rdx], 0
je 0x14006c516
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x58]
mov rdx, qword [rsp + 0x288]
cmp word [rdx], 0
je 0x14006c533
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x38]
mov rdi, qword [rsp + 0x290]
cmp word [rdi], 0
je 0x14006c5a0
mov rbx, qword [rsp + 0x2a0]
cmp word [rbx], 0
je 0x14006c58c
mov rcx, rbx
call fcn.140010655
mov rcx, rbx
test al, al
je 0x14006c57e
xor edx, edx
lea r8d, [rdx + 0x10]
call fcn.1400bf3fd
lea r8d, [rax - 1]
jmp 0x14006c58f
call fcn.1400bef0f
lea r8d, [rax - 1]
jmp 0x14006c58f
xor r8d, r8d
mov rcx, qword [rsp + 0x30]
mov rdx, rdi
mov rax, qword [rcx]
call qword [rax + 0x88]
mov rbx, qword [rsp + 0x298]
cmp word [rbx], 0
je 0x14006c5ee
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov r9b, 1
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
mov rcx, rbx
call fcn.140016a65
test al, al
je 0x14006c5ee
mov rcx, qword [rsp + 0x30]
movzx edx, al
mov eax, 0x600
or dx, ax
mov r9, qword [rcx]
call qword [r9 + 0x68]
mov rbx, qword [rsp + 0x2a8]
cmp word [rbx], 0
je 0x14006c635
mov rcx, rbx
call fcn.140010655
mov rcx, rbx
test al, al
je 0x14006c623
xor edx, edx
lea r8d, [rdx + 0x10]
call fcn.1400bf3fd
jmp 0x14006c628
call fcn.1400bef0f
mov rcx, qword [rsp + 0x30]
mov edx, eax
mov rax, qword [rcx]
call qword [rax + 0x78]
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [0x1400e8f90]
mov rax, qword [rcx]
call qword [rax]
test eax, eax
js 0x14006c6b4
xor r9d, r9d
lea r8, [rsp + 0x40]
mov edx, 0x104
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x40]
mov r8d, 1
mov rax, qword [rcx]
call qword [rax + 0x30]
test eax, eax
js 0x14006c6a9
mov rcx, qword [0x140189e90]
lea rdx, [0x1400f1034]
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
call fcn.14009b349
mov sil, 1
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
call qword [sym.imp.ole32.dll_CoUninitialize]
test sil, sil
je 0x14006c6d8
mov eax, 1
jmp 0x14006c722
mov rax, qword [0x140185a58]
lea rdx, [0x140104650]
cmp byte [rax + 0x150], 0
jne 0x14006c710
mov rcx, qword [0x140189e90]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
call fcn.14009b349
jmp 0x14006c722
lea r9, [0x14010d0d8]
xor r8d, r8d
mov rcx, rbp
call fcn.14003bce5
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret