Function at 0x402b2e
Capabilities:
Create raw socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x408018
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [esp + 0x44]
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x54]
mov dword [esi], eax
call sub.MFC42.DLL_CString::CString
push 1
push 3
push 2
mov dword [esp + 0x50], 0
call dword [sym.imp.WSOCK32.dll_socket]
mov ebp, eax
or ebx, 0xffffffff
cmp ebp, ebx
jne 0x402b6f
push str.socket__
mov ecx, esi
call fcn.00402f10
mov dword [esp + 0x44], ebx
jmp 0x402d71
mov edi, dword [esp + 0x50]
push edi
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
jne 0x402bd3
push edi
lea ecx, [esp + 0x58]
push 0x40c1b8
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 8
lea edx, [esp + 0x58]
mov ecx, esp
mov dword [esp + 0x50], esp
push edx
call sub.MFC42.DLL_CString::CString_1
call fcn.00403010
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
add esp, 4
push eax
mov eax, dword [esi]
push 0
push 0x500
push eax
call edi
mov ecx, dword [esi]
push 0
push 0
push 0x501
push ecx
call edi
mov dword [esp + 0x44], ebx
jmp 0x402d71
mov edx, dword [eax + 0xc]
push 0x40c1a4
mov eax, dword [edx]
mov ecx, dword [eax]
mov word [esp + 0x20], 2
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x58]
mov word [esp + 0x22], 0xc05
call fcn.004079e0
push ecx
lea edx, [esp + 0x58]
mov ecx, esp
mov dword [esp + 0x54], esp
push edx
call sub.MFC42.DLL_CString::CString_1
call fcn.00403010
mov ebx, dword [sym.imp.USER32.dll_PostMessageA]
add esp, 4
push eax
mov eax, dword [esi]
push 1
push 0x500
push eax
call ebx
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x50], 0
test edi, edi
jbe 0x402d43
cmp edi, 0x3e8
jae 0x402c46
inc dword [esp + 0x50]
lea ecx, [esp + 0x1c]
push ecx
push ebp
mov ecx, esi
call fcn.00402d90
push ebp
mov ecx, esi
call fcn.00402ec0
cmp eax, 0xffffffff
je 0x402d37
test eax, eax
jne 0x402ca1
lea edx, [esp + 0x54]
push 0x40c198
push edx
call sub.MFC42.DLL_CString::Format
add esp, 4
lea eax, [esp + 0x58]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call sub.MFC42.DLL_CString::CString_1
call fcn.00403010
mov ecx, dword [esi]
add esp, 4
push eax
push 3
push 0x500
push ecx
call ebx
jmp 0x402d11
lea edx, [esp + 0x10]
lea eax, [esp + 0x2c]
push edx
push eax
push ebp
mov ecx, esi
call fcn.00402e40
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x10]
sub eax, edi
and ecx, 0xff
lea edx, [esp + 0x54]
push ecx
push eax
push 0x20
push 0x40c170
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea eax, [esp + 0x58]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call sub.MFC42.DLL_CString::CString_1
call fcn.00403010
mov ecx, dword [esi]
add esp, 4
push eax
push 2
push 0x500
push ecx
call ebx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [esp + 0x4c]
mov eax, dword [esi]
lea edx, [esp + 0x18]
push 0
push edx
push 0x3f3
push eax
call dword [sym.imp.USER32.dll_GetDlgItemInt]
cmp eax, 1
je 0x402d43
cmp dword [esp + 0x50], edi
jb 0x402c3a
jmp 0x402d43
push str.select__
mov ecx, esi
call fcn.00402f10
mov ecx, dword [esi]
push 1
push 0
push 0x501
push ecx
call ebx
push ebp
call dword [sym.imp.WSOCK32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x402d69
push str.closesocket__
mov ecx, esi
call fcn.00402f10
mov dword [esp + 0x44], 0xffffffff
lea ecx, [esp + 0x54]
call fcn.00407896
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x38
ret 0xc