Function at 0x402c40
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
lea eax, [ebp - 0x1a8]
push ebx
push ecx
sub esp, 0x218
mov esi, dword [ecx]
mov ebx, dword [ecx + 4]
mov dword [esp + 4], eax
mov dword [esp], 0x202
call dword [sym.imp.ws2_32.dll_WSAStartup]
sub esp, 8
test eax, eax
jne 0x403088
mov edi, eax
cmp esi, 1
je 0x4031ca
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x403011
xor edx, edx
cmp word [ecx], 0x2d
jne 0x4032d0
movzx eax, word [ecx + 2]
cmp ax, 0x70
je 0x403150
ja 0x403020
cmp ax, 0x61
je 0x4030e0
cmp ax, 0x65
jne 0x403100
mov dword [ebp - 0x1d4], 0x360
mov eax, 0x360
mov dword [ebp - 0x1dc], edi
mov ebx, dword fs:[0x18]
mov esi, ebx
lea esi, [esi]
lea esi, [esi]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov edi, eax
lea eax, [ebp - 0x1d4]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._GetIfTable_12
sub esp, 0xc
mov ebx, eax
test eax, eax
jne 0x403050
mov dword [ebp - 0x1e0], eax
mov eax, 6
mov esi, edi
mov edi, dword [ebp - 0x1dc]
call sym._NETSTAT_load_message
mov dword [esp], eax
call sym._NETSTAT_wprintf
mov dword [esp], 0x4062d4
call sym._NETSTAT_wprintf
mov dword [esp], 0x4062d4
call sym._NETSTAT_wprintf
mov eax, 8
call sym._NETSTAT_load_message
mov edx, dword [ebp - 0x1e0]
mov ecx, eax
xor eax, eax
lea esi, [esi]
nop
movzx ebx, word [ecx + eax]
mov word [ebp + eax - 0x1ce], bx
add eax, 2
test bx, bx
jne 0x402d88
mov eax, 7
mov dword [ebp - 0x1fc], edx
call sym._NETSTAT_load_message
mov dword [esp], str._____________________________19s__s_n_n
mov dword [esp + 8], eax
lea eax, [ebp - 0x1ce]
mov dword [esp + 4], eax
call sym._NETSTAT_wprintf
mov eax, dword [esi]
mov dword [ebp - 0x200], eax
test eax, eax
je 0x4032e4
xor ebx, ebx
mov dword [ebp - 0x204], esi
lea eax, [esi + 0x22c]
xor ecx, ecx
mov dword [ebp - 0x1dc], 0
xor esi, esi
mov dword [ebp - 0x1f4], 0
mov dword [ebp - 0x1f0], 0
mov dword [ebp - 0x1ec], 0
mov dword [ebp - 0x1e8], 0
mov dword [ebp - 0x1e4], 0
mov dword [ebp - 0x1e0], 0
mov dword [ebp - 0x1f8], ebx
mov dword [ebp - 0x208], edi
xor edi, edi
lea esi, [esi]
mov edx, dword [eax + 0x18]
mov ebx, dword [eax]
inc ecx
add eax, 0x35c
add dword [ebp - 0x1f8], edx
add esi, dword [eax - 0x334]
mov edx, dword [eax - 0x358]
add edi, dword [eax - 0x348]
add dword [ebp - 0x1e0], edx
mov edx, dword [eax - 0x340]
add dword [ebp - 0x1fc], ebx
add dword [ebp - 0x1e4], edx
mov edx, dword [eax - 0x354]
add dword [ebp - 0x1e8], edx
mov edx, dword [eax - 0x33c]
add dword [ebp - 0x1ec], edx
mov edx, dword [eax - 0x350]
add dword [ebp - 0x1f0], edx
mov edx, dword [eax - 0x338]
add dword [ebp - 0x1f4], edx
mov edx, dword [eax - 0x34c]
add dword [ebp - 0x1dc], edx
cmp ecx, dword [ebp - 0x200]
jne 0x402e40
mov dword [ebp - 0x200], edi
mov edx, dword [ebp - 0x1fc]
mov ebx, dword [ebp - 0x1f8]
mov dword [ebp - 0x1fc], esi
mov edi, dword [ebp - 0x208]
mov esi, dword [ebp - 0x204]
mov eax, 9
mov dword [ebp - 0x1f8], edx
call sym._NETSTAT_load_message
mov edx, dword [ebp - 0x1f8]
mov dword [esp + 0xc], ebx
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 ebx, dword [ebp - 0x1e4]
mov dword [esp], str.__20s__14lu__15lu_n
mov dword [esp + 4], eax
mov dword [esp + 0xc], ebx
mov ebx, dword [ebp - 0x1e0]
mov dword [esp + 8], ebx
call sym._NETSTAT_wprintf
mov eax, 0xb
call sym._NETSTAT_load_message
mov ebx, dword [ebp - 0x1ec]
mov dword [esp], str.__20s__14lu__15lu_n
mov dword [esp + 4], eax
mov dword [esp + 0xc], ebx
mov ebx, dword [ebp - 0x1e8]
mov dword [esp + 8], ebx
call sym._NETSTAT_wprintf
mov eax, 0xc
call sym._NETSTAT_load_message
mov ebx, dword [ebp - 0x1f4]
mov dword [esp], str.__20s__14lu__15lu_n
mov dword [esp + 4], eax
mov dword [esp + 0xc], ebx
mov ebx, dword [ebp - 0x1f0]
mov dword [esp + 8], ebx
call sym._NETSTAT_wprintf
mov eax, 0xd
call sym._NETSTAT_load_message
mov ebx, dword [ebp - 0x1fc]
mov dword [esp], str.__20s__14lu__15lu_n
mov dword [esp + 4], eax
mov dword [esp + 0xc], ebx
mov ebx, dword [ebp - 0x1dc]
mov dword [esp + 8], ebx
call sym._NETSTAT_wprintf
mov eax, 0xe
call sym._NETSTAT_load_message
mov ebx, dword [ebp - 0x200]
mov dword [esp], str.__20s__14lu_n_n
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
call sym._NETSTAT_wprintf
mov dword [esp + 8], esi
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
lea esp, [ebp - 0x10]
mov eax, edi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
cmp ax, 0x73
jne 0x403100
mov ecx, dword [ebx + 8]
add ebx, 4
dec esi
mov edx, 1
test ecx, ecx
jne 0x402c96
call sym._NETSTAT_tcp_stats
call sym._NETSTAT_udp_stats
jmp 0x403011
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
cmp ebx, 0x7a
jne 0x403347
mov eax, dword [ebp - 0x1d4]
jmp 0x402cf0
mov edi, 1
test byte [0x404010], 2
je 0x403011
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], 0x404010
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
lea esp, [ebp - 0x10]
mov eax, edi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
call sym._NETSTAT_conn_header
call sym._NETSTAT_tcp_table
call sym._NETSTAT_udp_table
lea esp, [ebp - 0x10]
mov eax, edi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov edi, 1
test byte [0x404010], 1
je 0x403011
mov eax, ecx
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], 0x404010
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x403011
mov dword [ebp - 0x1e0], edx
cmp esi, 2
je 0x4032b0
mov eax, dword [ebx + 8]
mov esi, dword [sym.imp.ucrtbase.dll__wcsicmp]
mov dword [esp + 4], 0x4063ec
mov dword [ebp - 0x1dc], eax
mov dword [esp], eax
call esi
test eax, eax
jne 0x4031e8
test byte [0x404010], 1
je 0x403011
mov eax, dword [ebx + 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], 0x404010
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x403011
test edx, edx
je 0x4031ca
call sym._NETSTAT_tcp_stats
call sym._NETSTAT_conn_header
call sym._NETSTAT_tcp_table
lea esp, [ebp - 0x10]
mov eax, edi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov eax, dword [ebp - 0x1dc]
mov dword [esp + 4], str.IPv6
mov dword [esp], eax
call esi
test eax, eax
je 0x40317f
mov eax, dword [ebp - 0x1dc]
mov dword [esp + 4], 0x4063d0
mov dword [esp], eax
call esi
test eax, eax
je 0x40317f
mov eax, dword [ebp - 0x1dc]
mov dword [esp + 4], str.ICMPv6
mov dword [esp], eax
call esi
test eax, eax
je 0x40317f
mov eax, dword [ebp - 0x1dc]
mov dword [esp + 4], 0x406400
mov dword [esp], eax
call esi
mov edx, dword [ebp - 0x1e0]
test eax, eax
je 0x4031c1
mov eax, dword [ebp - 0x1dc]
mov dword [esp + 4], str.TCPv6
mov dword [esp], eax
call esi
test eax, eax
je 0x40317f
mov eax, dword [ebp - 0x1dc]
mov dword [esp + 4], 0x4065cc
mov dword [esp], eax
call esi
mov edx, dword [ebp - 0x1e0]
test eax, eax
je 0x4032ba
mov eax, dword [ebp - 0x1dc]
mov dword [esp + 4], str.UDPv6
mov dword [esp], eax
call esi
jmp 0x40317f
mov edi, 1
jmp 0x403011
test edx, edx
jne 0x4032dd
call sym._NETSTAT_conn_header
xor edi, edi
call sym._NETSTAT_udp_table
jmp 0x403011
test edx, edx
jne 0x40303e
jmp 0x403011
call sym._NETSTAT_udp_stats
jmp 0x4032be
mov dword [ebp - 0x200], 0
xor ebx, ebx
xor edx, edx
mov dword [ebp - 0x1fc], 0
mov dword [ebp - 0x1dc], 0
mov dword [ebp - 0x1f4], 0
mov dword [ebp - 0x1f0], 0
mov dword [ebp - 0x1ec], 0
mov dword [ebp - 0x1e8], 0
mov dword [ebp - 0x1e4], 0
mov dword [ebp - 0x1e0], 0
jmp 0x402ee3
mov edi, dword [ebp - 0x1dc]
jmp 0x403011