Function at 0x1400172e0
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 [0x1400454c0]
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 0x140017340
mov r8d, r15d
jmp 0x14001734e
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], r15w
jne 0x140017344
lea rcx, [rbp - 0x68]
call fcn.14001dc60
nop
call fcn.140019750
mov rdx, rax
mov r8, rdi
mov rcx, r14
call fcn.140019bb0
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140017929
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov rdx, rax
mov r8, rdi
mov rcx, r14
call fcn.140019bb0
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140017929
mov qword [rbp - 0x70], r15
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
lea r9, [0x140031c60]
xor edx, edx
lea r8d, [rbx + 0x18]
lea rcx, [0x1400319b0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test eax, eax
js 0x1400173fe
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ole32.dll_OleRun]
mov esi, eax
test eax, eax
js 0x1400173ea
mov rcx, qword [rbp - 0x78]
mov rax, qword [rcx]
lea r8, [rbp - 0x70]
lea rdx, [0x1400335b8]
call qword [rax]
mov esi, eax
mov rcx, qword [rbp - 0x78]
mov rax, qword [rcx]
call qword [rax + 0x10]
test esi, esi
js 0x1400173fe
mov rcx, qword [rbp - 0x70]
jmp 0x14001740d
mov rcx, r15
mov qword [rbp - 0x70], rcx
test esi, esi
js 0x1400177e0
test rcx, rcx
sete al
test al, al
jne 0x1400177e0
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.1400158c0
nop
mov rcx, qword [rbp - 0x70]
test rcx, rcx
jne 0x140017453
mov ecx, 0x80004003
call fcn.140020db0
nop
mov r8, rax
lea rdx, [rsp + 0x70]
call fcn.14001a750
lea rcx, [rsp + 0x30]
cmp rcx, rax
je 0x140017480
mov rbx, qword [rax]
mov qword [rsp + 0x30], rbx
test rbx, rbx
je 0x140017480
lock inc dword [rbx + 0x10]
mov rbx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14001748f
call fcn.14001c720
test rbx, rbx
je 0x1400177d5
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400174be
call qword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x1400174be
mov r8, qword [rbx]
mov edx, 0x40
lea rcx, [rbp + 0x120]
call fcn.1400231c0
cmp dword [rbx + 0x10], 1
jne 0x1400177d5
mov qword [rbx], r15
mov rcx, rbx
call fcn.14001c720
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.1400158c0
nop
mov rcx, qword [rbp - 0x70]
test rcx, rcx
jne 0x14001750b
mov ecx, 0x80004003
call fcn.140020db0
nop
mov r8, rax
lea rdx, [rsp + 0x50]
call fcn.14001a750
lea rcx, [rsp + 0x30]
cmp rcx, rax
je 0x140017538
mov rbx, qword [rax]
mov qword [rsp + 0x30], rbx
test rbx, rbx
je 0x140017538
lock inc dword [rbx + 0x10]
mov rbx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140017547
call fcn.14001c720
test rbx, rbx
je 0x1400177ca
mov rcx, qword [rbx]
test rcx, rcx
je 0x140017573
call qword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x140017573
mov r8, qword [rbx]
mov edx, 0x40
lea rcx, [rbp + 0x20]
call fcn.1400231c0
cmp dword [rbx + 0x10], 1
jne 0x1400177ca
mov qword [rbx], r15
mov rcx, rbx
call fcn.14001c720
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.1400158c0
nop
mov rcx, qword [rbp - 0x70]
test rcx, rcx
jne 0x1400175c0
mov ecx, 0x80004003
call fcn.140020db0
nop
mov r8, rax
lea rdx, [rsp + 0x68]
call fcn.14001a750
lea rcx, [rsp + 0x30]
cmp rcx, rax
je 0x1400175ed
mov rbx, qword [rax]
mov qword [rsp + 0x30], rbx
test rbx, rbx
je 0x1400175ed
lock inc dword [rbx + 0x10]
mov rbx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400175fc
call fcn.14001c720
test rbx, rbx
je 0x1400177bf
mov rcx, qword [rbx]
test rcx, rcx
je 0x14001762b
call qword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x14001762b
mov r8, qword [rbx]
mov edx, 0x40
lea rcx, [rbp + 0xa0]
call fcn.1400231c0
cmp dword [rbx + 0x10], 1
jne 0x1400177bf
mov qword [rbx], r15
mov rcx, rbx
call fcn.14001c720
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.1400158c0
nop
mov rcx, qword [rbp - 0x70]
test rcx, rcx
jne 0x140017678
mov ecx, 0x80004003
call fcn.140020db0
nop
mov r8, rax
lea rdx, [rsp + 0x38]
call fcn.14001a750
lea rcx, [rsp + 0x30]
cmp rcx, rax
je 0x1400176a5
mov rbx, qword [rax]
mov qword [rsp + 0x30], rbx
test rbx, rbx
je 0x1400176a5
lock inc dword [rbx + 0x10]
mov rbx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400176b4
call fcn.14001c720
test rbx, rbx
je 0x1400177b4
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400176e3
call qword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x1400176e3
mov r8, qword [rbx]
mov edx, 0x40
lea rcx, [rbp + 0x1a0]
call fcn.1400231c0
cmp dword [rbx + 0x10], 1
jne 0x1400177b4
mov qword [rbx], r15
mov rcx, rbx
call fcn.14001c720
mov qword [rsp + 0x30], r15
mov rdx, rdi
lea rcx, [rbp + 0x120]
call qword [sym.imp.SHLWAPI.dll_StrStrW]
test rax, rax
je 0x140017721
mov r8d, 2
lea rdx, [0x1400337f8]
jmp 0x140017782
mov rdx, rdi
lea rcx, [rbp + 0x20]
call qword [sym.imp.SHLWAPI.dll_StrStrW]
test rax, rax
je 0x14001773c
lea rdx, str.Left
jmp 0x14001777c
mov rdx, rdi
lea rcx, [rbp + 0xa0]
call qword [sym.imp.SHLWAPI.dll_StrStrW]
test rax, rax
je 0x140017760
mov r8d, 5
lea rdx, str.Right
jmp 0x140017782
mov rdx, rdi
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.SHLWAPI.dll_StrStrW]
test rax, rax
je 0x14001778b
lea rdx, str.Down
mov r8d, 4
lea rcx, [rbp - 0x68]
call fcn.14001dc60
lea rbx, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rbx, qword [rbp - 0x68]
call fcn.140019750
mov rdx, rax
mov r8, rbx
mov rcx, r14
call fcn.140019bb0
mov ebx, eax
mov rcx, qword [rbp - 0x70]
jmp 0x1400177e0
mov ecx, 0x80004003
call fcn.140020db0
int3
mov ecx, 0x80004003
call fcn.140020db0
int3
mov ecx, 0x80004003
call fcn.140020db0
int3
mov ecx, 0x80004003
call fcn.140020db0
nop
test rcx, rcx
je 0x1400177eb
mov rax, qword [rcx]
call qword [rax + 0x10]
cmp ebx, 0xffffffff
jne 0x140017929
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.140023508
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 0x14001788e
lea r8, [rbp]
lea edx, [rbx + 0xa]
lea rcx, [rbp - 0x48]
call fcn.140023138
lea edx, [rbx + 2]
lea rcx, [rbp - 0x48]
call qword [sym.imp.USER32.dll_LoadKeyboardLayoutW]
test rax, rax
je 0x14001788e
lea r8, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae r8, qword [rbp - 0x68]
mov rdx, rax
mov rcx, r14
call fcn.140019bb0
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140017929
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.140023508
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 0x140017929
lea r8, [rbp - 0x18]
mov edx, 9
lea rcx, [rbp - 0x30]
call fcn.140023138
mov edx, 1
lea rcx, [rbp - 0x30]
call qword [sym.imp.USER32.dll_LoadKeyboardLayoutW]
test rax, rax
je 0x140017929
lea r8, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae r8, qword [rbp - 0x68]
mov rdx, rax
mov rcx, r14
call fcn.140019bb0
mov ebx, eax
cmp qword [rbp - 0x50], 8
jb 0x140017939
mov rcx, qword [rbp - 0x68]
call fcn.1400212d0
mov eax, ebx
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.140022700
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