Function at 0x1400cf238
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 [0x1401d4618]
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.1400206a0
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 0x1400cf403
lea r8, [rsp + 0x58]
lea rdx, str.LCIDToLocaleName_failed_LCID:_d
lea rcx, [rbp + 0x178]
call fcn.1400a2f5c
mov rdi, rax
cmp qword [rax + 0x18], 8
jb 0x1400cf2f9
mov rdi, qword [rax]
lea rcx, [rbp + 0x200]
call fcn.1400f27cc
mov rbx, rax
lea rcx, [rsi + 8]
lea rdx, [rbp - 8]
call fcn.1400c2680
mov rdx, rax
lea rcx, [rbp + 0x70]
call fcn.14006f440
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.1400b4934
mov rbx, qword [rbp + 0x80]
xor r15d, r15d
test rbx, rbx
je 0x1400cf3a5
or rsi, 0xffffffffffffffff
mov eax, esi
lock xadd dword [rbx + 8], eax
add eax, esi
jne 0x1400cf3a5
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
add eax, esi
jne 0x1400cf3a5
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.14000867c
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x250]
call fcn.14000867c
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x228]
call fcn.14000867c
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x208]
call fcn.14000867c
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x178]
call fcn.14000867c
mov r13b, r15b
jmp 0x1400cfa70
or rsi, 0xffffffffffffffff
cmp word [rdi], r15w
jne 0x1400cf412
mov r8, r15
jmp 0x1400cf41f
mov r8, rsi
inc r8
cmp word [rdi + r8*2], r15w
jne 0x1400cf415
mov rdx, rdi
lea rcx, [rbp + 0xb8]
call fcn.140008bbc
mov rcx, qword [rbp + 0xc8]
xor edi, edi
test rcx, rcx
sete al
test al, al
jne 0x1400cf488
test rcx, rcx
je 0x1400cf488
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 0x1400cf446
xor edi, edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rdi
lea rcx, [rsp + 0x48]
call fcn.140067620
mov qword [rsp + 0x48], rax
call fcn.140041eb8
mov rcx, rax
lea rdx, [rbp + 8]
call fcn.1400201d4
nop
lea rdx, [rbp + 0x50]
mov rcx, qword [rax]
call fcn.14001ffc0
nop
xor r8d, r8d
lea rdx, [rsp + 0x48]
mov rcx, qword [rax]
call fcn.14005fc7c
nop
mov rbx, qword [rbp + 0x58]
test rbx, rbx
je 0x1400cf502
mov eax, esi
lock xadd dword [rbx + 8], eax
add eax, esi
jne 0x1400cf502
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
add eax, esi
jne 0x1400cf502
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rbx, qword [rbp + 0x10]
test rbx, rbx
je 0x1400cf532
mov eax, esi
lock xadd dword [rbx + 8], eax
add eax, esi
jne 0x1400cf532
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
add eax, esi
jne 0x1400cf532
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [rsp + 0x48]
call fcn.14010a468
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.1400cea00
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 0x1400cf895
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 0x1400cf818
lea r8, [rbp + 0xb8]
lea rdx, str.Failed_to_get_LOCALE_SPARENT_of_uiCulture._uiCulture:_s
lea rcx, [rbp + 0x198]
call fcn.14000a5e8
mov r14, rax
cmp qword [rax + 0x18], 8
jb 0x1400cf5ee
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.1400354c0
mov rdi, rax
lea rcx, [rbp + 0x290]
call fcn.1400f27cc
mov rbx, rax
mov rcx, qword [rsp + 0x60]
add rcx, 8
lea rdx, [rbp + 0x18]
call fcn.1400c2680
mov rdx, rax
lea rcx, [rbp + 0x88]
call fcn.14006f440
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.1400c389c
mov rbx, qword [rbp + 0x98]
xor edi, edi
test rbx, rbx
je 0x1400cf731
mov eax, esi
lock xadd dword [rbx + 8], eax
add eax, esi
jne 0x1400cf731
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
add eax, esi
jne 0x1400cf731
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.14000867c
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x2e0]
call fcn.14000867c
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x2b8]
call fcn.14000867c
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x298]
call fcn.14000867c
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x390]
call fcn.14000867c
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x370]
call fcn.14000867c
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x350]
call fcn.14000867c
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x330]
call fcn.14000867c
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0xf8]
call fcn.14000867c
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x118]
call fcn.14000867c
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x138]
call fcn.14000867c
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x158]
call fcn.14000867c
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x198]
call fcn.14000867c
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.1400ceac4
mov rax, qword [rax]
mov r8, qword [rsp + 0x48]
cmp rax, r8
jne 0x1400cf895
mov rdx, qword [r8]
mov qword [rbp - 0x18], rdx
mov al, byte [rsp + 0x40]
mov byte [rsp + 0x20], al
lea r9, [0x1401bb750]
lea rcx, [rsp + 0x68]
call fcn.1400ce934
mov rax, qword [rsp + 0x68]
mov r8, qword [rsp + 0x48]
cmp rax, r8
jne 0x1400cf895
mov r13b, dil
jmp 0x1400cfa4c
lea rdx, [rax + 0x20]
cmp r14, rdx
je 0x1400cf8ac
mov r9, rsi
xor r8d, r8d
mov rcx, r14
call fcn.140008a84
mov qword [rbp + 0xf0], 7
mov qword [rbp + 0xe8], rdi
mov word [rbp + 0xd8], di
mov r8d, 1
lea rdx, [0x14019f364]
lea rcx, [rbp + 0xd8]
call fcn.140008bbc
nop
lea r8, [rbp + 0xd8]
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x1d8]
call fcn.140057184
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.1400ce658
mov rdi, rax
cmp qword [rax + 0x18], 8
jb 0x1400cf92e
mov rdi, qword [rax]
lea rcx, [rbp + 0x3b0]
call fcn.1400f27cc
mov rbx, rax
mov rcx, qword [rsp + 0x60]
add rcx, 8
lea rdx, [rbp + 0x40]
call fcn.1400c2680
mov rdx, rax
lea rcx, [rbp + 0xa0]
call fcn.14006f440
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.1400b4934
mov rbx, qword [rbp + 0xb0]
test rbx, rbx
je 0x1400cf9cd
mov eax, esi
lock xadd dword [rbx + 8], eax
add eax, esi
jne 0x1400cf9cd
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
add eax, esi
jne 0x1400cf9cd
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.14000867c
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x400]
call fcn.14000867c
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x3d8]
call fcn.14000867c
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x3b8]
call fcn.14000867c
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x1b8]
call fcn.14000867c
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x1d8]
call fcn.14000867c
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0xd8]
call fcn.14000867c
mov r8, qword [rsp + 0x48]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x48]
call fcn.1400f0914
mov edx, 1
mov rcx, qword [rsp + 0x48]
call fcn.14005800c
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0xb8]
call fcn.14000867c
mov al, r13b
mov rcx, qword [rbp + 0x4f0]
xor rcx, rsp
call fcn.140121d80
mov rbx, qword [rsp + 0x650]
add rsp, 0x600
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret