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

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x110
mov r14, rdx
mov rsi, rcx
mov ecx, 0x18
mov edx, 8
call fcn.140097c8c
mov rdi, rax
mov eax, 1
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov byte [rdi + 0x10], 0
mov rcx, r14
call fcn.14018783c
mov rcx, qword [rax]
xorps xmm0, xmm0
lea rdx, [rsp + 0x90]
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, [rsp + 0x2c]
mov dword [r8], 0x80
call qword [sym.imp.ws2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x1400a2a60
mov eax, dword [rsp + 0x2c]
movzx ecx, word [rsp + 0x90]
cmp ecx, 0x17
je 0x1400a2a70
cmp ecx, 2
jne 0x1400a2ad4
cmp eax, 0xf
jbe 0x1400a2cd9
movzx eax, word [rsp + 0x92]
rol ax, 8
and word [rsp + 0x38], 0
mov ecx, dword [rsp + 0x94]
mov word [rsp + 0x3e], ax
mov dword [rsp + 0x3a], ecx
jmp 0x1400a2ad0
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
jmp 0x1400a2adb
cmp eax, 0x1b
jbe 0x1400a2cf1
movzx eax, word [rsp + 0x92]
rol ax, 8
mov ecx, dword [rsp + 0x94]
mov edx, dword [rsp + 0xa8]
movups xmm0, xmmword [rsp + 0x98]
movups xmmword [rsp + 0x80], xmm0
mov word [rsp + 0x38], 1
movups xmm0, xmmword [rsp + 0x7e]
movups xmmword [rsp + 0x3a], xmm0
movzx r8d, word [rsp + 0x8e]
mov word [rsp + 0x4a], r8w
mov dword [rsp + 0x4c], ecx
mov dword [rsp + 0x50], edx
mov word [rsp + 0x54], ax
xor ebp, ebp
jmp 0x1400a2aea
lea rax, str.invalid_argumentP
mov qword [rsp + 0x40], rax
mov word [rsp + 0x38], 2
mov bpl, 1
lea rbx, [rsp + 0x58]
mov rcx, r14
call fcn.14018783c
mov rcx, qword [rax]
xorps xmm0, xmm0
lea rdx, [rsp + 0x90]
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, [rsp + 0x2c]
mov dword [r8], 0x80
call qword [sym.imp.ws2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1400a2b82
mov eax, dword [rsp + 0x2c]
movzx ecx, word [rsp + 0x90]
cmp ecx, 0x17
je 0x1400a2b95
cmp ecx, 2
jne 0x1400a2c87
cmp eax, 0xf
jbe 0x1400a2cd9
mov eax, dword [rsp + 0x94]
movzx ecx, word [rsp + 0x92]
and word [rsp + 0x58], 0
rol cx, 8
mov word [rsp + 0x5e], cx
mov dword [rsp + 0x5a], eax
jmp 0x1400a2bf5
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
jmp 0x1400a2c8e
cmp eax, 0x1b
jbe 0x1400a2cf1
movzx eax, word [rsp + 0x92]
rol ax, 8
mov ecx, dword [rsp + 0x94]
mov edx, dword [rsp + 0xa8]
movups xmm0, xmmword [rsp + 0x98]
movups xmmword [rsp + 0x80], xmm0
mov word [rsp + 0x58], 1
movups xmm0, xmmword [rsp + 0x7e]
movups xmmword [rsp + 0x5a], xmm0
movzx r8d, word [rsp + 0x8e]
mov word [rsp + 0x6a], r8w
mov dword [rsp + 0x6c], ecx
mov dword [rsp + 0x70], edx
mov word [rsp + 0x74], ax
test bpl, bpl
jne 0x1400a2c9a
movups xmm0, xmmword [rsp + 0x38]
movups xmm1, xmmword [rsp + 0x48]
movaps xmmword [rsp + 0xa0], xmm1
movaps xmmword [rsp + 0x90], xmm0
movups xmm0, xmmword [rbx]
movups xmm1, xmmword [rbx + 0x10]
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xc0], xmm1
mov ecx, 0x40
mov edx, 4
call fcn.140097c8c
mov r14, rax
movaps xmm0, xmmword [rsp + 0x90]
movaps xmm1, xmmword [rsp + 0xa0]
movaps xmm2, xmmword [rsp + 0xb0]
movaps xmm3, xmmword [rsp + 0xc0]
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax + 0x20], xmm2
movups xmmword [rax + 0x30], xmm3
xor ecx, ecx
call fcn.140002c9a
mov qword [rsi], r14
lea rax, [0x1401e6940]
mov qword [rsi + 8], rax
jmp 0x1400a2c9e
lea rax, str.invalid_argumentP
mov qword [rsp + 0x60], rax
mov word [rsp + 0x58], 2
and qword [rsi], 0
mov qword [rsi + 0x10], rdi
mov word [rsi + 0x18], 1
mov eax, dword [rsp + 0x32]
mov dword [rsi + 0x1a], eax
movzx eax, word [rsp + 0x36]
mov word [rsi + 0x1e], ax
lea rcx, [rsp + 0x38]
call fcn.1400a2d0a
mov rcx, rbx
call fcn.1400a2d0a
nop
add rsp, 0x110
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x1402bd0a2]
lea r8, str.library_std_src_sys_common_net.rsassertion_failed:_len___mem::size_of::_c::sockaddr_in___
mov edx, 0x39
call fcn.1401979c0
lea rcx, str.assertion_failed:_len___mem::size_of::_c::sockaddr_in6___
lea r8, str.library_std_src_sys_common_net.rsassertion_failed:_len___mem::size_of::_c::sockaddr_in___
mov edx, 0x3a
call fcn.1401979c0
int3