Function at 0x401b80
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 - 0x1a8]
push ebx
sub esp, 0x31c
mov dword [esp + 4], eax
mov dword [esp], 0x202
call sub.ws2_32.dll_WSAStartup
sub esp, 8
test eax, eax
jne 0x401fa8
cmp dword [ebp + 8], 1
mov edi, eax
je 0x402236
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + 4]
test esi, esi
je 0x401f2a
xor ebx, ebx
cmp word [esi], 0x2d
jne 0x402440
movzx eax, word [esi + 2]
cmp ax, 0x70
je 0x402100
ja 0x401f38
cmp ax, 0x61
je 0x401ff8
cmp ax, 0x65
jne 0x402018
mov dword [ebp - 0x2d8], 0x360
mov eax, 0x360
mov dword [ebp - 0x2dc], 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 sub.kernel32.dll_HeapAlloc
sub esp, 0xc
mov esi, eax
lea eax, [ebp - 0x2d8]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.iphlpapi.dll_GetIfTable
sub esp, 0xc
mov ebx, eax
test eax, eax
jne 0x401f70
mov eax, 6
mov dword [ebp - 0x304], esi
mov edi, dword [ebp - 0x2dc]
lea esi, [ebp - 0x2d4]
call fcn.00401760
mov dword [esp], eax
call fcn.00401140
mov dword [esp], 0x405468
call fcn.00401140
mov dword [esp], 0x405468
call fcn.00401140
mov eax, 8
call fcn.00401760
xor edx, edx
nop
movzx ecx, word [eax + edx]
mov word [esi + edx], cx
add edx, 2
test cx, cx
jne 0x401cb0
mov eax, 7
call fcn.00401760
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp], str._____________________________19s__s_n_n
call fcn.00401140
mov edx, dword [ebp - 0x304]
mov eax, dword [edx]
mov dword [ebp - 0x300], eax
test eax, eax
je 0x4024e5
xor ecx, ecx
mov dword [ebp - 0x2f8], ebx
lea eax, [edx + 0x22c]
xor esi, esi
mov dword [ebp - 0x2f4], 0
xor edx, edx
mov dword [ebp - 0x2f0], 0
mov dword [ebp - 0x2ec], 0
mov dword [ebp - 0x2e8], 0
mov dword [ebp - 0x2e4], 0
mov dword [ebp - 0x2e0], 0
mov dword [ebp - 0x2dc], 0
mov dword [ebp - 0x2fc], ecx
mov dword [ebp - 0x308], 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 - 0x2f8], ebx
add esi, dword [eax - 0x344]
mov ebx, dword [eax - 0x340]
add dword [ebp - 0x2dc], ecx
add edi, dword [eax - 0x348]
mov ecx, dword [eax - 0x354]
add dword [ebp - 0x2fc], ebx
add dword [ebp - 0x2e0], ecx
mov ecx, dword [eax - 0x33c]
add dword [ebp - 0x2e4], ecx
mov ecx, dword [eax - 0x350]
add dword [ebp - 0x2e8], ecx
mov ecx, dword [eax - 0x338]
add dword [ebp - 0x2ec], ecx
mov ecx, dword [eax - 0x34c]
add dword [ebp - 0x2f0], ecx
mov ecx, dword [eax - 0x334]
add dword [ebp - 0x2f4], ecx
cmp edx, dword [ebp - 0x300]
jne 0x401d60
mov ebx, dword [ebp - 0x2f8]
mov ecx, dword [ebp - 0x2fc]
mov dword [ebp - 0x2f8], edi
mov edi, dword [ebp - 0x308]
mov eax, 9
mov dword [ebp - 0x2fc], ecx
call fcn.00401760
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], str.__20s__14lu__15lu_n
call fcn.00401140
mov eax, 0xa
call fcn.00401760
mov ecx, dword [ebp - 0x2fc]
mov edx, dword [ebp - 0x2dc]
mov dword [esp], str.__20s__14lu__15lu_n
mov dword [esp + 4], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
call fcn.00401140
mov eax, 0xb
call fcn.00401760
mov edx, dword [ebp - 0x2e4]
mov dword [esp], str.__20s__14lu__15lu_n
mov dword [esp + 4], eax
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x2e0]
mov dword [esp + 8], edx
call fcn.00401140
mov eax, 0xc
call fcn.00401760
mov edx, dword [ebp - 0x2ec]
mov dword [esp], str.__20s__14lu__15lu_n
mov dword [esp + 4], eax
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x2e8]
mov dword [esp + 8], edx
call fcn.00401140
mov eax, 0xd
call fcn.00401760
mov edx, dword [ebp - 0x2f4]
mov dword [esp], str.__20s__14lu__15lu_n
mov dword [esp + 4], eax
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x2f0]
mov dword [esp + 8], edx
call fcn.00401140
mov eax, 0xe
call fcn.00401760
mov edx, dword [ebp - 0x2f8]
mov dword [esp], str.__20s__14lu_n_n
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.00401140
mov edx, dword [ebp - 0x304]
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 sub.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 0x402018
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 0x401bc9
call fcn.004018f0
call fcn.00401a50
jmp 0x401f2a
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 sub.kernel32.dll_HeapFree
sub esp, 0xc
cmp ebx, 0x7a
jne 0x402645
mov eax, dword [ebp - 0x2d8]
jmp 0x401c20
mov edi, 1
test byte [0x404004], 2
je 0x401f2a
call sub.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 fcn.004010b0
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.00401810
call fcn.004013c0
call fcn.004015f0
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, 1
test byte [0x404004], 1
je 0x401f2a
mov eax, esi
shr eax, 0x10
je 0x402450
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call sub.kernel32.dll_IsBadStringPtrW
mov edx, str._invalid_
sub esp, 8
test eax, eax
jne 0x40234e
cmp word [esi], 0
je 0x402540
nop
mov ebx, eax
lea eax, [eax + 1]
cmp word [esi + ebx*2 + 2], 0
jne 0x402060
mov ecx, 0x224c
lea edi, [ebp - 0x2d2]
lea edx, [ebp - 0x1b2]
mov word [ebp - 0x2d4], cx
jmp 0x4020c5
cmp ax, 9
je 0x402428
cmp ax, 0xa
jne 0x4023be
mov eax, 0x6e5c
add edi, 2
mov word [edi - 2], ax
lea eax, [ebx - 1]
cmp edi, edx
ja 0x402320
test ebx, ebx
jle 0x402320
mov ebx, eax
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x4023a0
jbe 0x402090
cmp ax, 0x22
je 0x402410
cmp ax, 0x5c
jne 0x4023b1
mov eax, 0x5c5c
add edi, 2
mov word [edi - 2], ax
jmp 0x4020b0
cmp dword [ebp + 8], 2
je 0x402310
mov eax, dword [ebp + 0xc]
mov esi, dword [sym.imp.ucrtbase.dll__wcsicmp]
mov eax, dword [eax + 8]
mov dword [esp + 4], 0x4054dc
mov dword [ebp - 0x2dc], eax
mov dword [esp], eax
call esi
test eax, eax
jne 0x402250
test byte [0x404004], 1
je 0x401f2a
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 8]
test ebx, ebx
je 0x40261d
mov eax, ebx
shr eax, 0x10
je 0x4025f9
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call sub.kernel32.dll_IsBadStringPtrW
mov edx, str._invalid_
sub esp, 8
test eax, eax
jne 0x4024b8
cmp word [ebx], 0
je 0x402627
lea esi, [esi]
mov ecx, eax
lea eax, [eax + 1]
cmp word [ebx + ecx*2 + 2], 0
jne 0x402188
mov eax, 0x224c
lea edx, [ebp - 0x1b2]
mov dword [ebp - 0x2e0], edi
lea esi, [ebp - 0x2d2]
mov word [ebp - 0x2d4], ax
mov dword [ebp - 0x2dc], edx
jmp 0x4021f9
cmp ax, 9
je 0x4025e8
cmp ax, 0xa
jne 0x40256e
mov eax, 0x6e5c
add esi, 2
mov word [esi - 2], ax
lea eax, [ecx - 1]
cmp esi, dword [ebp - 0x2dc]
ja 0x402484
test ecx, ecx
jle 0x402484
mov ecx, eax
movzx eax, word [ebx]
add ebx, 2
cmp ax, 0xd
je 0x4025d1
jbe 0x4021c0
cmp ax, 0x22
je 0x4025c0
cmp ax, 0x5c
jne 0x402561
mov edi, 0x5c5c
add esi, 2
mov word [esi - 2], di
jmp 0x4021e0
test ebx, ebx
je 0x402236
call fcn.004018f0
call fcn.00401810
call fcn.004013c0
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x2dc]
mov dword [esp + 4], str.IPv6
mov dword [esp], eax
call esi
test eax, eax
je 0x402131
mov eax, dword [ebp - 0x2dc]
mov dword [esp + 4], str.ICMP
mov dword [esp], eax
call esi
test eax, eax
je 0x402131
mov eax, dword [ebp - 0x2dc]
mov dword [esp + 4], str.ICMPv6
mov dword [esp], eax
call esi
test eax, eax
je 0x402131
mov eax, dword [ebp - 0x2dc]
mov dword [esp + 4], 0x4054ac
mov dword [esp], eax
call esi
test eax, eax
je 0x40222d
mov eax, dword [ebp - 0x2dc]
mov dword [esp + 4], str.TCPv6
mov dword [esp], eax
call esi
test eax, eax
je 0x402131
mov eax, dword [ebp - 0x2dc]
mov dword [esp + 4], 0x405498
mov dword [esp], eax
call esi
test eax, eax
je 0x402380
mov eax, dword [ebp - 0x2dc]
mov dword [esp + 4], str.UDPv6
mov dword [esp], eax
call esi
jmp 0x402131
mov edi, 1
jmp 0x401f2a
mov byte [edi], 0x22
test eax, eax
jle 0x402559
mov ebx, 0x2e2e
mov byte [edi + 3], 0x2e
lea eax, [edi + 4]
mov word [edi + 1], bx
mov byte [eax], 0
lea eax, [ebp - 0x2d4]
mov dword [esp], eax
call fcn.00402ce0
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 fcn.004010b0
jmp 0x401f2a
test ebx, ebx
jne 0x40247a
call fcn.00401810
xor edi, edi
call fcn.004015f0
jmp 0x401f2a
mov eax, 0x725c
add edi, 2
mov word [edi - 2], ax
jmp 0x4020b0
lea ecx, [eax - 0x20]
cmp cx, 0x5e
jbe 0x402470
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 0x4020b0
mov eax, 0x225c
add edi, 2
mov word [edi - 2], ax
jmp 0x4020b0
mov eax, 0x745c
add edi, 2
mov word [edi - 2], ax
jmp 0x4020b0
test ebx, ebx
jne 0x401f5d
jmp 0x401f2a
movzx esi, si
mov dword [esp], str._04x
mov dword [esp + 4], esi
call fcn.00401b20
mov edx, eax
jmp 0x40234e
mov byte [edi], al
add edi, 1
jmp 0x4020b0
call fcn.00401a50
jmp 0x402388
mov byte [esi], 0x22
mov edi, dword [ebp - 0x2e0]
test eax, eax
jle 0x40263d
mov edx, 0x2e2e
mov byte [esi + 3], 0x2e
lea eax, [esi + 4]
mov word [esi + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x2d4]
mov dword [esp], eax
call fcn.00402ce0
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 fcn.004010b0
jmp 0x401f2a
mov dword [ebp - 0x2f8], 0
xor ecx, ecx
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x2f4], 0
mov dword [ebp - 0x2f0], 0
mov dword [ebp - 0x2ec], 0
mov dword [ebp - 0x2e8], 0
mov dword [ebp - 0x2e4], 0
mov dword [ebp - 0x2e0], 0
mov dword [ebp - 0x2dc], 0
jmp 0x401dfd
mov edx, 0x224c
mov byte [ebp - 0x2d2], 0x22
lea edi, [ebp - 0x2d2]
mov word [ebp - 0x2d4], dx
lea eax, [edi + 1]
jmp 0x40233b
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x402613
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 0x4021e0
mov eax, 0x225c
add esi, 2
mov word [esi - 2], ax
jmp 0x4021e0
mov eax, 0x725c
add esi, 2
mov word [esi - 2], ax
jmp 0x4021e0
mov eax, 0x745c
add esi, 2
mov word [esi - 2], ax
jmp 0x4021e0
movzx ebx, bx
mov dword [esp], str._04x
mov dword [esp + 4], ebx
call fcn.00401b20
mov edx, eax
jmp 0x4024b8
mov byte [esi], al
add esi, 1
jmp 0x4021e0
mov edx, str._null_
jmp 0x4024b8
mov word [ebp - 0x2d4], 0x224c
lea esi, [ebp - 0x2d2]
mov byte [ebp - 0x2d2], 0x22
lea eax, [esi + 1]
jmp 0x4024a5
mov edi, dword [ebp - 0x2dc]
jmp 0x401f2a