Function at 0x401b80
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov eax, 0x18
mov ebp, esp
push edi
push esi
push ebx
lea esi, [ebp - 0x510]
sub esp, 0x528
mov dword [ebp - 0x510], 0x18
mov edi, dword [sym.imp.kernel32.dll_HeapAlloc]
mov ebx, dword fs:[0x18]
nop
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 edi
sub esp, 0xc
mov dword [ebp - 0x514], eax
mov dword [esp + 8], 1
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.iphlpapi.dll_GetTcpTable]
mov ecx, dword [ebp - 0x514]
sub esp, 0xc
mov edx, eax
test eax, eax
jne 0x401e30
mov eax, dword [ecx]
mov dword [ebp - 0x514], ecx
lea ebx, [ecx + 4]
mov esi, edx
test eax, eax
jne 0x401c27
jmp 0x401dfa
cmp ecx, 0xb
je 0x401c39
mov eax, dword [ebp - 0x514]
inc esi
add ebx, 0x14
cmp dword [eax], esi
jbe 0x401dfa
mov ecx, dword [ebx]
cmp ecx, 8
sete dl
cmp ecx, 5
sete al
or al, dl
je 0x401c10
mov eax, dword [ebx + 4]
lea edi, [ebp - 0x50c]
mov dword [esp], eax
inc esi
call dword [sym.imp.ws2_32.dll_htonl]
add ebx, 0x14
push edx
mov edx, eax
and edx, 0xff
mov dword [esp + 8], 0x40446c
mov dword [esp + 0x18], edx
mov dword [esp + 4], pe_nt_image_headers32
movzx edx, ah
mov dword [esp + 0x14], edx
mov edx, eax
shr edx, 0x10
shr eax, 0x18
and edx, 0xff
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x48c]
mov dword [esp + 0x10], edx
mov dword [esp], eax
call fcn.00401000
xor eax, eax
mov ax, word [ebx - 0xc]
mov edx, dword [sym.imp.ws2_32.dll_htons]
mov dword [esp], eax
mov dword [ebp - 0x518], edx
call edx
and eax, 0xffff
push ecx
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x404484
mov dword [esp + 4], 0x20
call fcn.00401000
mov eax, dword [ebx - 8]
mov dword [esp], eax
call dword [sym.imp.ws2_32.dll_htonl]
mov ecx, eax
push edx
and ecx, 0xff
mov dword [esp + 0x18], ecx
mov dword [esp + 8], 0x40446c
movzx ecx, ah
mov dword [esp + 0x14], ecx
mov ecx, eax
shr ecx, 0x10
mov dword [esp + 4], pe_nt_image_headers32
shr eax, 0x18
and ecx, 0xff
mov dword [esp + 0x10], ecx
lea ecx, [ebp - 0x38c]
mov dword [esp], ecx
mov dword [esp + 0xc], eax
call fcn.00401000
xor eax, eax
mov ax, word [ebx - 4]
mov edx, dword [ebp - 0x518]
mov dword [esp], eax
call edx
lea edx, [ebp - 0x4cc]
and eax, 0xffff
push ecx
mov dword [esp], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x404484
mov dword [esp + 4], 0x20
call fcn.00401000
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 fcn.00401000
lea edx, [ebp - 0x4cc]
lea ecx, [ebp - 0x38c]
mov dword [esp + 0x10], edx
lea edx, [ebp - 0x14c]
mov dword [esp + 0xc], ecx
mov dword [esp], edx
mov dword [esp + 8], str._s:_s
mov dword [esp + 4], 0xa0
call fcn.00401000
mov eax, dword [ebx - 0x14]
shl eax, 5
lea edx, [ebp - 0x14c]
add eax, 0x404140
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
mov dword [esp + 8], edi
mov dword [esp + 4], 0x4044ac
mov dword [esp], str.____6s___22s___22s__s_n
call fcn.00401380
mov eax, dword [ebp - 0x514]
cmp dword [eax], esi
ja 0x401c27
mov eax, dword fs:[0x18]
mov esi, dword [ebp - 0x514]
mov dword [esp + 4], 0
mov dword [esp + 8], esi
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], ecx
mov dword [esp + 4], 0
mov dword [ebp - 0x514], eax
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov edx, dword [ebp - 0x514]
sub esp, 0xc
cmp edx, 0x7a
jne 0x401e24
mov eax, dword [ebp - 0x510]
jmp 0x401bb0