Function at 0x140052c60
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 [0x14023c308]
mov rcx, qword [0x14023c258]
test rcx, rcx
jne 0x140052cb8
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x140053135
mov rcx, rax
mov qword [0x14023c258], rax
mov r8d, 0x18
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x140053135
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 0x140053149
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 0x140052da6
mov eax, dword [rbp + 0x90]
movzx ecx, word [rbp - 0x40]
cmp ecx, 2
je 0x140052db9
cmp ecx, 0x17
jne 0x140052ddf
cmp eax, 0x1b
jbe 0x14005318e
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 0x140052df2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r13d, eax
shl r13, 0x20
or r13, 2
jmp 0x140052de6
cmp eax, 0xf
jbe 0x1400531a8
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 0x140052df2
lea r13, str.invalid_argumentP9
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 0x140052e78
mov eax, dword [rbp + 0x48]
movzx ecx, word [rbp - 0x40]
cmp ecx, 2
je 0x140052e88
cmp ecx, 0x17
jne 0x140052ead
cmp eax, 0x1b
jbe 0x1400531c2
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 0x140052ebf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
jmp 0x140052eb4
cmp eax, 0xf
jbe 0x1400531ea
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 0x140052ebf
lea rax, str.invalid_argumentP9
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 0x140053060
cmp ax, 2
je 0x140053060
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 0x140053074
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 [0x14023c308]
mov rcx, qword [0x14023c258]
test rcx, rcx
jne 0x14005300f
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x140053166
mov rcx, rax
mov qword [0x14023c258], rax
mov r8d, 0x50
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x140053166
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.140053510
jmp 0x1400530f0
movups xmm0, xmmword [rbp - 0x60]
movups xmm1, xmmword [rbp - 0x50]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
jmp 0x140053117
movzx eax, byte [0x14023c308]
mov rcx, qword [0x14023c258]
test rcx, rcx
jne 0x1400530a0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x14005317a
mov rcx, rax
mov qword [0x14023c258], rax
mov r8d, 0x40
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x14005317a
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, [0x1401a8208]
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.1400535b0
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.140186620
jmp 0x140053210
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.140186b70
jmp 0x140053210
mov ecx, 8
mov edx, 0x50
call fcn.140186620
jmp 0x140053210
mov ecx, 4
mov edx, 0x40
call fcn.140186620
jmp 0x140053210
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
lea r8, [0x1401c3938]
mov edx, 0x43
call fcn.140186b70
jmp 0x140053210
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
lea r8, [0x1401c38d8]
mov edx, 0x42
call fcn.140186b70
jmp 0x140053210
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, [0x1401c3938]
mov edx, 0x43
call fcn.140186b70
jmp 0x140053210
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, [0x1401c38d8]
mov edx, 0x42
call fcn.140186b70
ud2