Function at 0x40e828
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe1c
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x1e4], eax
mov dword [ebp - 0x1e0], eax
mov dword [ebp - 0x1dc], eax
mov dword [ebp - 0x1d8], eax
mov dword [ebp - 0x1d4], eax
mov dword [ebp - 0x1d0], eax
mov dword [ebp - 0x1cc], eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x40eb6d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1cc]
call fcn.00408d74
lea edx, [ebp - 8]
mov eax, 0x40eb84
call fcn.00404c04
lea eax, [ebp - 0x1c8]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
lea edx, [ebp - 0x1d0]
mov eax, 0x40eb98
call fcn.00404c04
mov eax, dword [ebp - 0x1d0]
call fcn.004035bc
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1d4]
mov eax, 0x40ebac
call fcn.00404c04
mov eax, dword [ebp - 0x1d4]
call fcn.004035bc
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetProcAddress
mov ebx, eax
lea edx, [ebp - 0x1d8]
mov eax, 0x40ebc4
call fcn.00404c04
mov eax, dword [ebp - 0x1d8]
call fcn.004035bc
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x1dc]
mov eax, 0x40ebdc
call fcn.00404c04
mov eax, dword [ebp - 0x1dc]
call fcn.004035bc
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x18], eax
call ebx
mov dword [ebp - 0x10], eax
mov eax, 0x28
lea edx, [eax + 0x20]
mov dword [ebp - 0x2c], edx
call fcn.00402494
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x2c]
call fcn.00402494
mov dword [ebp - 0x28], eax
mov eax, dword [0x4129a4]
call fcn.00403bec
test eax, eax
jl 0x40eb22
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 1
mov eax, dword [0x4129a4]
mov edx, dword [ebp - 0x30]
mov eax, dword [eax + edx*4]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 4]
add edx, 3
cmp al, byte [edx]
je 0x40eb06
mov byte [edx], al
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov edx, 0x20
call fcn.004027f4
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 8]
call fcn.004035bc
mov ebx, eax
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 8
call fcn.004027f4
mov byte [ebp - 0x20], 0x40
mov esi, 0x3e8
xor eax, eax
push ebp
push 0x40eafc
push dword fs:[eax]
mov dword fs:[eax], esp
push esi
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 8]
call fcn.004033bc
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x10]
push eax
call dword [ebp - 0x18]
mov eax, dword [ebp - 0x28]
cmp word [eax + 0xc], 0
je 0x40eaf2
mov al, byte [ebx]
mov edx, dword [ebp - 0x28]
mov edx, dword [edx + 0x18]
cmp al, byte [edx]
jne 0x40eaf2
cmp byte [0x41f1ec], 0
jne 0x40ea94
push dword [ebp - 4]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x1e0]
call fcn.00403374
mov eax, dword [ebp - 0x1e0]
mov edx, dword [0x4129ac]
call fcn.0040eea0
test eax, eax
je 0x40ea94
mov eax, dword [0x4129a8]
call fcn.00403be4
inc eax
push eax
mov eax, 0x4129a8
mov ecx, 1
mov edx, dword [0x407f24]
call fcn.00403da0
add esp, 4
mov eax, dword [0x4129a8]
call fcn.00403bec
mov edx, dword [0x4129a8]
mov ecx, dword [ebp - 4]
mov dword [edx + eax*4], ecx
jmp 0x40eaf2
push dword [ebp - 4]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x1e4]
call fcn.00403374
mov eax, dword [ebp - 0x1e4]
call fcn.0040e63c
test al, al
je 0x40eaf2
mov eax, dword [0x4129a8]
call fcn.00403be4
inc eax
push eax
mov eax, 0x4129a8
mov ecx, 1
mov edx, dword [0x407f24]
call fcn.00403da0
add esp, 4
mov eax, dword [0x4129a8]
call fcn.00403bec
mov edx, dword [0x4129a8]
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 0x40eb06
inc dword [ebp - 0x34]
cmp dword [ebp - 0x34], 0xff
jne 0x40e97c
inc dword [ebp - 0x30]
dec dword [ebp - 0x38]
jne 0x40e975
mov eax, dword [ebp - 0x24]
call fcn.004024b4
mov eax, dword [ebp - 0x28]
call fcn.004024b4
mov eax, dword [ebp - 0x10]
push eax
call dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
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 0x40eb74
lea eax, [ebp - 0x1e4]
mov edx, 7
call fcn.004031a0
lea eax, [ebp - 8]
call fcn.0040317c
ret