Function at 0x407efc
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe30
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x1d0], eax
mov dword [ebp - 0x1cc], eax
mov dword [ebp - 0x1c8], eax
xor eax, eax
push ebp
push 0x408233
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c8]
call fcn.004082a8
mov eax, dword [0x40c7e0]
call fcn.00403bf0
inc eax
push eax
mov eax, 0x40c7e0
mov ecx, 1
mov edx, dword [0x406534]
call fcn.00403dac
add esp, 4
mov eax, dword [0x40c7e0]
call fcn.00403bf8
mov edx, dword [0x40c7e0]
lea eax, [edx + eax*4]
push eax
push 0x408244
call sub.wsock32.dll_inet_addr
pop edx
mov dword [edx], eax
mov eax, dword [0x40c7e0]
call fcn.00403bf0
inc eax
push eax
mov eax, 0x40c7e0
mov ecx, 1
mov edx, dword [0x406534]
call fcn.00403dac
add esp, 4
mov eax, dword [0x40c7e0]
call fcn.00403bf8
mov edx, dword [0x40c7e0]
lea eax, [edx + eax*4]
push eax
push 0x408254
call sub.wsock32.dll_inet_addr
pop edx
mov dword [edx], eax
lea eax, [ebp - 0x1c4]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
push 0x408260
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 8], eax
push 0x40826c
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress
mov ebx, eax
push 0x40827c
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x10], eax
push 0x40828c
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x14], eax
call ebx
mov dword [ebp - 0xc], eax
mov eax, 0x28
lea edx, [eax + 0x20]
mov dword [ebp - 0x28], edx
call fcn.00402494
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x28]
call fcn.00402494
mov dword [ebp - 0x24], eax
mov eax, dword [0x40c7dc]
call fcn.00403bf8
test eax, eax
jl 0x4081f0
inc eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 1
mov eax, dword [0x40c7dc]
mov edx, dword [ebp - 0x2c]
mov eax, dword [eax + edx*4]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 4]
add edx, 3
cmp al, byte [edx]
je 0x4081d4
mov byte [edx], al
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov edx, 0x20
call fcn.00402794
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x10], edx
mov ebx, 0x40829c
lea eax, [ebp - 0x1c]
xor ecx, ecx
mov edx, 8
call fcn.00402794
mov byte [ebp - 0x1c], 0x40
mov eax, 0x3e8
xor edx, edx
push ebp
push 0x4081ca
push dword fs:[edx]
mov dword fs:[edx], esp
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0xb
push ebx
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
call dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
cmp word [eax + 0xc], 0
je 0x4081c0
mov al, byte [ebx]
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 0x18]
cmp al, byte [edx]
jne 0x4081c0
cmp byte [0x419008], 0
jne 0x408162
push dword [ebp - 4]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x1cc]
call fcn.004032e8
mov eax, dword [ebp - 0x1cc]
mov edx, dword [0x40c7e4]
call fcn.004085d4
test eax, eax
je 0x408162
mov eax, dword [0x40c7e0]
call fcn.00403bf0
inc eax
push eax
mov eax, 0x40c7e0
mov ecx, 1
mov edx, dword [0x406534]
call fcn.00403dac
add esp, 4
mov eax, dword [0x40c7e0]
call fcn.00403bf8
mov edx, dword [0x40c7e0]
mov ecx, dword [ebp - 4]
mov dword [edx + eax*4], ecx
jmp 0x4081c0
push dword [ebp - 4]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x1d0]
call fcn.004032e8
mov eax, dword [ebp - 0x1d0]
call fcn.0040783c
test al, al
je 0x4081c0
mov eax, dword [0x40c7e0]
call fcn.00403bf0
inc eax
push eax
mov eax, 0x40c7e0
mov ecx, 1
mov edx, dword [0x406534]
call fcn.00403dac
add esp, 4
mov eax, dword [0x40c7e0]
call fcn.00403bf8
mov edx, dword [0x40c7e0]
mov ecx, dword [ebp - 4]
mov dword [edx + eax*4], ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4081d4
inc dword [ebp - 0x30]
cmp dword [ebp - 0x30], 0xff
jne 0x408056
inc dword [ebp - 0x2c]
dec dword [ebp - 0x34]
jne 0x40804f
mov eax, dword [ebp - 0x20]
call fcn.004024b4
mov eax, dword [ebp - 0x24]
call fcn.004024b4
mov eax, dword [ebp - 0xc]
push eax
call dword [ebp - 0x10]
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40823a
lea eax, [ebp - 0x1d0]
mov edx, 3
call fcn.00403140
ret