Function at 0x417080
Capabilities:
Get geographical location

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x4174a0
sub rsp, 0x40
mov qword [rsp + 0x38], rbp
lea rbp, [rsp + 0x38]
xorps xmm0, xmm0
movsd xmm1, qword [rsp + 0x48]
ucomisd xmm0, xmm1
jbe 0x41730e
xorps xmm1, xmm1
movsd qword [0x0163e7f0], xmm1
mov ecx, dword [0x01635f34]
test ecx, ecx
jl 0x417302
mov rcx, qword [0x0163e810]
test rcx, rcx
jl 0x4172e4
xorps xmm2, xmm2
cvtsi2sd xmm2, rcx
movsd xmm3, qword [0x008f6748]
addsd xmm3, xmm1
mulsd xmm3, xmm2
movsd xmm2, qword [0x008f67c8]
ucomisd xmm2, xmm3
jbe 0x4172c9
cvttsd2si rcx, xmm3
mov rdx, qword [0x00b012f0]
mov ebx, dword [0x0110c004]
test ebx, ebx
je 0x41728c
cmp rcx, rdx
jae 0x417281
mov rax, rdx
test rdx, rdx
jl 0x41734f
mov qword [0x0163e7f8], rdx
mov ecx, dword [0x01635f34]
test ecx, ecx
jl 0x417272
mov rbx, qword [0x0163e810]
movsxd rcx, ecx
imul rcx, rbx
shr rcx, 1
movabs rax, 0xa3d70a3d70a3d70b
mov rsi, rdx
mul rcx
shr rdx, 5
lea rcx, [rbx + rdx]
cmp rcx, rsi
jae 0x417267
mov rax, rsi
mov qword [rsp + 0x30], rax
mov qword [0x0163d168], rsi
movzx ecx, byte [0x01112510]
test cl, cl
jne 0x417255
mov ecx, dword [0x01635f38]
test ecx, ecx
jne 0x417238
mov ecx, dword [0x0110c004]
test ecx, ecx
je 0x4171cc
movsd qword [0x0110c0b8], xmm0
mov rbp, qword [rsp + 0x38]
add rsp, 0x40
ret
mov rcx, qword [0x0163e800]
sub rax, rcx
add rax, 0xfffffffffff00000
cmp rax, 0x2000
jge 0x4171e9
mov eax, 0x2000
mov rdx, qword [0x0110c0a0]
mov rbx, qword [0x0110c098]
sub rbx, rdx
test rbx, rbx
jg 0x417209
movsd qword [0x0110c0b8], xmm0
jmp 0x4171c2
xorps xmm0, xmm0
cvtsi2sd xmm0, rbx
xorps xmm1, xmm1
cvtsi2sd xmm1, rax
divsd xmm0, xmm1
movsd qword [0x0110c0b8], xmm0
mov qword [0x0110c0b0], rcx
lea rax, [0x0110c0a8]
xchg qword [rax], rdx
jmp 0x4171c2
lea rax, [0x01636d40]
mov qword [rsp], rax
call fcn.004165c0
mov rax, qword [rsp + 0x30]
xorps xmm0, xmm0
jmp 0x4171b0
call fcn.004486c0
mov rax, qword [rsp + 0x30]
xorps xmm0, xmm0
jmp 0x4171a2
mov rax, rsi
mov rsi, rcx
jmp 0x417187
mov rax, rdx
mov rsi, 0xffffffffffffffff
jmp 0x417187
mov rax, rdx
mov rdx, rcx
jmp 0x417134
mov rbx, qword [0x0163e800]
movsxd rsi, dword [0x01635f34]
shl rsi, 0x14
shr rsi, 1
movabs rax, 0xa3d70a3d70a3d70b
mov rdi, rdx
mul rsi
shr rdx, 5
add rdx, rbx
cmp rdx, rdi
ja 0x417128
mov rdx, rdi
jmp 0x417128
subsd xmm3, xmm2
cvttsd2si rcx, xmm3
movabs rdx, 0x8000000000000000
or rcx, rdx
jmp 0x417113
mov rdx, rcx
and rcx, 1
shr rdx, 1
or rcx, rdx
xorps xmm2, xmm2
cvtsi2sd xmm2, rcx
addsd xmm2, xmm2
jmp 0x4170ec
mov rdx, 0xffffffffffffffff
jmp 0x41713d
mov ecx, dword [0x01635f34]
test ecx, ecx
jl 0x41734a
xorps xmm2, xmm2
cvtsi2sd xmm2, ecx
movsd xmm3, qword [0x008f6740]
mulsd xmm2, xmm3
movsd xmm3, qword [0x008f6798]
divsd xmm2, xmm3
ucomisd xmm1, xmm2
jbe 0x417345
movups xmm1, xmm2
jmp 0x4170be
movups xmm2, xmm1
jmp 0x41733d
movups xmm2, xmm1
jmp 0x41733d
movsd qword [rsp + 0x48], xmm1
mov qword [rsp + 0x30], rax
mov rax, qword [0x0163d168]
mov qword [rsp + 0x28], rax
mov rcx, qword [0x0163e810]
mov qword [rsp + 0x20], rcx
mov rdx, qword [0x0163e800]
mov qword [rsp + 0x18], rdx
mov rbx, qword [0x010f1138]
mov qword [rsp + 0x10], rbx
call fcn.0042b400
lea rax, [0x008a46d0]
mov qword [rsp], rax
mov qword [rsp + 8], 0x11
call fcn.0042bdc0
mov rax, qword [rsp + 0x28]
mov qword [rsp], rax
call fcn.0042bac0
lea rax, [0x0089cc63]
mov qword [rsp], rax
mov qword [rsp + 8], 0xd
call fcn.0042bdc0
mov rax, qword [rsp + 0x20]
mov qword [rsp], rax
call fcn.0042bac0
lea rax, [0x008987cd]
mov qword [rsp], rax
mov qword [rsp + 8], 0xb
call fcn.0042bdc0
mov rax, qword [rsp + 0x18]
mov qword [rsp], rax
call fcn.0042bac0
lea rax, [0x008a3aed]
mov qword [rsp], rax
mov qword [rsp + 8], 0x11
call fcn.0042bdc0
mov rax, qword [rsp + 0x10]
mov qword [rsp], rax
call fcn.0042bac0
lea rax, [0x0089ee90]
mov qword [rsp], rax
mov qword [rsp + 8], 0xd
call fcn.0042bdc0
movsd xmm0, qword [rsp + 0x48]
movsd qword [rsp], xmm0
call fcn.0042b780
lea rax, [0x0089aa56]
mov qword [rsp], rax
mov qword [rsp + 8], 0xc
call fcn.0042bdc0
mov rax, qword [rsp + 0x30]
mov qword [rsp], rax
call fcn.0042bac0
call fcn.0042b6b0
call fcn.0042b490
lea rax, [0x008a72f7]
mov qword [rsp], rax
mov qword [rsp + 8], 0x14
call fcn.0042ab20
ud2
call fcn.00451b80
jmp fcn.00417080