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

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
lea eax, [ebp - 0x1a8]
sub esp, 0x318
mov esi, dword [ecx]
mov ebx, dword [ecx + 4]
mov dword [esp + 4], eax
mov dword [esp], 0x202
call sym._WSAStartup_8
mov dword [ebp - 0x2dc], eax
sub esp, 8
test eax, eax
jne 0x401fd8
cmp esi, 1
je 0x402250
mov edi, dword [ebx + 4]
test edi, edi
je 0x401f5d
xor edx, edx
cmp word [edi], 0x2d
jne 0x402428
movzx eax, word [edi + 2]
cmp eax, 0x70
je 0x402130
ja 0x401f70
cmp eax, 0x61
je 0x402028
cmp eax, 0x65
jne 0x402040
lea esi, [ebp - 0x2d8]
mov eax, 0x360
mov dword [ebp - 0x2d8], eax
mov eax, 0x360
mov edi, dword fs:[0x18]
mov edx, edi
mov esi, esi
lea edi, [edi]
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov dword [ebp - 0x2e0], edx
mov eax, dword [edx + 0x30]
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 + 4], esi
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp], edi
call sym._GetIfTable_12
mov edx, dword [ebp - 0x2e0]
sub esp, 0xc
test eax, eax
mov ebx, eax
jne 0x401fa0
mov dword [ebp - 0x2e0], edi
lea edi, [ebp - 0x2d4]
mov eax, 6
call sym._NETSTAT_load_message
mov dword [esp], eax
call sym._NETSTAT_wprintf
mov dword [esp], 0x405468
call sym._NETSTAT_wprintf
mov dword [esp], 0x405468
call sym._NETSTAT_wprintf
mov eax, 8
call sym._NETSTAT_load_message
mov edx, dword [ebp - 0x2e0]
xor ecx, ecx
jmp 0x401d00
movzx esi, word [eax + ecx]
mov word [edi + ecx], si
add ecx, 2
test esi, esi
jne 0x401d00
mov dword [ebp - 0x2e0], edx
mov eax, 7
call sym._NETSTAT_load_message
mov dword [esp + 4], edi
mov dword [esp], str._____________________________19s__s_n_n
mov dword [esp + 8], eax
call sym._NETSTAT_wprintf
mov edx, dword [ebp - 0x2e0]
mov eax, dword [edx]
mov dword [ebp - 0x304], eax
test eax, eax
je 0x402475
xor edi, edi
xor ecx, ecx
mov dword [ebp - 0x2fc], edi
lea eax, [edx + 0x22c]
xor edi, edi
mov dword [ebp - 0x2f8], ecx
xor ecx, ecx
mov dword [ebp - 0x2f4], edi
xor edi, edi
mov dword [ebp - 0x2f0], ecx
xor ecx, ecx
mov dword [ebp - 0x2ec], edi
xor edi, edi
mov dword [ebp - 0x2e8], ecx
xor ecx, ecx
mov dword [ebp - 0x2e4], edi
xor edi, edi
mov dword [ebp - 0x2e0], ecx
xor ecx, ecx
mov dword [ebp - 0x308], edx
mov dword [ebp - 0x300], ebx
nop
mov edx, dword [eax + 0x18]
inc ecx
add eax, 0x35c
mov ebx, dword [eax - 0x35c]
add dword [ebp - 0x300], ebx
mov ebx, dword [eax - 0x340]
add esi, edx
mov edx, dword [eax - 0x358]
add dword [ebp - 0x2e0], edx
mov edx, dword [eax - 0x354]
add dword [ebp - 0x2e4], edx
add edi, ebx
mov edx, dword [eax - 0x33c]
add dword [ebp - 0x2e8], edx
mov edx, dword [eax - 0x350]
add dword [ebp - 0x2ec], edx
mov edx, dword [eax - 0x338]
add dword [ebp - 0x2f0], edx
mov edx, dword [eax - 0x34c]
mov ebx, dword [eax - 0x348]
add dword [ebp - 0x2f4], edx
mov edx, dword [eax - 0x334]
add dword [ebp - 0x2f8], edx
add dword [ebp - 0x2fc], ebx
cmp ecx, dword [ebp - 0x304]
jne 0x401da0
mov ebx, dword [ebp - 0x300]
mov edx, dword [ebp - 0x308]
mov dword [ebp - 0x300], edx
mov eax, 9
call sym._NETSTAT_load_message
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp], str.__20s__14lu__15lu_n
mov dword [esp + 4], eax
call sym._NETSTAT_wprintf
mov eax, 0xa
call sym._NETSTAT_load_message
mov esi, dword [ebp - 0x2e0]
mov dword [esp + 0xc], edi
xor edi, edi
mov dword [esp], str.__20s__14lu__15lu_n
mov dword [esp + 8], esi
mov dword [esp + 4], eax
call sym._NETSTAT_wprintf
mov eax, 0xb
call sym._NETSTAT_load_message
mov esi, dword [ebp - 0x2e8]
mov dword [esp], str.__20s__14lu__15lu_n
mov dword [esp + 0xc], esi
mov esi, dword [ebp - 0x2e4]
mov dword [esp + 4], eax
mov dword [esp + 8], esi
call sym._NETSTAT_wprintf
mov eax, 0xc
call sym._NETSTAT_load_message
mov esi, dword [ebp - 0x2f0]
mov dword [esp], str.__20s__14lu__15lu_n
mov dword [esp + 0xc], esi
mov esi, dword [ebp - 0x2ec]
mov dword [esp + 4], eax
mov dword [esp + 8], esi
call sym._NETSTAT_wprintf
mov eax, 0xd
call sym._NETSTAT_load_message
mov ebx, dword [ebp - 0x2f8]
mov dword [esp], str.__20s__14lu__15lu_n
mov esi, dword [ebp - 0x2f4]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], eax
call sym._NETSTAT_wprintf
mov eax, 0xe
call sym._NETSTAT_load_message
mov ebx, dword [ebp - 0x2fc]
mov dword [esp], str.__20s__14lu_n_n
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
call sym._NETSTAT_wprintf
mov edx, dword [ebp - 0x300]
mov dword [esp + 4], edi
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
mov eax, dword [ebp - 0x2dc]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
cmp eax, 0x73
jne 0x402040
mov edi, dword [ebx + 8]
add ebx, 4
dec esi
mov edx, 1
test edi, edi
jne 0x401c09
call sym._NETSTAT_tcp_stats
call sym._NETSTAT_udp_stats
jmp 0x401f5d
mov dword [esp + 8], edi
xor edi, edi
mov dword [esp + 4], edi
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 0x401f5d
mov eax, dword [ebp - 0x2d8]
mov edx, dword [ebp - 0x2e0]
jmp 0x401c60
test byte [0x404004], 2
mov ecx, 1
mov dword [ebp - 0x2dc], ecx
je 0x401f5d
call sym._WSAGetLastError_0
mov edx, 0x404004
mov dword [esp + 4], edx
mov dword [esp], 1
mov dword [esp + 0x10], eax
mov eax, str.WSAStartup_failed:__d_n
mov dword [esp + 0xc], eax
mov eax, str.wmain
mov dword [esp + 8], eax
call sym._wine_dbg_log.constprop.0
jmp 0x401f5d
call sym._NETSTAT_conn_header
lea esi, [esi]
call sym._NETSTAT_tcp_table
call sym._NETSTAT_udp_table
jmp 0x401f5d
test byte [0x404004], 1
mov eax, 1
mov dword [ebp - 0x2dc], eax
je 0x401f5d
mov eax, edi
shr eax, 0x10
je 0x402438
mov dword [esp], edi
mov eax, 0xffffffff
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
jne 0x40246a
cmp word [edi], 0
je 0x4024c0
lea esi, [esi]
mov ecx, eax
cmp word [edi + ecx*2 + 2], 0
lea eax, [eax + 1]
jne 0x402090
lea edx, [ebp - 0x1b2]
mov ebx, 0x224c
mov word [ebp - 0x2d4], bx
lea ebx, [ebp - 0x2d2]
mov dword [ebp - 0x2dc], edx
jmp 0x4020f9
cmp eax, 9
je 0x4023a0
cmp eax, 0xa
jne 0x40233c
mov word [ebx], 0x6e5c
add ebx, 2
lea esi, [esi]
cmp ebx, dword [ebp - 0x2dc]
lea eax, [ecx - 1]
ja 0x4023c0
test ecx, ecx
jle 0x4023c0
mov ecx, eax
movzx eax, word [edi]
add edi, 2
cmp eax, 0xd
je 0x4023b0
jbe 0x4020c0
cmp eax, 0x22
je 0x402390
cmp eax, 0x5c
jne 0x40232f
mov word [ebx], 0x5c5c
add ebx, 2
jmp 0x4020e0
mov dword [ebp - 0x2e0], edx
cmp esi, 2
je 0x402300
mov edi, dword [ebx + 8]
mov esi, 0x4054dc
mov dword [esp + 4], esi
mov esi, dword [sym.imp.ucrtbase.dll__wcsicmp]
mov dword [esp], edi
call esi
test eax, eax
jne 0x402260
test byte [0x404004], 1
je 0x401f5d
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4025e2
mov eax, ebx
shr eax, 0x10
je 0x4025be
mov dword [esp], ebx
mov esi, 0xffffffff
mov dword [esp + 4], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
jne 0x4025db
cmp word [ebx], 0
je 0x4025e9
nop
lea esi, [esi]
mov ecx, eax
cmp word [ebx + ecx*2 + 2], 0
lea eax, [eax + 1]
jne 0x4021b0
lea edx, [ebp - 0x1b2]
mov eax, 0x224c
mov word [ebp - 0x2d4], ax
lea edi, [ebp - 0x2d2]
mov dword [ebp - 0x2e0], edx
jmp 0x402219
cmp eax, 9
je 0x4024f0
cmp eax, 0xa
jne 0x40250a
mov word [edi], 0x6e5c
add edi, 2
lea esi, [esi]
cmp edi, dword [ebp - 0x2e0]
lea eax, [ecx - 1]
ja 0x402565
test ecx, ecx
jle 0x402565
mov ecx, eax
movzx eax, word [ebx]
add ebx, 2
cmp eax, 0xd
je 0x4024e1
jbe 0x4021e0
cmp eax, 0x22
je 0x402558
cmp eax, 0x5c
jne 0x4024fd
mov word [edi], 0x5c5c
add edi, 2
jmp 0x402200
test edx, edx
je 0x402250
call sym._NETSTAT_tcp_stats
nop
call sym._NETSTAT_conn_header
call sym._NETSTAT_tcp_table
jmp 0x401f5d
mov dword [esp], edi
mov ecx, str.IPv6
mov dword [esp + 4], ecx
call esi
test eax, eax
je 0x40215e
mov dword [esp], edi
mov edx, str.ICMP
mov dword [esp + 4], edx
call esi
test eax, eax
je 0x40215e
mov dword [esp], edi
mov eax, str.ICMPv6
mov dword [esp + 4], eax
call esi
test eax, eax
je 0x40215e
mov dword [esp], edi
mov eax, 0x4054ac
mov dword [esp + 4], eax
call esi
mov edx, dword [ebp - 0x2e0]
test eax, eax
je 0x402246
mov dword [esp], edi
mov eax, str.TCPv6
mov dword [esp + 4], eax
call esi
test eax, eax
je 0x40215e
mov dword [esp], edi
mov eax, 0x405498
mov dword [esp + 4], eax
call esi
mov edx, dword [ebp - 0x2e0]
test eax, eax
je 0x402310
mov dword [esp], edi
mov eax, str.UDPv6
mov dword [esp + 4], eax
call esi
jmp 0x40215e
mov esi, 1
mov dword [ebp - 0x2dc], esi
jmp 0x401f5d
test edx, edx
jne 0x402458
call sym._NETSTAT_conn_header
xor edi, edi
call sym._NETSTAT_udp_table
mov dword [ebp - 0x2dc], edi
jmp 0x401f5d
lea esi, [eax - 0x20]
cmp si, 0x5e
jbe 0x402450
mov byte [ebx], 0x5c
mov esi, eax
add ebx, 5
shr esi, 0xc
movzx edx, byte [esi + str.0123456789abcdefNETSTAT_wprintf]
mov esi, eax
shr esi, 8
and esi, 0xf
mov byte [ebx - 4], dl
movzx edx, byte [esi + str.0123456789abcdefNETSTAT_wprintf]
mov esi, eax
shr esi, 4
and eax, 0xf
and esi, 0xf
movzx eax, byte [eax + str.0123456789abcdefNETSTAT_wprintf]
mov byte [ebx - 3], dl
movzx edx, byte [esi + str.0123456789abcdefNETSTAT_wprintf]
mov byte [ebx - 1], al
mov byte [ebx - 2], dl
jmp 0x4020e0
mov word [ebx], 0x225c
add ebx, 2
jmp 0x4020e0
mov word [ebx], 0x745c
add ebx, 2
jmp 0x4020e0
mov word [ebx], 0x725c
add ebx, 2
jmp 0x4020e0
mov byte [ebx], 0x22
test eax, eax
jle 0x4024d9
mov word [ebx + 1], 0x2e2e
lea eax, [ebx + 4]
mov byte [ebx + 3], 0x2e
mov byte [eax], 0
lea eax, [ebp - 0x2d4]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov dword [esp + 0x10], eax
mov eax, str.wmain
mov edi, str.Unknown_option:__s_n
mov dword [esp + 8], eax
mov eax, 0x404004
mov dword [esp + 0xc], edi
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
mov eax, 1
mov dword [ebp - 0x2dc], eax
jmp 0x401f5d
test edx, edx
jne 0x401f8d
jmp 0x401f5d
mov dword [esp], str._04x
movzx edi, di
mov dword [esp + 4], edi
call sym._wine_dbg_sprintf.constprop.0
jmp 0x4023e9
mov byte [ebx], al
inc ebx
jmp 0x4020e0
nop
lea esi, [esi]
call sym._NETSTAT_udp_stats
jmp 0x402318
mov eax, str._invalid_
nop
jmp 0x4023e9
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x2fc], eax
xor eax, eax
xor esi, esi
mov dword [ebp - 0x2f8], eax
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x2f4], eax
xor eax, eax
xor edi, edi
mov dword [ebp - 0x2f0], eax
xor eax, eax
mov dword [ebp - 0x2e4], ebx
xor ebx, ebx
mov dword [ebp - 0x2e0], esi
xor esi, esi
mov dword [ebp - 0x2ec], eax
mov dword [ebp - 0x2e8], ecx
jmp 0x401e37
mov byte [ebp - 0x2d2], 0x22
lea ebx, [ebp - 0x2d2]
mov edx, 0x224c
mov word [ebp - 0x2d4], dx
lea eax, [ebx + 1]
jmp 0x4023d8
mov word [edi], 0x725c
add edi, 2
jmp 0x402200
mov word [edi], 0x745c
add edi, 2
jmp 0x402200
lea esi, [eax - 0x20]
cmp si, 0x5e
jbe 0x4025d3
mov byte [edi], 0x5c
mov esi, eax
add edi, 5
shr esi, 0xc
movzx edx, byte [esi + str.0123456789abcdefNETSTAT_wprintf]
mov esi, eax
shr esi, 8
and esi, 0xf
mov byte [edi - 4], dl
movzx edx, byte [esi + str.0123456789abcdefNETSTAT_wprintf]
mov esi, eax
shr esi, 4
and eax, 0xf
and esi, 0xf
movzx eax, byte [eax + str.0123456789abcdefNETSTAT_wprintf]
mov byte [edi - 3], dl
movzx edx, byte [esi + str.0123456789abcdefNETSTAT_wprintf]
mov byte [edi - 1], al
mov byte [edi - 2], dl
jmp 0x402200
mov word [edi], 0x225c
add edi, 2
jmp 0x402200
mov byte [edi], 0x22
test eax, eax
jle 0x4025ff
mov word [edi + 1], 0x2e2e
lea eax, [edi + 4]
mov byte [edi + 3], 0x2e
mov byte [eax], 0
lea eax, [ebp - 0x2d4]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, str.Protocol_not_yet_implemented:__s_n
mov ecx, str.wmain
mov dword [esp + 0x10], eax
mov ebx, 0x404004
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x401f5d
mov dword [esp], str._04x
movzx ebx, bx
mov dword [esp + 4], ebx
call sym._wine_dbg_sprintf.constprop.0
jmp 0x40258e
mov byte [edi], al
inc edi
jmp 0x402200
mov eax, str._invalid_
jmp 0x40258e
mov eax, str._null_
jmp 0x40258e
mov word [ebp - 0x2d4], 0x224c
lea edi, [ebp - 0x2d2]
mov byte [ebp - 0x2d2], 0x22
lea eax, [edi + 1]
jmp 0x40257d