Function at 0x40e85c
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 0x40eba1
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1cc]
call fcn.00408da8
lea edx, [ebp - 8]
mov eax, 0x40ebb8
call fcn.00404c04
lea eax, [ebp - 0x1c8]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
lea edx, [ebp - 0x1d0]
mov eax, 0x40ebcc
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, 0x40ebe0
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, 0x40ebf8
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, 0x40ec10
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 0x40eb56
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 0x40eb3a
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 0x40eb30
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 0x40eb26
mov al, byte [ebx]
mov edx, dword [ebp - 0x28]
mov edx, dword [edx + 0x18]
cmp al, byte [edx]
jne 0x40eb26
cmp byte [0x41f1ec], 0
jne 0x40eac8
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.0040eed4
test eax, eax
je 0x40eac8
mov eax, dword [0x4129a8]
call fcn.00403be4
inc eax
push eax
mov eax, 0x4129a8
mov ecx, 1
mov edx, dword [0x407f58]
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 0x40eb26
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.0040e670
test al, al
je 0x40eb26
mov eax, dword [0x4129a8]
call fcn.00403be4
inc eax
push eax
mov eax, 0x4129a8
mov ecx, 1
mov edx, dword [0x407f58]
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 0x40eb3a
inc dword [ebp - 0x34]
cmp dword [ebp - 0x34], 0xff
jne 0x40e9b0
inc dword [ebp - 0x30]
dec dword [ebp - 0x38]
jne 0x40e9a9
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 0x40eba8
lea eax, [ebp - 0x1e4]
mov edx, 7
call fcn.004031a0
lea eax, [ebp - 8]
call fcn.0040317c
ret