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

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x170
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xe8], 0xfffffffffffffffe
mov rdi, rdx
mov rsi, rcx
push 0x18
pop rcx
push 8
pop rdx
call fcn.1400391c1
push 1
pop rcx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov byte [rax + 0x10], 0
mov word [rbp + 0x80], 1
and qword [rbp + 0x68], 0
mov qword [rbp + 0x78], rax
mov rcx, rdi
call fcn.1400d0542
mov rcx, qword [rax]
xorps xmm0, xmm0
lea rdx, [rbp - 0x20]
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 + 0xa0]
mov dword [r8], 0x80
call qword [sym.imp.ws2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x1400479c9
mov eax, dword [rbp + 0xa0]
movzx ecx, word [rbp - 0x20]
cmp ecx, 2
je 0x1400479d9
cmp ecx, 0x17
jne 0x140047a04
cmp eax, 0x1b
jbe 0x140047cbd
movzx eax, word [rbp - 0x1e]
rol ax, 8
movups xmm0, xmmword [rbp - 0x18]
mov ecx, dword [rbp - 0x1c]
mov edx, dword [rbp - 8]
mov word [rbp + 0xc0], 1
movups xmmword [rbp + 0xc4], xmm0
mov dword [rbp + 0xd4], ecx
mov dword [rbp + 0xd8], edx
mov word [rbp + 0xdc], ax
jmp 0x140047a1b
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
jmp 0x140047a0b
cmp eax, 0xf
jbe 0x140047cd5
mov eax, dword [rbp - 0x1c]
movzx ecx, word [rbp - 0x1e]
and word [rbp + 0xc0], 0
rol cx, 8
mov word [rbp + 0xc6], cx
mov dword [rbp + 0xc2], eax
jmp 0x140047a1b
lea rax, str.invalid_argument
mov qword [rbp + 0xc8], rax
mov word [rbp + 0xc0], 2
mov rcx, rdi
call fcn.1400d0542
mov rcx, qword [rax]
xorps xmm0, xmm0
lea rdx, [rbp - 0x20]
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 + 0x8c]
mov dword [r8], 0x80
call qword [sym.imp.ws2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x140047aa2
mov eax, dword [rbp + 0x8c]
movzx ecx, word [rbp - 0x20]
cmp ecx, 2
je 0x140047ab2
cmp ecx, 0x17
jne 0x140047ad7
cmp eax, 0x1b
jbe 0x140047ced
movups xmm0, xmmword [rbp - 0x18]
movzx ecx, word [rbp - 0x1e]
rol cx, 8
mov r8d, dword [rbp - 0x1c]
mov edx, dword [rbp - 8]
movups xmmword [rbp + 0xa2], xmm0
mov ax, 1
jmp 0x140047ae9
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
jmp 0x140047ade
cmp eax, 0xf
jbe 0x140047d05
movzx eax, word [rbp - 0x1e]
rol ax, 8
mov ecx, dword [rbp - 0x1c]
mov word [rbp + 0xa4], ax
mov dword [rbp + 0xa0], ecx
xor eax, eax
jmp 0x140047ae9
lea rax, str.invalid_argument
mov qword [rbp + 0xa6], rax
mov ax, 2
movups xmm0, xmmword [rbp + 0xc0]
movups xmm1, xmmword [rbp + 0xd0]
movaps xmmword [rbp - 0x10], xmm1
movaps xmmword [rbp - 0x20], xmm0
mov word [rbp], ax
mov r9d, dword [rbp + 0xa0]
mov dword [rbp + 2], r9d
movzx r9d, word [rbp + 0xa4]
mov word [rbp + 6], r9w
mov r9, qword [rbp + 0xa6]
mov qword [rbp + 8], r9
movzx r9d, word [rbp + 0xae]
mov word [rbp + 0x10], r9w
movzx r9d, word [rbp + 0xb0]
mov word [rbp + 0x12], r9w
mov dword [rbp + 0x14], r8d
mov dword [rbp + 0x18], edx
mov word [rbp + 0x1c], cx
cmp word [rbp - 0x20], 2
je 0x140047c0a
cmp ax, 2
je 0x140047c0a
lea rax, [rbp]
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 + 0x68]
movups xmm1, xmmword [rbp + 0x78]
movaps xmmword [rbp + 0xc0], xmm0
movaps xmmword [rbp + 0xd0], xmm1
mov rax, qword [rbp + 0xc0]
mov qword [rbp + 0x90], rax
test rax, rax
je 0x140047c1e
mov rax, qword [rbp + 0xc8]
mov qword [rbp + 0xb8], rax
push 0x50
pop rcx
push 8
pop rdx
call fcn.1400391c1
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 + 0x90]
mov qword [rax + 0x40], rcx
mov rcx, qword [rbp + 0xb8]
mov qword [rax + 0x48], rcx
mov qword [rbp + 0xc0], rax
lea rax, [0x140106dc0]
jmp 0x140047c81
movups xmm0, xmmword [rbp + 0x68]
movups xmm1, xmmword [rbp + 0x78]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
jmp 0x140047ca8
and qword [rbp + 0x98], 0
mov byte [rbp + 0xe7], 1
push 0x40
pop rcx
push 4
pop rdx
call fcn.1400391c1
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 + 0xb8], rax
movups xmmword [rax], xmm0
mov rdx, qword [rbp + 0xc8]
xor ecx, ecx
call fcn.14007dda8
mov rax, qword [rbp + 0xb8]
mov qword [rbp + 0xc0], rax
lea rax, [0x140106de8]
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0xc0]
mov rcx, qword [rbp + 0xc8]
movaps xmm0, xmmword [rbp + 0xd0]
movups xmmword [rsi + 0x10], xmm0
mov qword [rsi], rax
mov qword [rsi + 8], rcx
lea rcx, [rbp - 0x20]
call fcn.140047ea4
nop
add rsp, 0x170
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
lea r8, str.library_std_src_sys_common_net.rsassertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___
push 0x43
pop rdx
call fcn.1400e74d0
jmp 0x140047d1b
lea rcx, [0x140121811]
lea r8, str.library_std_src_sys_common_net.rsassertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___
push 0x42
pop rdx
call fcn.1400e74d0
jmp 0x140047d1b
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
lea r8, str.library_std_src_sys_common_net.rsassertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___
push 0x43
pop rdx
call fcn.1400e74d0
jmp 0x140047d1b
lea rcx, [0x140121811]
lea r8, str.library_std_src_sys_common_net.rsassertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___
push 0x42
pop rdx
call fcn.1400e74d0
ud2