Function at 0x40ea94
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 0x40edd9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1cc]
call fcn.004089e4
lea edx, [ebp - 8]
mov eax, 0x40edf0
call fcn.00404d28
lea eax, [ebp - 0x1c8]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
lea edx, [ebp - 0x1d0]
mov eax, 0x40ee04
call fcn.00404d28
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, 0x40ee18
call fcn.00404d28
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, 0x40ee30
call fcn.00404d28
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, 0x40ee48
call fcn.00404d28
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 [0x4139a4]
call fcn.00403c84
test eax, eax
jl 0x40ed8e
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 1
mov eax, dword [0x4139a4]
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 0x40ed72
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 0x40ed68
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 0x40ed5e
mov al, byte [ebx]
mov edx, dword [ebp - 0x28]
mov edx, dword [edx + 0x18]
cmp al, byte [edx]
jne 0x40ed5e
cmp byte [0x4201ec], 0
jne 0x40ed00
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 [0x4139ac]
call fcn.0040f5b4
test eax, eax
je 0x40ed00
mov eax, dword [0x4139a8]
call fcn.00403c7c
inc eax
push eax
mov eax, 0x4139a8
mov ecx, 1
mov edx, dword [0x408398]
call fcn.00403e38
add esp, 4
mov eax, dword [0x4139a8]
call fcn.00403c84
mov edx, dword [0x4139a8]
mov ecx, dword [ebp - 4]
mov dword [edx + eax*4], ecx
jmp 0x40ed5e
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.0040e8a8
test al, al
je 0x40ed5e
mov eax, dword [0x4139a8]
call fcn.00403c7c
inc eax
push eax
mov eax, 0x4139a8
mov ecx, 1
mov edx, dword [0x408398]
call fcn.00403e38
add esp, 4
mov eax, dword [0x4139a8]
call fcn.00403c84
mov edx, dword [0x4139a8]
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 0x40ed72
inc dword [ebp - 0x34]
cmp dword [ebp - 0x34], 0xff
jne 0x40ebe8
inc dword [ebp - 0x30]
dec dword [ebp - 0x38]
jne 0x40ebe1
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 0x40ede0
lea eax, [ebp - 0x1e4]
mov edx, 7
call fcn.004031a0
lea eax, [ebp - 8]
call fcn.0040317c
ret