Function at 0x40e464
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 0x40e7a9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1cc]
call fcn.004084ac
lea edx, [ebp - 8]
mov eax, 0x40e7c0
call fcn.00404cc0
lea eax, [ebp - 0x1c8]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
lea edx, [ebp - 0x1d0]
mov eax, 0x40e7d4
call fcn.00404cc0
mov eax, dword [ebp - 0x1d0]
call fcn.00403508
push eax
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1d4]
mov eax, 0x40e7e8
call fcn.00404cc0
mov eax, dword [ebp - 0x1d4]
call fcn.00403508
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov ebx, eax
lea edx, [ebp - 0x1d8]
mov eax, 0x40e800
call fcn.00404cc0
mov eax, dword [ebp - 0x1d8]
call fcn.00403508
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, 0x40e818
call fcn.00404cc0
mov eax, dword [ebp - 0x1dc]
call fcn.00403508
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.0040248c
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x2c]
call fcn.0040248c
mov dword [ebp - 0x28], eax
mov eax, dword [0x412984]
call fcn.00403bbc
test eax, eax
jl 0x40e75e
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 1
mov eax, dword [0x412984]
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 0x40e742
mov byte [edx], al
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov edx, 0x20
call fcn.004027ec
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 8]
call fcn.00403508
mov ebx, eax
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 8
call fcn.004027ec
mov byte [ebp - 0x20], 0x40
mov esi, 0x3e8
xor eax, eax
push ebp
push 0x40e738
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.00403308
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 0x40e72e
mov al, byte [ebx]
mov edx, dword [ebp - 0x28]
mov edx, dword [edx + 0x18]
cmp al, byte [edx]
jne 0x40e72e
cmp byte [0x41f1c4], 0
jne 0x40e6d0
push dword [ebp - 4]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x1e0]
call fcn.004032c0
mov eax, dword [ebp - 0x1e0]
mov edx, dword [0x41298c]
call fcn.0040f010
test eax, eax
je 0x40e6d0
mov eax, dword [0x412988]
call fcn.00403bb4
inc eax
push eax
mov eax, 0x412988
mov ecx, 1
mov edx, dword [0x407e78]
call fcn.00403d70
add esp, 4
mov eax, dword [0x412988]
call fcn.00403bbc
mov edx, dword [0x412988]
mov ecx, dword [ebp - 4]
mov dword [edx + eax*4], ecx
jmp 0x40e72e
push dword [ebp - 4]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x1e4]
call fcn.004032c0
mov eax, dword [ebp - 0x1e4]
call fcn.0040e278
test al, al
je 0x40e72e
mov eax, dword [0x412988]
call fcn.00403bb4
inc eax
push eax
mov eax, 0x412988
mov ecx, 1
mov edx, dword [0x407e78]
call fcn.00403d70
add esp, 4
mov eax, dword [0x412988]
call fcn.00403bbc
mov edx, dword [0x412988]
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 0x40e742
inc dword [ebp - 0x34]
cmp dword [ebp - 0x34], 0xff
jne 0x40e5b8
inc dword [ebp - 0x30]
dec dword [ebp - 0x38]
jne 0x40e5b1
mov eax, dword [ebp - 0x24]
call fcn.004024ac
mov eax, dword [ebp - 0x28]
call fcn.004024ac
mov eax, dword [ebp - 0x10]
push eax
call dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_FreeLibrary
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e7b0
lea eax, [ebp - 0x1e4]
mov edx, 7
call fcn.00403198
lea eax, [ebp - 8]
call fcn.00403174
ret