Function at 0x4ae060
Capabilities:
List tcp connections and listeners

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x595077
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x5fae30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x130], esi
mov dword [ebp - 0x140], edi
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
push esi
push esi
lea eax, [ebp - 0x154]
mov ebx, 1
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x130], ebx
call fcn.00404ef3
mov ecx, dword [ebp - 0x150]
sub ecx, dword [ebp - 0x154]
mov eax, 0x4ec4ec4f
imul ecx
mov dword [ebp - 0x138], esi
sar edx, 5
mov esi, edx
shr esi, 0x1f
add esi, edx
mov dword [ebp - 4], ebx
je 0x4ae4a2
mov eax, dword [ebp - 0x154]
add eax, 0x10
mov dword [ebp - 0x134], eax
jmp 0x4ae106
mov eax, dword [ebp - 0x134]
mov edi, dword [eax]
mov ecx, edi
cmp ecx, edi
jae 0x4ae10e
mov ecx, edi
cmp edi, 9
jb 0x4ae11a
mov ecx, 9
cmp dword [eax + 4], 0x10
jb 0x4ae125
mov eax, dword [eax - 0x10]
jmp 0x4ae128
add eax, 0xfffffff0
push ecx
push 0x5b7a38
push eax
call fcn.0040392c
add esp, 0xc
test eax, eax
jne 0x4ae14f
cmp edi, 9
jae 0x4ae145
or eax, 0xffffffff
jmp 0x4ae14d
xor eax, eax
cmp edi, 9
setne al
test eax, eax
sete al
test al, al
jne 0x4ae173
mov eax, dword [ebp - 0x138]
add dword [ebp - 0x134], 0x68
inc eax
mov dword [ebp - 0x138], eax
cmp eax, esi
jb 0x4ae100
jmp 0x4ae49c
push 0
push 3
push 2
push 0
lea ecx, [ebp - 0x138]
push ecx
push 0
mov dword [ebp - 0x138], 0
call sub.IPHLPAPI.DLL_GetExtendedTcpTable
cmp eax, 0x7a
jne 0x4ae49c
mov eax, dword [ebp - 0x138]
test eax, eax
je 0x4ae49c
cmp eax, 0xf4240
jae 0x4ae49c
push eax
call fcn.0053e9b3
add esp, 4
push 0
push 3
push 2
push 0
lea edx, [ebp - 0x138]
mov edi, eax
push edx
push edi
mov dword [ebp - 0x134], edi
call sub.IPHLPAPI.DLL_GetExtendedTcpTable
test eax, eax
jne 0x4ae493
push 0x5b7a44
call dword [sym.imp.WS2_32.dll_inet_addr]
mov edi, dword [ebp - 0x154]
add edi, 0x10
mov dword [ebp - 0x13c], edi
mov dword [ebp - 0x144], esi
mov esi, dword [edi]
mov eax, esi
cmp eax, esi
jae 0x4ae20b
mov ecx, esi
cmp esi, 9
jb 0x4ae217
mov ecx, 9
cmp dword [edi + 4], 0x10
jb 0x4ae222
mov eax, dword [edi - 0x10]
jmp 0x4ae225
lea eax, [edi - 0x10]
push ecx
push 0x5b7a50
push eax
call fcn.0040392c
add esp, 0xc
test eax, eax
jne 0x4ae24c
cmp esi, 9
jae 0x4ae242
or eax, 0xffffffff
jmp 0x4ae24a
xor eax, eax
cmp esi, 9
setne al
test eax, eax
sete al
test al, al
je 0x4ae478
mov eax, dword [ebp - 0x134]
xor esi, esi
cmp dword [eax], esi
jbe 0x4ae478
lea edi, [eax + 0x18]
lea ebx, [ebx]
movzx eax, word [edi - 0xc]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 0x13c]
cmp word [ecx + 0xc], ax
jne 0x4ae291
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, dword [edi]
jne 0x4ae2a4
mov edx, dword [ebp - 0x134]
inc esi
add edi, 0x18
cmp esi, dword [edx]
jb 0x4ae270
jmp 0x4ae472
mov ecx, dword [ebp - 0x134]
lea eax, [esi + esi*2 + 3]
mov edx, dword [ecx + eax*8]
push edx
lea eax, [ebp - 0x128]
push eax
call fcn.0040323d
mov ecx, eax
call fcn.0040538a
xor esi, esi
mov byte [ebp - 4], 2
cmp dword [ebp - 0x110], esi
je 0x4ae389
push 0xb
push 0x5b7a5c
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x2c], 0
call fcn.00402a36
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x48]
or ebx, 2
push edx
mov byte [ebp - 4], 3
mov dword [ebp - 0x130], ebx
call fcn.004069b0
push eax
lea eax, [ebp - 0x64]
or ebx, 4
push eax
mov dword [ebp - 4], 4
mov dword [ebp - 0x130], ebx
call fcn.00405097
mov esi, eax
lea ecx, [ebp - 0x120]
mov edi, 8
push ecx
lea edx, [ebp - 0x80]
or ebx, edi
push edx
mov dword [ebp - 4], 5
mov dword [ebp - 0x130], ebx
call fcn.00406d02
add esp, 0x18
mov ecx, dword [esi + 0x10]
or ebx, 0x10
mov dword [ebp - 4], 6
mov dword [ebp - 0x130], ebx
cmp dword [esi + 0x14], edi
jb 0x4ae36b
mov esi, dword [esi]
push ecx
mov ecx, dword [eax + 0x10]
push esi
push ecx
push 0
mov ecx, eax
call fcn.00407f13
xor esi, esi
test eax, eax
je 0x4ae38e
mov byte [ebp - 0x129], 1
jmp 0x4ae395
mov edi, 8
mov byte [ebp - 0x129], 0
test bl, 0x10
je 0x4ae3c4
and ebx, 0xffffffef
mov dword [ebp - 0x130], ebx
cmp dword [ebp - 0x6c], edi
jb 0x4ae3b4
mov edx, dword [ebp - 0x80]
push edx
call fcn.0053ed60
add esp, 4
xor eax, eax
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], esi
mov word [ebp - 0x80], ax
test bl, 8
je 0x4ae3f3
and ebx, 0xfffffff7
mov dword [ebp - 0x130], ebx
cmp dword [ebp - 0x50], edi
jb 0x4ae3e3
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.0053ed60
add esp, 4
xor edx, edx
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], esi
mov word [ebp - 0x64], dx
test bl, 4
je 0x4ae421
and ebx, 0xfffffffb
cmp dword [ebp - 0x34], 0x10
mov dword [ebp - 0x130], ebx
jb 0x4ae413
mov eax, dword [ebp - 0x48]
push eax
call fcn.0053ed60
add esp, 4
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], esi
mov byte [ebp - 0x48], 0
mov dword [ebp - 4], 2
test bl, 2
je 0x4ae448
and ebx, 0xfffffffd
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0x130], ebx
jb 0x4ae448
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0053ed60
add esp, 4
cmp byte [ebp - 0x129], 0
je 0x4ae463
mov ecx, dword [ebp - 0x140]
lea edx, [ebp - 0x120]
push edx
call fcn.00406965
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 1
call fcn.00403fee
mov edi, dword [ebp - 0x13c]
add edi, 0x68
dec dword [ebp - 0x144]
mov dword [ebp - 0x13c], edi
jne 0x4ae203
mov edi, dword [ebp - 0x134]
push edi
call fcn.00540856
add esp, 4
mov edi, dword [ebp - 0x140]
mov esi, dword [ebp - 0x154]
test esi, esi
je 0x4ae4d3
mov ebx, dword [ebp - 0x150]
cmp esi, ebx
je 0x4ae4ca
mov ecx, esi
call fcn.00408585
add esi, 0x68
cmp esi, ebx
jne 0x4ae4b6
mov esi, dword [ebp - 0x154]
push esi
call fcn.0053ed60
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053fd20
mov esp, ebp
pop ebp
ret 4