Function at 0x140041da7
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, 0x110
mov r14, rdx
mov rsi, rcx
mov rcx, rdx
call fcn.1400ee513
mov rcx, qword [rax]
pxor xmm0, xmm0
lea rdx, [rsp + 0x90]
movdqa xmmword [rdx + 0x70], xmm0
movdqa xmmword [rdx + 0x60], xmm0
movdqa xmmword [rdx + 0x50], xmm0
movdqa xmmword [rdx + 0x40], xmm0
movdqa xmmword [rdx + 0x30], xmm0
movdqa xmmword [rdx + 0x20], xmm0
movdqa xmmword [rdx + 0x10], xmm0
movdqa xmmword [rdx], xmm0
lea r8, [rsp + 0x50]
mov dword [r8], pe_nt_image_headers64
call sub.ws2_32.dll_getpeername
cmp eax, 0xffffffff
je 0x140041e7a
mov eax, dword [rsp + 0x50]
movzx ecx, word [rsp + 0x90]
cmp ecx, 2
je 0x140041e8b
cmp ecx, 0x17
jne 0x140041eb4
cmp eax, 0x1b
jbe 0x1400420f2
movdqu xmm0, xmmword [rsp + 0x98]
movzx ebp, word [rsp + 0x92]
rol bp, 8
mov r12d, dword [rsp + 0x94]
mov r15d, dword [rsp + 0xa8]
movdqu xmmword [rsp + 0x3a], xmm0
movq rax, xmm0
pshufd xmm0, xmm0, 0xee
movq rbx, xmm0
shld rbx, rax, 0x20
mov di, 1
jmp 0x140041ec4
call sub.ws2_32.dll_WSAGetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
jmp 0x140041ebb
cmp eax, 0xf
jbe 0x14004210a
movzx eax, word [rsp + 0x92]
rol ax, 8
mov ecx, dword [rsp + 0x94]
mov word [rsp + 0x3c], ax
mov dword [rsp + 0x38], ecx
xor edi, edi
jmp 0x140041ec4
lea rbx, str.invalid_argument
mov qword [rsp + 0x3e], rbx
mov di, 2
mov rcx, r14
call fcn.1400ee513
mov rcx, qword [rax]
pxor xmm0, xmm0
lea rdx, [rsp + 0x90]
movdqa xmmword [rdx + 0x70], xmm0
movdqa xmmword [rdx + 0x60], xmm0
movdqa xmmword [rdx + 0x50], xmm0
movdqa xmmword [rdx + 0x40], xmm0
movdqa xmmword [rdx + 0x30], xmm0
movdqa xmmword [rdx + 0x20], xmm0
movdqa xmmword [rdx + 0x10], xmm0
movdqa xmmword [rdx], xmm0
lea r8, [rsp + 0x50]
mov dword [r8], pe_nt_image_headers64
call sub.ws2_32.dll_getsockname
cmp eax, 0xffffffff
je 0x140041f67
mov eax, dword [rsp + 0x50]
movzx ecx, word [rsp + 0x90]
cmp ecx, 2
je 0x140041f76
cmp ecx, 0x17
jne 0x140041f9f
cmp eax, 0x1b
jbe 0x140042122
movdqu xmm0, xmmword [rsp + 0x98]
movzx ecx, word [rsp + 0x92]
rol cx, 8
mov r8d, dword [rsp + 0x94]
mov edx, dword [rsp + 0xa8]
movdqu xmmword [rsp + 0x22], xmm0
mov ax, 1
jmp 0x140041faf
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
jmp 0x140041fa6
cmp eax, 0xf
jbe 0x140042137
movzx eax, word [rsp + 0x92]
rol ax, 8
mov ecx, dword [rsp + 0x94]
mov word [rsp + 0x24], ax
mov dword [rsp + 0x20], ecx
xor eax, eax
jmp 0x140041faf
lea rax, str.invalid_argument
mov qword [rsp + 0x26], rax
mov ax, 2
mov word [rsp + 0x50], di
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rsp + 0x52], xmm0
movzx r9d, word [rsp + 0x48]
mov word [rsp + 0x62], r9w
mov dword [rsp + 0x64], r12d
mov dword [rsp + 0x68], r15d
mov word [rsp + 0x6c], bp
mov word [rsp + 0x70], ax
mov r9d, dword [rsp + 0x20]
mov dword [rsp + 0x72], r9d
movzx r9d, word [rsp + 0x24]
mov word [rsp + 0x76], r9w
mov r9, qword [rsp + 0x26]
mov qword [rsp + 0x78], r9
movzx r9d, word [rsp + 0x2e]
mov word [rsp + 0x80], r9w
movzx r9d, word [rsp + 0x30]
mov word [rsp + 0x82], r9w
mov dword [rsp + 0x84], r8d
mov dword [rsp + 0x88], edx
mov word [rsp + 0x8c], cx
cmp di, 2
je 0x1400420cb
cmp ax, 2
je 0x1400420cb
lea rax, [rsp + 0x70]
movups xmm0, xmmword [rax - 0x20]
movups xmm1, xmmword [rax - 0x10]
movaps xmmword [rsp + 0xa0], xmm1
movaps xmmword [rsp + 0x90], xmm0
movdqu xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movdqa xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xc0], xmm1
mov ecx, 0x40
mov edx, 4
call fcn.1400416c3
movaps xmm0, xmmword [rsp + 0x90]
movaps xmm1, xmmword [rsp + 0xa0]
movaps xmm2, xmmword [rsp + 0xb0]
movaps xmm3, xmmword [rsp + 0xc0]
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, [0x1401a8718]
mov qword [rsi + 8], rax
jmp 0x1400420cf
and qword [rsi], 0
mov word [rsi + 0x10], 1
lea rcx, [rsp + 0x50]
call fcn.14004218a
nop
add rsp, 0x110
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
lea r8, [0x1401c67b0]
mov edx, 0x43
call fcn.14000c520
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
lea r8, [0x1401c6750]
mov edx, 0x42
call fcn.14000c520
lea r8, [0x1401c67b0]
mov edx, 0x43
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
jmp 0x14004214a
lea r8, [0x1401c6750]
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.14000c520
ud2