Function at 0x40c7c4
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x42
push 0
push 0
dec ecx
jne 0x40c7cc
push ecx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x40ce1b
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00416310
cmp byte [0x41d294], 0
jne 0x40c814
lea eax, [ebp - 0x1b4]
mov ecx, dword [0x41ebc8]
mov edx, 0x40ce34
call fcn.004038f0
mov eax, dword [ebp - 0x1b4]
call fcn.00412764
mov byte [ebp - 9], 0
lea eax, [ebp - 0x1a0]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov dword [ebp - 4], eax
mov word [ebp - 0x1b0], 2
push 0x19
call sub.wsock32.dll_htons
mov word [ebp - 0x1ae], ax
lea edx, [ebp - 0x1b8]
mov eax, dword [0x41ebb8]
call fcn.004062e0
mov edx, dword [ebp - 0x1b8]
mov eax, 0x41ebbc
call fcn.00403780
mov eax, 0x41eb54
mov edx, 0x40ce44
call fcn.00403780
mov eax, dword [0x41ebbc]
call fcn.004038a4
cmp eax, 5
jge 0x40c8cf
push 0x40cef8
push dword [0x41ebb8]
push 0x40cf0c
lea edx, [ebp - 0x1c0]
xor eax, eax
call fcn.00406434
push dword [ebp - 0x1c0]
lea eax, [ebp - 0x1bc]
mov edx, 4
call fcn.00403964
mov eax, dword [ebp - 0x1bc]
call fcn.00412764
jmp 0x40cdf5
mov eax, dword [0x41ebbc]
call fcn.00403aa4
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x1ac], eax
push 0x10
lea eax, [ebp - 0x1b0]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [0x41d338]
mov eax, dword [eax]
call eax
mov dword [0x41eb8c], eax
cmp dword [0x41eb8c], 0xffffffff
jne 0x40c944
lea edx, [ebp - 0x1c8]
xor eax, eax
call fcn.00406434
mov ecx, dword [ebp - 0x1c8]
lea eax, [ebp - 0x1c4]
mov edx, 0x40cf18
call fcn.004038f0
mov eax, dword [ebp - 0x1c4]
call fcn.00412764
lea eax, [ebp - 4]
call fcn.00406418
jmp 0x40cdf5
mov eax, 0x41eb54
mov edx, 0x40cf2c
call fcn.00403780
push ebp
lea eax, [ebp - 0x1cc]
push eax
xor ecx, ecx
mov dl, 1
xor eax, eax
call fcn.0040c260
pop ecx
push ebp
lea eax, [ebp - 0x1d0]
push eax
lea eax, [ebp - 0x1d4]
mov ecx, dword [0x41ebbc]
mov edx, dword [0x41edbc]
call fcn.004038f0
mov eax, dword [ebp - 0x1d4]
mov ecx, 0x40cfc8
mov dl, 1
call fcn.0040c260
pop ecx
mov eax, dword [ebp - 0x1d0]
mov edx, 0x40cfd4
call fcn.004039f0
je 0x40cdf5
push ebp
lea eax, [ebp - 0x1d8]
push eax
push dword [0x41edc0]
push 0x40cfe0
push dword [0x41ebc4]
lea eax, [ebp - 0x1dc]
mov edx, 3
call fcn.00403964
mov eax, dword [ebp - 0x1dc]
mov ecx, 0x40cfec
mov dl, 1
call fcn.0040c260
pop ecx
mov eax, dword [ebp - 0x1d8]
mov edx, 0x40cfd4
call fcn.004039f0
je 0x40cdf5
mov eax, 0x41eb54
mov edx, 0x40cff8
call fcn.00403780
push ebp
lea eax, [ebp - 0x1e0]
push eax
lea eax, [ebp - 0x1e4]
mov ecx, dword [0x41ebc8]
mov edx, dword [0x41edc4]
call fcn.004038f0
mov eax, dword [ebp - 0x1e4]
mov ecx, 0x40cfc8
mov dl, 1
call fcn.0040c260
pop ecx
mov eax, dword [ebp - 0x1e0]
mov edx, 0x40cfd4
call fcn.004039f0
je 0x40cdf5
mov eax, 0x41eb54
mov edx, 0x40d014
call fcn.00403780
push ebp
lea eax, [ebp - 0x1e8]
push eax
lea eax, [ebp - 0x1ec]
mov ecx, dword [0x41eb30]
mov edx, dword [0x41edc8]
call fcn.004038f0
mov eax, dword [ebp - 0x1ec]
mov ecx, 0x40cfc8
mov dl, 1
call fcn.0040c260
pop ecx
mov eax, 0x41eb54
mov edx, 0x40d098
call fcn.00403780
push ebp
lea eax, [ebp - 0x1f0]
push eax
lea eax, [ebp - 0x1f4]
mov ecx, dword [0x41eb34]
mov edx, dword [0x41edc8]
call fcn.004038f0
mov eax, dword [ebp - 0x1f4]
mov ecx, 0x40cfc8
mov dl, 1
call fcn.0040c260
pop ecx
mov eax, dword [ebp - 0x1f0]
mov edx, 0x40cfd4
call fcn.004039f0
je 0x40cdf5
push ebp
lea eax, [ebp - 0x1f8]
push eax
mov ecx, 0x40d0ec
mov dl, 1
mov eax, dword [0x41edcc]
call fcn.0040c260
pop ecx
mov eax, dword [ebp - 0x1f8]
mov edx, 0x40cfd4
call fcn.004039f0
je 0x40cdf5
mov eax, 0x41eb54
mov edx, 0x40d0f8
call fcn.00403780
push dword [0x41ed74]
lea edx, [ebp - 0x1fc]
mov eax, 0x9e
call fcn.00405148
push dword [ebp - 0x1fc]
push 0x40cf0c
push dword [0x41eb38]
push 0x40cf0c
lea edx, [ebp - 0x200]
mov eax, dword [ebp - 8]
call fcn.0041609c
push dword [ebp - 0x200]
lea eax, [ebp - 0x10]
mov edx, 6
call fcn.00403964
mov eax, dword [ebp - 0x10]
call fcn.004038a4
mov dword [0x41eb88], eax
mov dword [0x41eb8c], 1
mov eax, 0x41eb54
mov edx, 0x40d148
call fcn.00403780
mov eax, 0x41eb28
mov edx, 0x4c
call fcn.00403b84
mov eax, 0x41eb54
mov edx, 0x40d1bc
call fcn.00403780
jmp 0x40cc38
lea eax, [ebp - 0x10]
call fcn.00403af4
mov edx, dword [0x41eb8c]
dec edx
test eax, eax
je 0x40cbda
cmp edx, dword [eax - 4]
jb 0x40cbdf
call fcn.00402f14
inc edx
lea eax, [eax + edx - 1]
push eax
mov eax, 0x41eb28
call fcn.00403af4
mov edx, 1
dec edx
test eax, eax
je 0x40cbfe
cmp edx, dword [eax - 4]
jb 0x40cc03
call fcn.00402f14
inc edx
lea eax, [eax + edx - 1]
mov ecx, 0x4c
pop edx
call fcn.0040492c
push ebp
lea eax, [ebp - 0x204]
push eax
xor ecx, ecx
xor edx, edx
mov eax, dword [0x41eb28]
call fcn.0040c260
pop ecx
add dword [0x41eb8c], 0x4c
jno 0x40cc38
call fcn.00402f1c
mov eax, dword [0x41eb88]
sub eax, 0x4c
jno 0x40cc47
call fcn.00402f1c
cmp eax, dword [0x41eb8c]
jge 0x40cbc2
mov eax, 0x41eb54
mov edx, 0x40d220
call fcn.00403780
mov eax, dword [0x41eb88]
sub eax, dword [0x41eb8c]
jno 0x40cc74
call fcn.00402f1c
add eax, 1
jno 0x40cc7e
call fcn.00402f1c
mov dword [0x41eb88], eax
mov eax, 0x41eb54
mov edx, 0x40d288
add al, ch
out dx, al
push 0xffffffffffffffff
invalid
mov eax, 0x41eb28
mov edx, dword [0x41eb88]
call fcn.00403b84
mov eax, 0x41eb28
call fcn.00403af4
mov edx, 1
dec edx
test eax, eax
je 0x40ccbb
cmp edx, dword [eax - 4]
jb 0x40ccc0
call fcn.00402f14
inc edx
lea eax, [eax + edx - 1]
mov ecx, 0x2b
mov edx, dword [0x41eb88]
call fcn.00402bd8
lea eax, [ebp - 0x10]
call fcn.00403af4
mov edx, dword [0x41eb8c]
dec edx
test eax, eax
je 0x40cced
cmp edx, dword [eax - 4]
jb 0x40ccf2
call fcn.00402f14
inc edx
lea eax, [eax + edx - 1]
push eax
mov eax, 0x41eb28
call fcn.00403af4