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

Disassembly:
push rdi
push r12
push r14
sub rsp, 0x90
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rax, qword [rcx + 0x18]
xor r14d, r14d
sub rax, qword [rcx + 0x10]
xorps xmm0, xmm0
sar rax, 3
xorps xmm1, xmm1
mov rdi, rcx
mov r12d, r14d
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x40], xmm1
test rax, rax
je 0x1400479c7
mov qword [rsp + 0xb8], rbx
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
lea r9, [rsp + 0x38]
mov dword [rsp + 0x38], 8
movzx ebx, ax
lea r8, [rsp + 0x60]
mov rax, qword [rdi]
mov edx, ebx
mov rcx, rdi
mov rax, qword [rax + 0x50]
call qword [case.0x1400136d6.0]
test eax, eax
jle 0x1400477db
mov r14d, ebx
jmp 0x1400479bc
lea rcx, str.kernel32.dll
mov qword [rsp + 0x80], r15
call fcn.140006be0
mov r15, rax
test rax, rax
je 0x1400479b4
mov qword [rsp + 0x88], rsi
lfence
mov r9d, 8
lea r8, [rsp + 0x40]
mov ecx, ebx
lea edx, [r9 + 0x65]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rdi + 0x10]
cmp rbx, qword [rdi + 0x18]
je 0x14004784f
mov rsi, qword [rbx]
test rsi, rsi
je 0x140047845
lea rdx, [rsi + 4]
lea rcx, [rsp + 0x40]
call fcn.1401ecc18
test eax, eax
je 0x140047949
add rbx, 8
cmp rbx, qword [rdi + 0x18]
jne 0x140047827
xor r8d, r8d
mov qword [rsp + 0xc0], rbp
xorps xmm0, xmm0
mov dword [rsp + 0x30], r14d
lea r9, [rsp + 0x34]
mov dword [rsp + 0x34], r14d
lea rdx, [rsp + 0x30]
mov ebp, r14d
lea ecx, [r8 + 8]
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_GetUserPreferredUILanguages]
test eax, eax
je 0x14004798d
cmp dword [rsp + 0x30], r14d
je 0x14004798d
mov eax, dword [rsp + 0x34]
test eax, eax
je 0x14004798d
mov edx, eax
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r12, rax
test rax, rax
je 0x14004798d
lea r9, [rsp + 0x34]
mov r8, rax
lea rdx, [rsp + 0x30]
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_GetUserPreferredUILanguages]
test eax, eax
je 0x14004798d
mov rsi, r12
cmp dword [rsp + 0x30], r14d
jbe 0x14004798d
nop dword [rax]
mov rbx, qword [rdi + 0x10]
cmp rbx, qword [rdi + 0x18]
je 0x140047922
nop word [rax + rax]
mov rdx, qword [rbx]
test rdx, rdx
je 0x140047918
add rdx, 4
mov rcx, rsi
call fcn.1401ecc18
test eax, eax
je 0x140047957
add rbx, 8
cmp rbx, qword [rdi + 0x18]
jne 0x140047900
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
inc ebp
lea rsi, [rsi + rcx*2]
add rsi, 2
cmp ebp, dword [rsp + 0x30]
jb 0x1400478f0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14004799b
mov r14d, dword [rsi]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1400479ac
mov r9d, 8
lea r8, [rsp + 0x50]
mov rcx, rsi
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor edx, edx
lea rcx, [rsp + 0x50]
lea r8d, [rdx + 0x10]
call fcn.1401fd8ec
mov rcx, r15
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14004799b
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r12, r12
je 0x1400479a4
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rbp, qword [rsp + 0xc0]
mov rsi, qword [rsp + 0x88]
mov r15, qword [rsp + 0x80]
mov rbx, qword [rsp + 0xb8]
mov eax, r14d
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1401e2900
add rsp, 0x90
pop r14
pop r12
pop rdi
ret