Function at 0x140021df0
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 [0x140086e08]
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.140033d04
mov r8, rax
mov rdx, rsi
lea rcx, [rsp + 0x78]
call fcn.14002109c
nop
call fcn.140023f38
mov rdx, rax
mov r8, rsi
mov rcx, r14
call fcn.14002461c
mov ebx, eax
or r12d, 0xffffffff
cmp eax, r12d
jne 0x1400224bc
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov rdx, rax
mov r8, rsi
mov rcx, r14
call fcn.14002461c
mov ebx, eax
cmp eax, r12d
jne 0x1400224bc
mov qword [rsp + 0x70], r15
lea r9d, [r15 + 0x17]
xor r8d, r8d
lea rdx, [0x140066478]
lea rcx, [rsp + 0x70]
call fcn.140016704
lea r13d, [r15 + 1]
mov rcx, qword [rsp + 0x70]
test eax, eax
js 0x140022369
test rcx, rcx
je 0x140022369
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.140016648
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140022515
mov r8, rax
lea rdx, [rsp + 0x40]
call fcn.140016998
mov edi, r15d
lea rcx, [rsp + 0x20]
cmp rcx, rax
je 0x140021f3b
mov rbx, qword [rax]
mov qword [rsp + 0x20], rbx
mov rdi, rbx
test rbx, rbx
je 0x140021f3b
lock add dword [rbx + 0x10], r13d
mov rbx, qword [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140016a30
test rdi, rdi
je 0x14002250a
mov rcx, qword [rdi]
test rcx, rcx
je 0x140021f5e
call qword [sym.imp.OLEAUT32.dll_VariantInit]
jmp 0x140021f61
mov eax, r15d
test eax, eax
je 0x140021f76
mov r8, qword [rbx]
mov edx, 0x40
lea rcx, [rbp]
call fcn.140033a50
cmp dword [rbx + 0x10], r13d
jne 0x14002250a
mov qword [rbx], r15
mov eax, r12d
lock xadd dword [rdi + 0x10], eax
add eax, r12d
jne 0x140021fc0
mov rcx, qword [rdi]
test rcx, rcx
je 0x140021fa1
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], r15
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140021fb3
call fcn.140029c24
mov qword [rdi + 8], r15
mov edx, 0x18
mov rcx, rdi
call fcn.140029c24
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.140016648
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140022557
mov r8, rax
lea rdx, [rsp + 0x50]
call fcn.140016998
mov rdi, r15
lea rcx, [rsp + 0x20]
cmp rcx, rax
je 0x140022026
mov rbx, qword [rax]
mov qword [rsp + 0x20], rbx
mov rdi, rbx
test rbx, rbx
je 0x140022026
lock add dword [rbx + 0x10], r13d
mov rbx, qword [rsp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.140016a30
test rdi, rdi
je 0x14002254c
mov rcx, qword [rdi]
test rcx, rcx
je 0x140022049
call qword [sym.imp.OLEAUT32.dll_VariantInit]
jmp 0x14002204c
mov eax, r15d
test eax, eax
je 0x140022064
mov r8, qword [rbx]
mov edx, 0x40
lea rcx, [rbp + 0x80]
call fcn.140033a50
cmp dword [rbx + 0x10], r13d
jne 0x14002254c
mov qword [rbx], r15
mov eax, r12d
lock xadd dword [rdi + 0x10], eax
add eax, r12d
jne 0x1400220ae
mov rcx, qword [rdi]
test rcx, rcx
je 0x14002208f
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], r15
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400220a1
call fcn.140029c24
mov qword [rdi + 8], r15
mov edx, 0x18
mov rcx, rdi
call fcn.140029c24
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.140016648
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140022541
mov r8, rax
lea rdx, [rsp + 0x60]
call fcn.140016998
mov rdi, r15
lea rcx, [rsp + 0x20]
cmp rcx, rax
je 0x140022114
mov rbx, qword [rax]
mov qword [rsp + 0x20], rbx
mov rdi, rbx
test rbx, rbx
je 0x140022114
lock add dword [rbx + 0x10], r13d
mov rbx, qword [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.140016a30
test rdi, rdi
je 0x140022536
mov rcx, qword [rdi]
test rcx, rcx
je 0x140022137
call qword [sym.imp.OLEAUT32.dll_VariantInit]
jmp 0x14002213a
mov eax, r15d
test eax, eax
je 0x140022152
mov r8, qword [rbx]
mov edx, 0x40
lea rcx, [rbp + 0x100]
call fcn.140033a50
cmp dword [rbx + 0x10], r13d
jne 0x140022536
mov qword [rbx], r15
mov eax, r12d
lock xadd dword [rdi + 0x10], eax
add eax, r12d
jne 0x14002219c
mov rcx, qword [rdi]
test rcx, rcx
je 0x14002217d
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], r15
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14002218f
call fcn.140029c24
mov qword [rdi + 8], r15
mov edx, 0x18
mov rcx, rdi
call fcn.140029c24
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.140016648
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14002252b
mov r8, rax
lea rdx, [rsp + 0x28]
call fcn.140016998
mov rdi, r15
lea rcx, [rsp + 0x20]
cmp rcx, rax
je 0x140022202
mov rbx, qword [rax]
mov qword [rsp + 0x20], rbx
mov rdi, rbx
test rbx, rbx
je 0x140022202
lock add dword [rbx + 0x10], r13d
mov rbx, qword [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.140016a30
test rdi, rdi
je 0x140022520
mov rcx, qword [rdi]
test rcx, rcx
je 0x140022225
call qword [sym.imp.OLEAUT32.dll_VariantInit]
jmp 0x140022228
mov eax, r15d
test eax, eax
je 0x140022240
mov r8, qword [rbx]
mov edx, 0x40
lea rcx, [rbp + 0x180]
call fcn.140033a50
cmp dword [rbx + 0x10], r13d
jne 0x140022520
mov qword [rbx], r15
mov eax, r12d
lock xadd dword [rdi + 0x10], eax
add eax, r12d
jne 0x14002228a
mov rcx, qword [rdi]
test rcx, rcx
je 0x14002226b
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], r15
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14002227d
call fcn.140029c24
mov qword [rdi + 8], r15
mov edx, 0x18
mov rcx, rdi
call fcn.140029c24
mov qword [rsp + 0x20], r15
mov rdx, rsi
lea rcx, [rbp]
call qword [sym.imp.SHLWAPI.dll_StrStrW]
test rax, rax
je 0x1400222b6
lea rcx, [0x140068f98]
call fcn.140033d04
lea rdx, [0x140068f98]
jmp 0x140022332
mov rdx, rsi
lea rcx, [rbp + 0x80]
call qword [sym.imp.SHLWAPI.dll_StrStrW]
test rax, rax
je 0x1400222e0
lea rcx, str.Left
call fcn.140033d04
lea rdx, str.Left
jmp 0x140022332
mov rdx, rsi
lea rcx, [rbp + 0x100]
call qword [sym.imp.SHLWAPI.dll_StrStrW]
test rax, rax
je 0x14002230a
lea rcx, str.Right
call fcn.140033d04
lea rdx, str.Right
jmp 0x140022332
mov rdx, rsi
lea rcx, [rbp + 0x180]
call qword [sym.imp.SHLWAPI.dll_StrStrW]
test rax, rax
je 0x14002233f
lea rcx, str.Down
call fcn.140033d04
lea rdx, str.Down
mov r8, rax
lea rcx, [rsp + 0x78]
call fcn.14002109c
lea rbx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rbx, qword [rsp + 0x78]
call fcn.140023f38
mov rdx, rax
mov r8, rbx
mov rcx, r14
call fcn.14002461c
mov ebx, eax
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14002237c
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140063a18]
nop
cmp ebx, r12d
jne 0x1400224bc
mov esi, 0x12
mov r8d, esi
xor edx, edx
lea rcx, [rbp - 0x68]
call fcn.14002de80
mov r8d, esi
xor edx, edx
lea rcx, [rbp - 0x38]
call fcn.14002de80
xor r9d, r9d
lea r8, str._04x
lea edi, [rsi - 9]
mov edx, edi
lea rcx, [rbp - 0x68]
call fcn.140012a88
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 0x140022428
lea r8, [rbp - 0x38]
mov edx, edi
lea rcx, [rbp - 0x68]
call fcn.1400339cc
mov edx, r13d
lea rcx, [rbp - 0x68]
call qword [sym.imp.USER32.dll_LoadKeyboardLayoutW]
test rax, rax
je 0x140022428
lea r8, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae r8, qword [rsp + 0x78]
mov rdx, rax
mov rcx, r14
call fcn.14002461c
mov ebx, eax
cmp eax, r12d
jne 0x1400224bc
mov r8, rsi
xor edx, edx
lea rcx, [rbp - 0x50]
call fcn.14002de80
mov r8, rsi
xor edx, edx
lea rcx, [rbp - 0x20]
call fcn.14002de80
mov r9d, edi
lea r8, str._04x
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.140012a88
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 0x1400224bc
lea r8, [rbp - 0x20]
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.1400339cc
mov edx, r13d
lea rcx, [rbp - 0x50]
call qword [sym.imp.USER32.dll_LoadKeyboardLayoutW]
test rax, rax
je 0x1400224bc
lea r8, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae r8, qword [rsp + 0x78]
mov rdx, rax
mov rcx, r14
call fcn.14002461c
mov ebx, eax
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x1400224d8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
call fcn.140013938
mov eax, ebx
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.14002a660
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.14002ace0
nop
mov ecx, 0x80004003
call fcn.14002ace0
nop
mov ecx, 0x80004003
call fcn.14002ace0
nop
mov ecx, 0x80004003
call fcn.14002ace0
nop
mov ecx, 0x80004003
call fcn.14002ace0
nop
mov ecx, 0x80004003
call fcn.14002ace0
nop
mov ecx, 0x80004003
call fcn.14002ace0
nop
mov ecx, 0x80004003
call fcn.14002ace0
int3