Function at 0x401e10
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, 0x200
mov edi, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], 0x202
call dword [sym.imp.ws2_32.dll_WSAStartup]
mov dword [ebp - 0x1d0], eax
sub esp, 8
test eax, eax
jne 0x402200
cmp dword [ebp + 8], 1
je 0x40236c
mov eax, dword [edi + 4]
test eax, eax
je 0x4021bf
xor ebx, ebx
cmp word [eax], 0x2d
jne 0x402458
movzx ecx, word [eax + 2]
cmp cx, 0x70
je 0x4022c0
ja 0x4021d0
cmp cx, 0x61
je 0x4022a0
cmp cx, 0x65
jne 0x402220
mov dword [ebp - 0x1c8], 0x360
mov eax, 0x360
lea esi, [ebp - 0x1c8]
mov ebx, dword fs:[0x18]
mov edx, ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x1cc], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov edi, eax
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.iphlpapi.dll_GetIfTable]
mov edx, dword [ebp - 0x1cc]
sub esp, 0xc
test eax, eax
mov ebx, eax
jne 0x402260
mov dword [ebp - 0x1cc], eax
mov eax, 6
lea ebx, [ebp - 0x1c2]
call sym._NETSTAT_load_message
mov dword [esp], eax
call sym._NETSTAT_wprintf
mov dword [esp], 0x404468
call sym._NETSTAT_wprintf
mov dword [esp], 0x404468
call sym._NETSTAT_wprintf
mov eax, 8
call sym._NETSTAT_load_message
mov edx, dword [ebp - 0x1cc]
mov esi, eax
xor eax, eax
lea esi, [esi]
lea esi, [esi]
movzx ecx, word [esi + eax]
mov word [ebx + eax], cx
add eax, 2
test cx, cx
jne 0x401f50
mov eax, 7
mov dword [ebp - 0x1f0], edx
call sym._NETSTAT_load_message
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp], str._____________________________19s__s_n_n
call sym._NETSTAT_wprintf
mov eax, dword [edi]
mov dword [ebp - 0x1f4], eax
test eax, eax
je 0x40246c
xor ebx, ebx
mov dword [ebp - 0x1f8], edi
lea eax, [edi + 0x22c]
xor esi, esi
mov dword [ebp - 0x1e8], 0
xor ecx, ecx
xor edi, edi
mov dword [ebp - 0x1e4], 0
mov dword [ebp - 0x1e0], 0
mov dword [ebp - 0x1d4], 0
mov dword [ebp - 0x1cc], 0
mov dword [ebp - 0x1d8], 0
mov dword [ebp - 0x1dc], 0
mov dword [ebp - 0x1ec], ebx
lea esi, [esi]
mov edx, dword [eax + 4]
add ecx, 1
mov ebx, dword [eax]
add eax, 0x35c
add dword [ebp - 0x1dc], edx
mov edx, dword [eax - 0x340]
add dword [ebp - 0x1d8], edx
mov edx, dword [eax - 0x354]
add dword [ebp - 0x1cc], edx
mov edx, dword [eax - 0x33c]
add dword [ebp - 0x1d4], edx
mov edx, dword [eax - 0x350]
add dword [ebp - 0x1e0], edx
mov edx, dword [eax - 0x338]
add dword [ebp - 0x1e4], edx
mov edx, dword [eax - 0x34c]
add dword [ebp - 0x1e8], edx
mov edx, dword [ebp - 0x1f4]
add dword [ebp - 0x1f0], ebx
add edi, dword [eax - 0x334]
mov ebx, dword [eax - 0x344]
add esi, dword [eax - 0x348]
add dword [ebp - 0x1ec], ebx
cmp ecx, edx
jne 0x401ff8
mov edx, dword [ebp - 0x1f0]
mov ebx, dword [ebp - 0x1ec]
mov dword [ebp - 0x1f0], edi
mov edi, dword [ebp - 0x1f8]
mov eax, 9
mov dword [ebp - 0x1ec], edx
call sym._NETSTAT_load_message
mov dword [esp + 0xc], ebx
mov edx, dword [ebp - 0x1ec]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], str.__20s__14lu__15lu_n
call sym._NETSTAT_wprintf
mov eax, 0xa
call sym._NETSTAT_load_message
mov ecx, dword [ebp - 0x1d8]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x1dc]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp], str.__20s__14lu__15lu_n
call sym._NETSTAT_wprintf
mov eax, 0xb
call sym._NETSTAT_load_message
mov ecx, dword [ebp - 0x1d4]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x1cc]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp], str.__20s__14lu__15lu_n
call sym._NETSTAT_wprintf
mov eax, 0xc
call sym._NETSTAT_load_message
mov ecx, dword [ebp - 0x1e4]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x1e0]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp], str.__20s__14lu__15lu_n
call sym._NETSTAT_wprintf
mov eax, 0xd
call sym._NETSTAT_load_message
mov ecx, dword [ebp - 0x1f0]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x1e8]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp], str.__20s__14lu__15lu_n
call sym._NETSTAT_wprintf
mov eax, 0xe
call sym._NETSTAT_load_message
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], str.__20s__14lu_n_n
call sym._NETSTAT_wprintf
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
mov eax, dword [ebp - 0x1d0]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp cx, 0x73
jne 0x402220
mov eax, dword [edi + 8]
add edi, 4
sub dword [ebp + 8], 1
mov ebx, 1
test eax, eax
jne 0x401e5e
call sym._NETSTAT_tcp_stats
call sym._NETSTAT_udp_stats
jmp 0x4021bf
test byte [0x403004], 2
jne 0x402330
mov dword [ebp - 0x1d0], 1
jmp 0x4021bf
test byte [0x403004], 1
je 0x40220d
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.Unknown_option:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.wmain
mov dword [esp + 4], 0x403004
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x40220d
mov dword [esp + 8], edi
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 0x4021bf
mov eax, dword [ebp - 0x1c8]
mov edx, dword [ebp - 0x1cc]
jmp 0x401eae
call sym._NETSTAT_conn_header
call sym._NETSTAT_tcp_table
call sym._NETSTAT_udp_table
mov eax, dword [ebp - 0x1d0]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [ebp + 8], 2
je 0x40220d
mov eax, dword [edi + 8]
mov esi, dword [sym.imp.ucrtbase.dll__wcsicmp]
mov dword [esp + 4], 0x4044dc
mov dword [ebp - 0x1cc], eax
mov dword [esp], eax
call esi
test eax, eax
jne 0x402388
test byte [0x403004], 1
je 0x4021bf
mov eax, dword [edi + 8]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.Protocol_not_yet_implemented:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.wmain
mov dword [esp + 4], 0x403004
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x4021bf
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], 0x403004
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x40220d
test ebx, ebx
je 0x40236c
call sym._NETSTAT_tcp_stats
call sym._NETSTAT_conn_header
call sym._NETSTAT_tcp_table
mov eax, dword [ebp - 0x1d0]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], str.IPv6
mov eax, dword [ebp - 0x1cc]
mov dword [esp], eax
call esi
test eax, eax
je 0x4022ee
mov dword [esp + 4], str.ICMP
mov eax, dword [ebp - 0x1cc]
mov dword [esp], eax
call esi
test eax, eax
je 0x4022ee
mov dword [esp + 4], str.ICMPv6
mov eax, dword [ebp - 0x1cc]
mov dword [esp], eax
call esi
test eax, eax
je 0x4022ee
mov dword [esp + 4], 0x4044ac
mov eax, dword [ebp - 0x1cc]
mov dword [esp], eax
call esi
test eax, eax
je 0x402363
mov dword [esp + 4], str.TCPv6
mov eax, dword [ebp - 0x1cc]
mov dword [esp], eax
call esi
test eax, eax
je 0x4022ee
mov dword [esp + 4], 0x404498
mov eax, dword [ebp - 0x1cc]
mov dword [esp], eax
call esi
test eax, eax
je 0x40243e
mov dword [esp + 4], str.UDPv6
mov eax, dword [ebp - 0x1cc]
mov dword [esp], eax
call esi
jmp 0x4022ee
test ebx, ebx
jne 0x402465
call sym._NETSTAT_conn_header
call sym._NETSTAT_udp_table
jmp 0x4021bf
test ebx, ebx
jne 0x4021ed
jmp 0x4021bf
call sym._NETSTAT_udp_stats
jmp 0x402442
mov dword [ebp - 0x1f0], 0
xor esi, esi
xor ebx, ebx
xor edx, edx
mov dword [ebp - 0x1e8], 0
mov dword [ebp - 0x1e4], 0
mov dword [ebp - 0x1e0], 0
mov dword [ebp - 0x1d4], 0
mov dword [ebp - 0x1cc], 0
mov dword [ebp - 0x1d8], 0
mov dword [ebp - 0x1dc], 0
jmp 0x402097