Function at 0x401630
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov eax, 0x18
mov ebp, esp
push edi
push esi
push ebx
mov ebx, dword fs:[0x18]
sub esp, 0x528
mov dword [ebp - 0x510], 0x18
lea esi, [esi]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov edi, eax
lea eax, [ebp - 0x510]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.iphlpapi.dll_GetTcpTable]
sub esp, 0xc
mov esi, eax
test eax, eax
jne 0x4018b0
mov eax, dword [edi]
lea ebx, [edi + 4]
test eax, eax
je 0x401883
mov dword [ebp - 0x514], edi
lea esi, cs:[esi]
mov eax, dword [ebx]
cmp eax, 0xb
ja 0x40186f
mov ecx, 0x920
bt ecx, eax
jae 0x40186f
mov eax, dword [ebx + 4]
lea edi, [ebp - 0x50c]
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], str._d._d._d._d
mov dword [esp + 0x10], edx
mov dword [esp + 4], pe_nt_image_headers32
mov dword [esp], eax
call sym._swprintf
mov edx, dword [sym.imp.ws2_32.dll_htons]
movzx eax, word [ebx + 8]
mov dword [ebp - 0x518], edx
mov dword [esp], eax
call edx
sub esp, 4
movzx eax, ax
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x4062e4
mov dword [esp + 4], 0x20
call sym._swprintf
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call dword [sym.imp.ws2_32.dll_htonl]
sub esp, 4
movzx ecx, al
mov dword [esp + 0x18], ecx
movzx ecx, ah
mov dword [esp + 0x14], ecx
mov ecx, eax
shr eax, 0x18
shr ecx, 0x10
mov dword [esp + 0xc], eax
movzx ecx, cl
mov dword [esp + 8], str._d._d._d._d
mov dword [esp + 0x10], ecx
lea ecx, [ebp - 0x38c]
mov dword [esp], ecx
mov dword [esp + 4], pe_nt_image_headers32
call sym._swprintf
movzx eax, word [ebx + 0x10]
mov edx, dword [ebp - 0x518]
mov dword [esp], eax
call edx
lea edx, [ebp - 0x4cc]
sub esp, 4
movzx eax, ax
mov dword [esp], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x4062e4
mov dword [esp + 4], 0x20
call sym._swprintf
mov dword [esp + 0x10], edi
lea eax, [ebp - 0x48c]
lea edi, [ebp - 0x28c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._s:_s
mov dword [esp + 4], 0xa0
mov dword [esp], edi
call sym._swprintf
lea edx, [ebp - 0x4cc]
lea ecx, [ebp - 0x38c]
mov dword [esp + 8], str._s:_s
mov dword [esp + 0x10], edx
lea edx, [ebp - 0x14c]
mov dword [esp], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], 0xa0
call sym._swprintf
mov eax, dword [ebx]
lea edx, [ebp - 0x14c]
mov dword [esp + 8], edi
mov dword [esp + 0xc], edx
shl eax, 5
mov dword [esp + 4], 0x406400
add eax, 0x406420
mov dword [esp], str.____6s___22s___22s__s_n
mov dword [esp + 0x10], eax
call sym._NETSTAT_wprintf
mov eax, dword [ebp - 0x514]
inc esi
add ebx, 0x14
cmp dword [eax], esi
ja 0x4016b8
mov edi, eax
mov dword [esp + 8], edi
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], edi
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
cmp esi, 0x7a
jne 0x4018a7
mov eax, dword [ebp - 0x510]
jmp 0x401658