Function at 0x1400d69f8
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 + 0x10], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140198858]
xor rax, rsp
mov qword [rbp + 0x4f0], rax
mov r14, rdx
mov qword [rsp + 0x70], 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.140022308
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 0x1400d6bc8
lea r8, [rsp + 0x58]
lea rdx, str.LCIDToLocaleName_failed_LCID:_d
lea rcx, [rbp + 0x198]
call fcn.1400192f8
mov rdi, rax
cmp qword [rax + 0x18], 8
jb 0x1400d6aba
mov rdi, qword [rax]
lea rcx, [rbp + 0x200]
call fcn.1400f6db0
mov rbx, rax
lea rcx, [rsi + 8]
lea rdx, [rbp + 0x88]
call fcn.14005f104
mov rdx, rax
lea rcx, [rbp + 0x70]
call fcn.1400584e0
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.1400573a0
nop
mov rbx, qword [rbp + 0x80]
xor r15d, r15d
test rbx, rbx
je 0x1400d6b6a
or rsi, 0xffffffffffffffff
mov eax, esi
lock xadd dword [rbx + 8], eax
add eax, esi
jne 0x1400d6b6a
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
add eax, esi
jne 0x1400d6b6a
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.140007eb8
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x250]
call fcn.140007eb8
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x228]
call fcn.140007eb8
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x208]
call fcn.140007eb8
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x198]
call fcn.140007eb8
mov r13b, r15b
jmp 0x1400d7235
or rsi, 0xffffffffffffffff
cmp word [rdi], r15w
jne 0x1400d6bd7
mov r8, r15
jmp 0x1400d6be4
mov r8, rsi
inc r8
cmp word [rdi + r8*2], r15w
jne 0x1400d6bda
mov rdx, rdi
lea rcx, [rbp + 0xb8]
call fcn.1400083f8
mov rcx, qword [rbp + 0xc8]
xor edi, edi
test rcx, rcx
sete al
test al, al
jne 0x1400d6c4d
test rcx, rcx
je 0x1400d6c4d
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 0x1400d6c0b
xor edi, edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rdi
lea rcx, [rsp + 0x48]
call fcn.140066aac
mov qword [rsp + 0x48], rax
call fcn.140045480
mov rcx, rax
lea rdx, [rbp - 0x18]
call fcn.140049128
nop
lea rdx, [rbp - 0x28]
mov rcx, qword [rax]
call fcn.140048d60
nop
lea rdx, [rsp + 0x48]
mov rcx, qword [rax]
call fcn.14008ae28
nop
mov rbx, qword [rbp - 0x20]
test rbx, rbx
je 0x1400d6cc4
mov eax, esi
lock xadd dword [rbx + 8], eax
add eax, esi
jne 0x1400d6cc4
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
add eax, esi
jne 0x1400d6cc4
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rbx, qword [rbp - 0x10]
test rbx, rbx
je 0x1400d6cf5
mov eax, esi
lock xadd dword [rbx + 8], eax
add eax, esi
jne 0x1400d6cf5
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
add eax, esi
jne 0x1400d6cf5
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x48]
call fcn.1401121a0
mov r8, qword [rsp + 0x48]
mov rdx, qword [r8]
mov qword [rbp + 0x18], rdx
mov al, byte [rsp + 0x40]
mov byte [rsp + 0x20], al
lea r9, [rbp + 0xb8]
lea rcx, [rbp - 0x78]
call fcn.1400d61b8
mov rax, qword [rbp - 0x78]
lea r15, vtable.Mso::Logging::StructuredObject_wchar_t_const____ptr64__1_.0
lea r12, str.ContextData
cmp rax, qword [rsp + 0x48]
jne 0x1400d705c
mov word [rbp + 0x440], di
xor edx, edx
mov r8d, 0xa8
lea rcx, [rbp + 0x442]
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 0x1400d6fe1
lea r8, [rbp + 0xb8]
lea rdx, str.Failed_to_get_LOCALE_SPARENT_of_uiCulture._uiCulture:_s
lea rcx, [rbp + 0x1b8]
call fcn.140019f00
mov r14, rax
cmp qword [rax + 0x18], 8
jb 0x1400d6db8
mov r14, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
mov eax, 7
mov qword [rbp + 0x170], rax
mov qword [rbp + 0x168], rdi
mov word [rbp + 0x158], di
mov qword [rbp + 0x110], rax
mov qword [rbp + 0x108], rdi
mov word [rbp + 0xf8], 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
lea rax, [rbp + 0x158]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xf8]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x138]
lea r8, [rbp + 0x118]
lea rdx, [rsp + 0x68]
lea rcx, [rbp + 0x290]
call fcn.14000df40
mov rdi, rax
lea rcx, [rbp + 0x3b0]
call fcn.1400f6db0
mov rbx, rax
mov rcx, qword [rsp + 0x60]
add rcx, 8
lea rdx, [rbp + 0xa8]
call fcn.14005f104
mov rdx, rax
lea rcx, [rbp + 0x40]
call fcn.1400584e0
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], r14
lea rcx, [rbp - 0x40]
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.140057448
nop
mov rbx, qword [rbp + 0x50]
xor edi, edi
test rbx, rbx
je 0x1400d6ef9
mov eax, esi
lock xadd dword [rbx + 8], eax
add eax, esi
jne 0x1400d6ef9
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
add eax, esi
jne 0x1400d6ef9
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.140007eb8
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x400]
call fcn.140007eb8
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x3d8]
call fcn.140007eb8
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x3b8]
call fcn.140007eb8
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x300]
call fcn.140007eb8
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x2e0]
call fcn.140007eb8
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x2c0]
call fcn.140007eb8
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x2a0]
call fcn.140007eb8
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x118]
call fcn.140007eb8
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x138]
call fcn.140007eb8
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0xf8]
call fcn.140007eb8
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x158]
call fcn.140007eb8
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x1b8]
call fcn.140007eb8
mov r14, qword [rsp + 0x70]
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 + 0x30], rdx
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rbp], xmm0
lea r9, [rbp]
lea rcx, [rbp + 0x28]
call fcn.1400d627c
mov rax, qword [rax]
mov r8, qword [rsp + 0x48]
cmp rax, r8
jne 0x1400d705c
mov rdx, qword [r8]
mov qword [rbp + 0x38], rdx
mov al, byte [rsp + 0x40]
mov byte [rsp + 0x20], al
lea r9, [0x1401bf8f0]
lea rcx, [rbp - 0x80]
call fcn.1400d60ec
mov rax, qword [rbp - 0x80]
mov r8, qword [rsp + 0x48]
cmp rax, r8
jne 0x1400d705c
mov r13b, dil
jmp 0x1400d7211
lea rdx, [rax + 0x20]
cmp r14, rdx
je 0x1400d7073
mov r9, rsi
xor r8d, r8d
mov rcx, r14
call fcn.1400082c0
mov qword [rbp + 0xf0], 7
mov qword [rbp + 0xe8], rdi
mov word [rbp + 0xd8], di
mov r8d, 1
lea rdx, [0x1401a69c8]
lea rcx, [rbp + 0xd8]
call fcn.1400083f8
nop
lea r8, [rbp + 0xd8]
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x1d8]
call fcn.140063990
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 + 0x178]
call fcn.1400d5e10
mov rdi, rax
cmp qword [rax + 0x18], 8
jb 0x1400d70f5
mov rdi, qword [rax]
lea rcx, [rbp + 0x320]
call fcn.1400f6db0
mov rbx, rax
mov rcx, qword [rsp + 0x60]
add rcx, 8
lea rdx, [rbp + 0x98]
call fcn.14005f104
mov rdx, rax
lea rcx, [rbp + 0x58]
call fcn.1400584e0
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x48], rdi
lea rcx, [rbp - 0x58]
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.1400573a0
nop
mov rbx, qword [rbp + 0x68]
test rbx, rbx
je 0x1400d7192
mov eax, esi
lock xadd dword [rbx + 8], eax
add eax, esi
jne 0x1400d7192
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
add eax, esi
jne 0x1400d7192
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x390]
call fcn.140007eb8
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x370]
call fcn.140007eb8
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x348]
call fcn.140007eb8
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x328]
call fcn.140007eb8
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x178]
call fcn.140007eb8
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x1d8]
call fcn.140007eb8
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0xd8]
call fcn.140007eb8
mov r8, qword [rsp + 0x48]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp + 0x20]
lea rcx, [rsp + 0x48]
call fcn.140066dd4
mov edx, 1
mov rcx, qword [rsp + 0x48]
call fcn.14006401c
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0xb8]
call fcn.140007eb8
mov al, r13b
mov rcx, qword [rbp + 0x4f0]
xor rcx, rsp
call fcn.140022430
mov rbx, qword [rsp + 0x650]
add rsp, 0x600
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret