Function at 0x1400be580
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x1b8]
sub rsp, 0x2a0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1419761c8]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov r14d, edx
mov rsi, rcx
mov dword [rsp + 0x60], 0
lea rbx, [0x140187f70]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], rbx
mov r9d, 0xff
lea r8, [rbp - 0x70]
mov edx, 1
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
or edi, 0xffffffff
test eax, eax
je 0x1400be64b
mov r8d, edi
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x40]
call fcn.1400042e0
mov rdx, rax
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x78], rcx
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov qword [rdx], rcx
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx]
test eax, eax
je 0x1400be63d
cmp eax, edi
je 0x1400be64b
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400be64b
mov rcx, qword [rsp + 0x40]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140039ba0
mov rcx, qword [rsp + 0x30]
cmp dword [rcx + 4], 0
je 0x1400be709
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140028c70
nop
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x10]
add rcx, rax
lea r9, [rsp + 0x20]
mov r8d, 0x10
lea rdx, [rsp + 0x68]
call fcn.140081bc0
mov rcx, rax
cmp byte [rsp + 0x20], 0
je 0x1400be6d6
mov rax, qword [rsp + 0x68]
cmp byte [rax], 0
jne 0x1400be6d6
cmp ecx, 0x814
jne 0x1400be6d6
mov dword [rsp + 0x50], 2
lea rax, [0x1401f4c9c]
mov qword [rsp + 0x58], rax
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.14002ebb0
nop
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx]
test eax, eax
je 0x1400be6f6
cmp eax, 0xffffffff
je 0x1400be704
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400be704
mov rcx, qword [rsp + 0x38]
mov edx, 1
lea r8d, [rdx + 7]
call fcn.140039ba0
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x28]
cmp dword [rax + 4], 0
je 0x1400be721
mov qword [rsi], rax
mov qword [rsp + 0x28], rbx
jmp 0x1400be7a2
mov r9d, 0xff
lea r8, [rbp - 0x70]
mov edx, 0x59
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400be790
mov r8d, edi
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x48]
call fcn.1400042e0
mov rdx, qword [rsp + 0x28]
mov qword [rbp - 0x80], rdx
mov rcx, qword [rax]
mov qword [rsp + 0x28], rcx
mov qword [rax], rdx
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx]
test eax, eax
je 0x1400be782
cmp eax, 0xffffffff
je 0x1400be790
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400be790
mov rcx, qword [rsp + 0x48]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140039ba0
mov rax, qword [rsp + 0x28]
mov qword [rsi], rax
mov qword [rsp + 0x28], rbx
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x1400be7bd
cmp eax, 0xffffffff
je 0x1400be7d1
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400be7cc
mov rcx, qword [rsp + 0x30]
mov r8d, 8
lea edx, [r8 - 6]
call fcn.140039ba0
mov rbx, qword [rsp + 0x28]
mov eax, dword [rbx]
test eax, eax
je 0x1400be7ea
cmp eax, 0xffffffff
je 0x1400be7fc
lock xadd dword [rbx], edi
cmp edi, 1
jne 0x1400be7fc
mov rbx, qword [rsp + 0x28]
mov r8d, 8
lea edx, [r8 - 6]
mov rcx, rbx
call fcn.140039ba0
mov rax, rsi
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1401202c0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret