Function at 0x45d940
Capabilities:
Get geographical location

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x45dbf8
push rbp
mov rbp, rsp
sub rsp, 0x58
mov rdx, qword [rax]
cmp dword [rdx + 0x10], 0
je 0x45db86
movzx r8d, byte [rdx + 0x28]
movzx r9d, byte [rdx + 0x29]
cmp r8b, 4
jne 0x45d973
and r9d, 0xfffffffd
test cl, cl
je 0x45d97b
and r9d, 0xfffffffd
mov qword [rsp + 0x68], rax
mov r10, qword [rax + 8]
cmp qword [rax + 0x30], 0
jne 0x45dabf
mov byte [rsp + 0x70], bl
movzx r11d, byte [rax + 0x59]
nop dword [rax + rax]
test r11b, 8
je 0x45da6d
mov r11, qword [rax + 0x48]
mov r12, qword [r11 + 0x30]
cmp qword [r12], r11
jne 0x45da6d
mov r11, qword [r12 + 0x90]
test r11, r11
je 0x45da6d
cmp qword [r11 + 0x30], r12
jne 0x45da6d
cmp r8b, 0xd
je 0x45da0e
nop dword [rax]
cmp r8b, 0x14
jne 0x45da6d
mov r8, r11
nop
mov qword [rax + 0x48], r11
mov r11, qword [r8 + 0x38]
mov qword [rax + 0x28], r11
mov r8, qword [r8 + 0x148]
dec r8
mov qword [rax + 0x50], r8
and r9d, 0xfffffffd
jmp 0x45da6d
mov qword [rsp + 0x50], r11
mov rcx, r11
nop
mov qword [rax + 0x48], r11
mov rdx, qword [rcx + 0x40]
mov qword [rax + 0x10], rdx
mov rax, rdx
call fcn.00456280
mov rcx, qword [rsp + 0x68]
mov qword [rcx], rax
mov qword [rcx + 8], rbx
mov rdx, qword [rsp + 0x50]
mov rsi, qword [rdx + 0x60]
movzx r9d, byte [rax + 0x29]
mov qword [rcx + 0x20], rsi
mov rsi, qword [rdx + 0x38]
mov qword [rcx + 0x28], rsi
mov rdx, qword [rdx + 0x148]
dec rdx
mov qword [rcx + 0x50], rdx
mov rdx, rax
mov r10, rbx
mov rax, rcx
movzx ebx, byte [rsp + 0x70]
mov qword [rsp + 0x38], r10
mov qword [rsp + 0x40], rdx
mov byte [rsp + 0x2f], r9b
mov rdi, qword [rax + 0x10]
mov ecx, dword [rdx + 0x10]
mov rbx, r10
mov esi, 1
mov rax, rdx
call fcn.00456420
movsxd rdx, eax
mov r8, qword [rsp + 0x68]
add rdx, qword [r8 + 0x28]
add rdx, 8
mov qword [r8 + 0x30], rdx
mov rax, r8
movzx ebx, byte [rsp + 0x70]
movzx r9d, byte [rsp + 0x2f]
mov rdx, qword [rsp + 0x40]
mov r10, qword [rsp + 0x38]
nop
test r9b, 1
je 0x45dad0
mov qword [rax + 0x20], 0
jmp 0x45db18
test r9b, 2
je 0x45db02
test bl, bl
je 0x45dae5
movzx ecx, byte [rax + 0x59]
nop
test cl, 3
je 0x45db02
movzx ecx, byte [rax + 0x59]
test cl, 3
jne 0x45daf6
test bl, bl
je 0x45db91
mov qword [rax + 0x20], 0
nop
jmp 0x45db18
cmp qword [rax + 0x20], 0
jne 0x45db18
mov rcx, qword [rax + 0x30]
add rcx, 0xfffffffffffffff8
mov rcx, qword [rcx]
mov qword [rax + 0x20], rcx
mov rcx, qword [rax + 0x30]
lea rdx, [rcx - 8]
mov qword [rax + 0x38], rdx
cmp qword [rax + 0x28], rdx
jae 0x45db32
add rcx, 0xfffffffffffffff0
mov qword [rax + 0x38], rcx
mov rcx, qword [rax + 0x30]
mov qword [rax + 0x40], rcx
mov rcx, qword [rax + 0x10]
mov qword [rax + 0x18], rcx
cmp byte [rax + 0x58], 0x13
jne 0x45db80
mov rcx, qword [rax]
cmp dword [rcx + 0xc], 0
jne 0x45db5b
mov qword [rax + 0x18], 0
jmp 0x45db80
mov rdx, qword [rax + 8]
mov ebx, dword [rcx]
mov rax, rdx
call fcn.00455d40
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rcx]
mov edx, dword [rdx + 0xc]
lea rdx, [rdx + rax]
lea rdx, [rdx + 1]
mov qword [rcx + 0x18], rdx
add rsp, 0x58
pop rbp
ret
call fcn.0045df20
add rsp, 0x58
pop rbp
ret
test rdx, rdx
jne 0x45dbe5
xor eax, eax
xor ecx, ecx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], rcx
call fcn.0043b140
lea rax, [0x007a26f1]
mov ebx, 0x27
call fcn.0043b9c0
mov rax, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x30]
call fcn.0043b9c0
call fcn.0043b380
call fcn.0043b1a0
lea rax, [0x00791538]
mov ebx, 9
nop
call fcn.004396a0
mov ebx, dword [rdx + 4]
mov rax, r10
call fcn.00455e60
mov rcx, rax
mov rax, rbx
jmp 0x45db9a
mov qword [rsp + 8], rax
mov byte [rsp + 0x10], bl
mov byte [rsp + 0x11], cl
call fcn.0046a820
mov rax, qword [rsp + 8]
movzx ebx, byte [rsp + 0x10]
movzx ecx, byte [rsp + 0x11]
jmp fcn.0045d940