Function at 0x401b90
Capabilities:
Access peb ldr_data
Get process heap flags
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x19c]
push ebx
sub esp, 0x304
mov dword [esp + 4], eax
mov dword [esp], 0x202
call dword [sym.imp.ws2_32.dll_WSAStartup]
sub esp, 8
test eax, eax
jne 0x401fb8
cmp dword [ebp + 8], 1
mov edi, eax
je 0x402246
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + 4]
test esi, esi
je 0x401f3b
xor ebx, ebx
cmp word [esi], 0x2d
jne 0x402450
movzx eax, word [esi + 2]
cmp ax, 0x70
je 0x402110
ja 0x401f48
cmp ax, 0x61
je 0x402008
cmp ax, 0x65
jne 0x402028
mov dword [ebp - 0x2cc], 0x360
mov eax, 0x360
mov dword [ebp - 0x2d0], edi
mov esi, dword fs:[0x18]
mov edi, esi
lea esi, [esi]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov esi, eax
lea eax, [ebp - 0x2cc]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.iphlpapi.dll_GetIfTable]
sub esp, 0xc
mov ebx, eax
test eax, eax
jne 0x401f80
mov eax, 6
mov dword [ebp - 0x2f8], esi
mov edi, dword [ebp - 0x2d0]
lea esi, [ebp - 0x2c8]
call sym._NETSTAT_load_message
mov dword [esp], eax
call sym._NETSTAT_wprintf
mov dword [esp], 0x406468
call sym._NETSTAT_wprintf
mov dword [esp], 0x406468
call sym._NETSTAT_wprintf
mov eax, 8
call sym._NETSTAT_load_message
xor edx, edx
movzx ecx, word [eax + edx]
mov word [esi + edx], cx
add edx, 2
test cx, cx
jne 0x401cc0
mov eax, 7
call sym._NETSTAT_load_message
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp], str._____________________________19s__s_n_n
call sym._NETSTAT_wprintf
mov edx, dword [ebp - 0x2f8]
mov eax, dword [edx]
mov dword [ebp - 0x2f4], eax
test eax, eax
je 0x4024f5
xor ecx, ecx
mov dword [ebp - 0x2ec], ebx
lea eax, [edx + 0x22c]
xor esi, esi
mov dword [ebp - 0x2e8], 0
xor edx, edx
mov dword [ebp - 0x2e4], 0
mov dword [ebp - 0x2e0], 0
mov dword [ebp - 0x2dc], 0
mov dword [ebp - 0x2d8], 0
mov dword [ebp - 0x2d4], 0
mov dword [ebp - 0x2d0], 0
mov dword [ebp - 0x2f0], ecx
mov dword [ebp - 0x2fc], edi
xor edi, edi
lea esi, [esi]
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
add edx, 1
add eax, 0x35c
add dword [ebp - 0x2ec], ebx
add esi, dword [eax - 0x344]
mov ebx, dword [eax - 0x340]
add dword [ebp - 0x2d0], ecx
add edi, dword [eax - 0x348]
mov ecx, dword [eax - 0x354]
add dword [ebp - 0x2f0], ebx
add dword [ebp - 0x2d4], ecx
mov ecx, dword [eax - 0x33c]
add dword [ebp - 0x2d8], ecx
mov ecx, dword [eax - 0x350]
add dword [ebp - 0x2dc], ecx
mov ecx, dword [eax - 0x338]
add dword [ebp - 0x2e0], ecx
mov ecx, dword [eax - 0x34c]
add dword [ebp - 0x2e4], ecx
mov ecx, dword [eax - 0x334]
add dword [ebp - 0x2e8], ecx
cmp edx, dword [ebp - 0x2f4]
jne 0x401d70
mov ebx, dword [ebp - 0x2ec]
mov ecx, dword [ebp - 0x2f0]
mov dword [ebp - 0x2ec], edi
mov edi, dword [ebp - 0x2fc]
mov eax, 9
mov dword [ebp - 0x2f0], ecx
call sym._NETSTAT_load_message
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], str.__20s__14lu__15lu_n
call sym._NETSTAT_wprintf
mov eax, 0xa
call sym._NETSTAT_load_message
mov ecx, dword [ebp - 0x2f0]
mov edx, dword [ebp - 0x2d0]
mov dword [esp], str.__20s__14lu__15lu_n
mov dword [esp + 4], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
call sym._NETSTAT_wprintf
mov eax, 0xb
call sym._NETSTAT_load_message
mov edx, dword [ebp - 0x2d8]
mov dword [esp], str.__20s__14lu__15lu_n
mov dword [esp + 4], eax
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x2d4]
mov dword [esp + 8], edx
call sym._NETSTAT_wprintf
mov eax, 0xc
call sym._NETSTAT_load_message
mov edx, dword [ebp - 0x2e0]
mov dword [esp], str.__20s__14lu__15lu_n
mov dword [esp + 4], eax
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x2dc]
mov dword [esp + 8], edx
call sym._NETSTAT_wprintf
mov eax, 0xd
call sym._NETSTAT_load_message
mov edx, dword [ebp - 0x2e8]
mov dword [esp], str.__20s__14lu__15lu_n
mov dword [esp + 4], eax
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x2e4]
mov dword [esp + 8], edx
call sym._NETSTAT_wprintf
mov eax, 0xe
call sym._NETSTAT_load_message
mov edx, dword [ebp - 0x2ec]
mov dword [esp], str.__20s__14lu_n_n
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call sym._NETSTAT_wprintf
mov edx, dword [ebp - 0x2f8]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
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]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
cmp ax, 0x73
jne 0x402028
add dword [ebp + 0xc], 4
mov eax, dword [ebp + 0xc]
mov ebx, 1
sub dword [ebp + 8], 1
mov esi, dword [eax + 4]
test esi, esi
jne 0x401bda
call sym._NETSTAT_tcp_stats
call sym._NETSTAT_udp_stats
jmp 0x401f3b
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
cmp ebx, 0x7a
jne 0x402655
mov eax, dword [ebp - 0x2cc]
jmp 0x401c30
mov edi, 1
test byte [0x404004], 2
je 0x401f3b
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esp + 0xc], str.WSAStartup_failed:__d_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.wmain
mov dword [esp + 4], 0x404004
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
call sym._NETSTAT_conn_header
call sym._NETSTAT_tcp_table
call sym._NETSTAT_udp_table
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, 1
test byte [0x404004], 1
je 0x401f3b
mov eax, esi
shr eax, 0x10
je 0x402460
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, str._invalid_
sub esp, 8
test eax, eax
jne 0x40235e
cmp word [esi], 0
je 0x402550
mov ebx, eax
lea eax, [eax + 1]
cmp word [esi + ebx*2 + 2], 0
jne 0x402070
mov ecx, 0x224c
lea edi, [ebp - 0x2c6]
lea edx, [ebp - 0x1a6]
mov word [ebp - 0x2c8], cx
jmp 0x4020d5
cmp ax, 9
je 0x402438
cmp ax, 0xa
jne 0x4023ce
mov eax, 0x6e5c
add edi, 2
mov word [edi - 2], ax
lea eax, [ebx - 1]
cmp edi, edx
ja 0x402330
test ebx, ebx
jle 0x402330
mov ebx, eax
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x4023b0
jbe 0x4020a0
cmp ax, 0x22
je 0x402420
cmp ax, 0x5c
jne 0x4023c1
mov eax, 0x5c5c
add edi, 2
mov word [edi - 2], ax
jmp 0x4020c0
cmp dword [ebp + 8], 2
je 0x402320
mov eax, dword [ebp + 0xc]
mov esi, dword [sym.imp.ucrtbase.dll__wcsicmp]
mov eax, dword [eax + 8]
mov dword [esp + 4], 0x4064dc
mov dword [ebp - 0x2d0], eax
mov dword [esp], eax
call esi
test eax, eax
jne 0x402260
test byte [0x404004], 1
je 0x401f3b
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 8]
test ebx, ebx
je 0x40262d
mov eax, ebx
shr eax, 0x10
je 0x402609
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, str._invalid_
sub esp, 8
test eax, eax
jne 0x4024c8
cmp word [ebx], 0
je 0x402637
lea esi, [esi]
mov ecx, eax
lea eax, [eax + 1]
cmp word [ebx + ecx*2 + 2], 0
jne 0x402198
mov eax, 0x224c
lea edx, [ebp - 0x1a6]
mov dword [ebp - 0x2d4], edi
lea esi, [ebp - 0x2c6]
mov word [ebp - 0x2c8], ax
mov dword [ebp - 0x2d0], edx
jmp 0x402209
cmp ax, 9
je 0x4025f8
cmp ax, 0xa
jne 0x40257e
mov eax, 0x6e5c
add esi, 2
mov word [esi - 2], ax
lea eax, [ecx - 1]
cmp esi, dword [ebp - 0x2d0]
ja 0x402494
test ecx, ecx
jle 0x402494
mov ecx, eax
movzx eax, word [ebx]
add ebx, 2
cmp ax, 0xd
je 0x4025e1
jbe 0x4021d0
cmp ax, 0x22
je 0x4025d0
cmp ax, 0x5c
jne 0x402571
mov edi, 0x5c5c
add esi, 2
mov word [esi - 2], di
jmp 0x4021f0
test ebx, ebx
je 0x402246
call sym._NETSTAT_tcp_stats
call sym._NETSTAT_conn_header
call sym._NETSTAT_tcp_table
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x2d0]
mov dword [esp + 4], str.IPv6
mov dword [esp], eax
call esi
test eax, eax
je 0x402141
mov eax, dword [ebp - 0x2d0]
mov dword [esp + 4], str.ICMP
mov dword [esp], eax
call esi
test eax, eax
je 0x402141
mov eax, dword [ebp - 0x2d0]
mov dword [esp + 4], str.ICMPv6
mov dword [esp], eax
call esi
test eax, eax
je 0x402141
mov eax, dword [ebp - 0x2d0]
mov dword [esp + 4], 0x4064ac
mov dword [esp], eax
call esi
test eax, eax
je 0x40223d
mov eax, dword [ebp - 0x2d0]
mov dword [esp + 4], str.TCPv6
mov dword [esp], eax
call esi
test eax, eax
je 0x402141
mov eax, dword [ebp - 0x2d0]
mov dword [esp + 4], 0x406498
mov dword [esp], eax
call esi
test eax, eax
je 0x402390
mov eax, dword [ebp - 0x2d0]
mov dword [esp + 4], str.UDPv6
mov dword [esp], eax
call esi
jmp 0x402141
mov edi, 1
jmp 0x401f3b
mov byte [edi], 0x22
test eax, eax
jle 0x402569
mov ebx, 0x2e2e
mov byte [edi + 3], 0x2e
lea eax, [edi + 4]
mov word [edi + 1], bx
mov byte [eax], 0
lea eax, [ebp - 0x2c8]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
mov dword [esp + 0x10], edx
mov edi, 1
mov dword [esp + 0xc], str.Unknown_option:__s_n
mov dword [esp + 8], str.wmain
mov dword [esp + 4], 0x404004
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x401f3b
test ebx, ebx
jne 0x40248a
call sym._NETSTAT_conn_header
xor edi, edi
call sym._NETSTAT_udp_table
jmp 0x401f3b
mov eax, 0x725c
add edi, 2
mov word [edi - 2], ax
jmp 0x4020c0
lea ecx, [eax - 0x20]
cmp cx, 0x5e
jbe 0x402480
mov ecx, eax
mov byte [edi], 0x5c
add edi, 5
shr cx, 0xc
movzx ecx, cx
movzx ecx, byte [ecx + str.0123456789abcdefNETSTAT_wprintf]
mov byte [edi - 4], cl
mov ecx, eax
shr cx, 8
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdefNETSTAT_wprintf]
mov byte [edi - 3], cl
mov ecx, eax
and eax, 0xf
shr cx, 4
movzx eax, byte [eax + str.0123456789abcdefNETSTAT_wprintf]
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdefNETSTAT_wprintf]
mov byte [edi - 1], al
mov byte [edi - 2], cl
jmp 0x4020c0
mov eax, 0x225c
add edi, 2
mov word [edi - 2], ax
jmp 0x4020c0
mov eax, 0x745c
add edi, 2
mov word [edi - 2], ax
jmp 0x4020c0
test ebx, ebx
jne 0x401f6d
jmp 0x401f3b
movzx esi, si
mov dword [esp], str._04x
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf.constprop.0
mov edx, eax
jmp 0x40235e
mov byte [edi], al
add edi, 1
jmp 0x4020c0
call sym._NETSTAT_udp_stats
jmp 0x402398
mov byte [esi], 0x22
mov edi, dword [ebp - 0x2d4]
test eax, eax
jle 0x40264d
mov edx, 0x2e2e
mov byte [esi + 3], 0x2e
lea eax, [esi + 4]
mov word [esi + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x2c8]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.Protocol_not_yet_implemented:__s_n
mov dword [esp + 8], str.wmain
mov dword [esp + 4], 0x404004
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x401f3b
mov dword [ebp - 0x2ec], 0
xor ecx, ecx
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x2e8], 0
mov dword [ebp - 0x2e4], 0
mov dword [ebp - 0x2e0], 0
mov dword [ebp - 0x2dc], 0
mov dword [ebp - 0x2d8], 0
mov dword [ebp - 0x2d4], 0
mov dword [ebp - 0x2d0], 0
jmp 0x401e0d
mov edx, 0x224c
mov byte [ebp - 0x2c6], 0x22
lea edi, [ebp - 0x2c6]
mov word [ebp - 0x2c8], dx
lea eax, [edi + 1]
jmp 0x40234b
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x402623
mov edi, eax
mov byte [esi], 0x5c
add esi, 5
shr di, 0xc
movzx edi, di
movzx edx, byte [edi + str.0123456789abcdefNETSTAT_wprintf]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [esi - 4], dl
movzx edx, byte [edi + str.0123456789abcdefNETSTAT_wprintf]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefNETSTAT_wprintf]
and edi, 0xf
mov byte [esi - 3], dl
movzx edx, byte [edi + str.0123456789abcdefNETSTAT_wprintf]
mov byte [esi - 1], al
mov byte [esi - 2], dl
jmp 0x4021f0
mov eax, 0x225c
add esi, 2
mov word [esi - 2], ax
jmp 0x4021f0
mov eax, 0x725c
add esi, 2
mov word [esi - 2], ax
jmp 0x4021f0
mov eax, 0x745c
add esi, 2
mov word [esi - 2], ax
jmp 0x4021f0
movzx ebx, bx
mov dword [esp], str._04x
mov dword [esp + 4], ebx
call sym._wine_dbg_sprintf.constprop.0
mov edx, eax
jmp 0x4024c8
mov byte [esi], al
add esi, 1
jmp 0x4021f0
mov edx, str._null_
jmp 0x4024c8
mov word [ebp - 0x2c8], 0x224c
lea esi, [ebp - 0x2c6]
mov byte [ebp - 0x2c6], 0x22
lea eax, [esi + 1]
jmp 0x4024b5
mov edi, dword [ebp - 0x2d0]
jmp 0x401f3b