Function at 0x1400e1514
Capabilities:
Get keyboard layout

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x1c8]
sub rsp, 0x2c0
mov rax, qword [0x1401d3050]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov dil, cl
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0xaa
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [0x1401e2b04]
xor r14d, r14d
mov qword [rsp + 0x38], r14
lea esi, [r14 + 2]
test ebx, ebx
jne 0x1400e15d6
lea r8, [rsp + 0x30]
mov dword [0x1401e2b04], 1
lea rdx, [rsp + 0x60]
mov word [rsp + 0x60], r14w
lea rcx, str.LangTuneUp
mov dword [rsp + 0x30], 0x40
call fcn.1400287e0
test eax, eax
jne 0x1400e15d0
movzx eax, word [rsp + 0x60]
mov ecx, 0xffdf
and ax, cx
cmp ax, 0x50
jne 0x1400e15c1
lea ebx, [rsi + 1]
mov dword [0x1401e2b04], ebx
jmp 0x1400e15d6
mov ebx, dword [0x1401e2b04]
cmp ax, 0x4f
cmove ebx, esi
jmp 0x1400e15b9
mov ebx, dword [0x1401e2b04]
lea rcx, [rbp - 0x60]
call fcn.1400eca84
cmp ebx, 1
jne 0x1400e160b
test dil, dil
je 0x1400e15ee
call fcn.1400e1998
lea rdx, str.OfficeCompleted
lea rcx, str.LangTuneUp
call fcn.140028a80
test eax, eax
je 0x1400e1614
mov dword [0x1401e2b04], esi
cmp ebx, 3
je 0x1400e17f8
call qword [sym.imp.KERNEL32.dll_GetACP]
lea rcx, [rbp - 0x60]
mov ebx, eax
call fcn.1400e4a38
test al, al
je 0x1400e169a
mov r9b, 1
mov byte [rsp + 0x20], 1
or rdi, 0xffffffffffffffff
lea rdx, [rsp + 0x40]
mov r8b, r9b
mov qword [rsp + 0x40], rdi
lea rcx, [rbp - 0x60]
call fcn.1400ea58c
test eax, eax
js 0x1400e1673
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], r14d
call fcn.1400eb7fc
test eax, eax
js 0x1400e1673
test dword [rsp + 0x30], 0x800
mov al, 1
jne 0x1400e1676
mov al, r14b
lea rcx, [rbp - 0x60]
mov r9, rdi
lea r8, str.zh_CN
mov edx, 0x55
test al, al
jne 0x1400e1694
lea r8, str.zh_TW
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov r8b, 1
lea rcx, [0x1401e2980]
call fcn.1400e3968
xor r8d, r8d
lea rcx, [rbp - 0x60]
call fcn.1400e3968
cmp ebx, 0x4ea
jne 0x1400e16cc
xor r8d, r8d
lea rcx, str.fr_FR
call fcn.1400e3968
xor edx, edx
lea rbx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov esi, eax
mov edi, eax
cmp eax, 8
jbe 0x1400e16fc
mov ecx, esi
shl rcx, 3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x1400e1790
mov rdx, rbx
mov ecx, esi
call qword [sym.imp.USER32.dll_GetKeyboardLayoutList]
test esi, esi
je 0x1400e177d
mov rsi, rbx
movzx ecx, word [rsi]
lea rdx, [rbp + 0x100]
xor r9d, r9d
lea r8d, [r9 + 0x55]
call qword [sym.imp.KERNEL32.dll_LCIDToLocaleName]
test eax, eax
je 0x1400e1773
xor r8d, r8d
lea rcx, [rbp + 0x100]
call fcn.1400e3968
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x100]
call fcn.1400ddf54
test eax, eax
js 0x1400e1773
cmp word [rbp + 0x50], r14w
je 0x1400e1773
lea rdx, [0x140174b98]
lea rcx, [rbp + 0x50]
call fcn.14002c244
test eax, eax
je 0x1400e1773
xor r8d, r8d
lea rcx, [rbp + 0x50]
call fcn.1400e3968
add rsi, 8
sub rdi, 1
jne 0x1400e170e
lea rax, [rsp + 0x60]
cmp rbx, rax
je 0x1400e1790
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call fcn.1400de02c
test al, al
jne 0x1400e17f8
lea rcx, [rsp + 0x48]
call fcn.1400e02e0
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
sub rdi, rbx
sar rdi, 5
test rdi, rdi
je 0x1400e17ee
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x1400e17c6
mov rcx, qword [rbx]
call fcn.1400de3a8
test al, al
jne 0x1400e17e4
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x1400e17dc
mov rcx, qword [rbx]
xor r8d, r8d
call fcn.1400e3968
add rbx, 0x20
sub rdi, 1
jne 0x1400e17b9
lea rcx, [rsp + 0x48]
call fcn.14001c3b8
lea rcx, [0x1401e2770]
call fcn.1400de3a8
test al, al
jne 0x1400e1817
xor r8d, r8d
lea rcx, [0x1401e2770]
call fcn.1400e3968
mov rcx, qword [0x1401dd4e0]
movabs rdi, 0x2fa0be82fa0be83
mov r8, qword [0x1401dd4d8]
mov rax, rdi
sub rcx, r8
mov dword [0x1401e2af8], r14d
imul rcx
mov dword [0x1401e2afc], r14d
mov ebx, r14d
sar rdx, 1
mov rax, rdx
mov dword [0x1401e2b00], r14d
shr rax, 0x3f
add rdx, rax
test edx, edx
je 0x1400e196c
mov eax, ebx
lea rdx, [rsp + 0x38]
imul rcx, rax, 0xac
mov r9b, 1
mov qword [rsp + 0x38], r14
add rcx, r8
mov byte [rsp + 0x20], 1
mov r8b, r9b
call fcn.1400ea58c
test eax, eax
js 0x1400e193e
cmp dword [0x1401e2b00], r14d
jne 0x1400e18cc
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], r14d
call fcn.1400eb7fc
test eax, eax
js 0x1400e18c3
test dword [rsp + 0x30], 0x40000
mov eax, 1
jne 0x1400e18c6
mov eax, r14d
mov dword [0x1401e2b00], eax
cmp dword [0x1401e2afc], r14d
jne 0x1400e1905
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], r14d
call fcn.1400eb7fc
test eax, eax
js 0x1400e18fc
test dword [rsp + 0x30], 0x10000
mov eax, 1
jne 0x1400e18ff
mov eax, r14d
mov dword [0x1401e2afc], eax
cmp dword [0x1401e2af8], r14d
jne 0x1400e193e
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], r14d
call fcn.1400eb7fc
test eax, eax
js 0x1400e1935
test dword [rsp + 0x30], 0x8000
mov eax, 1
jne 0x1400e1938
mov eax, r14d
mov dword [0x1401e2af8], eax
mov rcx, qword [0x1401dd4e0]
mov rax, rdi
mov r8, qword [0x1401dd4d8]
inc ebx
sub rcx, r8
imul rcx
sar rdx, 1
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp ebx, edx
jb 0x1400e1865
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.140118d00
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret