Function at 0x140047f70
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 [0x1402b3399]
mov rcx, qword [0x1402b32e8]
test rcx, rcx
jne 0x140047fc8
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x140048381
mov rcx, rax
mov qword [0x1402b32e8], rax
mov r8d, 0x18
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x140048381
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 0x140048390
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 0x1400480b4
mov eax, dword [rbp + 0x60]
movzx ecx, word [rbp - 0x40]
cmp ecx, 2
je 0x1400480c4
cmp ecx, 0x17
jne 0x1400480e4
cmp eax, 0x1b
jbe 0x1400483c5
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 0x1400480fb
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
jmp 0x1400480eb
cmp eax, 0xf
jbe 0x1400483df
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 0x1400480fb
lea rax, str.invalid_argument0
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 0x140048180
mov eax, dword [rbp + 0x60]
movzx ecx, word [rbp - 0x40]
cmp ecx, 2
je 0x140048190
cmp ecx, 0x17
jne 0x1400481b6
cmp eax, 0x1b
jbe 0x1400483f9
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 0x1400481c9
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
jmp 0x1400481bd
cmp eax, 0xf
jbe 0x14004841a
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 0x1400481c9
lea rax, str.invalid_argument0
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 0x14004831d
cmp r9w, 2
je 0x14004831d
lea rax, [rbp + 0x80]
movups xmm0, xmmword [rbp + 0x60]
movups xmm1, xmmword [rbp + 0x70]
movaps xmmword [rbp - 0x30], xmm1
movaps xmmword [rbp - 0x40], xmm0
movdqu xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movdqa xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x10], xmm1
mov rax, qword [rbp - 0x48]
mov qword [rbp + 0xa0], rax
movzx eax, byte [0x1402b3399]
mov rcx, qword [0x1402b32e8]
test rcx, rcx
jne 0x1400482c8
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x1400483ad
mov rcx, rax
mov qword [0x1402b32e8], rax
mov r8d, 0x40
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x1400483ad
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, [0x14020b778]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], r12
mov rax, qword [rbp + 0xa0]
mov qword [rsi + 0x18], rax
jmp 0x14004836c
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 0x140048343
mov rcx, qword [rbp + 0x68]
call fcn.14004da10
cmp word [rbp + 0xb8], 2
jne 0x14004836c
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.14004da10
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.1401e5b40
lea rcx, str.called__Option::unwrap____on_a__None__valueC:UsersEnder.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.36.0_src_syncmpsclist.rs
lea r8, str.C:UsersEnder.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.36.0_srciopoll_evented.rs
mov edx, 0x2b
call fcn.1401e6090
jmp 0x140048439
mov qword [rbp + 0xb8], r12
mov ecx, 4
mov edx, 0x40
call fcn.1401e5b40
jmp 0x140048439
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
lea r8, [0x140228718]
mov edx, 0x43
call fcn.1401e6090
jmp 0x140048439
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
lea r8, [0x1402286b8]
mov edx, 0x42
call fcn.1401e6090
jmp 0x140048439
mov dword [rbp + 0xb4], r13d
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
lea r8, [0x140228718]
mov edx, 0x43
call fcn.1401e6090
jmp 0x140048439
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, [0x1402286b8]
mov edx, 0x42
call fcn.1401e6090
ud2