Function at 0x401b50
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov eax, 0x18
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x510]
push ebx
mov ebx, dword fs:[0x18]
mov edx, ebx
sub esp, 0x524
mov dword [ebp - 0x510], 0x18
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x514], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov esi, eax
mov dword [esp + 8], 1
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.iphlpapi.dll_GetTcpTable]
mov edx, dword [ebp - 0x514]
sub esp, 0xc
test eax, eax
mov ebx, eax
jne 0x401dd0
mov eax, dword [esi]
lea edi, [esi + 4]
test eax, eax
je 0x401da3
mov dword [ebp - 0x514], esi
lea esi, [esi]
nop
mov eax, dword [edi]
cmp eax, 0xb
ja 0x401d8d
mov edx, 0x920
bt edx, eax
jae 0x401d8d
mov eax, dword [edi + 4]
lea esi, [ebp - 0x38c]
mov dword [esp], eax
call dword [sym.imp.ws2_32.dll_htonl]
sub esp, 4
movzx edx, al
mov dword [esp + 0x18], edx
movzx edx, ah
mov dword [esp + 0x14], edx
mov edx, eax
shr eax, 0x18
shr edx, 0x10
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x48c]
movzx edx, dl
mov dword [esp + 8], 0x40446c
mov dword [esp + 0x10], edx
mov dword [esp + 4], pe_nt_image_headers32
mov dword [esp], eax
call sym._swprintf
movzx eax, word [edi + 8]
mov dword [esp], eax
call dword [sym.imp.ws2_32.dll_htons]
lea ecx, [ebp - 0x50c]
sub esp, 4
movzx eax, ax
mov dword [esp], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x404484
mov dword [esp + 4], 0x20
call sym._swprintf
mov eax, dword [edi + 0xc]
mov dword [esp], eax
call dword [sym.imp.ws2_32.dll_htonl]
sub esp, 4
movzx edx, al
mov dword [esp + 0x18], edx
movzx edx, ah
mov dword [esp + 0x14], edx
mov edx, eax
shr eax, 0x18
shr edx, 0x10
mov dword [esp], esi
movzx edx, dl
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov dword [esp + 8], 0x40446c
mov dword [esp + 4], pe_nt_image_headers32
call sym._swprintf
movzx eax, word [edi + 0x10]
mov dword [esp], eax
call dword [sym.imp.ws2_32.dll_htons]
lea edx, [ebp - 0x4cc]
sub esp, 4
movzx eax, ax
mov dword [esp], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x404484
mov dword [esp + 4], 0x20
call sym._swprintf
lea ecx, [ebp - 0x50c]
lea eax, [ebp - 0x48c]
mov dword [esp + 8], str._s:_s
mov dword [esp + 0x10], ecx
lea ecx, [ebp - 0x28c]
mov dword [esp], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0xa0
call sym._swprintf
mov dword [esp + 0xc], esi
lea edx, [ebp - 0x4cc]
lea esi, [ebp - 0x14c]
mov dword [esp + 0x10], edx
mov dword [esp + 8], str._s:_s
mov dword [esp + 4], 0xa0
mov dword [esp], esi
call sym._swprintf
mov eax, dword [edi]
lea ecx, [ebp - 0x28c]
mov dword [esp + 0xc], esi
mov dword [esp + 8], ecx
shl eax, 5
mov dword [esp + 4], 0x4044ac
add eax, 0x404140
mov dword [esp], str.____6s___22s___22s__s_n
mov dword [esp + 0x10], eax
call sym._NETSTAT_wprintf
mov eax, dword [ebp - 0x514]
add ebx, 1
add edi, 0x14
cmp ebx, dword [eax]
jb 0x401be0
mov esi, eax
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
cmp ebx, 0x7a
jne 0x401dc7
mov eax, dword [ebp - 0x510]
mov edx, dword [ebp - 0x514]
jmp 0x401b7a