Function at 0x401b60
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 0x401c24
cmp dword [ebp + 8], 1
mov edi, eax
je 0x40219b
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + 4]
test esi, esi
je 0x401bf7
cmp word [esi], 0x2d
jne 0x401bf7
xor ebx, ebx
movzx eax, word [esi + 2]
cmp ax, 0x65
je 0x401e30
jbe 0x401c01
cmp ax, 0x70
je 0x401c70
cmp ax, 0x73
jne 0x401d72
add dword [ebp + 0xc], 4
mov eax, dword [ebp + 0xc]
sub dword [ebp + 8], 1
mov esi, dword [eax + 4]
test esi, esi
je 0x401bed
cmp word [esi], 0x2d
mov ebx, 1
je 0x401bac
call dbg.NETSTAT_tcp_stats
call dbg.NETSTAT_udp_stats
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
cmp ax, 0x61
jne 0x401d72
call dbg.NETSTAT_conn_header
call dbg.NETSTAT_tcp_table
call dbg.NETSTAT_udp_table
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, 1
test byte [0x403004], 2
je 0x401bf7
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], global___func__.0
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.4
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [ebp + 8], 2
je 0x4022a0
mov eax, dword [ebp + 0xc]
mov esi, dword [sym.imp.ucrtbase.dll__wcsicmp]
mov eax, dword [eax + 8]
mov dword [esp + 4], 0x4044dc
mov dword [ebp - 0x2d0], eax
mov dword [esp], eax
call esi
test eax, eax
jne 0x4021b0
test byte [0x403004], 1
je 0x401bf7
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 8]
test ebx, ebx
je 0x4025b7
mov eax, ebx
shr eax, 0x10
je 0x402593
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov esi, eax
sub esp, 8
mov eax, str._invalid_
test esi, esi
jne 0x402460
cmp word [ebx], 0
je 0x401cfa
add esi, 1
cmp word [ebx + esi*2], 0
jne 0x401cf0
mov eax, 0x224c
lea edx, [ebp - 0x1a6]
mov dword [ebp - 0x2d4], edi
lea ecx, [ebp - 0x2c6]
mov word [ebp - 0x2c8], ax
mov dword [ebp - 0x2d0], edx
nop
lea edi, [esi - 1]
cmp ecx, dword [ebp - 0x2d0]
ja 0x40242c
test esi, esi
jle 0x40242c
add ebx, 2
movzx eax, word [ebx - 2]
cmp ax, 0xd
je 0x402505
ja 0x402330
cmp ax, 9
je 0x4024f2
cmp ax, 0xa
jne 0x402520
mov eax, 0x6e5c
add ecx, 2
mov esi, edi
mov word [ecx - 2], ax
jmp 0x401d20
mov edi, 1
test byte [0x403004], 1
je 0x401bf7
mov eax, esi
shr eax, 0x10
je 0x402403
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x4022db
cmp word [esi], 0
je 0x401dca
lea esi, [esi]
nop
add ecx, 1
cmp word [esi + ecx*2], 0
jne 0x401dc0
mov eax, 0x224c
lea ebx, [ebp - 0x2c6]
lea edx, [ebp - 0x1a6]
mov word [ebp - 0x2c8], ax
lea edi, [ecx - 1]
cmp ebx, edx
ja 0x4022b0
test ecx, ecx
jle 0x4022b0
add esi, 2
movzx eax, word [esi - 2]
cmp ax, 0xd
je 0x402360
ja 0x402270
cmp ax, 9
je 0x4023f0
cmp ax, 0xa
jne 0x402373
mov eax, 0x6e5c
add ebx, 2
mov ecx, edi
mov word [ebx - 2], ax
jmp 0x401de2
mov dword [ebp - 0x2cc], 0x360
mov eax, 0x360
mov esi, dword fs:[0x18]
mov dword [ebp - 0x2d0], edi
mov edi, esi
nop
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 0x402160
mov eax, 6
mov dword [ebp - 0x2f8], esi
mov edi, dword [ebp - 0x2d0]
call sym._NETSTAT_load_message
mov dword [esp], eax
call dbg.NETSTAT_wprintf
mov dword [esp], 0x404468
call dbg.NETSTAT_wprintf
mov dword [esp], 0x404468
call dbg.NETSTAT_wprintf
mov eax, 8
call sym._NETSTAT_load_message
xor ecx, ecx
lea edx, [ebp - 0x2c8]
movzx esi, word [eax + ecx]
mov word [edx + ecx], si
add ecx, 2
test si, si
jne 0x401ee0
mov eax, 7
call sym._NETSTAT_load_message
lea edx, [ebp - 0x2c8]
mov dword [esp], str._____________________________19s__s_n_n
mov dword [esp + 8], eax
mov dword [esp + 4], edx
call dbg.NETSTAT_wprintf
mov ecx, dword [ebp - 0x2f8]
mov eax, dword [ecx]
mov dword [ebp - 0x2f4], eax
test eax, eax
je 0x402497
xor edx, edx
mov dword [ebp - 0x2ec], ebx
lea eax, [ecx + 0x22c]
xor esi, esi
mov dword [ebp - 0x2e4], 0
xor ecx, ecx
mov dword [ebp - 0x2e8], 0
mov dword [ebp - 0x2d8], 0
mov dword [ebp - 0x2d0], 0
mov dword [ebp - 0x2dc], 0
mov dword [ebp - 0x2d4], 0
mov dword [ebp - 0x2e0], 0
mov dword [ebp - 0x2f0], edx
mov dword [ebp - 0x2fc], edi
xor edi, edi
mov ebx, dword [eax]
mov edx, dword [eax + 4]
add ecx, 1
add eax, 0x35c
add dword [ebp - 0x2ec], ebx
add esi, dword [eax - 0x344]
mov ebx, dword [eax - 0x348]
add dword [ebp - 0x2e0], edx
add edi, dword [eax - 0x334]
mov edx, dword [eax - 0x340]
add dword [ebp - 0x2f0], ebx
add dword [ebp - 0x2d4], edx
mov edx, dword [eax - 0x354]
add dword [ebp - 0x2dc], edx
mov edx, dword [eax - 0x33c]
add dword [ebp - 0x2d0], edx
mov edx, dword [eax - 0x350]
add dword [ebp - 0x2d8], edx
mov edx, dword [eax - 0x338]
add dword [ebp - 0x2e8], edx
mov edx, dword [eax - 0x34c]
add dword [ebp - 0x2e4], edx
cmp ecx, dword [ebp - 0x2f4]
jne 0x401f90
mov ebx, dword [ebp - 0x2ec]
mov edx, dword [ebp - 0x2f0]
mov dword [ebp - 0x2ec], edi
mov edi, dword [ebp - 0x2fc]
mov eax, 9
mov dword [ebp - 0x2f0], edx
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 dbg.NETSTAT_wprintf
mov eax, 0xa
call sym._NETSTAT_load_message
mov ecx, dword [ebp - 0x2d4]
mov dword [esp], str.__20s__14lu__15lu_n
mov dword [esp + 4], eax
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x2e0]
mov dword [esp + 8], ecx
call dbg.NETSTAT_wprintf
mov eax, 0xb
call sym._NETSTAT_load_message
mov ecx, dword [ebp - 0x2d0]
mov dword [esp], str.__20s__14lu__15lu_n
mov dword [esp + 4], eax
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x2dc]
mov dword [esp + 8], ecx
call dbg.NETSTAT_wprintf
mov eax, 0xc
call sym._NETSTAT_load_message
mov ecx, dword [ebp - 0x2e8]
mov dword [esp], str.__20s__14lu__15lu_n
mov dword [esp + 4], eax
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x2d8]
mov dword [esp + 8], ecx
call dbg.NETSTAT_wprintf
mov eax, 0xd
call sym._NETSTAT_load_message
mov ecx, dword [ebp - 0x2ec]
mov dword [esp], str.__20s__14lu__15lu_n
mov dword [esp + 4], eax
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x2e4]
mov dword [esp + 8], ecx
call dbg.NETSTAT_wprintf
mov eax, 0xe
call sym._NETSTAT_load_message
mov edx, dword [ebp - 0x2f0]
mov dword [esp], str.__20s__14lu_n_n
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call dbg.NETSTAT_wprintf
mov ecx, dword [ebp - 0x2f8]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], ecx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x401bf7
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 0x4025c9
mov eax, dword [ebp - 0x2cc]
jmp 0x401e50
test ebx, ebx
je 0x40219b
call dbg.NETSTAT_tcp_stats
call dbg.NETSTAT_conn_header
call dbg.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 0x401ca1
mov eax, dword [ebp - 0x2d0]
mov dword [esp + 4], str.ICMP
mov dword [esp], eax
call esi
test eax, eax
je 0x401ca1
mov eax, dword [ebp - 0x2d0]
mov dword [esp + 4], str.ICMPv6
mov dword [esp], eax
call esi
test eax, eax
je 0x401ca1
mov eax, dword [ebp - 0x2d0]
mov dword [esp + 4], 0x4044ac
mov dword [esp], eax
call esi
test eax, eax
je 0x402192
mov eax, dword [ebp - 0x2d0]
mov dword [esp + 4], str.TCPv6
mov dword [esp], eax
call esi
test eax, eax
je 0x401ca1
mov eax, dword [ebp - 0x2d0]
mov dword [esp + 4], 0x404498
mov dword [esp], eax
call esi
test eax, eax
je 0x40230d
mov eax, dword [ebp - 0x2d0]
mov dword [esp + 4], str.UDPv6
mov dword [esp], eax
call esi
jmp 0x401ca1
cmp ax, 0x22
je 0x4023d3
cmp ax, 0x5c
jne 0x402373
mov ecx, 0x5c5c
add ebx, 2
mov word [ebx - 2], cx
mov ecx, edi
jmp 0x401de2
mov edi, 1
jmp 0x401bf7
mov byte [ebx], 0x22
lea eax, [ebx + 1]
test edi, edi
jle 0x4022ca
mov edx, 0x2e2e
mov byte [ebx + 3], 0x2e
lea eax, [ebx + 4]
mov word [ebx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x2c8]
mov dword [esp], eax
call dbg.__wine_dbg_strdup
mov dword [esp + 0x10], eax
mov edi, 1
mov dword [esp + 0xc], str.Unknown_option:__s_n
mov dword [esp + 8], global___func__.0
mov dword [esp + 4], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.4
jmp 0x401bf7
test ebx, ebx
jne 0x40248d
call dbg.NETSTAT_conn_header
xor edi, edi
call dbg.NETSTAT_udp_table
jmp 0x401bf7
cmp ax, 0x22
je 0x402580
cmp ax, 0x5c
jne 0x402520
mov esi, 0x5c5c
add ecx, 2
mov word [ecx - 2], si
mov esi, edi
jmp 0x401d20
mov eax, 0x725c
add ebx, 2
mov ecx, edi
mov word [ebx - 2], ax
jmp 0x401de2
lea ecx, [eax - 0x20]
cmp cx, 0x5e
jbe 0x402420
mov ecx, eax
mov byte [ebx], 0x5c
add ebx, 5
shr cx, 0xc
movzx ecx, cx
movzx ecx, byte [ecx + str.0123456789abcdefNETSTAT_wprintf]
mov byte [ebx - 4], cl
mov ecx, eax
shr cx, 8
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdefNETSTAT_wprintf]
mov byte [ebx - 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 [ebx - 1], al
mov byte [ebx - 2], cl
mov ecx, edi
jmp 0x401de2
mov eax, 0x225c
add ebx, 2
mov ecx, edi
mov word [ebx - 2], ax
jmp 0x401de2
mov eax, 0x745c
add ebx, 2
mov ecx, edi
mov word [ebx - 2], ax
jmp 0x401de2
movzx esi, si
mov dword [esp], str._04x
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf.constprop.2
jmp 0x4022db
mov byte [ebx], al
mov ecx, edi
add ebx, 1
jmp 0x401de2
mov eax, edi
mov byte [ecx], 0x22
mov edi, dword [ebp - 0x2d4]
test eax, eax
jle 0x4025c1
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x2c8]
mov dword [esp], eax
call dbg.__wine_dbg_strdup
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Protocol_not_yet_implemented:__s_n
mov dword [esp + 8], global___func__.0
mov dword [esp + 4], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.4
jmp 0x401bf7
call dbg.NETSTAT_udp_stats
jmp 0x402315
mov dword [ebp - 0x2ec], 0
xor edx, edx
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x2e4], 0
mov dword [ebp - 0x2e8], 0
mov dword [ebp - 0x2d8], 0
mov dword [ebp - 0x2d0], 0
mov dword [ebp - 0x2dc], 0
mov dword [ebp - 0x2d4], 0
mov dword [ebp - 0x2e0], 0
jmp 0x40202d
mov eax, 0x745c
add ecx, 2
mov esi, edi
mov word [ecx - 2], ax
jmp 0x401d20
mov eax, 0x725c
add ecx, 2
mov esi, edi
mov word [ecx - 2], ax
jmp 0x401d20
lea esi, [eax - 0x20]
cmp si, 0x5e
jbe 0x4025ab
mov esi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr si, 0xc
movzx esi, si
movzx edx, byte [esi + str.0123456789abcdefNETSTAT_wprintf]
mov esi, eax
shr si, 8
and esi, 0xf
mov byte [ecx - 4], dl
movzx edx, byte [esi + str.0123456789abcdefNETSTAT_wprintf]
mov esi, eax
and eax, 0xf
shr si, 4
movzx eax, byte [eax + str.0123456789abcdefNETSTAT_wprintf]
and esi, 0xf
mov byte [ecx - 3], dl
movzx edx, byte [esi + str.0123456789abcdefNETSTAT_wprintf]
mov byte [ecx - 1], al
mov esi, edi
mov byte [ecx - 2], dl
jmp 0x401d20
mov eax, 0x225c
add ecx, 2
mov esi, edi
mov word [ecx - 2], ax
jmp 0x401d20
movzx ebx, bx
mov dword [esp], str._04x
mov dword [esp + 4], ebx
call sym._wine_dbg_sprintf.constprop.2
jmp 0x402460
mov byte [ecx], al
mov esi, edi
add ecx, 1
jmp 0x401d20
mov eax, str._null_
jmp 0x402460
lea eax, [ecx + 1]
jmp 0x40244f
mov edi, dword [ebp - 0x2d0]
jmp 0x401bf7