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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x238]
sub rsp, 0x310
mov rax, qword [0x140088e00]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov rsi, rdx
mov r14, rcx
xor r15d, r15d
mov qword [rsp + 0x78], r15
movdqa xmm0, xmmword [0x140069b30]
movdqu xmmword [rbp - 0x78], xmm0
mov word [rsp + 0x78], r15w
mov rcx, rdx
call fcn.1400344b4
mov r8, rax
mov rdx, rsi
lea rcx, [rsp + 0x78]
call fcn.1400215b0
nop
call fcn.1400243e8
mov rdx, rax
mov r8, rsi
mov rcx, r14
call fcn.140024ac8
mov ebx, eax
or r12d, 0xffffffff
cmp eax, r12d
jne 0x140022978
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov rdx, rax
mov r8, rsi
mov rcx, r14
call fcn.140024ac8
mov ebx, eax
cmp eax, r12d
jne 0x140022978
mov qword [rsp + 0x70], r15
lea r9d, [r15 + 0x17]
xor r8d, r8d
lea rdx, [0x140066d18]
lea rcx, [rsp + 0x70]
call fcn.1400167b4
lea r13d, [r15 + 1]
mov rcx, qword [rsp + 0x70]
test eax, eax
js 0x140022825
test rcx, rcx
je 0x140022825
mov ebx, r15d
mov qword [rsp + 0x20], rbx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x30], rax
lea rdx, str.HotkeyActionRotateZeroDefault
lea rcx, [rsp + 0x38]
call fcn.1400166f8
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400229bf
mov r8, rax
lea rdx, [rsp + 0x40]
call fcn.140016a48
mov edi, r15d
lea rcx, [rsp + 0x20]
cmp rcx, rax
je 0x1400223b1
mov rbx, qword [rax]
mov qword [rsp + 0x20], rbx
mov rdi, rbx
test rbx, rbx
je 0x1400223b1
lock add dword [rbx + 0x10], r13d
mov rbx, qword [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140016ae0
test rdi, rdi
je 0x1400223e8
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400223d0
call qword [sym.imp.OLEAUT32.dll_VariantInit]
jmp 0x1400223d3
mov eax, r15d
test eax, eax
je 0x1400223e8
mov r8, qword [rbx]
mov edx, 0x40
lea rcx, [rbp]
call fcn.140034200
test rbx, rbx
je 0x1400229b4
cmp dword [rbx + 0x10], r13d
jne 0x1400229b4
mov qword [rbx], r15
mov eax, r12d
lock xadd dword [rbx + 0x10], eax
add eax, r12d
jne 0x140022440
mov rbx, qword [rsp + 0x20]
mov rcx, qword [rbx]
test rcx, rcx
je 0x140022421
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r15
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140022433
call fcn.14002a134
mov qword [rbx + 8], r15
mov edx, 0x18
mov rcx, rbx
call fcn.14002a134
mov rbx, r15
mov qword [rsp + 0x20], rbx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, str.HotkeyActionRotate90Default
lea rcx, [rsp + 0x48]
call fcn.1400166f8
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140022a01
mov r8, rax
lea rdx, [rsp + 0x50]
call fcn.140016a48
mov rdi, r15
lea rcx, [rsp + 0x20]
cmp rcx, rax
je 0x1400224a6
mov rbx, qword [rax]
mov rdi, rbx
mov qword [rsp + 0x20], rbx
test rbx, rbx
je 0x1400224a6
lock add dword [rbx + 0x10], r13d
mov rbx, qword [rsp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.140016ae0
test rdi, rdi
je 0x1400224ea
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400224c5
call qword [sym.imp.OLEAUT32.dll_VariantInit]
jmp 0x1400224c8
mov eax, r15d
test eax, eax
je 0x1400224ea
test rbx, rbx
je 0x1400224d6
mov r8, qword [rbx]
jmp 0x1400224d9
mov r8, r15
mov edx, 0x40
lea rcx, [rbp + 0x80]
call fcn.140034200
test rbx, rbx
je 0x1400229f6
cmp dword [rbx + 0x10], r13d
jne 0x1400229f6
mov qword [rbx], r15
mov eax, r12d
lock xadd dword [rbx + 0x10], eax
add eax, r12d
jne 0x140022542
mov rbx, qword [rsp + 0x20]
mov rcx, qword [rbx]
test rcx, rcx
je 0x140022523
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r15
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140022535
call fcn.14002a134
mov qword [rbx + 8], r15
mov edx, 0x18
mov rcx, rbx
call fcn.14002a134
mov rbx, r15
mov qword [rsp + 0x20], rbx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rdx, str.HotkeyActionRotate270Default
lea rcx, [rsp + 0x58]
call fcn.1400166f8
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400229eb
mov r8, rax
lea rdx, [rsp + 0x60]
call fcn.140016a48
mov rdi, r15
lea rcx, [rsp + 0x20]
cmp rcx, rax
je 0x1400225a8
mov rbx, qword [rax]
mov rdi, rbx
mov qword [rsp + 0x20], rbx
test rbx, rbx
je 0x1400225a8
lock add dword [rbx + 0x10], r13d
mov rbx, qword [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.140016ae0
test rdi, rdi
je 0x1400225ec
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400225c7
call qword [sym.imp.OLEAUT32.dll_VariantInit]
jmp 0x1400225ca
mov eax, r15d
test eax, eax
je 0x1400225ec
test rbx, rbx
je 0x1400225d8
mov r8, qword [rbx]
jmp 0x1400225db
mov r8, r15
mov edx, 0x40
lea rcx, [rbp + 0x100]
call fcn.140034200
test rbx, rbx
je 0x1400229e0
cmp dword [rbx + 0x10], r13d
jne 0x1400229e0
mov qword [rbx], r15
mov eax, r12d
lock xadd dword [rbx + 0x10], eax
add eax, r12d
jne 0x140022644
mov rbx, qword [rsp + 0x20]
mov rcx, qword [rbx]
test rcx, rcx
je 0x140022625
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r15
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140022637
call fcn.14002a134
mov qword [rbx + 8], r15
mov edx, 0x18
mov rcx, rbx
call fcn.14002a134
mov rbx, r15
mov qword [rsp + 0x20], rbx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rdx, str.HotkeyActionRotate180Default
lea rcx, [rsp + 0x68]
call fcn.1400166f8
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400229d5
mov r8, rax
lea rdx, [rsp + 0x30]
call fcn.140016a48
mov rdi, r15
lea rcx, [rsp + 0x20]
cmp rcx, rax
je 0x1400226aa
mov rbx, qword [rax]
mov rdi, rbx
mov qword [rsp + 0x20], rbx
test rbx, rbx
je 0x1400226aa
lock add dword [rbx + 0x10], r13d
mov rbx, qword [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.140016ae0
test rdi, rdi
je 0x1400226ee
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400226c9
call qword [sym.imp.OLEAUT32.dll_VariantInit]
jmp 0x1400226cc
mov eax, r15d
test eax, eax
je 0x1400226ee
test rbx, rbx
je 0x1400226da
mov r8, qword [rbx]
jmp 0x1400226dd
mov r8, r15
mov edx, 0x40
lea rcx, [rbp + 0x180]
call fcn.140034200
test rbx, rbx
je 0x1400229ca
cmp dword [rbx + 0x10], r13d
jne 0x1400229ca
mov qword [rbx], r15
mov eax, r12d
lock xadd dword [rbx + 0x10], eax
add eax, r12d
jne 0x140022746
mov rbx, qword [rsp + 0x20]
mov rcx, qword [rbx]
test rcx, rcx
je 0x140022727
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r15
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140022739
call fcn.14002a134
mov qword [rbx + 8], r15
mov edx, 0x18
mov rcx, rbx
call fcn.14002a134
mov qword [rsp + 0x20], r15
mov rdx, rsi
lea rcx, [rbp]
call qword [sym.imp.SHLWAPI.dll_StrStrW]
test rax, rax
je 0x140022772
lea rcx, [0x14006a028]
call fcn.1400344b4
lea rdx, [0x14006a028]
jmp 0x1400227ee
mov rdx, rsi
lea rcx, [rbp + 0x80]
call qword [sym.imp.SHLWAPI.dll_StrStrW]
test rax, rax
je 0x14002279c
lea rcx, str.Left
call fcn.1400344b4
lea rdx, str.Left
jmp 0x1400227ee
mov rdx, rsi
lea rcx, [rbp + 0x100]
call qword [sym.imp.SHLWAPI.dll_StrStrW]
test rax, rax
je 0x1400227c6
lea rcx, str.Right
call fcn.1400344b4
lea rdx, str.Right
jmp 0x1400227ee
mov rdx, rsi
lea rcx, [rbp + 0x180]
call qword [sym.imp.SHLWAPI.dll_StrStrW]
test rax, rax
je 0x1400227fb
lea rcx, str.Down
call fcn.1400344b4
lea rdx, str.Down
mov r8, rax
lea rcx, [rsp + 0x78]
call fcn.1400215b0
lea rbx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rbx, qword [rsp + 0x78]
call fcn.1400243e8
mov rdx, rax
mov r8, rbx
mov rcx, r14
call fcn.140024ac8
mov ebx, eax
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140022838
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140064a18]
nop
cmp ebx, r12d
jne 0x140022978
mov esi, 0x12
mov r8d, esi
xor edx, edx
lea rcx, [rbp - 0x68]
call fcn.14002e400
mov r8d, esi
xor edx, edx
lea rcx, [rbp - 0x38]
call fcn.14002e400
xor r9d, r9d
lea r8, str._04x
lea edi, [rsi - 9]
mov edx, edi
lea rcx, [rbp - 0x68]
call fcn.140012aa8
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx ecx, ax
and ecx, 0x3ff
mov r9d, edi
lea r8, [rbp - 0x38]
mov edx, r13d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400228e4
lea r8, [rbp - 0x38]
mov edx, edi
lea rcx, [rbp - 0x68]
call fcn.140034188
mov edx, r13d
lea rcx, [rbp - 0x68]
call qword [sym.imp.USER32.dll_LoadKeyboardLayoutW]
test rax, rax
je 0x1400228e4
lea r8, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae r8, qword [rsp + 0x78]
mov rdx, rax
mov rcx, r14
call fcn.140024ac8
mov ebx, eax
cmp eax, r12d
jne 0x140022978
mov r8, rsi
xor edx, edx
lea rcx, [rbp - 0x50]
call fcn.14002e400
mov r8, rsi
xor edx, edx
lea rcx, [rbp - 0x20]
call fcn.14002e400
mov r9d, edi
lea r8, str._04x
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.140012aa8
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
and ecx, 0x3ff
mov r9d, edi
lea r8, [rbp - 0x20]
mov edx, r13d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x140022978
lea r8, [rbp - 0x20]
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.140034188
mov edx, r13d
lea rcx, [rbp - 0x50]
call qword [sym.imp.USER32.dll_LoadKeyboardLayoutW]
test rax, rax
je 0x140022978
lea r8, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae r8, qword [rsp + 0x78]
mov rdx, rax
mov rcx, r14
call fcn.140024ac8
mov ebx, eax
lea rcx, [rsp + 0x78]
call fcn.14002154c
mov eax, ebx
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.14002ab60
lea r11, [rsp + 0x310]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov ecx, 0x80004003
call fcn.14002b1f0
nop
mov ecx, 0x80004003
call fcn.14002b1f0
nop
mov ecx, 0x80004003
call fcn.14002b1f0
nop
mov ecx, 0x80004003
call fcn.14002b1f0
nop
mov ecx, 0x80004003
call fcn.14002b1f0
nop
mov ecx, 0x80004003
call fcn.14002b1f0
nop
mov ecx, 0x80004003
call fcn.14002b1f0
nop
mov ecx, 0x80004003
call fcn.14002b1f0
int3