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

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x160
mov rdi, rdx
mov rsi, rcx
movzx eax, byte [0x1402e91f8]
mov ecx, 0x18
mov edx, 8
call fcn.1400203c0
test rax, rax
je 0x1400666b1
mov qword [rax], 1
mov qword [rax + 8], 1
mov byte [rax + 0x10], 0
mov word [rsp + 0x158], 1
mov qword [rsp + 0x140], 0
mov qword [rsp + 0x150], rax
mov rbx, qword [rdi + 0x10]
cmp rbx, 0xffffffffffffffff
je 0x1400666c5
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x130], xmm0
movdqa xmmword [rsp + 0x120], xmm0
movdqa xmmword [rsp + 0x110], xmm0
movdqa xmmword [rsp + 0x100], xmm0
movdqa xmmword [rsp + 0xf0], xmm0
movdqa xmmword [rsp + 0xe0], xmm0
movdqa xmmword [rsp + 0xd0], xmm0
movdqa xmmword [rsp + 0xc0], xmm0
mov dword [rsp + 0x40], pe_nt_image_headers64
lea rdx, [rsp + 0xc0]
lea r8, [rsp + 0x40]
mov rcx, rbx
call sub.ws2_32.dll_getpeername
cmp eax, 0xffffffff
je 0x1400662eb
mov eax, dword [rsp + 0x40]
movzx ecx, word [rsp + 0xc0]
cmp ecx, 2
je 0x1400662fd
cmp ecx, 0x17
jne 0x140066326
cmp eax, 0x1c
jb 0x1400666f0
movdqu xmm0, xmmword [rsp + 0xc8]
movzx ebp, word [rsp + 0xc2]
rol bp, 8
mov r12d, dword [rsp + 0xc4]
mov r15d, dword [rsp + 0xd8]
movdqu xmmword [rsp + 0x22], xmm0
movq rax, xmm0
pshufd xmm0, xmm0, 0xee
movq r14, xmm0
shld r14, rax, 0x20
mov di, 1
jmp 0x140066336
call sub.ws2_32.dll_WSAGetLastError
mov r14d, eax
shl r14, 0x20
or r14, 2
jmp 0x14006632d
cmp eax, 0x10
jb 0x140066705
movzx eax, word [rsp + 0xc2]
rol ax, 8
mov ecx, dword [rsp + 0xc4]
mov word [rsp + 0x24], ax
mov dword [rsp + 0x20], ecx
xor edi, edi
jmp 0x140066336
lea r14, str.invalid_argument
mov qword [rsp + 0x26], r14
mov di, 2
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x130], xmm0
movdqa xmmword [rsp + 0x120], xmm0
movdqa xmmword [rsp + 0x110], xmm0
movdqa xmmword [rsp + 0x100], xmm0
movdqa xmmword [rsp + 0xf0], xmm0
movdqa xmmword [rsp + 0xe0], xmm0
movdqa xmmword [rsp + 0xd0], xmm0
movdqa xmmword [rsp + 0xc0], xmm0
mov dword [rsp + pe_nt_image_headers64], 0x80
lea rdx, [rsp + 0xc0]
lea r8, [rsp + 0x80]
mov rcx, rbx
call sub.ws2_32.dll_getsockname
cmp eax, 0xffffffff
je 0x1400663fd
mov eax, dword [rsp + 0x80]
movzx ecx, word [rsp + 0xc0]
cmp ecx, 2
je 0x14006640c
cmp ecx, 0x17
jne 0x140066435
cmp eax, 0x1c
jb 0x14006671a
movdqu xmm0, xmmword [rsp + 0xc8]
movzx r8d, word [rsp + 0xc2]
rol r8w, 8
mov edx, dword [rsp + 0xc4]
mov ecx, dword [rsp + 0xd8]
movdqu xmmword [rsp + 0x42], xmm0
mov ax, 1
jmp 0x140066445
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
jmp 0x14006643c
cmp eax, 0x10
jb 0x14006672f
movzx eax, word [rsp + 0xc2]
rol ax, 8
mov ecx, dword [rsp + 0xc4]
mov word [rsp + 0x44], ax
mov dword [rsp + 0x40], ecx
xor eax, eax
jmp 0x140066445
lea rax, str.invalid_argument
mov qword [rsp + 0x46], rax
mov ax, 2
mov word [rsp + 0x80], di
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsp + 0x82], xmm0
movzx r9d, word [rsp + 0x30]
mov word [rsp + 0x92], r9w
mov dword [rsp + 0x94], r12d
mov dword [rsp + 0x98], r15d
mov word [rsp + 0x9c], bp
mov word [rsp + 0xa0], ax
mov r9d, dword [rsp + 0x40]
mov dword [rsp + 0xa2], r9d
movzx r9d, word [rsp + 0x44]
mov word [rsp + 0xa6], r9w
mov r9, qword [rsp + 0x46]
mov qword [rsp + 0xa8], r9
movzx r9d, word [rsp + 0x4e]
mov word [rsp + 0xb0], r9w
movzx r9d, word [rsp + 0x50]
mov word [rsp + 0xb2], r9w
mov dword [rsp + 0xb4], edx
mov dword [rsp + 0xb8], ecx
mov word [rsp + 0xbc], r8w
cmp di, 2
je 0x14006660b
cmp ax, 2
je 0x14006660b
lea rax, [rsp + 0xa0]
movups xmm0, xmmword [rsp + 0x80]
movups xmm1, xmmword [rsp + 0x90]
movaps xmmword [rsp + 0x50], xmm1
movaps xmmword [rsp + 0x40], xmm0
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x70], xmm1
movdqu xmm0, xmmword [rsp + 0x140]
movups xmm1, xmmword [rsp + 0x150]
movdqa xmmword [rsp + 0x20], xmm0
movaps xmmword [rsp + 0x30], xmm1
mov rax, qword [rsp + 0x20]
test rax, rax
je 0x140066624
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x100], rax
mov qword [rsp + 0x108], rcx
movdqa xmm0, xmmword [rsp + 0x40]
movaps xmm1, xmmword [rsp + 0x50]
movaps xmm2, xmmword [rsp + 0x60]
movaps xmm3, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0xc0], xmm0
movaps xmmword [rsp + 0xd0], xmm1
movaps xmmword [rsp + 0xe0], xmm2
movaps xmmword [rsp + 0xf0], xmm3
movzx eax, byte [0x1402e91f8]
mov ecx, 0x50
mov edx, 8
call fcn.1400203c0
test rax, rax
je 0x1400666df
movaps xmm0, xmmword [rsp + 0x100]
movups xmmword [rax + 0x40], xmm0
movaps xmm0, xmmword [rsp + 0xc0]
movaps xmm1, xmmword [rsp + 0xd0]
movaps xmm2, xmmword [rsp + 0xe0]
movaps xmm3, xmmword [rsp + 0xf0]
movups xmmword [rax + 0x30], xmm3
movups xmmword [rax + 0x20], xmm2
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov qword [rsp + 0x20], rax
lea rax, fcn.140066900
jmp 0x140066672
movups xmm0, xmmword [rsp + 0x140]
movups xmm1, xmmword [rsp + 0x150]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
jmp 0x140066691
movzx eax, byte [0x1402e91f8]
mov ecx, 0x40
mov edx, 4
call fcn.1400203c0
test rax, rax
je 0x140066749
movaps xmm0, xmmword [rsp + 0x40]
movaps xmm1, xmmword [rsp + 0x50]
movaps xmm2, xmmword [rsp + 0x60]
movaps xmm3, xmmword [rsp + 0x70]
movups xmmword [rax + 0x30], xmm3
movups xmmword [rax + 0x20], xmm2
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov qword [rsp + 0x20], rax
lea rax, [0x14021c0b0]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
movaps xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi + 0x10], xmm0
mov qword [rsi], rax
mov qword [rsi + 8], rcx
lea rcx, [rsp + 0x80]
call fcn.140066960
nop
add rsp, 0x160
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov ecx, 8
mov edx, 0x18
call fcn.1400206c0
jmp 0x140066758
lea r8, [0x140252458]
mov edx, 0x2b
lea rcx, str.called__Option::unwrap____on_a__None__value_Users_boob_.cargo_registry_src_mirrors.ustc.edu.cn_61ef6e0cd06fb9b8_untrusted_0.7.1_src_untrusted.rss
call fcn.140025cf0
jmp 0x140066758
mov ecx, 8
mov edx, 0x50
call fcn.1400206c0
jmp 0x140066758
lea r8, [0x140250fe8]
mov edx, 0x43
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
jmp 0x1400666d8
lea r8, [0x140250f88]
mov edx, 0x42
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
jmp 0x1400666d8
lea r8, [0x140250fe8]
mov edx, 0x43
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
jmp 0x140066742
lea r8, [0x140250f88]
mov edx, 0x42
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
call fcn.140025cf0
jmp 0x140066758
mov ecx, 4
mov edx, 0x40
call fcn.1400206c0
ud2