Function at 0x180058170
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
test rdx, rdx
jne 0x18005819c
mov rax, qword [rcx + 0x10]
mov byte [rax + 8], dl
add qword [rcx + 0x10], 0x10
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call fcn.180047f30
mov rcx, qword [rbx + 0x10]
mov qword [rcx], rax
mov byte [rcx + 8], 0x45
mov rax, qword [rbx + 0x18]
add qword [rbx + 0x10], 0x10
cmp qword [rax + 0x18], 0
jle 0x1800581c4
mov rcx, rbx
call fcn.18002f330
lea rdx, str.name
mov rcx, rbx
call fcn.1800415c0
mov rcx, qword [rbx + 0x10]
mov qword [rcx], rax
movzx eax, byte [rax + 8]
or al, 0x40
mov byte [rcx + 8], al
mov rax, qword [rbx + 0x18]
add qword [rbx + 0x10], 0x10
cmp qword [rax + 0x18], 0
jle 0x1800581fb
mov rcx, rbx
call fcn.18002f330
cmp qword [rdi + 0x40], 0xf
lea rdx, [rdi + 0x28]
jbe 0x180058209
mov rdx, qword [rdx]
test rdx, rdx
jne 0x180058217
mov rax, qword [rbx + 0x10]
mov byte [rax + 8], dl
jmp 0x18005822f
mov rcx, rbx
call fcn.1800415c0
mov rcx, qword [rbx + 0x10]
mov qword [rcx], rax
movzx eax, byte [rax + 8]
or al, 0x40
mov byte [rcx + 8], al
mov rax, qword [rbx + 0x18]
add qword [rbx + 0x10], 0x10
cmp qword [rax + 0x18], 0
jle 0x180058247
mov rcx, rbx
call fcn.18002f330
mov edx, 0xfffffffd
mov rcx, rbx
call fcn.18001ca40
lea rdx, str.pos_x
mov rcx, rbx
call fcn.1800415c0
mov rcx, qword [rbx + 0x10]
mov qword [rcx], rax
movzx eax, byte [rax + 8]
or al, 0x40
mov byte [rcx + 8], al
mov rax, qword [rbx + 0x18]
add qword [rbx + 0x10], 0x10
cmp qword [rax + 0x18], 0
jle 0x18005828b
mov rcx, rbx
call fcn.18002f330
movss xmm0, dword [rdi + 8]
mov edx, 0xfffffffd
mov rax, qword [rbx + 0x10]
mov rcx, rbx
cvtps2pd xmm0, xmm0
mov byte [rax + 8], 0x13
movsd qword [rax], xmm0
add qword [rbx + 0x10], 0x10
call fcn.18001ca40
lea rdx, str.pos_y
mov rcx, rbx
call fcn.1800415c0
mov rcx, qword [rbx + 0x10]
mov qword [rcx], rax
movzx eax, byte [rax + 8]
or al, 0x40
mov byte [rcx + 8], al
mov rax, qword [rbx + 0x18]
add qword [rbx + 0x10], 0x10
cmp qword [rax + 0x18], 0
jle 0x1800582e8
mov rcx, rbx
call fcn.18002f330
movss xmm0, dword [rdi + 0xc]
mov edx, 0xfffffffd
mov rax, qword [rbx + 0x10]
mov rcx, rbx
cvtps2pd xmm0, xmm0
mov byte [rax + 8], 0x13
movsd qword [rax], xmm0
add qword [rbx + 0x10], 0x10
call fcn.18001ca40
lea rdx, str.userid
mov rcx, rbx
call fcn.1800415c0
mov rcx, qword [rbx + 0x10]
mov qword [rcx], rax
movzx eax, byte [rax + 8]
or al, 0x40
mov byte [rcx + 8], al
mov rax, qword [rbx + 0x18]
add qword [rbx + 0x10], 0x10
cmp qword [rax + 0x18], 0
jle 0x180058345
mov rcx, rbx
call fcn.18002f330
mov rcx, qword [rbx + 0x10]
mov edx, 0xfffffffd
movsxd rax, dword [rdi + 0x13c]
mov qword [rcx], rax
mov byte [rcx + 8], 3
mov rcx, rbx
add qword [rbx + 0x10], 0x10
call fcn.18001ca40
lea rdx, str.netid
mov rcx, rbx
call fcn.1800415c0
mov rcx, qword [rbx + 0x10]
mov qword [rcx], rax
movzx eax, byte [rax + 8]
or al, 0x40
mov byte [rcx + 8], al
mov rax, qword [rbx + 0x18]
add qword [rbx + 0x10], 0x10
cmp qword [rax + 0x18], 0
jle 0x1800583a0
mov rcx, rbx
call fcn.18002f330
mov rcx, qword [rbx + 0x10]
mov edx, 0xfffffffd
movsxd rax, dword [rdi + 0x48]
mov qword [rcx], rax
mov byte [rcx + 8], 3
mov rcx, rbx
add qword [rbx + 0x10], 0x10
call fcn.18001ca40
lea rdx, str.country
mov rcx, rbx
call fcn.1800415c0
mov rcx, qword [rbx + 0x10]
mov qword [rcx], rax
movzx eax, byte [rax + 8]
or al, 0x40
mov byte [rcx + 8], al
mov rax, qword [rbx + 0x18]
add qword [rbx + 0x10], 0x10
cmp qword [rax + 0x18], 0
jle 0x1800583f8
mov rcx, rbx
call fcn.18002f330
lea rdx, [rdi + 0x150]
cmp qword [rdx + 0x18], 0xf
jbe 0x180058409
mov rdx, qword [rdx]
test rdx, rdx
jne 0x180058417
mov rax, qword [rbx + 0x10]
mov byte [rax + 8], dl
jmp 0x18005842f
mov rcx, rbx
call fcn.1800415c0
mov rcx, qword [rbx + 0x10]
mov qword [rcx], rax
movzx eax, byte [rax + 8]
or al, 0x40
mov byte [rcx + 8], al
mov rax, qword [rbx + 0x18]
add qword [rbx + 0x10], 0x10
cmp qword [rax + 0x18], 0
jle 0x180058447
mov rcx, rbx
call fcn.18002f330
mov edx, 0xfffffffd
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.18001ca40