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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea eax, [ebp - 0x19c]
sub esp, 0x200
mov dword [esp + 4], eax
mov dword [esp], 0x202
call dword [sym.imp.ws2_32.dll_WSAStartup]
mov dword [ebp - 0x1cc], eax
test eax, eax
push ecx
push ecx
jne 0x4022c0
cmp dword [ebp + 8], 1
je 0x4023fd
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 4]
test edx, edx
je 0x40223c
xor edi, edi
cmp word [edx], 0x2d
jne 0x4024d0
mov ax, word [edx + 2]
cmp ax, 0x70
je 0x402388
ja 0x402250
cmp ax, 0x61
je 0x402318
cmp ax, 0x65
jne 0x402338
mov dword [ebp - 0x1c8], 0x360
mov eax, 0x360
lea esi, [ebp - 0x1c8]
mov edi, dword fs:[0x18]
lea esi, [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 dword [ebp - 0x1d0], 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 - 0x1d0]
sub esp, 0xc
mov ebx, eax
test eax, eax
jne 0x402290
mov eax, 6
mov dword [ebp - 0x1f8], edx
call fcn.00401600
lea esi, [ebp - 0x1c2]
mov dword [esp], eax
call fcn.00401380
mov dword [esp], 0x404468
call fcn.00401380
mov dword [esp], 0x404468
call fcn.00401380
mov eax, 8
call fcn.00401600
mov edi, eax
xor eax, eax
mov dx, word [edi + eax]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x401fa0
mov eax, 7
call fcn.00401600
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp], str._____________________________19s__s_n_n
call fcn.00401380
mov esi, dword [ebp - 0x1f8]
mov eax, dword [esi]
mov dword [ebp - 0x1f4], eax
test eax, eax
je 0x4024e4
xor ecx, ecx
xor edx, edx
lea eax, [esi + 0x22c]
mov dword [ebp - 0x1e8], 0
mov dword [ebp - 0x1e4], 0
mov dword [ebp - 0x1e0], 0
mov dword [ebp - 0x1dc], 0
mov dword [ebp - 0x1d8], 0
xor esi, esi
mov dword [ebp - 0x1d4], 0
xor edi, edi
mov dword [ebp - 0x1d0], 0
mov dword [ebp - 0x1ec], edx
mov dword [ebp - 0x1f0], ecx
lea esi, [esi]
mov ecx, dword [eax]
mov edx, dword [eax + 0x18]
add ebx, ecx
add edi, edx
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 0x1d4]
add edx, ecx
mov ecx, dword [eax + 0x1c]
add esi, ecx
mov dword [ebp - 0x1d4], edx
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 0x1d8]
add edx, ecx
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0x1d8], edx
mov edx, dword [ebp - 0x1dc]
add edx, ecx
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x1dc], edx
mov edx, dword [ebp - 0x1e0]
add edx, ecx
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x1e0], edx
mov edx, dword [ebp - 0x1e4]
add edx, ecx
mov ecx, dword [ebp - 0x1ec]
mov dword [ebp - 0x1e4], edx
mov edx, dword [eax + 0x10]
add ecx, edx
mov edx, dword [ebp - 0x1e8]
mov dword [ebp - 0x1ec], ecx
mov ecx, dword [eax + 0x28]
add edx, ecx
mov ecx, dword [ebp - 0x1f0]
mov dword [ebp - 0x1e8], edx
mov edx, dword [eax + 0x14]
add ecx, edx
mov edx, dword [ebp - 0x1d0]
inc edx
add eax, 0x35c
mov dword [ebp - 0x1d0], edx
mov dword [ebp - 0x1f0], ecx
mov edx, dword [ebp - 0x1d0]
cmp edx, dword [ebp - 0x1f4]
jne 0x402048
mov edx, dword [ebp - 0x1ec]
mov ecx, dword [ebp - 0x1f0]
mov eax, 9
mov dword [ebp - 0x1ec], ecx
mov dword [ebp - 0x1d0], edx
call fcn.00401600
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], str.__20s__14lu__15lu_n
call fcn.00401380
mov eax, 0xa
call fcn.00401600
mov dword [esp + 0xc], esi
mov esi, dword [ebp - 0x1d4]
mov dword [esp + 4], eax
mov dword [esp + 8], esi
mov dword [esp], str.__20s__14lu__15lu_n
call fcn.00401380
mov eax, 0xb
call fcn.00401600
mov esi, dword [ebp - 0x1dc]
mov dword [esp + 0xc], esi
mov esi, dword [ebp - 0x1d8]
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], str.__20s__14lu__15lu_n
call fcn.00401380
mov eax, 0xc
call fcn.00401600
mov esi, dword [ebp - 0x1e4]
mov dword [esp + 0xc], esi
mov esi, dword [ebp - 0x1e0]
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], str.__20s__14lu__15lu_n
call fcn.00401380
mov eax, 0xd
call fcn.00401600
mov edx, dword [ebp - 0x1d0]
mov esi, dword [ebp - 0x1e8]
mov dword [esp + 8], edx
mov dword [esp + 0xc], esi
mov dword [esp + 4], eax
mov dword [esp], str.__20s__14lu__15lu_n
call fcn.00401380
mov eax, 0xe
call fcn.00401600
mov ecx, dword [ebp - 0x1ec]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], str.__20s__14lu_n_n
call fcn.00401380
mov esi, dword [ebp - 0x1f8]
mov eax, dword fs:[0x18]
mov dword [esp + 8], esi
mov dword [esp + 4], 0
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 - 0x1cc]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp ax, 0x73
jne 0x402338
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
add eax, 4
dec edx
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
mov edi, 1
mov edx, dword [eax + 4]
test edx, edx
jne 0x401ebd
call fcn.00401780
call fcn.004018e0
jmp 0x40223c
mov dword [esp + 8], edx
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 0x40223c
mov eax, dword [ebp - 0x1c8]
jmp 0x401f10
test byte [0x403004], 2
mov dword [ebp - 0x1cc], 1
je 0x40223c
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 fcn.00401330
mov eax, dword [ebp - 0x1cc]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.004016b0
call fcn.00401b80
call fcn.004019c0
mov eax, dword [ebp - 0x1cc]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x403004], 1
mov dword [ebp - 0x1cc], 1
je 0x40223c
mov eax, edx
call fcn.004010b0
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 fcn.00401330
jmp 0x40223c
cmp dword [ebp + 8], 2
je 0x4024a0
mov eax, dword [ebp + 0xc]
mov ebx, dword [sym.imp.ucrtbase.dll__wcsicmp]
mov esi, dword [eax + 8]
mov dword [esp + 4], 0x4044dc
mov dword [esp], esi
call ebx
test eax, eax
jne 0x402418
test byte [0x403004], 1
je 0x40223c
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
call fcn.004010b0
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 fcn.00401330
jmp 0x40223c
test edi, edi
je 0x4023fd
call fcn.00401780
call fcn.004016b0
call fcn.00401b80
mov eax, dword [ebp - 0x1cc]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], str.IPv6
mov dword [esp], esi
call ebx
test eax, eax
je 0x4023af
mov dword [esp + 4], str.ICMP
mov dword [esp], esi
call ebx
test eax, eax
je 0x4023af
mov dword [esp + 4], str.ICMPv6
mov dword [esp], esi
call ebx
test eax, eax
je 0x4023af
mov dword [esp + 4], 0x4044ac
mov dword [esp], esi
call ebx
test eax, eax
je 0x4023f4
mov dword [esp + 4], str.TCPv6
mov dword [esp], esi
call ebx
test eax, eax
je 0x4023af
mov dword [esp + 4], 0x404498
mov dword [esp], esi
call ebx
test eax, eax
je 0x4024af
mov dword [esp + 4], str.UDPv6
mov dword [esp], esi
call ebx
jmp 0x4023af
mov dword [ebp - 0x1cc], 1
jmp 0x40223c
test edi, edi
jne 0x4024dd
call fcn.004016b0
call fcn.004019c0
mov dword [ebp - 0x1cc], 0
jmp 0x40223c
test edi, edi
jne 0x40227d
jmp 0x40223c
call fcn.004018e0
jmp 0x4024b3
xor ecx, ecx
mov dword [ebp - 0x1e8], 0
xor edx, edx
mov dword [ebp - 0x1e4], 0
mov dword [ebp - 0x1e0], 0
mov dword [ebp - 0x1dc], 0
mov dword [ebp - 0x1d8], 0
xor esi, esi
mov dword [ebp - 0x1d4], 0
xor edi, edi
xor ebx, ebx
jmp 0x40210e