Function at 0x14008335d
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.1401221e7
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.14012a0a8
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 0x140083437
mov eax, dword [rbp + 0x94]
movzx ecx, word [rbp]
cmp ecx, 0x17
je 0x140083447
cmp ecx, 2
jne 0x1400834a5
cmp eax, 0xf
jbe 0x140083736
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 0x1400834bc
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
jmp 0x1400834ac
cmp eax, 0x1b
jbe 0x14008374e
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 0x1400834bc
lea rax, str.invalid_argument
mov qword [rbp + 0xb8], rax
mov word [rbp + 0xb0], 2
mov rcx, rdi
call fcn.14012a0a8
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 0x14008353c
mov eax, dword [rbp + 0x80]
movzx ecx, word [rbp]
cmp ecx, 0x17
je 0x140083550
cmp ecx, 2
jne 0x14008357f
cmp eax, 0xf
jbe 0x140083766
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 0x14008358a
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov cx, 2
jmp 0x14008358a
cmp eax, 0x1b
jbe 0x14008377e
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 0x14008358a
mov cx, 2
lea rax, str.invalid_argument
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 0x140083684
cmp cx, 2
je 0x140083684
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 0x140083698
mov rax, qword [rbp + 0xb8]
mov qword [rbp + 0xa8], rax
push 0x50
pop rcx
push 8
pop rdx
call fcn.1401221e7
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, [0x140283aa8]
jmp 0x1400836fb
movups xmm0, xmmword [rbp - 0x20]
movups xmm1, xmmword [rbp - 0x10]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
jmp 0x140083722
and qword [rbp + 0xa0], 0
mov byte [rbp + 0xd7], 1
push 0x40
pop rcx
push 4
pop rdx
call fcn.1401221e7
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.1400a6f0c
mov rax, qword [rbp + 0xa8]
mov qword [rbp + 0xb0], rax
lea rax, [0x140283ad0]
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.14008391c
nop
add rsp, 0x160
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x1402a4532]
lea r8, str.library_std_src_sys_common_net.rsassertion_failed:_len___mem::size_of::_c::sockaddr_in___
push 0x39
pop rdx
call fcn.140256d30
jmp 0x140083794
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___
push 0x3a
pop rdx
call fcn.140256d30
jmp 0x140083794
lea rcx, [0x1402a4532]
lea r8, str.library_std_src_sys_common_net.rsassertion_failed:_len___mem::size_of::_c::sockaddr_in___
push 0x39
pop rdx
call fcn.140256d30
jmp 0x140083794
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___
push 0x3a
pop rdx
call fcn.140256d30
ud2