Function at 0x140021e70
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 [0x140086de8]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov rsi, rdx
mov r14, rcx
xor r15d, r15d
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x70], 7
mov word [rsp + 0x78], r15w
mov rcx, rdx
call fcn.140032cb4
mov r8, rax
mov rdx, rsi
lea rcx, [rsp + 0x78]
call fcn.140021130
nop
call fcn.140023a18
mov rdx, rax
mov r8, rsi
mov rcx, r14
call fcn.140023f70
mov ebx, eax
or r12d, 0xffffffff
cmp eax, r12d
jne 0x14002253c
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov rdx, rax
mov r8, rsi
mov rcx, r14
call fcn.140023f70
mov ebx, eax
cmp eax, r12d
jne 0x14002253c
mov qword [rsp + 0x70], r15
lea r9d, [r15 + 0x17]
xor r8d, r8d
lea rdx, [0x140065238]
lea rcx, [rsp + 0x70]
call fcn.140016654
lea r13d, [r15 + 1]
mov rcx, qword [rsp + 0x70]
test eax, eax
js 0x1400223e9
test rcx, rcx
je 0x1400223e9
mov ebx, r15d
mov qword [rsp + 0x20], rbx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, str.HotkeyActionRotateZeroDefault
lea rcx, [rsp + 0x38]
call fcn.140016598
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140022595
mov r8, rax
lea rdx, [rsp + 0x40]
call fcn.1400168e8
mov edi, r15d
lea rcx, [rsp + 0x20]
cmp rcx, rax
je 0x140021fbb
mov rbx, qword [rax]
mov qword [rsp + 0x20], rbx
mov rdi, rbx
test rbx, rbx
je 0x140021fbb
lock add dword [rbx + 0x10], r13d
mov rbx, qword [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140016980
test rdi, rdi
je 0x14002258a
mov rcx, qword [rdi]
test rcx, rcx
je 0x140021fde
call qword [sym.imp.OLEAUT32.dll_VariantInit]
jmp 0x140021fe1
mov eax, r15d
test eax, eax
je 0x140021ff6
mov r8, qword [rbx]
mov edx, 0x40
lea rcx, [rbp]
call fcn.140032a00
cmp dword [rbx + 0x10], r13d
jne 0x14002258a
mov qword [rbx], r15
mov eax, r12d
lock xadd dword [rdi + 0x10], eax
add eax, r12d
jne 0x140022040
mov rcx, qword [rdi]
test rcx, rcx
je 0x140022021
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], r15
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140022033
call fcn.140028974
mov qword [rdi + 8], r15
mov edx, 0x18
mov rcx, rdi
call fcn.140028974
mov rbx, r15
mov qword [rsp + 0x20], rbx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rdx, str.HotkeyActionRotate90Default
lea rcx, [rsp + 0x48]
call fcn.140016598
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400225d7
mov r8, rax
lea rdx, [rsp + 0x50]
call fcn.1400168e8
mov rdi, r15
lea rcx, [rsp + 0x20]
cmp rcx, rax
je 0x1400220a6
mov rbx, qword [rax]
mov qword [rsp + 0x20], rbx
mov rdi, rbx
test rbx, rbx
je 0x1400220a6
lock add dword [rbx + 0x10], r13d
mov rbx, qword [rsp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.140016980
test rdi, rdi
je 0x1400225cc
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400220c9
call qword [sym.imp.OLEAUT32.dll_VariantInit]
jmp 0x1400220cc
mov eax, r15d
test eax, eax
je 0x1400220e4
mov r8, qword [rbx]
mov edx, 0x40
lea rcx, [rbp + 0x80]
call fcn.140032a00
cmp dword [rbx + 0x10], r13d
jne 0x1400225cc
mov qword [rbx], r15
mov eax, r12d
lock xadd dword [rdi + 0x10], eax
add eax, r12d
jne 0x14002212e
mov rcx, qword [rdi]
test rcx, rcx
je 0x14002210f
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], r15
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140022121
call fcn.140028974
mov qword [rdi + 8], r15
mov edx, 0x18
mov rcx, rdi
call fcn.140028974
mov rbx, r15
mov qword [rsp + 0x20], rbx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea rdx, str.HotkeyActionRotate270Default
lea rcx, [rsp + 0x58]
call fcn.140016598
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400225c1
mov r8, rax
lea rdx, [rsp + 0x60]
call fcn.1400168e8
mov rdi, r15
lea rcx, [rsp + 0x20]
cmp rcx, rax
je 0x140022194
mov rbx, qword [rax]
mov qword [rsp + 0x20], rbx
mov rdi, rbx
test rbx, rbx
je 0x140022194
lock add dword [rbx + 0x10], r13d
mov rbx, qword [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.140016980
test rdi, rdi
je 0x1400225b6
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400221b7
call qword [sym.imp.OLEAUT32.dll_VariantInit]
jmp 0x1400221ba
mov eax, r15d
test eax, eax
je 0x1400221d2
mov r8, qword [rbx]
mov edx, 0x40
lea rcx, [rbp + 0x100]
call fcn.140032a00
cmp dword [rbx + 0x10], r13d
jne 0x1400225b6
mov qword [rbx], r15
mov eax, r12d
lock xadd dword [rdi + 0x10], eax
add eax, r12d
jne 0x14002221c
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400221fd
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], r15
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14002220f
call fcn.140028974
mov qword [rdi + 8], r15
mov edx, 0x18
mov rcx, rdi
call fcn.140028974
mov rbx, r15
mov qword [rsp + 0x20], rbx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea rdx, str.HotkeyActionRotate180Default
lea rcx, [rsp + 0x68]
call fcn.140016598
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400225ab
mov r8, rax
lea rdx, [rsp + 0x28]
call fcn.1400168e8
mov rdi, r15
lea rcx, [rsp + 0x20]
cmp rcx, rax
je 0x140022282
mov rbx, qword [rax]
mov qword [rsp + 0x20], rbx
mov rdi, rbx
test rbx, rbx
je 0x140022282
lock add dword [rbx + 0x10], r13d
mov rbx, qword [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.140016980
test rdi, rdi
je 0x1400225a0
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400222a5
call qword [sym.imp.OLEAUT32.dll_VariantInit]
jmp 0x1400222a8
mov eax, r15d
test eax, eax
je 0x1400222c0
mov r8, qword [rbx]
mov edx, 0x40
lea rcx, [rbp + 0x180]
call fcn.140032a00
cmp dword [rbx + 0x10], r13d
jne 0x1400225a0
mov qword [rbx], r15
mov eax, r12d
lock xadd dword [rdi + 0x10], eax
add eax, r12d
jne 0x14002230a
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400222eb
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], r15
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400222fd
call fcn.140028974
mov qword [rdi + 8], r15
mov edx, 0x18
mov rcx, rdi
call fcn.140028974
mov qword [rsp + 0x20], r15
mov rdx, rsi
lea rcx, [rbp]
call qword [sym.imp.SHLWAPI.dll_StrStrW]
test rax, rax
je 0x140022336
lea rcx, [0x140067f78]
call fcn.140032cb4
lea rdx, [0x140067f78]
jmp 0x1400223b2
mov rdx, rsi
lea rcx, [rbp + 0x80]
call qword [sym.imp.SHLWAPI.dll_StrStrW]
test rax, rax
je 0x140022360
lea rcx, str.Left
call fcn.140032cb4
lea rdx, str.Left
jmp 0x1400223b2
mov rdx, rsi
lea rcx, [rbp + 0x100]
call qword [sym.imp.SHLWAPI.dll_StrStrW]
test rax, rax
je 0x14002238a
lea rcx, str.Right
call fcn.140032cb4
lea rdx, str.Right
jmp 0x1400223b2
mov rdx, rsi
lea rcx, [rbp + 0x180]
call qword [sym.imp.SHLWAPI.dll_StrStrW]
test rax, rax
je 0x1400223bf
lea rcx, str.Down
call fcn.140032cb4
lea rdx, str.Down
mov r8, rax
lea rcx, [rsp + 0x78]
call fcn.140021130
lea rbx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rbx, qword [rsp + 0x78]
call fcn.140023a18
mov rdx, rax
mov r8, rbx
mov rcx, r14
call fcn.140023f70
mov ebx, eax
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400223fc
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x1400629f0]
nop
cmp ebx, r12d
jne 0x14002253c
mov esi, 0x12
mov r8d, esi
xor edx, edx
lea rcx, [rbp - 0x68]
call fcn.14002d0a0
mov r8d, esi
xor edx, edx
lea rcx, [rbp - 0x38]
call fcn.14002d0a0
xor r9d, r9d
lea r8, str._04x
lea edi, [rsi - 9]
mov edx, edi
lea rcx, [rbp - 0x68]
call fcn.1400129e8
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 0x1400224a8
lea r8, [rbp - 0x38]
mov edx, edi
lea rcx, [rbp - 0x68]
call fcn.14003297c
mov edx, r13d
lea rcx, [rbp - 0x68]
call qword [sym.imp.USER32.dll_LoadKeyboardLayoutW]
test rax, rax
je 0x1400224a8
lea r8, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae r8, qword [rsp + 0x78]
mov rdx, rax
mov rcx, r14
call fcn.140023f70
mov ebx, eax
cmp eax, r12d
jne 0x14002253c
mov r8, rsi
xor edx, edx
lea rcx, [rbp - 0x50]
call fcn.14002d0a0
mov r8, rsi
xor edx, edx
lea rcx, [rbp - 0x20]
call fcn.14002d0a0
mov r9d, edi
lea r8, str._04x
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.1400129e8
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 0x14002253c
lea r8, [rbp - 0x20]
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.14003297c
mov edx, r13d
lea rcx, [rbp - 0x50]
call qword [sym.imp.USER32.dll_LoadKeyboardLayoutW]
test rax, rax
je 0x14002253c
lea r8, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae r8, qword [rsp + 0x78]
mov rdx, rax
mov rcx, r14
call fcn.140023f70
mov ebx, eax
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x140022558
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
call fcn.140013898
mov eax, ebx
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.1400293b0
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.140029a30
nop
mov ecx, 0x80004003
call fcn.140029a30
nop
mov ecx, 0x80004003
call fcn.140029a30
nop
mov ecx, 0x80004003
call fcn.140029a30
nop
mov ecx, 0x80004003
call fcn.140029a30
nop
mov ecx, 0x80004003
call fcn.140029a30
nop
mov ecx, 0x80004003
call fcn.140029a30
nop
mov ecx, 0x80004003
call fcn.140029a30
int3