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

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x160
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xd8], 0xfffffffffffffffe
mov rdi, rdx
mov rsi, rcx
push 0x18
pop rcx
push 8
pop rdx
call fcn.140121a1f
push 1
pop rcx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov byte [rax + 0x10], 0
mov word [rbp - 8], 1
and qword [rbp - 0x20], 0
mov qword [rbp - 0x10], rax
mov rcx, rdi
call fcn.140129fcb
mov rcx, qword [rax]
xorps xmm0, xmm0
mov rdx, rbp
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 + 0x94]
mov dword [r8], 0x80
call qword [sym.imp.ws2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x140082f50
mov eax, dword [rbp + 0x94]
movzx ecx, word [rbp]
cmp ecx, 0x17
je 0x140082f60
cmp ecx, 2
jne 0x140082fbe
cmp eax, 0xf
jbe 0x14008324f
mov eax, dword [rbp + 4]
movzx ecx, word [rbp + 2]
and word [rbp + 0xb0], 0
rol cx, 8
mov word [rbp + 0xb6], cx
mov dword [rbp + 0xb2], eax
jmp 0x140082fd5
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
jmp 0x140082fc5
cmp eax, 0x1b
jbe 0x140083267
movzx eax, word [rbp + 2]
rol ax, 8
mov ecx, dword [rbp + 4]
mov edx, dword [rbp + 0x18]
movups xmm0, xmmword [rbp + 8]
movups xmmword [rbp + 0x82], xmm0
mov word [rbp + 0xb0], 1
movups xmm0, xmmword [rbp + 0x80]
movups xmmword [rbp + 0xb2], xmm0
movzx r8d, word [rbp + 0x90]
mov word [rbp + 0xc2], r8w
mov dword [rbp + 0xc4], ecx
mov dword [rbp + 0xc8], edx
mov word [rbp + 0xcc], ax
jmp 0x140082fd5
lea rax, str.invalid_argument8H_
mov qword [rbp + 0xb8], rax
mov word [rbp + 0xb0], 2
mov rcx, rdi
call fcn.140129fcb
mov rcx, qword [rax]
xorps xmm0, xmm0
mov rdx, rbp
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 + 0x80]
mov dword [r8], 0x80
call qword [sym.imp.ws2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x140083055
mov eax, dword [rbp + 0x80]
movzx ecx, word [rbp]
cmp ecx, 0x17
je 0x140083069
cmp ecx, 2
jne 0x140083098
cmp eax, 0xf
jbe 0x14008327f
mov eax, dword [rbp + 4]
movzx ecx, word [rbp + 2]
rol cx, 8
movzx r10d, cx
shl r10, 0x20
or r10, rax
xor ecx, ecx
jmp 0x1400830a3
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov cx, 2
jmp 0x1400830a3
cmp eax, 0x1b
jbe 0x140083297
movzx edx, word [rbp + 2]
rol dx, 8
mov r9d, dword [rbp + 4]
mov r8d, dword [rbp + 0x18]
mov r10d, dword [rbp + 8]
shl r10, 0x10
mov rax, qword [rbp + 0xc]
mov cx, 1
mov r11d, dword [rbp + 0x14]
jmp 0x1400830a3
mov cx, 2
lea rax, str.invalid_argument8H_
movups xmm0, xmmword [rbp + 0xb0]
movups xmm1, xmmword [rbp + 0xc0]
movaps xmmword [rbp + 0x10], xmm1
movaps xmmword [rbp], xmm0
mov word [rbp + 0x20], cx
mov dword [rbp + 0x22], r10d
shr r10, 0x20
mov word [rbp + 0x26], r10w
mov qword [rbp + 0x28], rax
mov dword [rbp + 0x30], r11d
mov dword [rbp + 0x34], r9d
mov dword [rbp + 0x38], r8d
mov word [rbp + 0x3c], dx
cmp word [rbp], 2
je 0x14008319d
cmp cx, 2
je 0x14008319d
lea rax, [rbp + 0x20]
movaps xmm0, xmmword [rax - 0x20]
movaps xmm1, xmmword [rax - 0x10]
movaps xmmword [rbp - 0x50], xmm1
movaps xmmword [rbp - 0x60], xmm0
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x30], xmm1
movups xmm0, xmmword [rbp - 0x20]
movups xmm1, xmmword [rbp - 0x10]
movaps xmmword [rbp + 0xb0], xmm0
movaps xmmword [rbp + 0xc0], xmm1
mov rax, qword [rbp + 0xb0]
mov qword [rbp + 0x98], rax
test rax, rax
je 0x1400831b1
mov rax, qword [rbp + 0xb8]
mov qword [rbp + 0xa8], rax
push 0x50
pop rcx
push 8
pop rdx
call fcn.140121a1f
movaps xmm0, xmmword [rbp - 0x60]
movaps xmm1, xmmword [rbp - 0x50]
movaps xmm2, xmmword [rbp - 0x40]
movaps xmm3, xmmword [rbp - 0x30]
movups xmmword [rax + 0x30], xmm3
movups xmmword [rax + 0x20], xmm2
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov rcx, qword [rbp + 0x98]
mov qword [rax + 0x40], rcx
mov rcx, qword [rbp + 0xa8]
mov qword [rax + 0x48], rcx
mov qword [rbp + 0xb0], rax
lea rax, [0x140283c78]
jmp 0x140083214
movups xmm0, xmmword [rbp - 0x20]
movups xmm1, xmmword [rbp - 0x10]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
jmp 0x14008323b
and qword [rbp + 0xa0], 0
mov byte [rbp + 0xd7], 1
push 0x40
pop rcx
push 4
pop rdx
call fcn.140121a1f
movaps xmm0, xmmword [rbp - 0x60]
movaps xmm1, xmmword [rbp - 0x50]
movaps xmm2, xmmword [rbp - 0x40]
movaps xmm3, xmmword [rbp - 0x30]
movups xmmword [rax + 0x30], xmm3
movups xmmword [rax + 0x20], xmm2
movups xmmword [rax + 0x10], xmm1
mov qword [rbp + 0xa8], rax
movups xmmword [rax], xmm0
mov rdx, qword [rbp + 0xb8]
xor ecx, ecx
call fcn.1400805fc
mov rax, qword [rbp + 0xa8]
mov qword [rbp + 0xb0], rax
lea rax, [0x140283ca0]
mov qword [rbp + 0xb8], rax
mov rax, qword [rbp + 0xb0]
mov rcx, qword [rbp + 0xb8]
movaps xmm0, xmmword [rbp + 0xc0]
movups xmmword [rsi + 0x10], xmm0
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov rcx, rbp
call fcn.140083435
nop
add rsp, 0x160
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.assertion_failed:_len___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
lea r8, [0x1402a47c8]
push 0x39
pop rdx
call fcn.140256b00
jmp 0x1400832ad
lea rcx, str.assertion_failed:_len___mem::size_of::_c::sockaddr_in6___
lea r8, [0x1402a4820]
push 0x3a
pop rdx
call fcn.140256b00
jmp 0x1400832ad
lea rcx, str.assertion_failed:_len___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
lea r8, [0x1402a47c8]
push 0x39
pop rdx
call fcn.140256b00
jmp 0x1400832ad
lea rcx, str.assertion_failed:_len___mem::size_of::_c::sockaddr_in6___
lea r8, [0x1402a4820]
push 0x3a
pop rdx
call fcn.140256b00
ud2