Function at 0x40c624
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 0x40c62c
push ecx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x40cc6c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x41eb54
mov edx, 0x40cc84
call fcn.00403780
call fcn.004169bc
cmp byte [0x41d294], 0
jne 0x40c683
lea eax, [ebp - 0x1b4]
mov ecx, dword [0x41ebc8]
mov edx, 0x40cd18
call fcn.004038f0
mov eax, dword [ebp - 0x1b4]
call fcn.00412f04
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, 0x40cd28
call fcn.00403780
mov eax, dword [0x41ebbc]
call fcn.004038a4
cmp eax, 5
jge 0x40c73e
push 0x40cd78
push dword [0x41ebb8]
push 0x40cd8c
lea edx, [ebp - 0x1c0]
xor eax, eax
call fcn.00406434
push dword [ebp - 0x1c0]
lea eax, [ebp - 0x1bc]
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 0x40c7b3
lea edx, [ebp - 0x1c8]
xor eax, eax
call fcn.00406434
mov ecx, dword [ebp - 0x1c8]
lea eax, [ebp - 0x1c4]
mov edx, 0x40cd98
call fcn.004038f0
mov eax, dword [ebp - 0x1c4]
call fcn.00412f04
lea eax, [ebp - 4]
call fcn.00406418
jmp 0x40cc46
mov eax, 0x41eb54
mov edx, 0x40cdac
call fcn.00403780
push ebp
lea eax, [ebp - 0x1cc]
push eax
xor ecx, ecx
mov dl, 1
xor eax, eax
call fcn.0040c1a8
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, 0x40ce00
mov dl, 1
call fcn.0040c1a8
pop ecx
mov eax, dword [ebp - 0x1d0]
mov edx, 0x40ce0c
call fcn.004039f0
je 0x40cc46
push ebp
lea eax, [ebp - 0x1d8]
push eax
push dword [0x41edc0]
push 0x40ce18
push dword [0x41ebc4]
lea eax, [ebp - 0x1dc]
mov edx, 3
call fcn.00403964
mov eax, dword [ebp - 0x1dc]
mov ecx, 0x40ce24
mov dl, 1
call fcn.0040c1a8
pop ecx
mov eax, dword [ebp - 0x1d8]
mov edx, 0x40ce0c
call fcn.004039f0
je 0x40cc46
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, 0x40ce00
mov dl, 1
call fcn.0040c1a8
pop ecx
mov eax, dword [ebp - 0x1e0]
mov edx, 0x40ce0c
call fcn.004039f0
je 0x40cc46
mov eax, 0x41eb54
mov edx, 0x40ce30
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, 0x40ce00
mov dl, 1
call fcn.0040c1a8
pop ecx
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, 0x40ce00
mov dl, 1
call fcn.0040c1a8
pop ecx
mov eax, dword [ebp - 0x1f0]
mov edx, 0x40ce0c
call fcn.004039f0
je 0x40cc46
mov eax, 0x41eb54
mov edx, 0x40cecc
call fcn.00403780
push ebp
lea eax, [ebp - 0x1f8]
push eax
mov ecx, 0x40cf00
mov dl, 1
mov eax, dword [0x41edcc]
call fcn.0040c1a8
pop ecx
mov eax, dword [ebp - 0x1f8]
mov edx, 0x40ce0c
call fcn.004039f0
je 0x40cc46
push dword [0x41ed74]
lea edx, [ebp - 0x1fc]
mov eax, 0x9e
call fcn.00405148
push dword [ebp - 0x1fc]
push 0x40cd8c
push dword [0x41eb38]
push 0x40cd8c
lea edx, [ebp - 0x200]
mov eax, dword [ebp - 8]
call fcn.00416820
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, 0x40cf0c
call fcn.00403780
mov eax, 0x41eb28
mov edx, 0x4c
call fcn.00403b84
mov eax, 0x41eb54
mov edx, 0x40cfc8
call fcn.00403780
jmp 0x40ca89
lea eax, [ebp - 0x10]
call fcn.00403af4
mov edx, dword [0x41eb8c]
dec edx
test eax, eax
je 0x40ca2b
cmp edx, dword [eax - 4]
jb 0x40ca30
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 0x40ca4f
cmp edx, dword [eax - 4]
jb 0x40ca54
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.0040c1a8
pop ecx
add dword [0x41eb8c], 0x4c
jno 0x40ca89
call fcn.00402f1c
mov eax, dword [0x41eb88]
sub eax, 0x4c
jno 0x40ca98
call fcn.00402f1c
cmp eax, dword [0x41eb8c]
jge 0x40ca13
mov eax, dword [0x41eb88]
sub eax, dword [0x41eb8c]
jno 0x40cab6
call fcn.00402f1c
add eax, 1
jno 0x40cac0
call fcn.00402f1c
mov dword [0x41eb88], eax
mov eax, 0x41eb54
mov edx, 0x40d070
call fcn.00403780
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 0x40cafd
cmp edx, dword [eax - 4]
jb 0x40cb02
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 0x40cb2f
cmp edx, dword [eax - 4]
jb 0x40cb34
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 0x40cb53
cmp edx, dword [eax - 4]
jb 0x40cb58
call fcn.00402f14
inc edx
lea eax, [eax + edx - 1]
mov ecx, dword [0x41eb88]
test ecx, ecx
jns 0x40cb6c
call fcn.00402f14
pop edx
call fcn.0040492c
push ebp
lea eax, [ebp - 0x208]
push eax
xor ecx, ecx
xor edx, edx
mov eax, dword [0x41eb28]
call fcn.0040c1a8
pop ecx
push ebp
lea eax, [ebp - 0x20c]
push eax
mov ecx, 0x40ce00
mov dl, 1
mov eax, 0x40d12c
call fcn.0040c1a8
pop ecx
mov edx, dword [ebp - 0x20c]
lea eax, [ebp - 0x10]
call fcn.004037c4
lea eax, [ebp - 0x10]
push eax
mov ecx, 3
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.00403afc
push ebp
lea eax, [ebp - 0x210]
push eax
mov ecx, 0x40d138
mov dl, 1
mov eax, dword [0x41edd0]
call fcn.0040c1a8
pop ecx
mov eax, 0x41eb54
mov edx, 0x40d144
call fcn.00403780
lea eax, [ebp - 4]
call fcn.00406418
mov eax, dword [ebp - 0x10]
mov edx, 0x40ce00
call fcn.004039f0
jne 0x40cc46
mov eax, 0x41eb54
mov edx, 0x40d1a8
call fcn.00403780
mov byte [ebp - 9], 1
cmp byte [0x41d294], 0
jne 0x40cc41
lea eax, [ebp - 0x214]
mov ecx, dword [0x41eb30]
mov edx, 0x40d1c8
call fcn.004038f0
mov eax, dword [ebp - 0x214]
call fcn.00412f04
call fcn.004086ec