Function at 0x140058140
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 [0x14026d308]
mov rcx, qword [0x14026d258]
test rcx, rcx
jne 0x140058198
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x140058615
mov rcx, rax
mov qword [0x14026d258], rax
mov r8d, 0x18
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x140058615
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 0x140058629
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 0x140058286
mov eax, dword [rbp + 0x90]
movzx ecx, word [rbp - 0x40]
cmp ecx, 2
je 0x140058299
cmp ecx, 0x17
jne 0x1400582bf
cmp eax, 0x1b
jbe 0x14005866e
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 0x1400582d2
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov r13d, eax
shl r13, 0x20
or r13, 2
jmp 0x1400582c6
cmp eax, 0xf
jbe 0x140058688
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 0x1400582d2
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 0x140058358
mov eax, dword [rbp + 0x48]
movzx ecx, word [rbp - 0x40]
cmp ecx, 2
je 0x140058368
cmp ecx, 0x17
jne 0x14005838d
cmp eax, 0x1b
jbe 0x1400586a2
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 0x14005839f
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
jmp 0x140058394
cmp eax, 0xf
jbe 0x1400586ca
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 0x14005839f
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 0x140058540
cmp ax, 2
je 0x140058540
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 0x140058554
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 [0x14026d308]
mov rcx, qword [0x14026d258]
test rcx, rcx
jne 0x1400584ef
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x140058646
mov rcx, rax
mov qword [0x14026d258], rax
mov r8d, 0x50
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x140058646
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.1400589f0
jmp 0x1400585d0
movups xmm0, xmmword [rbp - 0x60]
movups xmm1, xmmword [rbp - 0x50]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
jmp 0x1400585f7
movzx eax, byte [0x14026d308]
mov rcx, qword [0x14026d258]
test rcx, rcx
jne 0x140058580
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x14005865a
mov rcx, rax
mov qword [0x14026d258], rax
mov r8d, 0x40
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x14005865a
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, [0x1401d75b8]
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.140058a90
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.140194470
jmp 0x1400586f0
lea rcx, str.called__Option::unwrap____on_a__None__value
lea r8, str.C:UsersFokus.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.34.0_srciopoll_evented.rs
mov edx, 0x2b
call fcn.1401949c0
jmp 0x1400586f0
mov ecx, 8
mov edx, 0x50
call fcn.140194470
jmp 0x1400586f0
mov ecx, 4
mov edx, 0x40
call fcn.140194470
jmp 0x1400586f0
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
lea r8, [0x1401f30b8]
mov edx, 0x43
call fcn.1401949c0
jmp 0x1400586f0
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
lea r8, [0x1401f3058]
mov edx, 0x42
call fcn.1401949c0
jmp 0x1400586f0
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, [0x1401f30b8]
mov edx, 0x43
call fcn.1401949c0
jmp 0x1400586f0
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, [0x1401f3058]
mov edx, 0x42
call fcn.1401949c0
ud2