Function at 0x14002a225
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xe8
mov r14, rdx
mov rsi, rcx
mov ecx, 0x18
mov edx, 8
call fcn.14002685c
mov rdi, rax
mov eax, 1
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov byte [rdi + 0x10], 0
mov rcx, r14
call fcn.14009a434
mov rcx, qword [rax]
pxor xmm0, xmm0
lea rdx, [rsp + 0x60]
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 + 0x20]
mov dword [r8], 0x80
call sub.ws2_32.dll_getpeername
cmp eax, 0xffffffff
je 0x14002a30e
mov eax, dword [rsp + 0x20]
movzx ecx, word [rsp + 0x60]
cmp ecx, 2
je 0x14002a320
cmp ecx, 0x17
jne 0x14002a343
cmp eax, 0x1c
jb 0x14002a522
movdqu xmm0, xmmword [rsp + 0x68]
movzx r12d, word [rsp + 0x62]
rol r12w, 8
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x40], eax
movdqu xmmword [rsp + 0x4a], xmm0
movq rax, xmm0
pshufd xmm0, xmm0, 0xee
movq rbx, xmm0
shld rbx, rax, 0x20
mov bp, 1
jmp 0x14002a353
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
jmp 0x14002a34a
cmp eax, 0x10
jb 0x14002a537
movzx eax, word [rsp + 0x62]
rol ax, 8
mov ecx, dword [rsp + 0x64]
mov word [rsp + 0x4c], ax
mov dword [rsp + 0x48], ecx
xor ebp, ebp
jmp 0x14002a353
lea rbx, str.invalid_argument
mov qword [rsp + 0x4e], rbx
mov bp, 2
mov rcx, r14
call fcn.14009a434
mov rcx, qword [rax]
pxor xmm0, xmm0
lea rdx, [rsp + 0x60]
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 + 0x44]
mov dword [r8], 0x80
call sub.ws2_32.dll_getsockname
cmp eax, 0xffffffff
je 0x14002a406
mov eax, dword [rsp + 0x44]
movzx ecx, word [rsp + 0x60]
cmp ecx, 2
je 0x14002a41c
cmp ecx, 0x17
jne 0x14002a4d9
cmp eax, 0x1c
jb 0x14002a522
movdqu xmm0, xmmword [rsp + 0x68]
movzx r13d, word [rsp + 0x62]
rol r13w, 8
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x34], eax
movdqu xmmword [rsp + 0x22], xmm0
movq rax, xmm0
pshufd xmm0, xmm0, 0xee
movq r14, xmm0
shld r14, rax, 0x20
mov r15w, 1
jmp 0x14002a43e
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov r14d, eax
shl r14, 0x20
or r14, 2
jmp 0x14002a4e0
cmp eax, 0x10
jb 0x14002a537
movzx eax, word [rsp + 0x62]
rol ax, 8
mov ecx, dword [rsp + 0x64]
mov word [rsp + 0x24], ax
mov dword [rsp + 0x20], ecx
xor r15d, r15d
cmp bp, 2
je 0x14002a4ea
mov ecx, 0x40
mov edx, 4
call fcn.14002685c
mov ecx, r12d
mov r12, rax
mov word [rax], bp
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rax + 2], xmm0
movzx eax, word [rsp + 0x58]
mov word [r12 + 0x12], ax
mov eax, dword [rsp + 0x3c]
mov dword [r12 + 0x14], eax
mov eax, dword [rsp + 0x40]
mov dword [r12 + 0x18], eax
mov word [r12 + 0x1c], cx
mov word [r12 + 0x20], r15w
movdqu xmm0, xmmword [rsp + 0x20]
movdqu xmmword [r12 + 0x22], xmm0
movzx eax, word [rsp + 0x30]
mov word [r12 + 0x32], ax
mov eax, dword [rsp + 0x38]
mov dword [r12 + 0x34], eax
mov eax, dword [rsp + 0x34]
mov dword [r12 + 0x38], eax
mov word [r12 + 0x3c], r13w
xor ecx, ecx
call fcn.14009b508
mov qword [rsi], r12
lea rax, [0x1400c5260]
mov qword [rsi + 8], rax
jmp 0x14002a4ee
lea r14, str.invalid_argument
mov qword [rsp + 0x26], r14
mov r15w, 2
and qword [rsi], 0
mov qword [rsi + 0x10], rdi
mov word [rsi + 0x18], 1
mov ecx, ebp
mov rdx, rbx
call fcn.14002a551
mov ecx, r15d
mov rdx, r14
call fcn.14002a551
nop
add rsp, 0xe8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
lea r8, [0x1400e1088]
mov edx, 0x43
jmp 0x14002a54a
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
lea r8, [0x1400e1028]
mov edx, 0x42
call fcn.1400a8230
ud2