Function at 0x408e90
Capabilities:
List tcp connections and listeners

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x344
mov eax, dword [0x442754]
xor eax, esp
mov dword [esp + 0x340], eax
push ebx
push esi
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetExtendedTcpTable]
push edi
xor edi, edi
push edi
push 5
push 2
push edi
lea eax, [esp + 0x24]
push eax
push edi
mov dword [esp + 0x2c], edi
call esi
cmp eax, 0x7a
je 0x408ef0
push str.Error:_GetExtendedTcpTable_failed_to_get_table_size_n
call fcn.0041cb2c
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x340]
xor ecx, esp
call fcn.0041ba21
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0041c606
mov ebx, eax
add esp, 4
mov dword [esp + 0x18], ebx
cmp ebx, edi
jne 0x408f2b
push str.Error:_Memory_allocation_failed_n
call fcn.0041cb2c
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x340]
xor ecx, esp
call fcn.0041ba21
mov esp, ebp
pop ebp
ret
push edi
push 5
push 2
push edi
lea edx, [esp + 0x24]
push edx
push ebx
call esi
test eax, eax
je 0x408f6a
push str.Error:_GetExtendedTcpTable_failed_n
call fcn.0041cb2c
add esp, 4
push ebx
call fcn.0041ba30
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x340]
xor ecx, esp
call fcn.0041ba21
mov esp, ebp
pop ebp
ret
push 1
call fcn.0041c606
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
mov byte [esi], 0
mov dword [esp + 0x1c], edi
cmp dword [ebx], edi
jbe 0x409314
add ebx, 0x14
push 0x1ff
lea eax, [esp + 0x14d]
push 0
push eax
mov byte [esp + 0x154], 0
call fcn.00421fd0
xor eax, eax
mov dword [esp + 0x2d], eax
mov dword [esp + 0x31], eax
mov dword [esp + 0x35], eax
mov dword [esp + 0x39], eax
mov dword [esp + 0x3d], eax
mov dword [esp + 0x41], eax
mov dword [esp + 0x45], eax
mov word [esp + 0x49], ax
mov byte [esp + 0x4b], al
mov eax, dword [ebx - 0x10]
dec eax
add esp, 0xc
cmp eax, 0xb
ja case.default.0x408fdf
jmp dword [eax*4 + 0x409334]
mov ecx, dword [str.CLOSED]
mov dx, word [0x43b04c]
mov al, byte [0x43b04e]
mov dword [esp + 0x20], ecx
mov word [esp + 0x24], dx
mov byte [esp + 0x26], al
jmp 0x40919f
mov ecx, dword [str.LISTENING]
mov edx, dword [0x43b054]
mov ax, word [0x43b058]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov word [esp + 0x28], ax
jmp 0x40919f
mov ecx, dword [str.SYN_SENT]
mov edx, dword [0x43b060]
mov al, byte [0x43b064]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov byte [esp + 0x28], al
jmp 0x40919f
mov ecx, dword [str.SYN_RECEIVED]
mov edx, dword [0x43b06c]
mov eax, dword [0x43b070]
mov dword [esp + 0x20], ecx
mov cl, byte [0x43b074]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov byte [esp + 0x2c], cl
jmp 0x40919f
mov edx, dword [str.ESTABLISHED]
mov eax, dword [0x43b07c]
mov ecx, dword [0x43b080]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
jmp 0x40919f
mov edx, dword [str.FIN_WAIT1]
mov eax, dword [0x43b088]
mov cx, word [0x43b08c]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov word [esp + 0x28], cx
jmp 0x40919f
mov edx, dword [str.FIN_WAIT2]
mov eax, dword [0x43b094]
mov cx, word [0x43b098]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov word [esp + 0x28], cx
jmp 0x40919f
mov edx, dword [str.CLOSE_WAIT]
mov eax, dword [0x43b0a0]
mov cx, word [0x43b0a4]
mov dword [esp + 0x20], edx
mov dl, byte [0x43b0a6]
mov dword [esp + 0x24], eax
mov word [esp + 0x28], cx
mov byte [esp + 0x2a], dl
jmp 0x40919f
mov eax, dword [str.CLOSING]
mov ecx, dword [0x43b0ac]
jmp 0x409197
mov edx, dword [str.LAST_ACK]
mov eax, dword [0x43b0b4]
mov cl, byte [0x43b0b8]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov byte [esp + 0x28], cl
jmp 0x40919f
mov edx, dword [str.TIME_WAIT]
mov eax, dword [0x43b0c0]
mov cx, word [0x43b0c4]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov word [esp + 0x28], cx
jmp 0x40919f
mov edx, dword [str.DELETE_TCB]
mov eax, dword [0x43b0cc]
mov cx, word [0x43b0d0]
mov dword [esp + 0x20], edx
mov dl, byte [0x43b0d2]
mov dword [esp + 0x24], eax
mov word [esp + 0x28], cx
mov byte [esp + 0x2a], dl
jmp 0x40919f
mov eax, dword [str.UNKNOWN]
mov ecx, dword [0x43b0d8]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
mov edx, dword [ebx + 4]
movzx ecx, word [ebx]
mov esi, dword [sym.imp.WS2_32.dll_ntohs]
push edx
lea eax, [esp + 0x24]
push eax
push ecx
call esi
mov edi, dword [sym.imp.WS2_32.dll_inet_ntoa]
movzx edx, ax
mov eax, dword [ebx - 4]
push edx
push eax
call edi
movzx ecx, word [ebx - 8]
push eax
push ecx
call esi
movzx edx, ax
mov eax, dword [ebx - 0xc]
push edx
push eax
call edi
push eax
lea ecx, [esp + 0x160]
push str.TCP__s:_d__s:_d__s__d_
push ecx
call fcn.0041c484
push 0x103
lea edx, [esp + 0x65]
push 0
push edx
mov byte [esp + 0x6c], 0
call fcn.00421fd0
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x6c]
add esp, 0x2c
push eax
call fcn.00408d70
add esp, 4
test eax, eax
je 0x40924b
lea eax, [esp + 0x40]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409220
lea edi, [esp + 0x148]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x409231
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x409263
lea edi, [esp + 0x148]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x409253
mov ecx, dword [0x43b0f4]
mov dword [edi], ecx
lea edi, [esp + 0x148]
dec edi
jmp 0x409270
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x409270
mov dx, word [0x43b0f8]
mov eax, dword [esp + 0x10]
mov word [edi], dx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409290
sub eax, edx
mov edx, eax
lea eax, [esp + 0x148]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4092a5
mov ecx, dword [esp + 0x10]
sub eax, esi
lea eax, [eax + edx + 1]
push eax
push ecx
call fcn.0041c547
mov edi, eax
lea eax, [esp + 0x150]
add esp, 8
mov dword [esp + 0x10], edi
mov ecx, eax
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4092d0
sub eax, ecx
mov esi, ecx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4092e0
mov edx, dword [esp + 0x18]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x1c]
inc eax
and ecx, 3
add ebx, 0x18
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x1c], eax
cmp eax, dword [edx]
jb 0x408f8c
mov esi, dword [esp + 0x10]
mov ebx, edx
push ebx
call fcn.0041ba30
mov ecx, dword [esp + 0x350]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0041ba21
mov esp, ebp
pop ebp
ret