Function at 0x140057a00
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, 0x188
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x100], 0xfffffffffffffffe
mov rdi, rdx
mov rsi, rcx
movzx eax, byte [0x14023c318]
mov rcx, qword [0x14023c280]
test rcx, rcx
jne 0x140057a58
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x140057ed2
mov rcx, rax
mov qword [0x14023c280], rax
mov r8d, 0x18
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x140057ed2
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 0x140057ee6
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 + 0x90], 0x80
lea rdx, [rbp - 0x40]
lea r8, [rbp + 0x90]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x140057b45
mov eax, dword [rbp + 0x90]
movzx ecx, word [rbp - 0x40]
cmp ecx, 2
je 0x140057b58
cmp ecx, 0x17
jne 0x140057b7e
cmp eax, 0x1b
jbe 0x140057f2b
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 + 0xd2], xmm0
movq rax, xmm0
pshufd xmm0, xmm0, 0xee
movq r13, xmm0
shld r13, rax, 0x20
mov r12w, 1
jmp 0x140057b91
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r13d, eax
shl r13, 0x20
or r13, 2
jmp 0x140057b85
cmp eax, 0xf
jbe 0x140057f45
movzx eax, word [rbp - 0x3e]
rol ax, 8
mov ecx, dword [rbp - 0x3c]
mov word [rbp + 0xd4], ax
mov dword [rbp + 0xd0], ecx
xor r12d, r12d
jmp 0x140057b91
lea r13, str.invalid_argument
mov qword [rbp + 0xd6], r13
mov r12w, 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 + 0x48], 0x80
lea rdx, [rbp - 0x40]
lea r8, [rbp + 0x48]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x140057c17
mov eax, dword [rbp + 0x48]
movzx ecx, word [rbp - 0x40]
cmp ecx, 2
je 0x140057c27
cmp ecx, 0x17
jne 0x140057c4c
cmp eax, 0x1b
jbe 0x140057f5f
movdqu xmm0, xmmword [rbp - 0x38]
movzx r8d, word [rbp - 0x3e]
rol r8w, 8
mov edx, dword [rbp - 0x3c]
mov ecx, dword [rbp - 0x28]
movdqu xmmword [rbp + 0x92], xmm0
mov ax, 1
jmp 0x140057c5e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
jmp 0x140057c53
cmp eax, 0xf
jbe 0x140057f87
movzx eax, word [rbp - 0x3e]
rol ax, 8
mov ecx, dword [rbp - 0x3c]
mov word [rbp + 0x94], ax
mov dword [rbp + 0x90], ecx
xor eax, eax
jmp 0x140057c5e
lea rax, str.invalid_argument
mov qword [rbp + 0x96], rax
mov ax, 2
mov word [rbp + 0x48], r12w
movups xmm0, xmmword [rbp + 0xd0]
movups xmmword [rbp + 0x4a], xmm0
movzx r9d, word [rbp + 0xe0]
mov word [rbp + 0x5a], r9w
mov dword [rbp + 0x5c], r15d
mov dword [rbp + 0x60], r14d
mov word [rbp + 0x64], bx
mov word [rbp + 0x68], ax
mov r9d, dword [rbp + 0x90]
mov dword [rbp + 0x6a], r9d
movzx r9d, word [rbp + 0x94]
mov word [rbp + 0x6e], r9w
mov r9, qword [rbp + 0x96]
mov qword [rbp + 0x70], r9
movzx r9d, word [rbp + 0x9e]
mov word [rbp + 0x78], r9w
movzx r9d, word [rbp + 0xa0]
mov word [rbp + 0x7a], r9w
mov dword [rbp + 0x7c], edx
mov dword [rbp + 0x80], ecx
mov word [rbp + 0x84], r8w
cmp r12w, 2
je 0x140057dfe
cmp ax, 2
je 0x140057dfe
lea rax, [rbp + 0x68]
movups xmm0, xmmword [rbp + 0x48]
movups xmm1, xmmword [rbp + 0x58]
movaps xmmword [rbp + 0xa0], xmm1
movaps xmmword [rbp + 0x90], xmm0
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rbp + 0xb0], xmm0
movaps xmmword [rbp + 0xc0], xmm1
movdqu xmm0, xmmword [rbp - 0x60]
movups xmm1, xmmword [rbp - 0x50]
movdqa xmmword [rbp + 0xd0], xmm0
movaps xmmword [rbp + 0xe0], xmm1
mov rax, qword [rbp + 0xd0]
test rax, rax
je 0x140057e12
mov rcx, qword [rbp + 0xd8]
mov qword [rbp], rax
mov qword [rbp + 8], rcx
movdqa xmm0, xmmword [rbp + 0x90]
movaps xmm1, xmmword [rbp + 0xa0]
movaps xmm2, xmmword [rbp + 0xb0]
movaps xmm3, xmmword [rbp + 0xc0]
movdqa xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x30], xmm1
movaps xmmword [rbp - 0x20], xmm2
movaps xmmword [rbp - 0x10], xmm3
movzx eax, byte [0x14023c318]
mov rcx, qword [0x14023c280]
test rcx, rcx
jne 0x140057dae
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x140057f03
mov rcx, rax
mov qword [0x14023c280], rax
mov r8d, 0x50
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x140057f03
movaps xmm0, xmmword [rbp]
movups xmmword [rax + 0x40], xmm0
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 [rbp + 0xd0], rax
lea rax, fcn.1400510b0
jmp 0x140057e8d
movups xmm0, xmmword [rbp - 0x60]
movups xmm1, xmmword [rbp - 0x50]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
jmp 0x140057eb4
movzx eax, byte [0x14023c318]
mov rcx, qword [0x14023c280]
test rcx, rcx
jne 0x140057e3e
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x140057f17
mov rcx, rax
mov qword [0x14023c280], rax
mov r8d, 0x40
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x140057f17
movaps xmm0, xmmword [rbp + 0x90]
movaps xmm1, xmmword [rbp + 0xa0]
movaps xmm2, xmmword [rbp + 0xb0]
movaps xmm3, xmmword [rbp + 0xc0]
movups xmmword [rax + 0x30], xmm3
movups xmmword [rax + 0x20], xmm2
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov qword [rbp + 0xd0], rax
lea rax, [0x1401a4b60]
mov qword [rbp + 0xd8], rax
mov rax, qword [rbp + 0xd0]
mov rcx, qword [rbp + 0xd8]
movaps xmm0, xmmword [rbp + 0xe0]
movups xmmword [rsi + 0x10], xmm0
mov qword [rsi], rax
mov qword [rsi + 8], rcx
lea rcx, [rbp + 0x48]
call fcn.1400581e0
nop
add rsp, 0x188
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.1401846a0
jmp 0x140057fad
lea rcx, str.called__Option::unwrap____on_a__None__value
lea r8, str.C:Users_sola.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.34.0_srciopoll_evented.rs
mov edx, 0x2b
call fcn.140184cf0
jmp 0x140057fad
mov ecx, 8
mov edx, 0x50
call fcn.1401846a0
jmp 0x140057fad
mov ecx, 4
mov edx, 0x40
call fcn.1401846a0
jmp 0x140057fad
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
lea r8, [0x1401c0300]
mov edx, 0x43
call fcn.140184cf0
jmp 0x140057fad
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
lea r8, [0x1401c02a0]
mov edx, 0x42
call fcn.140184cf0
jmp 0x140057fad
mov qword [rbp + 0x88], r13
mov dword [rbp + 0xfc], r12d
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
lea r8, [0x1401c0300]
mov edx, 0x43
call fcn.140184cf0
jmp 0x140057fad
mov qword [rbp + 0x88], r13
mov dword [rbp + 0xfc], r12d
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
lea r8, [0x1401c02a0]
mov edx, 0x42
call fcn.140184cf0
ud2