Function at 0x1400d67ec
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x538]
sub rsp, 0x600
mov qword [rbp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rbp + 0x4f0], rax
mov r14, rdx
mov qword [rbp - 0x78], rdx
mov rsi, rcx
mov qword [rsp + 0x60], rcx
mov r13b, 1
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ebx, ax
mov dword [rsp + 0x58], ebx
mov qword [rbp + 0xd0], 7
xor r15d, r15d
mov qword [rbp + 0xc8], r15
mov word [rbp + 0xb8], r15w
mov ecx, 0xaa
call fcn.140021ddc
mov rdi, rax
xor r9d, r9d
lea r8d, [r15 + 0x55]
mov rdx, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_LCIDToLocaleName]
test eax, eax
jne 0x1400d69b7
lea r8, [rsp + 0x58]
lea rdx, str.LCIDToLocaleName_failed_LCID:_d
lea rcx, [rbp + 0x178]
call fcn.14001ac4c
mov rdi, rax
cmp qword [rax + 0x18], 8
jb 0x1400d68ad
mov rdi, qword [rax]
lea rcx, [rbp + 0x200]
call fcn.1400f7cb0
mov rbx, rax
lea rcx, [rsi + 8]
lea rdx, [rbp - 8]
call fcn.14004bf18
mov rdx, rax
lea rcx, [rbp + 0x70]
call fcn.14005a420
lea r15, vtable.Mso::Logging::StructuredObject_wchar_t_const____ptr64__1_.0
mov qword [rbp - 0x70], r15
lea r12, str.ContextData
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], rdi
lea rcx, [rbp - 0x70]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
lea r9, str.TaskGetUserCulture::TryGetOfficePreferredUICulture
mov edx, 0x3ac
mov ecx, 0x604154
mov r8d, 0x32
call fcn.1400592f8
mov rbx, qword [rbp + 0x80]
xor r15d, r15d
test rbx, rbx
je 0x1400d6959
or rsi, 0xffffffffffffffff
mov eax, esi
lock xadd dword [rbx + 8], eax
add eax, esi
jne 0x1400d6959
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
add eax, esi
jne 0x1400d6959
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x270]
call fcn.140007a08
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x250]
call fcn.140007a08
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x228]
call fcn.140007a08
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x208]
call fcn.140007a08
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x178]
call fcn.140007a08
mov r13b, r15b
jmp 0x1400d7024
or rsi, 0xffffffffffffffff
cmp word [rdi], r15w
jne 0x1400d69c6
mov r8, r15
jmp 0x1400d69d3
mov r8, rsi
inc r8
cmp word [rdi + r8*2], r15w
jne 0x1400d69c9
mov rdx, rdi
lea rcx, [rbp + 0xb8]
call fcn.140007f48
mov rcx, qword [rbp + 0xc8]
xor edi, edi
test rcx, rcx
sete al
test al, al
jne 0x1400d6a3c
test rcx, rcx
je 0x1400d6a3c
lea rax, [rbp + 0xb8]
cmp qword [rbp + 0xd0], 8
cmovae rax, qword [rbp + 0xb8]
lea rbx, [rbp + 0xb8]
cmovae rbx, qword [rbp + 0xb8]
movzx ecx, word [rax + rdi*2]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
mov word [rbx + rdi*2], ax
inc rdi
cmp rdi, qword [rbp + 0xc8]
jb 0x1400d69fa
xor edi, edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rdi
lea rcx, [rsp + 0x48]
call fcn.14006896c
mov qword [rsp + 0x48], rax
call fcn.140047e70
mov rcx, rax
lea rdx, [rbp + 8]
call fcn.14004b9a8
nop
lea rdx, [rbp + 0x50]
mov rcx, qword [rax]
call fcn.14004b5f8
nop
xor r8d, r8d
lea rdx, [rsp + 0x48]
mov rcx, qword [rax]
call fcn.14008be38
nop
mov rbx, qword [rbp + 0x58]
test rbx, rbx
je 0x1400d6ab6
mov eax, esi
lock xadd dword [rbx + 8], eax
add eax, esi
jne 0x1400d6ab6
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
add eax, esi
jne 0x1400d6ab6
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rbx, qword [rbp + 0x10]
test rbx, rbx
je 0x1400d6ae6
mov eax, esi
lock xadd dword [rbx + 8], eax
add eax, esi
jne 0x1400d6ae6
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
add eax, esi
jne 0x1400d6ae6
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [rsp + 0x48]
call fcn.140112f3c
mov r8, qword [rsp + 0x48]
mov rdx, qword [r8]
mov qword [rbp + 0x68], rdx
mov al, byte [rsp + 0x40]
mov byte [rsp + 0x20], al
lea r9, [rbp + 0xb8]
lea rcx, [rbp - 0x80]
call fcn.1400d5fb4
mov rax, qword [rbp - 0x80]
lea r15, vtable.Mso::Logging::StructuredObject_wchar_t_const____ptr64__1_.0
lea r12, str.ContextData
cmp rax, qword [rsp + 0x48]
jne 0x1400d6e49
xor edx, edx
mov r8d, 0xaa
lea rcx, [rbp + 0x440]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0xb8]
cmp qword [rbp + 0xd0], 8
cmovae rcx, qword [rbp + 0xb8]
mov r9d, 0x55
lea r8, [rbp + 0x440]
lea edx, [r9 + 0x18]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400d6dcc
lea r8, [rbp + 0xb8]
lea rdx, str.Failed_to_get_LOCALE_SPARENT_of_uiCulture._uiCulture:_s
lea rcx, [rbp + 0x198]
call fcn.140009b20
mov r14, rax
cmp qword [rax + 0x18], 8
jb 0x1400d6ba2
mov r14, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x5c], eax
mov eax, 7
mov qword [rbp + 0x170], rax
mov qword [rbp + 0x168], rdi
mov word [rbp + 0x158], di
mov qword [rbp + 0x150], rax
mov qword [rbp + 0x148], rdi
mov word [rbp + 0x138], di
mov qword [rbp + 0x130], rax
mov qword [rbp + 0x128], rdi
mov word [rbp + 0x118], di
mov qword [rbp + 0x110], rax
mov qword [rbp + 0x108], rdi
mov word [rbp + 0xf8], di
lea rax, [rbp + 0x158]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x138]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x118]
lea r8, [rbp + 0xf8]
lea rdx, [rsp + 0x5c]
lea rcx, [rbp + 0x320]
call fcn.14000edf8
mov rdi, rax
lea rcx, [rbp + 0x290]
call fcn.1400f7cb0
mov rbx, rax
mov rcx, qword [rsp + 0x60]
add rcx, 8
lea rdx, [rbp + 0x18]
call fcn.14004bf18
mov rdx, rax
lea rcx, [rbp + 0x88]
call fcn.14005a420
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x48], r14
lea rcx, [rbp - 0x58]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
lea r9, str.TaskGetUserCulture::TryGetUserPreferredUICulture
mov edx, 0x3ad
mov ecx, 0x74554d
mov r8d, 0xa
call fcn.1400593a0
mov rbx, qword [rbp + 0x98]
xor edi, edi
test rbx, rbx
je 0x1400d6ce5
mov eax, esi
lock xadd dword [rbx + 8], eax
add eax, esi
jne 0x1400d6ce5
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
add eax, esi
jne 0x1400d6ce5
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x300]
call fcn.140007a08
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x2e0]
call fcn.140007a08
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x2b8]
call fcn.140007a08
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x298]
call fcn.140007a08
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x390]
call fcn.140007a08
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x370]
call fcn.140007a08
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x350]
call fcn.140007a08
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x330]
call fcn.140007a08
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0xf8]
call fcn.140007a08
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x118]
call fcn.140007a08
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x138]
call fcn.140007a08
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x158]
call fcn.140007a08
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x198]
call fcn.140007a08
mov r14, qword [rbp - 0x78]
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x70], rax
lea rax, [rbp + 0x440]
mov qword [rsp + 0x78], rax
mov r8, qword [rsp + 0x48]
mov rdx, qword [r8]
mov qword [rbp - 0x28], rdx
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rbp + 0x30], xmm0
lea r9, [rbp + 0x30]
lea rcx, [rbp - 0x20]
call fcn.1400d6078
mov rax, qword [rax]
mov r8, qword [rsp + 0x48]
cmp rax, r8
jne 0x1400d6e49
mov rdx, qword [r8]
mov qword [rbp - 0x18], rdx
mov al, byte [rsp + 0x40]
mov byte [rsp + 0x20], al
lea r9, [0x1401b9450]
lea rcx, [rsp + 0x68]
call fcn.1400d5ee8
mov rax, qword [rsp + 0x68]
mov r8, qword [rsp + 0x48]
cmp rax, r8
jne 0x1400d6e49
mov r13b, dil
jmp 0x1400d7000
lea rdx, [rax + 0x20]
cmp r14, rdx
je 0x1400d6e60
mov r9, rsi
xor r8d, r8d
mov rcx, r14
call fcn.140007e10
mov qword [rbp + 0xf0], 7
mov qword [rbp + 0xe8], rdi
mov word [rbp + 0xd8], di
mov r8d, 1
lea rdx, [0x1401a0488]
lea rcx, [rbp + 0xd8]
call fcn.140007f48
nop
lea r8, [rbp + 0xd8]
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x1d8]
call fcn.140065878
nop
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0xb8]
lea r8, [rsp + 0x58]
lea rdx, str.Determined_preferred_Office_culture_uiLcid:_d_uiCulture:_s_installedCultures:_s_preferredOfficeCulture:_s
lea rcx, [rbp + 0x1b8]
call fcn.1400d5c0c
mov rdi, rax
cmp qword [rax + 0x18], 8
jb 0x1400d6ee2
mov rdi, qword [rax]
lea rcx, [rbp + 0x3b0]
call fcn.1400f7cb0
mov rbx, rax
mov rcx, qword [rsp + 0x60]
add rcx, 8
lea rdx, [rbp + 0x40]
call fcn.14004bf18
mov rdx, rax
lea rcx, [rbp + 0xa0]
call fcn.14005a420
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], rdi
lea rcx, [rbp - 0x40]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
lea r9, str.TaskGetUserCulture::TryGetOfficePreferredUICulture
mov edx, 0x3ac
mov ecx, 0x74554f
mov r8d, 0x32
call fcn.1400592f8
mov rbx, qword [rbp + 0xb0]
test rbx, rbx
je 0x1400d6f81
mov eax, esi
lock xadd dword [rbx + 8], eax
add eax, esi
jne 0x1400d6f81
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
add eax, esi
jne 0x1400d6f81
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x420]
call fcn.140007a08
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x400]
call fcn.140007a08
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x3d8]
call fcn.140007a08
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x3b8]
call fcn.140007a08
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x1b8]
call fcn.140007a08
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x1d8]
call fcn.140007a08
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0xd8]
call fcn.140007a08
mov r8, qword [rsp + 0x48]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x48]
call fcn.140068bd4
mov edx, 1
mov rcx, qword [rsp + 0x48]
call fcn.140065f00
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0xb8]
call fcn.140007a08
mov al, r13b
mov rcx, qword [rbp + 0x4f0]
xor rcx, rsp
call fcn.140021f10
mov rbx, qword [rsp + 0x650]
add rsp, 0x600
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret