Function at 0x41b510
Capabilities:
List tcp connections and listeners

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49b7fb
mov eax, dword fs:[0]
push eax
sub esp, 0x174
mov eax, dword [0x544070]
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 dword [ebp - 0x158], ecx
mov edi, dword [sym.imp.IPHLPAPI.DLL_GetExtendedTcpTable]
lea eax, [ebp - 0x150]
push 0
push 5
push 2
push 1
push eax
push 0
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x150], 0
call edi
cmp eax, 0x7a
jne 0x41ba58
push dword [ebp - 0x150]
call fcn.0047bf17
mov esi, eax
add esp, 4
mov dword [ebp - 0x12c], esi
test esi, esi
je 0x41ba58
lea eax, [ebp - 0x12c]
lea edx, [ebp - 0x138]
mov dword [ebp - 0x138], eax
lea ecx, [ebp - 0x16c]
call fcn.0041bf10
push 0
push 5
push 2
push 1
lea eax, [ebp - 0x150]
mov dword [ebp - 4], 0
push eax
push esi
call edi
test eax, eax
jne 0x41ba3a
push 2
lea ecx, [ebp - 0x174]
mov byte [ebp - 0x17c], 2
call fcn.0040d400
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x12c]
mov ecx, dword [eax]
mov dword [ebp - 0x138], ecx
test ecx, ecx
jle 0x41b9c5
lea ecx, [ebp - 0x149]
xor edi, edi
mov dword [ebp - 0x164], ecx
mov eax, dword [edi + eax + 8]
mov ebx, dword [sym.imp.WS2_32.dll_inet_ntop]
mov dword [ebp - 0x154], eax
lea eax, [ebp - 0x90]
push 0x80
push eax
lea eax, [ebp - 0x154]
push eax
push 2
call ebx
push eax
lea eax, [ebp - 0x90]
push 0x80
push eax
call fcn.00480c6f
mov eax, dword [ebp - 0x12c]
add esp, 0xc
mov eax, dword [edi + eax + 0x10]
mov dword [ebp - 0x154], eax
lea eax, [ebp - 0x110]
push 0x80
push eax
lea eax, [ebp - 0x154]
push eax
push 2
call ebx
push eax
lea eax, [ebp - 0x110]
push 0x80
push eax
call fcn.00480c6f
mov eax, dword [ebp - 0x12c]
add esp, 0xc
movzx eax, word [edi + eax + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx esi, ax
mov eax, dword [ebp - 0x12c]
movzx eax, word [edi + eax + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
push 1
lea ecx, [ebp - 0x140]
movzx ebx, ax
mov byte [ebp - 0x148], 1
call fcn.0040d400
sub esp, 0x10
mov byte [ebp - 4], 2
lea eax, [ebp - 0x90]
mov dword [ebp - 0x130], esp
mov ecx, esp
push eax
call fcn.00407020
sub esp, 0x18
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x41b704
mov eax, dword [ecx]
jmp 0x41b706
mov eax, ecx
push 0xa
push str.local_addr
mov byte [eax], 0
call fcn.00402c80
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 2
call fcn.00439480
add esp, 0x18
lea eax, [ebp - 0x110]
mov ecx, esp
mov dword [ebp - 0x134], esp
push eax
call fcn.00407020
sub esp, 0x18
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x41b75c
mov eax, dword [ecx]
jmp 0x41b75e
mov eax, ecx
push 0xb
push str.remote_addr
mov byte [eax], 0
call fcn.00402c80
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 2
call fcn.00439480
add esp, 0x18
mov eax, esi
mov ecx, esp
cdq
mov dword [ebp - 0x134], esp
mov byte [ecx], 5
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
sub esp, 0x18
mov byte [ebp - 4], 5
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x41b7b4
mov eax, dword [ecx]
jmp 0x41b7b6
mov eax, ecx
push 0xa
push str.local_port
mov byte [eax], 0
call fcn.00402c80
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 2
call fcn.00439480
add esp, 0x18
mov eax, ebx
mov ecx, esp
cdq
mov dword [ebp - 0x134], esp
mov byte [ecx], 5
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
sub esp, 0x18
mov byte [ebp - 4], 6
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x41b80c
mov eax, dword [ecx]
jmp 0x41b80e
mov eax, ecx
push 0xb
push str.remote_port
mov byte [eax], 0
call fcn.00402c80
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 2
call fcn.00439480
mov eax, dword [ebp - 0x12c]
add esp, 0x18
mov dword [ebp - 0x134], esp
mov ecx, dword [edi + eax + 0x18]
mov eax, esp
mov byte [eax], 5
mov dword [eax + 8], ecx
mov dword [eax + 0xc], 0
sub esp, 0x18
mov byte [ebp - 4], 7
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x41b86f
mov eax, dword [ecx]
jmp 0x41b871
mov eax, ecx
push 0xb
push str.process_pid
mov byte [eax], 0
call fcn.00402c80
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 2
call fcn.00439480
mov edx, dword [ebp - 0x12c]
add esp, 0x10
mov ecx, esp
mov edx, dword [edi + edx + 0x18]
call fcn.0041b2c0
lea ecx, [ebp - 0x128]
call fcn.00439ac0
mov dword [ebp - 0x130], eax
add esp, 8
mov byte [ebp - 4], 8
mov ebx, esp
mov dword [ebp - 0x134], esp
push 0x18
mov byte [ebx], 3
call fcn.0045bdbe
mov esi, eax
add esp, 4
mov dword [ebp - 0x160], esi
mov dword [ebp - 0x180], esi
mov dword [ebp - 0x15c], esi
mov byte [ebp - 4], 0xa
test esi, esi
je 0x41b91a
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 0x10
jb 0x41b904
mov eax, dword [esi]
jmp 0x41b906
mov eax, esi
push 0xffffffffffffffff
push 0
push dword [ebp - 0x130]
mov ecx, esi
mov byte [eax], 0
call fcn.00402d80
mov dword [ebp - 0x160], 0
mov dword [ebx + 8], esi
sub esp, 0x18
mov byte [ebp - 4], 0xb
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x41b948
mov eax, dword [ecx]
jmp 0x41b94a
mov eax, ecx
push 0xc
push str.process_name
mov byte [eax], 0
call fcn.00402c80
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 8
call fcn.00439480
mov byte [ebp - 4], 2
add esp, 0x28
mov eax, dword [ebp - 0x114]
cmp eax, 0x10
jb 0x41b98d
inc eax
lea ecx, [ebp - 0x128]
push eax
push dword [ebp - 0x128]
call fcn.00402eb0
lea eax, [ebp - 0x148]
push eax
lea ecx, [ebp - 0x17c]
call fcn.00413000
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 1
call fcn.004119c0
add edi, 0x18
sub dword [ebp - 0x138], 1
je 0x41b9c5
mov eax, dword [ebp - 0x12c]
jmp 0x41b612
lea eax, [ebp - 0x17c]
push eax
lea ecx, [ebp - 0x148]
call fcn.0040eb90
mov ecx, dword [ebp - 0x158]
push str.tcp_ipv4
add ecx, 0x20
mov byte [ebp - 4], 0xc
call fcn.004132b0
mov cl, byte [ebp - 0x148]
mov esi, eax
mov dl, byte [esi]
mov byte [esi], cl
mov eax, dword [ebp - 0x140]
mov byte [ebp - 0x148], dl
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x13c]
mov dword [esi + 0xc], eax
mov dword [ebp - 0x140], ecx
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x13c], edx
call fcn.004119c0
lea ecx, [ebp - 0x17c]
call fcn.004119c0
cmp byte [ebp - 0x168], 0
je 0x41ba58
mov eax, dword [ebp - 0x16c]
mov eax, dword [eax]
test eax, eax
je 0x41ba58
push eax
call fcn.0047bf22
add esp, 4
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.0045bdad
mov esp, ebp
pop ebp
ret