Function at 0x1400306c0
Capabilities:
Get geographical location

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
movaps xmmword [rsp + 0x70], xmm6
mov rdi, rdx
mov r12, rcx
lea rsi, [rsp + 0x48]
mov rcx, rsi
call fcn.140002f38
cmp byte [rsi], 0
je 0x140030707
mov rax, qword [rsp + 0x50]
mov qword [r12 + 8], rax
mov qword [r12], 1
jmp 0x140030b2c
cmp byte [rsp + 0x49], 0
je 0x1400309cc
movzx eax, byte [rsp + 0x4a]
cmp eax, 0x5b
je 0x1400308c6
cmp eax, 0x7b
jne 0x140030a1b
dec byte [rdi + 0x30]
je 0x140030a02
inc qword [rdi + 0x10]
lea r15, [rdi + 0x18]
mov r13b, 1
xor ecx, ecx
lea rsi, [rsp + 0x20]
mov al, 1
mov dword [rsp + 0x44], eax
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x68], rcx
mov ebx, ecx
lea rcx, [rsp + 0x48]
mov rdx, rdi
call fcn.140002f38
cmp byte [rsp + 0x48], 0
jne 0x14003092e
cmp byte [rsp + 0x49], 0
je 0x140030a74
mov al, byte [rsp + 0x4a]
movzx ecx, al
cmp ecx, 0x2c
je 0x14003079a
cmp ecx, 0x7d
je 0x1400309da
test r13b, r13b
jne 0x1400307ca
jmp 0x140030a82
test bl, 1
je 0x1400307ca
inc qword [rdi + 0x10]
mov rcx, rsi
mov rdx, rdi
call fcn.140002f38
cmp byte [rsp + 0x20], 0
jne 0x140030a37
cmp byte [rsp + 0x21], 0
je 0x140030bb9
mov al, byte [rsp + 0x22]
jmp 0x1400307cd
xor r13d, r13d
cmp al, 0x22
jne 0x140030a3e
inc qword [rdi + 0x10]
and qword [rdi + 0x28], 0
mov rcx, rsi
mov rdx, rdi
mov r8, r15
call fcn.14014928b
cmp dword [rsp + 0x20], 2
mov r14, qword [rsp + 0x28]
je 0x140030aa2
mov rbp, qword [rsp + 0x30]
mov r9d, 9
mov rcx, r14
mov rdx, rbp
lea r8, [0x1404119bb]
call fcn.14007dcaf
test al, al
jne 0x140030851
mov r9d, 8
mov rcx, r14
mov rdx, rbp
lea r8, [0x1404119b3]
call fcn.14007dcaf
test al, al
jne 0x14003088f
mov rcx, rdi
call fcn.140019d46
mov bl, 1
test rax, rax
je 0x140030758
jmp 0x1400309b3
cmp qword [rsp + 0x58], 1
je 0x140030bca
mov rcx, rsi
mov rdx, rdi
call fcn.140018a32
cmp qword [rsp + 0x20], 0
jne 0x140030b63
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x60], rax
mov eax, 1
mov qword [rsp + 0x58], rax
mov bl, 1
jmp 0x140030758
test byte [rsp + 0x68], 1
jne 0x140030bd8
mov rcx, rsi
mov rdx, rdi
call fcn.140018a32
cmp qword [rsp + 0x20], 0
jne 0x140030b63
movsd xmm6, qword [rsp + 0x28]
mov cl, 1
mov dword [rsp + 0x44], 0
jmp 0x140030751
dec byte [rdi + 0x30]
je 0x140030a02
inc qword [rdi + 0x10]
lea rdx, [rsp + 0x48]
mov qword [rdx], rdi
mov byte [rdx + 8], 1
lea rsi, [rsp + 0x20]
mov rcx, rsi
call fcn.14001b0e9
mov rax, qword [rsi]
cmp rax, 2
je 0x14003091d
test rax, rax
je 0x140030a54
lea rsi, [rsp + 0x20]
mov r13, qword [rsi + 8]
lea rdx, [rsp + 0x48]
mov rcx, rsi
call fcn.14001b0e9
mov rax, qword [rsi]
cmp rax, 2
jne 0x140030938
mov r13, qword [rsp + 0x28]
mov ebp, 1
mov bl, 1
xor r14d, r14d
jmp 0x14003094e
mov r14, qword [rsp + 0x50]
jmp 0x140030aa2
cmp eax, 1
jne 0x140030b6a
movsd xmm6, qword [rsp + 0x28]
mov r14b, 1
xor ebx, ebx
xor ebp, ebp
inc byte [rdi + 0x30]
mov rcx, rdi
call fcn.1400030e7
mov rsi, rax
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x28], r13
movsd qword [rsp + 0x30], xmm6
mov qword [rsp + 0x38], rax
test bl, bl
je 0x14003097a
mov rax, r13
jmp 0x140030982
mov rax, rsi
test rsi, rsi
je 0x1400309c5
mov ebp, 1
mov r15d, ebx
mov r13, rax
or bl, r14b
cmp bl, 1
je 0x14003099f
lea rcx, [rsp + 0x28]
call fcn.14000aae6
test rsi, rsi
setne al
test al, r15b
jne 0x140030b0b
jmp 0x140030b15
mov ebp, 1
mov bl, 1
xor r15d, r15d
mov r13, rax
jmp 0x140030aaf
mov r15b, 1
xor ebp, ebp
jmp 0x14003098d
lea rdx, [rsp + 0x20]
mov qword [rdx], 5
jmp 0x140030a0e
cmp qword [rsp + 0x58], 0
je 0x140030b88
test byte [rsp + 0x44], 1
jne 0x140030b96
mov r15b, 1
xor ebx, ebx
xor ebp, ebp
mov r13, qword [rsp + 0x60]
jmp 0x140030aaf
lea rdx, [rsp + 0x20]
mov qword [rdx], 0x18
mov rcx, rdi
call fcn.140331a00
jmp 0x1400306f5
lea r8, [0x14033e728]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140331c90
mov r13, rax
jmp 0x140030b4c
mov r14, qword [rsp + 0x28]
jmp 0x140030aa2
movzx eax, al
lea rdx, [rsp + 0x20]
cmp eax, 0x7d
jne 0x140030a90
mov qword [rdx], reloc.WS2_32.dll_setsockopt
jmp 0x140030a97
lea rdx, str.struct_Location_with_2_elements
xor r14d, r14d
xor ecx, ecx
call fcn.14033218f
mov r13, rax
mov ebp, 1
mov bl, 1
jmp 0x14003092c
lea rdx, [rsp + 0x20]
mov qword [rdx], 3
jmp 0x140030a97
lea rdx, [rsp + 0x20]
mov qword [rdx], 8
jmp 0x140030a97
mov qword [rdx], reloc.WS2_32.dll_recvfrom
mov rcx, rdi
call fcn.140331a00
mov r14, rax
mov ebp, 1
mov bl, 1
xor r15d, r15d
mov r13, r14
inc byte [rdi + 0x30]
mov rcx, rdi
call fcn.140003072
mov rsi, rax
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x28], r13
movsd qword [rsp + 0x30], xmm6
mov qword [rsp + 0x38], rax
test bl, bl
je 0x140030adb
mov rax, r13
jmp 0x140030ae3
mov rax, rsi
test rsi, rsi
je 0x140030b45
mov ebp, 1
mov r13, rax
mov r14d, ebx
or bl, r15b
cmp bl, 1
je 0x140030b00
lea rcx, [rsp + 0x28]
call fcn.14000aae6
test rsi, rsi
setne al
test al, r14b
je 0x140030b15
lea rcx, [rsp + 0x38]
call fcn.14000aae6
test rbp, rbp
jne 0x140030b4c
mov qword [r12 + 8], r13
movsd qword [r12 + 0x10], xmm6
xor eax, eax
mov qword [r12], rax
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r14b, 1
xor ebp, ebp
jmp 0x140030aee
mov rcx, rdi
mov rdx, r13
call fcn.140331a38
mov qword [r12 + 8], rax
mov eax, 1
jmp 0x140030b28
mov r13, qword [rsp + 0x28]
jmp 0x140030baa
lea rdx, str.struct_Location_with_2_elements
mov ebp, 1
mov ecx, 1
call fcn.14033218f
mov r13, rax
jmp 0x140030927
lea rcx, [0x1404119bb]
mov edx, 9
jmp 0x140030ba2
lea rcx, [0x1404119b3]
mov edx, 8
call fcn.1403320e3
mov r13, rax
mov ebp, 1
mov bl, 1
xor r15d, r15d
jmp 0x140030aaf
lea rdx, [rsp + 0x20]
mov qword [rdx], 5
jmp 0x140030a97
lea rcx, [0x1404119bb]
mov edx, 9
jmp 0x140030be4
lea rcx, [0x1404119b3]
mov edx, 8
call fcn.14033225d
jmp 0x140030ba7