Function at 0x140007270
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 [0x1400354c0]
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 0x1400072d0
mov r8d, r15d
jmp 0x1400072de
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], r15w
jne 0x1400072d4
lea rcx, [rbp - 0x68]
call fcn.14000dc60
nop
call fcn.1400096d0
mov rdx, rax
mov r8, rdi
mov rcx, r14
call fcn.140009b30
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1400078b9
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov rdx, rax
mov r8, rdi
mov rcx, r14
call fcn.140009b30
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1400078b9
mov qword [rbp - 0x70], r15
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
lea r9, [0x140021a00]
xor edx, edx
lea r8d, [rbx + 0x18]
lea rcx, [0x140021bb0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test eax, eax
js 0x14000738e
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ole32.dll_OleRun]
mov esi, eax
test eax, eax
js 0x14000737a
mov rcx, qword [rbp - 0x78]
mov rax, qword [rcx]
lea r8, [rbp - 0x70]
lea rdx, [0x140021b80]
call qword [rax]
mov esi, eax
mov rcx, qword [rbp - 0x78]
mov rax, qword [rcx]
call qword [rax + 0x10]
test esi, esi
js 0x14000738e
mov rcx, qword [rbp - 0x70]
jmp 0x14000739d
mov rcx, r15
mov qword [rbp - 0x70], rcx
test esi, esi
js 0x140007770
test rcx, rcx
sete al
test al, al
jne 0x140007770
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.140005850
nop
mov rcx, qword [rbp - 0x70]
test rcx, rcx
jne 0x1400073e3
mov ecx, 0x80004003
call fcn.140010db0
nop
mov r8, rax
lea rdx, [rsp + 0x70]
call fcn.14000a6f0
lea rcx, [rsp + 0x30]
cmp rcx, rax
je 0x140007410
mov rbx, qword [rax]
mov qword [rsp + 0x30], rbx
test rbx, rbx
je 0x140007410
lock inc dword [rbx + 0x10]
mov rbx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14000741f
call fcn.14000c720
test rbx, rbx
je 0x140007765
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000744e
call qword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x14000744e
mov r8, qword [rbx]
mov edx, 0x40
lea rcx, [rbp + 0x120]
call fcn.1400131c0
cmp dword [rbx + 0x10], 1
jne 0x140007765
mov qword [rbx], r15
mov rcx, rbx
call fcn.14000c720
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.140005850
nop
mov rcx, qword [rbp - 0x70]
test rcx, rcx
jne 0x14000749b
mov ecx, 0x80004003
call fcn.140010db0
nop
mov r8, rax
lea rdx, [rsp + 0x50]
call fcn.14000a6f0
lea rcx, [rsp + 0x30]
cmp rcx, rax
je 0x1400074c8
mov rbx, qword [rax]
mov qword [rsp + 0x30], rbx
test rbx, rbx
je 0x1400074c8
lock inc dword [rbx + 0x10]
mov rbx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400074d7
call fcn.14000c720
test rbx, rbx
je 0x14000775a
mov rcx, qword [rbx]
test rcx, rcx
je 0x140007503
call qword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x140007503
mov r8, qword [rbx]
mov edx, 0x40
lea rcx, [rbp + 0x20]
call fcn.1400131c0
cmp dword [rbx + 0x10], 1
jne 0x14000775a
mov qword [rbx], r15
mov rcx, rbx
call fcn.14000c720
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.140005850
nop
mov rcx, qword [rbp - 0x70]
test rcx, rcx
jne 0x140007550
mov ecx, 0x80004003
call fcn.140010db0
nop
mov r8, rax
lea rdx, [rsp + 0x68]
call fcn.14000a6f0
lea rcx, [rsp + 0x30]
cmp rcx, rax
je 0x14000757d
mov rbx, qword [rax]
mov qword [rsp + 0x30], rbx
test rbx, rbx
je 0x14000757d
lock inc dword [rbx + 0x10]
mov rbx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000758c
call fcn.14000c720
test rbx, rbx
je 0x14000774f
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400075bb
call qword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x1400075bb
mov r8, qword [rbx]
mov edx, 0x40
lea rcx, [rbp + 0xa0]
call fcn.1400131c0
cmp dword [rbx + 0x10], 1
jne 0x14000774f
mov qword [rbx], r15
mov rcx, rbx
call fcn.14000c720
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.140005850
nop
mov rcx, qword [rbp - 0x70]
test rcx, rcx
jne 0x140007608
mov ecx, 0x80004003
call fcn.140010db0
nop
mov r8, rax
lea rdx, [rsp + 0x38]
call fcn.14000a6f0
lea rcx, [rsp + 0x30]
cmp rcx, rax
je 0x140007635
mov rbx, qword [rax]
mov qword [rsp + 0x30], rbx
test rbx, rbx
je 0x140007635
lock inc dword [rbx + 0x10]
mov rbx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140007644
call fcn.14000c720
test rbx, rbx
je 0x140007744
mov rcx, qword [rbx]
test rcx, rcx
je 0x140007673
call qword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x140007673
mov r8, qword [rbx]
mov edx, 0x40
lea rcx, [rbp + 0x1a0]
call fcn.1400131c0
cmp dword [rbx + 0x10], 1
jne 0x140007744
mov qword [rbx], r15
mov rcx, rbx
call fcn.14000c720
mov qword [rsp + 0x30], r15
mov rdx, rdi
lea rcx, [rbp + 0x120]
call qword [sym.imp.SHLWAPI.dll_StrStrW]
test rax, rax
je 0x1400076b1
mov r8d, 2
lea rdx, [0x1400239a8]
jmp 0x140007712
mov rdx, rdi
lea rcx, [rbp + 0x20]
call qword [sym.imp.SHLWAPI.dll_StrStrW]
test rax, rax
je 0x1400076cc
lea rdx, str.Left
jmp 0x14000770c
mov rdx, rdi
lea rcx, [rbp + 0xa0]
call qword [sym.imp.SHLWAPI.dll_StrStrW]
test rax, rax
je 0x1400076f0
mov r8d, 5
lea rdx, str.Right
jmp 0x140007712
mov rdx, rdi
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.SHLWAPI.dll_StrStrW]
test rax, rax
je 0x14000771b
lea rdx, str.Down
mov r8d, 4
lea rcx, [rbp - 0x68]
call fcn.14000dc60
lea rbx, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rbx, qword [rbp - 0x68]
call fcn.1400096d0
mov rdx, rax
mov r8, rbx
mov rcx, r14
call fcn.140009b30
mov ebx, eax
mov rcx, qword [rbp - 0x70]
jmp 0x140007770
mov ecx, 0x80004003
call fcn.140010db0
int3
mov ecx, 0x80004003
call fcn.140010db0
int3
mov ecx, 0x80004003
call fcn.140010db0
int3
mov ecx, 0x80004003
call fcn.140010db0
nop
test rcx, rcx
je 0x14000777b
mov rax, qword [rcx]
call qword [rax + 0x10]
cmp ebx, 0xffffffff
jne 0x1400078b9
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.140013508
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 0x14000781e
lea r8, [rbp]
lea edx, [rbx + 0xa]
lea rcx, [rbp - 0x48]
call fcn.140013138
lea edx, [rbx + 2]
lea rcx, [rbp - 0x48]
call qword [sym.imp.USER32.dll_LoadKeyboardLayoutW]
test rax, rax
je 0x14000781e
lea r8, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae r8, qword [rbp - 0x68]
mov rdx, rax
mov rcx, r14
call fcn.140009b30
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1400078b9
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.140013508
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 0x1400078b9
lea r8, [rbp - 0x18]
mov edx, 9
lea rcx, [rbp - 0x30]
call fcn.140013138
mov edx, 1
lea rcx, [rbp - 0x30]
call qword [sym.imp.USER32.dll_LoadKeyboardLayoutW]
test rax, rax
je 0x1400078b9
lea r8, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae r8, qword [rbp - 0x68]
mov rdx, rax
mov rcx, r14
call fcn.140009b30
mov ebx, eax
cmp qword [rbp - 0x50], 8
jb 0x1400078c9
mov rcx, qword [rbp - 0x68]
call fcn.1400112d0
mov eax, ebx
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.140012700
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