Function at 0x1400162e0
Capabilities:
Get geographical location
Get keyboard layout
Identify system language via api

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x248]
sub rsp, 0x330
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400444c0]
xor rax, rsp
mov qword [rbp + 0x220], rax
mov rdi, rdx
mov r14, rcx
mov qword [rbp - 0x50], 7
xor r15d, r15d
mov qword [rbp - 0x58], r15
mov word [rbp - 0x68], r15w
cmp word [rdx], r15w
jne 0x140016340
mov r8d, r15d
jmp 0x14001634e
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], r15w
jne 0x140016344
lea rcx, [rbp - 0x68]
call fcn.14001cc60
nop
call fcn.140018750
mov rdx, rax
mov r8, rdi
mov rcx, r14
call fcn.140018bb0
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140016929
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov rdx, rax
mov r8, rdi
mov rcx, r14
call fcn.140018bb0
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140016929
mov qword [rbp - 0x70], r15
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
lea r9, [0x140030c60]
xor edx, edx
lea r8d, [rbx + 0x18]
lea rcx, [0x1400309b0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test eax, eax
js 0x1400163fe
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ole32.dll_OleRun]
mov esi, eax
test eax, eax
js 0x1400163ea
mov rcx, qword [rbp - 0x78]
mov rax, qword [rcx]
lea r8, [rbp - 0x70]
lea rdx, [0x1400325b8]
call qword [rax]
mov esi, eax
mov rcx, qword [rbp - 0x78]
mov rax, qword [rcx]
call qword [rax + 0x10]
test esi, esi
js 0x1400163fe
mov rcx, qword [rbp - 0x70]
jmp 0x14001640d
mov rcx, r15
mov qword [rbp - 0x70], rcx
test esi, esi
js 0x1400167e0
test rcx, rcx
sete al
test al, al
jne 0x1400167e0
mov rbx, r15
mov qword [rsp + 0x30], rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea rdx, str.HotkeyActionRotateZeroDefault
lea rcx, [rsp + 0x60]
call fcn.1400148c0
nop
mov rcx, qword [rbp - 0x70]
test rcx, rcx
jne 0x140016453
mov ecx, 0x80004003
call fcn.14001fdb0
nop
mov r8, rax
lea rdx, [rsp + 0x70]
call fcn.140019750
lea rcx, [rsp + 0x30]
cmp rcx, rax
je 0x140016480
mov rbx, qword [rax]
mov qword [rsp + 0x30], rbx
test rbx, rbx
je 0x140016480
lock inc dword [rbx + 0x10]
mov rbx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14001648f
call fcn.14001b720
test rbx, rbx
je 0x1400167d5
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400164be
call qword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x1400164be
mov r8, qword [rbx]
mov edx, 0x40
lea rcx, [rbp + 0x120]
call fcn.1400221c0
cmp dword [rbx + 0x10], 1
jne 0x1400167d5
mov qword [rbx], r15
mov rcx, rbx
call fcn.14001b720
mov rbx, r15
mov qword [rsp + 0x30], rbx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
lea rdx, str.HotkeyActionRotate90Default
lea rcx, [rsp + 0x48]
call fcn.1400148c0
nop
mov rcx, qword [rbp - 0x70]
test rcx, rcx
jne 0x14001650b
mov ecx, 0x80004003
call fcn.14001fdb0
nop
mov r8, rax
lea rdx, [rsp + 0x50]
call fcn.140019750
lea rcx, [rsp + 0x30]
cmp rcx, rax
je 0x140016538
mov rbx, qword [rax]
mov qword [rsp + 0x30], rbx
test rbx, rbx
je 0x140016538
lock inc dword [rbx + 0x10]
mov rbx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140016547
call fcn.14001b720
test rbx, rbx
je 0x1400167ca
mov rcx, qword [rbx]
test rcx, rcx
je 0x140016573
call qword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x140016573
mov r8, qword [rbx]
mov edx, 0x40
lea rcx, [rbp + 0x20]
call fcn.1400221c0
cmp dword [rbx + 0x10], 1
jne 0x1400167ca
mov qword [rbx], r15
mov rcx, rbx
call fcn.14001b720
mov rbx, r15
mov qword [rsp + 0x30], rbx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
lea rdx, str.HotkeyActionRotate270Default
lea rcx, [rsp + 0x58]
call fcn.1400148c0
nop
mov rcx, qword [rbp - 0x70]
test rcx, rcx
jne 0x1400165c0
mov ecx, 0x80004003
call fcn.14001fdb0
nop
mov r8, rax
lea rdx, [rsp + 0x68]
call fcn.140019750
lea rcx, [rsp + 0x30]
cmp rcx, rax
je 0x1400165ed
mov rbx, qword [rax]
mov qword [rsp + 0x30], rbx
test rbx, rbx
je 0x1400165ed
lock inc dword [rbx + 0x10]
mov rbx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400165fc
call fcn.14001b720
test rbx, rbx
je 0x1400167bf
mov rcx, qword [rbx]
test rcx, rcx
je 0x14001662b
call qword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x14001662b
mov r8, qword [rbx]
mov edx, 0x40
lea rcx, [rbp + 0xa0]
call fcn.1400221c0
cmp dword [rbx + 0x10], 1
jne 0x1400167bf
mov qword [rbx], r15
mov rcx, rbx
call fcn.14001b720
mov rbx, r15
mov qword [rsp + 0x30], rbx
lea rax, [rsp + 0x78]
mov qword [rsp + 0x40], rax
lea rdx, str.HotkeyActionRotate180Default
lea rcx, [rsp + 0x78]
call fcn.1400148c0
nop
mov rcx, qword [rbp - 0x70]
test rcx, rcx
jne 0x140016678
mov ecx, 0x80004003
call fcn.14001fdb0
nop
mov r8, rax
lea rdx, [rsp + 0x38]
call fcn.140019750
lea rcx, [rsp + 0x30]
cmp rcx, rax
je 0x1400166a5
mov rbx, qword [rax]
mov qword [rsp + 0x30], rbx
test rbx, rbx
je 0x1400166a5
lock inc dword [rbx + 0x10]
mov rbx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400166b4
call fcn.14001b720
test rbx, rbx
je 0x1400167b4
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400166e3
call qword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x1400166e3
mov r8, qword [rbx]
mov edx, 0x40
lea rcx, [rbp + 0x1a0]
call fcn.1400221c0
cmp dword [rbx + 0x10], 1
jne 0x1400167b4
mov qword [rbx], r15
mov rcx, rbx
call fcn.14001b720
mov qword [rsp + 0x30], r15
mov rdx, rdi
lea rcx, [rbp + 0x120]
call qword [sym.imp.SHLWAPI.dll_StrStrW]
test rax, rax
je 0x140016721
mov r8d, 2
lea rdx, [0x1400327f8]
jmp 0x140016782
mov rdx, rdi
lea rcx, [rbp + 0x20]
call qword [sym.imp.SHLWAPI.dll_StrStrW]
test rax, rax
je 0x14001673c
lea rdx, str.Left
jmp 0x14001677c
mov rdx, rdi
lea rcx, [rbp + 0xa0]
call qword [sym.imp.SHLWAPI.dll_StrStrW]
test rax, rax
je 0x140016760
mov r8d, 5
lea rdx, str.Right
jmp 0x140016782
mov rdx, rdi
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.SHLWAPI.dll_StrStrW]
test rax, rax
je 0x14001678b
lea rdx, str.Down
mov r8d, 4
lea rcx, [rbp - 0x68]
call fcn.14001cc60
lea rbx, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rbx, qword [rbp - 0x68]
call fcn.140018750
mov rdx, rax
mov r8, rbx
mov rcx, r14
call fcn.140018bb0
mov ebx, eax
mov rcx, qword [rbp - 0x70]
jmp 0x1400167e0
mov ecx, 0x80004003
call fcn.14001fdb0
int3
mov ecx, 0x80004003
call fcn.14001fdb0
int3
mov ecx, 0x80004003
call fcn.14001fdb0
int3
mov ecx, 0x80004003
call fcn.14001fdb0
nop
test rcx, rcx
je 0x1400167eb
mov rax, qword [rcx]
call qword [rax + 0x10]
cmp ebx, 0xffffffff
jne 0x140016929
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov word [rbp - 0x38], ax
mov qword [rbp], rax
mov qword [rbp + 8], rax
mov word [rbp + 0x10], ax
xor r9d, r9d
lea r8, str._04x
lea edx, [rbx + 0xa]
lea rcx, [rbp - 0x48]
call fcn.140022508
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx ecx, ax
and ecx, 0x3ff
lea r9d, [rbx + 0xa]
lea r8, [rbp]
lea edx, [rbx + 2]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x14001688e
lea r8, [rbp]
lea edx, [rbx + 0xa]
lea rcx, [rbp - 0x48]
call fcn.140022138
lea edx, [rbx + 2]
lea rcx, [rbp - 0x48]
call qword [sym.imp.USER32.dll_LoadKeyboardLayoutW]
test rax, rax
je 0x14001688e
lea r8, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae r8, qword [rbp - 0x68]
mov rdx, rax
mov rcx, r14
call fcn.140018bb0
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140016929
xor eax, eax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
mov word [rbp - 0x20], ax
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
mov word [rbp - 8], ax
mov r9d, 9
lea r8, str._04x
mov edx, r9d
lea rcx, [rbp - 0x30]
call fcn.140022508
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
and ecx, 0x3ff
mov r9d, 9
lea r8, [rbp - 0x18]
lea edx, [r9 - 8]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x140016929
lea r8, [rbp - 0x18]
mov edx, 9
lea rcx, [rbp - 0x30]
call fcn.140022138
mov edx, 1
lea rcx, [rbp - 0x30]
call qword [sym.imp.USER32.dll_LoadKeyboardLayoutW]
test rax, rax
je 0x140016929
lea r8, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae r8, qword [rbp - 0x68]
mov rdx, rax
mov rcx, r14
call fcn.140018bb0
mov ebx, eax
cmp qword [rbp - 0x50], 8
jb 0x140016939
mov rcx, qword [rbp - 0x68]
call fcn.1400202d0
mov eax, ebx
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.140021700
lea r11, [rsp + 0x330]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret