Function at 0x1800d4ca0
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp + 0x27], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov r14d, r9d
mov esi, r8d
mov rdi, rdx
mov r15, rcx
mov r10d, dword [0x18058f148]
mov rax, qword gs:[0x58]
mov ecx, 8
mov r11, qword [rax + r10*8]
mov ebx, 1
mov eax, dword [rcx + r11]
cmp dword [0x18058a4e0], eax
jg 0x1800d4f95
lea r12, [0x18058a4c0]
mov qword [rbp + 0x67], r12
mov r9d, 0x40
test r14d, r14d
cmovne r9d, r14d
mov dword [rbp - 0x65], r9d
cmp r9d, 0x40
jle 0x1800d4d4a
movsxd rcx, r9d
add rcx, rcx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp - 0x61], rax
test rax, rax
jne 0x1800d4d40
call sym.Qt5Core.dll_void___cdecl_qBadAlloc_void_
mov rax, qword [rbp - 0x61]
mov r9d, dword [rbp - 0x65]
mov dword [rbp - 0x69], r9d
jmp 0x1800d4d59
lea rax, [rbp - 0x59]
mov qword [rbp - 0x61], rax
mov dword [rbp - 0x69], 0x40
mov r8, rax
mov edx, esi
mov ecx, dword [r15]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1800d4ed2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0x50
jne 0x1800d4dcb
test eax, eax
jne 0x1800d4dcb
mov qword [rdi], r12
mov eax, dword [0x18058a4c0]
inc eax
cmp eax, 1
jbe 0x1800d4d96
lock xadd dword [0x18058a4c0], ebx
lea rax, [rbp - 0x59]
mov rcx, qword [rbp - 0x61]
cmp rcx, rax
je 0x1800d4daa
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov eax, dword [0x18058a4c0]
test eax, eax
je 0x1800d4f64
cmp eax, 0xffffffff
je 0x1800d4f76
mov ebx, 0xffffffff
jmp 0x1800d4f57
cmp eax, 0x7a
je 0x1800d4e0f
lea rax, sym.Qt5Core.dll_struct_QArrayData_const__const_const_QArrayData::shared_null
mov qword [rdi], rax
lea rax, [rbp - 0x59]
mov rcx, qword [rbp - 0x61]
cmp rcx, rax
je 0x1800d4dee
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov eax, dword [0x18058a4c0]
test eax, eax
je 0x1800d4f64
cmp eax, 0xffffffff
je 0x1800d4f76
mov ebx, 0xffffffff
jmp 0x1800d4f57
xor r9d, r9d
xor r8d, r8d
mov edx, esi
mov ecx, dword [r15]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edx, eax
test eax, eax
jne 0x1800d4e65
lea rax, sym.Qt5Core.dll_struct_QArrayData_const__const_const_QArrayData::shared_null
mov qword [rdi], rax
lea rax, [rbp - 0x59]
mov rcx, qword [rbp - 0x61]
cmp rcx, rax
je 0x1800d4e44
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov eax, dword [0x18058a4c0]
test eax, eax
je 0x1800d4f64
cmp eax, 0xffffffff
je 0x1800d4f76
mov ebx, 0xffffffff
jmp 0x1800d4f57
mov dword [rbp + 0x7f], edx
mov r8d, edx
cmp edx, dword [rbp - 0x69]
cmovl r8d, dword [rbp - 0x69]
lea rcx, [rbp - 0x69]
call fcn.1800d7080
mov r9d, dword [rbp - 0x65]
mov r8, qword [rbp - 0x61]
mov edx, esi
mov ecx, dword [r15]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1800d4ed2
lea rax, sym.Qt5Core.dll_struct_QArrayData_const__const_const_QArrayData::shared_null
mov qword [rdi], rax
lea rax, [rbp - 0x59]
mov rcx, qword [rbp - 0x61]
cmp rcx, rax
je 0x1800d4eb1
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov eax, dword [0x18058a4c0]
test eax, eax
je 0x1800d4f64
cmp eax, 0xffffffff
je 0x1800d4f76
mov ebx, 0xffffffff
jmp 0x1800d4f57
mov rdx, qword [rbp - 0x61]
cmp esi, 0x50
jne 0x1800d4f23
cmp word [rdx], 0
jne 0x1800d4f23
mov qword [rdi], r12
mov eax, dword [0x18058a4c0]
inc eax
cmp eax, 1
jbe 0x1800d4ef9
lock xadd dword [0x18058a4c0], ebx
lea rax, [rbp - 0x59]
mov rcx, qword [rbp - 0x61]
cmp rcx, rax
je 0x1800d4f0d
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov eax, dword [0x18058a4c0]
test eax, eax
je 0x1800d4f64
cmp eax, 0xffffffff
je 0x1800d4f76
mov ebx, 0xffffffff
jmp 0x1800d4f57
mov ebx, 0xffffffff
mov r8d, ebx
mov rcx, rdi
call sym.Qt5Core.dll_public:_static_class_QString___cdecl_QString::fromWCharArray_wchar_t_const____ptr64__int_
nop
lea rax, [rbp - 0x59]
mov rcx, qword [rbp - 0x61]
cmp rcx, rax
je 0x1800d4f48
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov eax, dword [0x18058a4c0]
test eax, eax
je 0x1800d4f64
cmp eax, 0xffffffff
je 0x1800d4f76
lock xadd dword [0x18058a4c0], ebx
cmp ebx, 1
jne 0x1800d4f76
mov r8d, 8
lea edx, [r8 - 6]
mov rcx, r12
call sym.Qt5Core.dll_public:_static_void___cdecl_QArrayData::deallocate_struct_QArrayData____ptr64__unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64__
mov rax, rdi
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
lea rcx, [0x18058a4e0]
call fcn.1802e22a0
cmp dword [0x18058a4e0], 0xffffffff
jne 0x1800d4d00
mov dword [0x18058a4c0], 0xffffffff
mov qword [0x18058a4c4], rbx
mov qword [0x18058a4d0], 0x18
mov dword [0x18058a4d8], 0x2b
lea rcx, [0x18058a4e0]
call fcn.1802e2240
jmp 0x1800d4d00