Function at 0x40724c
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe30
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x1d0], eax
mov dword [ebp - 0x1cc], eax
mov dword [ebp - 0x1c8], eax
xor eax, eax
push ebp
push 0x407583
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c8]
call fcn.004075f8
mov eax, dword [0x40b808]
call fcn.00403c1c
inc eax
push eax
mov eax, 0x40b808
mov ecx, 1
mov edx, dword [0x406a00]
call fcn.00403dd8
add esp, 4
mov eax, dword [0x40b808]
call fcn.00403c24
mov edx, dword [0x40b808]
lea eax, [edx + eax*4]
push eax
push 0x407594
call sub.wsock32.dll_inet_addr
pop edx
mov dword [edx], eax
mov eax, dword [0x40b808]
call fcn.00403c1c
inc eax
push eax
mov eax, 0x40b808
mov ecx, 1
mov edx, dword [0x406a00]
call fcn.00403dd8
add esp, 4
mov eax, dword [0x40b808]
call fcn.00403c24
mov edx, dword [0x40b808]
lea eax, [edx + eax*4]
push eax
push 0x4075a4
call sub.wsock32.dll_inet_addr
pop edx
mov dword [edx], eax
lea eax, [ebp - 0x1c4]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
push 0x4075b0
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 8], eax
push 0x4075bc
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress
mov ebx, eax
push 0x4075cc
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x10], eax
push 0x4075dc
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x14], eax
call ebx
mov dword [ebp - 0xc], eax
mov eax, 0x28
lea edx, [eax + 0x20]
mov dword [ebp - 0x28], edx
call fcn.00402494
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x28]
call fcn.00402494
mov dword [ebp - 0x24], eax
mov eax, dword [0x40b804]
call fcn.00403c24
test eax, eax
jl 0x407540
inc eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 1
mov eax, dword [0x40b804]
mov edx, dword [ebp - 0x2c]
mov eax, dword [eax + edx*4]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 4]
add edx, 3
cmp al, byte [edx]
je 0x407524
mov byte [edx], al
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov edx, 0x20
call fcn.00402794
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x10], edx
mov ebx, 0x4075ec
lea eax, [ebp - 0x1c]
xor ecx, ecx
mov edx, 8
call fcn.00402794
mov byte [ebp - 0x1c], 0x40
mov eax, 0x3e8
xor edx, edx
push ebp
push 0x40751a
push dword fs:[edx]
mov dword fs:[edx], esp
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0xb
push ebx
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
call dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
cmp word [eax + 0xc], 0
je 0x407510
mov al, byte [ebx]
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 0x18]
cmp al, byte [edx]
jne 0x407510
cmp byte [0x418030], 0
jne 0x4074b2
push dword [ebp - 4]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x1cc]
call fcn.00403314
mov eax, dword [ebp - 0x1cc]
mov edx, dword [0x40b80c]
call fcn.00407924
test eax, eax
je 0x4074b2
mov eax, dword [0x40b808]
call fcn.00403c1c
inc eax
push eax
mov eax, 0x40b808
mov ecx, 1
mov edx, dword [0x406a00]
call fcn.00403dd8
add esp, 4
mov eax, dword [0x40b808]
call fcn.00403c24
mov edx, dword [0x40b808]
mov ecx, dword [ebp - 4]
mov dword [edx + eax*4], ecx
jmp 0x407510
push dword [ebp - 4]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x1d0]
call fcn.00403314
mov eax, dword [ebp - 0x1d0]
call fcn.00406bd0
test al, al
je 0x407510
mov eax, dword [0x40b808]
call fcn.00403c1c
inc eax
push eax
mov eax, 0x40b808
mov ecx, 1
mov edx, dword [0x406a00]
call fcn.00403dd8
add esp, 4
mov eax, dword [0x40b808]
call fcn.00403c24
mov edx, dword [0x40b808]
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 0x407524
inc dword [ebp - 0x30]
cmp dword [ebp - 0x30], 0xff
jne 0x4073a6
inc dword [ebp - 0x2c]
dec dword [ebp - 0x34]
jne 0x40739f
mov eax, dword [ebp - 0x20]
call fcn.004024b4
mov eax, dword [ebp - 0x24]
call fcn.004024b4
mov eax, dword [ebp - 0xc]
push eax
call dword [ebp - 0x10]
mov eax, dword [ebp - 8]
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 0x40758a
lea eax, [ebp - 0x1d0]
mov edx, 3
call fcn.00403140
ret