Function at 0x1400645e2
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x188
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x100], 0xfffffffffffffffe
mov rsi, rdx
mov rbx, rcx
push 0x18
pop rcx
push 8
pop rdx
call fcn.14005cafe
push 1
pop rcx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov byte [rax + 0x10], 0
mov word [rbp + 0x38], 1
and qword [rbp + 0x20], 0
mov qword [rbp + 0x30], rax
mov rcx, rsi
call fcn.140110210
mov rcx, qword [rax]
xorps xmm0, xmm0
lea rdx, [rbp - 0x60]
movaps xmmword [rdx + 0x70], xmm0
movaps xmmword [rdx + 0x60], xmm0
movaps xmmword [rdx + 0x50], xmm0
movaps xmmword [rdx + 0x40], xmm0
movaps xmmword [rdx + 0x30], xmm0
movaps xmmword [rdx + 0x20], xmm0
movaps xmmword [rdx + 0x10], xmm0
movaps xmmword [rdx], xmm0
lea r8, [rbp + 0xd0]
mov dword [r8], 0x80
call sub.ws2_32.dll_getpeername
cmp eax, 0xffffffff
je 0x1400646e4
mov eax, dword [rbp + 0xd0]
movzx ecx, word [rbp - 0x60]
cmp ecx, 2
je 0x1400646f4
cmp ecx, 0x17
jne 0x14006471f
cmp eax, 0x1c
jb 0x1400649c2
movzx eax, word [rbp - 0x5e]
rol ax, 8
mov ecx, dword [rbp - 0x5c]
mov edx, dword [rbp - 0x48]
movups xmm0, xmmword [rbp - 0x58]
movups xmmword [rbp + 0x42], xmm0
mov word [rbp + 0x90], 1
movups xmm0, xmmword [rbp + 0x40]
movups xmmword [rbp + 0x92], xmm0
movzx r8d, word [rbp + 0x50]
mov word [rbp + 0xa2], r8w
mov dword [rbp + 0xa4], ecx
mov dword [rbp + 0xa8], edx
mov word [rbp + 0xac], ax
jmp 0x140064736
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
jmp 0x140064726
cmp eax, 0x10
jb 0x1400649da
mov eax, dword [rbp - 0x5c]
movzx ecx, word [rbp - 0x5e]
and word [rbp + 0x90], 0
rol cx, 8
mov word [rbp + 0x96], cx
mov dword [rbp + 0x92], eax
jmp 0x140064736
lea rax, str.invalid_argument
mov qword [rbp + 0x98], rax
mov word [rbp + 0x90], 2
mov rcx, rsi
call fcn.140110210
mov rcx, qword [rax]
xorps xmm0, xmm0
lea rdx, [rbp - 0x60]
movaps xmmword [rdx + 0x70], xmm0
movaps xmmword [rdx + 0x60], xmm0
movaps xmmword [rdx + 0x50], xmm0
movaps xmmword [rdx + 0x40], xmm0
movaps xmmword [rdx + 0x30], xmm0
movaps xmmword [rdx + 0x20], xmm0
movaps xmmword [rdx + 0x10], xmm0
movaps xmmword [rdx], xmm0
lea r8, [rbp + 0x40]
mov dword [r8], 0x80
call sub.ws2_32.dll_getsockname
cmp eax, 0xffffffff
je 0x1400647b0
mov eax, dword [rbp + 0x40]
movzx ecx, word [rbp - 0x60]
cmp ecx, 0x17
je 0x1400647c4
cmp ecx, 2
jne 0x1400647f3
cmp eax, 0x10
jb 0x1400649f2
mov eax, dword [rbp - 0x5c]
movzx ecx, word [rbp - 0x5e]
rol cx, 8
movzx r10d, cx
shl r10, 0x20
or r10, rax
xor ecx, ecx
jmp 0x1400647fe
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov cx, 2
jmp 0x1400647fe
cmp eax, 0x1c
jb 0x140064a0a
movzx edx, word [rbp - 0x5e]
rol dx, 8
mov r9d, dword [rbp - 0x5c]
mov r8d, dword [rbp - 0x48]
mov r10d, dword [rbp - 0x58]
shl r10, 0x10
mov rax, qword [rbp - 0x54]
mov cx, 1
mov r11d, dword [rbp - 0x4c]
jmp 0x1400647fe
mov cx, 2
lea rax, str.invalid_argument
movups xmm0, xmmword [rbp + 0x90]
movups xmm1, xmmword [rbp + 0xa0]
movaps xmmword [rbp + 0x50], xmm1
movaps xmmword [rbp + 0x40], xmm0
mov word [rbp + 0x60], cx
mov dword [rbp + 0x62], r10d
shr r10, 0x20
mov word [rbp + 0x66], r10w
mov qword [rbp + 0x68], rax
mov dword [rbp + 0x70], r11d
mov dword [rbp + 0x74], r9d
mov dword [rbp + 0x78], r8d
mov word [rbp + 0x7c], dx
cmp word [rbp + 0x40], 2
je 0x140064909
cmp cx, 2
je 0x140064909
lea rax, [rbp + 0x60]
movaps xmm0, xmmword [rax - 0x20]
movaps xmm1, xmmword [rax - 0x10]
movaps xmmword [rbp + 0xa0], xmm1
movaps xmmword [rbp + 0x90], xmm0
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rbp + 0xb0], xmm0
movaps xmmword [rbp + 0xc0], xmm1
movups xmm0, xmmword [rbp + 0x20]
movups xmm1, xmmword [rbp + 0x30]
movaps xmmword [rbp + 0xd0], xmm0
movaps xmmword [rbp + 0xe0], xmm1
mov rcx, qword [rbp + 0xd0]
test rcx, rcx
mov qword [rbp + 0x80], rcx
je 0x14006491d
mov rax, qword [rbp + 0xd8]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x18], rax
movaps xmm0, xmmword [rbp + 0x90]
movaps xmm1, xmmword [rbp + 0xa0]
movaps xmm2, xmmword [rbp + 0xb0]
movaps xmm3, xmmword [rbp + 0xc0]
movaps xmmword [rbp - 0x60], xmm0
movaps xmmword [rbp - 0x50], xmm1
movaps xmmword [rbp - 0x40], xmm2
movaps xmmword [rbp - 0x30], xmm3
push 0x50
pop rcx
push 8
pop rdx
call fcn.14005cafe
push 0xa
pop rcx
lea rsi, [rbp - 0x60]
mov rdi, rax
rep movsq qword [rdi], qword [rsi]
mov qword [rbp + 0xd0], rax
lea rax, fcn.1400643b9
jmp 0x140064985
movups xmm0, xmmword [rbp + 0x20]
movups xmm1, xmmword [rbp + 0x30]
movups xmmword [rbx + 0x10], xmm1
movups xmmword [rbx], xmm0
jmp 0x1400649ac
and qword [rbp + 0xf8], 0
push 0x40
pop rcx
push 4
pop rdx
call fcn.14005cafe
movaps xmm0, xmmword [rbp + 0x90]
movaps xmm1, xmmword [rbp + 0xa0]
movaps xmm2, xmmword [rbp + 0xb0]
movaps xmm3, xmmword [rbp + 0xc0]
movups xmmword [rax + 0x30], xmm3
movups xmmword [rax + 0x20], xmm2
movups xmmword [rax + 0x10], xmm1
mov qword [rbp + 0x88], rax
movups xmmword [rax], xmm0
mov rdx, qword [rbp + 0xd8]
xor ecx, ecx
call fcn.1401101f2
mov rax, qword [rbp + 0x88]
mov qword [rbp + 0xd0], rax
lea rax, [0x1401a8818]
mov qword [rbp + 0xd8], rax
mov rax, qword [rbp + 0xd0]
mov rcx, qword [rbp + 0xd8]
movaps xmm0, xmmword [rbp + 0xe0]
movups xmmword [rbx + 0x10], xmm0
mov qword [rbx], rax
mov qword [rbx + 8], rcx
lea rcx, [rbp + 0x40]
call fcn.140064b96
nop
add rsp, 0x188
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___library_std_src_sys_common_net.rs
lea r8, [0x1401c6528]
push 0x43
pop rdx
call fcn.14015cc80
jmp 0x140064a20
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___
lea r8, [0x1401c6588]
push 0x42
pop rdx
call fcn.14015cc80
jmp 0x140064a20
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___
lea r8, [0x1401c6588]
push 0x42
pop rdx
call fcn.14015cc80
jmp 0x140064a20
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___library_std_src_sys_common_net.rs
lea r8, [0x1401c6528]
push 0x43
pop rdx
call fcn.14015cc80
ud2