Function at 0x408108
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 0x40843f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c8]
call fcn.004084b4
mov eax, dword [0x40c7e0]
call fcn.00403c1c
inc eax
push eax
mov eax, 0x40c7e0
mov ecx, 1
mov edx, dword [0x406814]
call fcn.00403dd8
add esp, 4
mov eax, dword [0x40c7e0]
call fcn.00403c24
mov edx, dword [0x40c7e0]
lea eax, [edx + eax*4]
push eax
push 0x408450
call sub.wsock32.dll_inet_addr
pop edx
mov dword [edx], eax
mov eax, dword [0x40c7e0]
call fcn.00403c1c
inc eax
push eax
mov eax, 0x40c7e0
mov ecx, 1
mov edx, dword [0x406814]
call fcn.00403dd8
add esp, 4
mov eax, dword [0x40c7e0]
call fcn.00403c24
mov edx, dword [0x40c7e0]
lea eax, [edx + eax*4]
push eax
push 0x408460
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 0x40846c
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 8], eax
push 0x408478
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress
mov ebx, eax
push 0x408488
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x10], eax
push 0x408498
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.00403c24
test eax, eax
jl 0x4083fc
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 0x4083e0
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, 0x4084a8
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 0x4083d6
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 0x4083cc
mov al, byte [ebx]
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 0x18]
cmp al, byte [edx]
jne 0x4083cc
cmp byte [0x419008], 0
jne 0x40836e
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 [0x40c7e4]
call fcn.004087e0
test eax, eax
je 0x40836e
mov eax, dword [0x40c7e0]
call fcn.00403c1c
inc eax
push eax
mov eax, 0x40c7e0
mov ecx, 1
mov edx, dword [0x406814]
call fcn.00403dd8
add esp, 4
mov eax, dword [0x40c7e0]
call fcn.00403c24
mov edx, dword [0x40c7e0]
mov ecx, dword [ebp - 4]
mov dword [edx + eax*4], ecx
jmp 0x4083cc
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.00407a48
test al, al
je 0x4083cc
mov eax, dword [0x40c7e0]
call fcn.00403c1c
inc eax
push eax
mov eax, 0x40c7e0
mov ecx, 1
mov edx, dword [0x406814]
call fcn.00403dd8
add esp, 4
mov eax, dword [0x40c7e0]
call fcn.00403c24
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 0x4083e0
inc dword [ebp - 0x30]
cmp dword [ebp - 0x30], 0xff
jne 0x408262
inc dword [ebp - 0x2c]
dec dword [ebp - 0x34]
jne 0x40825b
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 0x408446
lea eax, [ebp - 0x1d0]
mov edx, 3
call fcn.00403140
ret