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

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x148
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xc0], 0xfffffffffffffffe
mov rdi, rdx
mov rsi, rcx
movzx eax, byte [0x140262330]
mov edx, 0x18
xor ecx, ecx
call fcn.140162ad0
test rax, rax
je 0x14005c561
mov r12, rax
mov qword [rax], 1
mov qword [rax + 8], 1
mov byte [rax + 0x10], 0
mov word [rbp - 0x48], 1
mov qword [rbp - 0x60], 0
mov qword [rbp - 0x50], rax
mov rdi, qword [rdi + 0x18]
cmp rdi, 0xffffffffffffffff
je 0x14005c570
pxor xmm0, xmm0
movdqa xmmword [rbp + 0x30], xmm0
movdqa xmmword [rbp + 0x20], xmm0
movdqa xmmword [rbp + 0x10], xmm0
movdqa xmmword [rbp], xmm0
movdqa xmmword [rbp - 0x10], xmm0
movdqa xmmword [rbp - 0x20], xmm0
movdqa xmmword [rbp - 0x30], xmm0
movdqa xmmword [rbp - 0x40], xmm0
mov dword [rbp + 0x60], 0x80
lea rdx, [rbp - 0x40]
lea r8, [rbp + 0x60]
mov rcx, rdi
call qword [sym.imp.ws2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x14005c2cd
mov eax, dword [rbp + 0x60]
movzx ecx, word [rbp - 0x40]
cmp ecx, 2
je 0x14005c2dd
cmp ecx, 0x17
jne 0x14005c2fd
cmp eax, 0x1b
jbe 0x14005c599
movdqu xmm0, xmmword [rbp - 0x38]
movzx ebx, word [rbp - 0x3e]
rol bx, 8
mov r15d, dword [rbp - 0x3c]
mov r14d, dword [rbp - 0x28]
movdqu xmmword [rbp + 0x4a], xmm0
movq rax, xmm0
pshufd xmm0, xmm0, 0xee
movq rcx, xmm0
shld rcx, rax, 0x20
mov qword [rbp + 0xb8], rcx
mov r13w, 1
jmp 0x14005c314
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
jmp 0x14005c304
cmp eax, 0xf
jbe 0x14005c5b3
movzx eax, word [rbp - 0x3e]
rol ax, 8
mov ecx, dword [rbp - 0x3c]
mov word [rbp + 0x4c], ax
mov dword [rbp + 0x48], ecx
xor r13d, r13d
jmp 0x14005c314
lea rax, str.invalid_argument
mov qword [rbp + 0xb8], rax
mov qword [rbp + 0x4e], rax
mov r13w, 2
pxor xmm0, xmm0
movdqa xmmword [rbp + 0x30], xmm0
movdqa xmmword [rbp + 0x20], xmm0
movdqa xmmword [rbp + 0x10], xmm0
movdqa xmmword [rbp], xmm0
movdqa xmmword [rbp - 0x10], xmm0
movdqa xmmword [rbp - 0x20], xmm0
movdqa xmmword [rbp - 0x30], xmm0
movdqa xmmword [rbp - 0x40], xmm0
mov dword [rbp + 0x60], 0x80
lea rdx, [rbp - 0x40]
lea r8, [rbp + 0x60]
mov rcx, rdi
call qword [sym.imp.ws2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x14005c399
mov eax, dword [rbp + 0x60]
movzx ecx, word [rbp - 0x40]
cmp ecx, 2
je 0x14005c3a9
cmp ecx, 0x17
jne 0x14005c3cf
cmp eax, 0x1b
jbe 0x14005c5cd
movdqu xmm0, xmmword [rbp - 0x38]
movzx eax, word [rbp - 0x3e]
rol ax, 8
mov edx, dword [rbp - 0x3c]
mov ecx, dword [rbp - 0x28]
movdqu xmmword [rbp + 0xa2], xmm0
mov r9w, 1
jmp 0x14005c3e2
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
jmp 0x14005c3d6
cmp eax, 0xf
jbe 0x14005c5ee
movzx eax, word [rbp - 0x3e]
rol ax, 8
mov ecx, dword [rbp - 0x3c]
mov word [rbp + 0xa4], ax
mov dword [rbp + 0xa0], ecx
xor r9d, r9d
jmp 0x14005c3e2
lea rax, str.invalid_argument
mov qword [rbp + 0xa6], rax
mov r9w, 2
mov word [rbp + 0x60], r13w
movups xmm0, xmmword [rbp + 0x48]
movups xmmword [rbp + 0x62], xmm0
movzx r8d, word [rbp + 0x58]
mov word [rbp + 0x72], r8w
mov dword [rbp + 0x74], r15d
mov dword [rbp + 0x78], r14d
mov word [rbp + 0x7c], bx
mov word [rbp + 0x80], r9w
mov r8d, dword [rbp + 0xa0]
mov dword [rbp + 0x82], r8d
movzx r8d, word [rbp + 0xa4]
mov word [rbp + 0x86], r8w
mov r8, qword [rbp + 0xa6]
mov qword [rbp + 0x88], r8
movzx r8d, word [rbp + 0xae]
mov word [rbp + 0x90], r8w
movzx r8d, word [rbp + 0xb0]
mov word [rbp + 0x92], r8w
mov dword [rbp + 0x94], edx
mov dword [rbp + 0x98], ecx
mov word [rbp + 0x9c], ax
cmp r13w, 2
je 0x14005c4fd
cmp r9w, 2
je 0x14005c4fd
lea rax, [rbp + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rbp - 0x10], xmm1
movaps xmmword [rbp - 0x20], xmm0
movdqu xmm0, xmmword [rbp + 0x60]
movups xmm1, xmmword [rbp + 0x70]
movdqa xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x30], xmm1
movzx eax, byte [0x140262330]
mov edx, 0x40
xor ecx, ecx
call fcn.140162ad0
test rax, rax
je 0x14005c581
movaps xmm0, xmmword [rbp - 0x40]
movaps xmm1, xmmword [rbp - 0x30]
movaps xmm2, xmmword [rbp - 0x20]
movaps xmm3, xmmword [rbp - 0x10]
movups xmmword [rax + 0x30], xmm3
movups xmmword [rax + 0x20], xmm2
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov qword [rsi], rax
lea rax, [0x1401bf0d8]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], r12
mov rax, qword [rbp - 0x48]
mov qword [rsi + 0x18], rax
jmp 0x14005c54c
mov dword [rbp + 0xb8], r9d
movups xmm0, xmmword [rbp - 0x60]
movups xmm1, xmmword [rbp - 0x50]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
cmp r13w, 2
jne 0x14005c523
mov rcx, qword [rbp + 0x68]
call fcn.1400893f0
cmp word [rbp + 0xb8], 2
jne 0x14005c54c
mov rcx, qword [rbp + 0x88]
add rsp, 0x148
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp fcn.1400893f0
nop
add rsp, 0x148
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov ecx, 8
mov edx, 0x18
call fcn.140197e40
lea rcx, [0x1401e2848]
call fcn.1401987a0
jmp 0x14005c60d
mov qword [rbp + 0xb8], r12
mov ecx, 4
mov edx, 0x40
call fcn.140197e40
jmp 0x14005c60d
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
lea r8, [0x1401df8f8]
mov edx, 0x43
call fcn.140198330
jmp 0x14005c60d
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
lea r8, [0x1401df898]
mov edx, 0x42
call fcn.140198330
jmp 0x14005c60d
mov dword [rbp + 0xb4], r13d
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
lea r8, [0x1401df8f8]
mov edx, 0x43
call fcn.140198330
jmp 0x14005c60d
mov dword [rbp + 0xb4], r13d
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
lea r8, [0x1401df898]
mov edx, 0x42
call fcn.140198330
ud2