Function at 0x408384
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 0x4086bb
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c8]
call fcn.00406368
mov eax, dword [0x40b800]
call fcn.00403c1c
inc eax
push eax
mov eax, 0x40b800
mov ecx, 1
mov edx, dword [0x406344]
call fcn.00403dd8
add esp, 4
mov eax, dword [0x40b800]
call fcn.00403c24
mov edx, dword [0x40b800]
lea eax, [edx + eax*4]
push eax
push 0x4086cc
call sub.wsock32.dll_inet_addr
pop edx
mov dword [edx], eax
mov eax, dword [0x40b800]
call fcn.00403c1c
inc eax
push eax
mov eax, 0x40b800
mov ecx, 1
mov edx, dword [0x406344]
call fcn.00403dd8
add esp, 4
mov eax, dword [0x40b800]
call fcn.00403c24
mov edx, dword [0x40b800]
lea eax, [edx + eax*4]
push eax
push 0x4086dc
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 0x4086e8
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 8], eax
push 0x4086f4
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress
mov ebx, eax
push 0x408704
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x10], eax
push 0x408714
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 [0x40b7fc]
call fcn.00403c24
test eax, eax
jl 0x408678
inc eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 1
mov eax, dword [0x40b7fc]
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 0x40865c
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, 0x408724
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 0x408652
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 0x408648
mov al, byte [ebx]
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 0x18]
cmp al, byte [edx]
jne 0x408648
cmp byte [0x418028], 0
jne 0x4085ea
push dword [ebp - 4]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x1cc]
call fcn.00403314
mov eax, dword [ebp - 0x1cc]
mov edx, dword [0x40b804]
call fcn.0040669c
test eax, eax
je 0x4085ea
mov eax, dword [0x40b800]
call fcn.00403c1c
inc eax
push eax
mov eax, 0x40b800
mov ecx, 1
mov edx, dword [0x406344]
call fcn.00403dd8
add esp, 4
mov eax, dword [0x40b800]
call fcn.00403c24
mov edx, dword [0x40b800]
mov ecx, dword [ebp - 4]
mov dword [edx + eax*4], ecx
jmp 0x408648
push dword [ebp - 4]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x1d0]
call fcn.00403314
mov eax, dword [ebp - 0x1d0]
call fcn.00407d08
test al, al
je 0x408648
mov eax, dword [0x40b800]
call fcn.00403c1c
inc eax
push eax
mov eax, 0x40b800
mov ecx, 1
mov edx, dword [0x406344]
call fcn.00403dd8
add esp, 4
mov eax, dword [0x40b800]
call fcn.00403c24
mov edx, dword [0x40b800]
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 0x40865c
inc dword [ebp - 0x30]
cmp dword [ebp - 0x30], 0xff
jne 0x4084de
inc dword [ebp - 0x2c]
dec dword [ebp - 0x34]
jne 0x4084d7
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 0x4086c2
lea eax, [ebp - 0x1d0]
mov edx, 3
call fcn.00403140
ret