Function at 0x1400d6d20
Capabilities:
List tcp connections and listeners
List udp connections and listeners

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x98
cmp dword [rsp + 0xa8], 0
je 0x1400d6e62
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea rdx, [rsp + 0x30]
xor ecx, ecx
call sub.IPHLPAPI.DLL_GetExtendedTcpTable
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x7a
je 0x1400d6d84
xor eax, eax
jmp 0x1400d6f87
mov ecx, dword [rsp + 0x30]
call fcn.1400aa220
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
call sub.IPHLPAPI.DLL_GetExtendedTcpTable
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x1400d6dd6
mov rcx, qword [rsp + 0x38]
call fcn.1400a8720
xor eax, eax
jmp 0x1400d6f87
mov dword [rsp + 0x44], 0
jmp 0x1400d6deb
mov eax, dword [rsp + 0x44]
add eax, 1
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax]
cmp dword [rsp + 0x44], eax
jae 0x1400d6e53
mov ecx, dword [rsp + 0x44]
imul rcx, rcx, 0x18
mov rax, qword [rsp + 0x38]
lea rax, [rax + rcx + 4]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
movzx ecx, word [rax + 8]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0xa0]
cmp dword [rsp + 0x48], eax
jne 0x1400d6e51
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x14]
mov dword [rsp + 0x58], eax
mov rcx, qword [rsp + 0x38]
call fcn.1400a8720
mov eax, dword [rsp + 0x58]
jmp 0x1400d6f87
jmp 0x1400d6de0
mov rcx, qword [rsp + 0x38]
call fcn.1400a8720
jmp 0x1400d6f85
mov dword [rsp + 0x5c], 0
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
mov r9d, 2
xor r8d, r8d
lea rdx, [rsp + 0x5c]
xor ecx, ecx
call sub.IPHLPAPI.DLL_GetExtendedUdpTable
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0x7a
je 0x1400d6ea9
xor eax, eax
jmp 0x1400d6f87
mov ecx, dword [rsp + 0x5c]
call fcn.1400aa220
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
mov r9d, 2
xor r8d, r8d
lea rdx, [rsp + 0x5c]
mov rcx, qword [rsp + 0x68]
call sub.IPHLPAPI.DLL_GetExtendedUdpTable
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x1400d6efb
mov rcx, qword [rsp + 0x68]
call fcn.1400a8720
xor eax, eax
jmp 0x1400d6f87
mov dword [rsp + 0x70], 0
jmp 0x1400d6f10
mov eax, dword [rsp + 0x70]
add eax, 1
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x68]
mov eax, dword [rax]
cmp dword [rsp + 0x70], eax
jae 0x1400d6f7b
mov ecx, dword [rsp + 0x70]
imul rcx, rcx, 0xc
mov rax, qword [rsp + 0x68]
lea rax, [rax + rcx + 4]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
movzx ecx, word [rax + 4]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0xa0]
cmp dword [rsp + 0x74], eax
jne 0x1400d6f79
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 8]
mov dword [rsp + 0x80], eax
mov rcx, qword [rsp + 0x68]
call fcn.1400a8720
mov eax, dword [rsp + 0x80]
jmp 0x1400d6f87
jmp 0x1400d6f05
mov rcx, qword [rsp + 0x68]
call fcn.1400a8720
xor eax, eax
add rsp, 0x98
ret