Function at 0x40a428
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 0x40a76d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1cc]
call fcn.00408408
lea edx, [ebp - 8]
mov eax, 0x40a784
call fcn.00404d24
lea eax, [ebp - 0x1c8]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
lea edx, [ebp - 0x1d0]
mov eax, 0x40a798
call fcn.00404d24
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, 0x40a7ac
call fcn.00404d24
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, 0x40a7c4
call fcn.00404d24
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, 0x40a7dc
call fcn.00404d24
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 [0x40f9a4]
call fcn.00403c84
test eax, eax
jl 0x40a722
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 1
mov eax, dword [0x40f9a4]
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 0x40a706
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 0x40a6fc
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 0x40a6f2
mov al, byte [ebx]
mov edx, dword [ebp - 0x28]
mov edx, dword [edx + 0x18]
cmp al, byte [edx]
jne 0x40a6f2
cmp byte [0x41c204], 0
jne 0x40a694
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 [0x40f9ac]
call fcn.0040aaa0
test eax, eax
je 0x40a694
mov eax, dword [0x40f9a8]
call fcn.00403c7c
inc eax
push eax
mov eax, 0x40f9a8
mov ecx, 1
mov edx, dword [0x408394]
call fcn.00403e38
add esp, 4
mov eax, dword [0x40f9a8]
call fcn.00403c84
mov edx, dword [0x40f9a8]
mov ecx, dword [ebp - 4]
mov dword [edx + eax*4], ecx
jmp 0x40a6f2
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.0040a234
test al, al
je 0x40a6f2
mov eax, dword [0x40f9a8]
call fcn.00403c7c
inc eax
push eax
mov eax, 0x40f9a8
mov ecx, 1
mov edx, dword [0x408394]
call fcn.00403e38
add esp, 4
mov eax, dword [0x40f9a8]
call fcn.00403c84
mov edx, dword [0x40f9a8]
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 0x40a706
inc dword [ebp - 0x34]
cmp dword [ebp - 0x34], 0xff
jne 0x40a57c
inc dword [ebp - 0x30]
dec dword [ebp - 0x38]
jne 0x40a575
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 0x40a774
lea eax, [ebp - 0x1e4]
mov edx, 7
call fcn.004031a0
lea eax, [ebp - 8]
call fcn.0040317c
ret