Function at 0x408188
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 0x4084bf
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c8]
call fcn.00408534
mov eax, dword [0x40c7e0]
call fcn.00403c1c
inc eax
push eax
mov eax, 0x40c7e0
mov ecx, 1
mov edx, dword [0x40682c]
call fcn.00403dd8
add esp, 4
mov eax, dword [0x40c7e0]
call fcn.00403c24
mov edx, dword [0x40c7e0]
lea eax, [edx + eax*4]
push eax
push 0x4084d0
call sub.wsock32.dll_inet_addr
pop edx
mov dword [edx], eax
mov eax, dword [0x40c7e0]
call fcn.00403c1c
inc eax
push eax
mov eax, 0x40c7e0
mov ecx, 1
mov edx, dword [0x40682c]
call fcn.00403dd8
add esp, 4
mov eax, dword [0x40c7e0]
call fcn.00403c24
mov edx, dword [0x40c7e0]
lea eax, [edx + eax*4]
push eax
push 0x4084e0
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 0x4084ec
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 8], eax
push 0x4084f8
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress
mov ebx, eax
push 0x408508
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x10], eax
push 0x408518
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 [0x40c7dc]
call fcn.00403c24
test eax, eax
jl 0x40847c
inc eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 1
mov eax, dword [0x40c7dc]
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 0x408460
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, 0x408528
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 0x408456
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 0x40844c
mov al, byte [ebx]
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 0x18]
cmp al, byte [edx]
jne 0x40844c
cmp byte [0x419008], 0
jne 0x4083ee
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 [0x40c7e4]
call fcn.00408860
test eax, eax
je 0x4083ee
mov eax, dword [0x40c7e0]
call fcn.00403c1c
inc eax
push eax
mov eax, 0x40c7e0
mov ecx, 1
mov edx, dword [0x40682c]
call fcn.00403dd8
add esp, 4
mov eax, dword [0x40c7e0]
call fcn.00403c24
mov edx, dword [0x40c7e0]
mov ecx, dword [ebp - 4]
mov dword [edx + eax*4], ecx
jmp 0x40844c
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.00407ac8
test al, al
je 0x40844c
mov eax, dword [0x40c7e0]
call fcn.00403c1c
inc eax
push eax
mov eax, 0x40c7e0
mov ecx, 1
mov edx, dword [0x40682c]
call fcn.00403dd8
add esp, 4
mov eax, dword [0x40c7e0]
call fcn.00403c24
mov edx, dword [0x40c7e0]
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 0x408460
inc dword [ebp - 0x30]
cmp dword [ebp - 0x30], 0xff
jne 0x4082e2
inc dword [ebp - 0x2c]
dec dword [ebp - 0x34]
jne 0x4082db
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 0x4084c6
lea eax, [ebp - 0x1d0]
mov edx, 3
call fcn.00403140
ret