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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff994
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x66c], ecx
mov dword [ebp - 0x668], ecx
mov dword [ebp - 0x664], ecx
mov edi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4711ee
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
add eax, 0x154
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
xor edx, edx
push ebp
push 0x4711c9
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x471003
call fcn.00403dec
jmp 0x4711d0
xor edx, edx
push ebp
push 0x4711a3
push dword fs:[edx]
mov dword fs:[edx], esp
lea ebx, [ebp - 0x10]
push 0
push 0
push ebx
push 0x400
lea eax, [ebp - 0x660]
push eax
push 0
push 0
push 0x4004747f
mov eax, dword [ebp - 0xc]
push eax
call dword [0x488f34]
inc eax
je 0x471199
mov eax, dword [ebp - 0x10]
mov ecx, 0x4c
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov eax, edi
mov ecx, 1
mov edx, dword [0x4703a8]
call fcn.004058e0
add esp, 4
mov eax, dword [ebp - 8]
dec eax
test eax, eax
jl 0x471199
inc eax
mov dword [ebp - 0x14], eax
xor esi, esi
lea ebx, [ebp - 0x65c]
push esi
push edi
mov esi, ebx
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
push dword [ebp - 0x20]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x664]
call fcn.00404554
mov edx, dword [ebp - 0x664]
mov eax, dword [ebp - 4]
call fcn.00470a98
imul edx, esi, 0x115
mov ecx, dword [edi]
mov dword [ecx + edx], eax
push esi
push edi
lea esi, [ebx + 0x30]
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
push dword [ebp - 0x20]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x668]
call fcn.00404554
mov edx, dword [ebp - 0x668]
mov eax, dword [ebp - 4]
call fcn.00470a98
imul edx, esi, 0x115
mov ecx, dword [edi]
mov dword [ecx + edx + 4], eax
push esi
push edi
lea esi, [ebx + 0x18]
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
push dword [ebp - 0x20]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x66c]
call fcn.00404554
mov edx, dword [ebp - 0x66c]
mov eax, dword [ebp - 4]
call fcn.00470a98
imul edx, esi, 0x115
mov ecx, dword [edi]
mov dword [ecx + edx + 8], eax
mov eax, dword [ebx - 4]
imul edx, esi, 0x115
mov ecx, dword [edi]
lea edx, [ecx + edx + 0x112]
push edx
mov edx, eax
and edx, 1
dec edx
sete dl
pop ecx
mov byte [ecx], dl
imul edx, esi, 0x115
mov ecx, dword [edi]
lea edx, [ecx + edx + 0x113]
push edx
mov edx, eax
and edx, 4
cmp edx, 4
sete dl
pop ecx
mov byte [ecx], dl
imul edx, esi, 0x115
mov ecx, dword [edi]
lea edx, [ecx + edx + 0x114]
push edx
and eax, 2
cmp eax, 2
sete al
pop edx
mov byte [edx], al
inc esi
add ebx, 0x4c
dec dword [ebp - 0x14]
jne 0x47107e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4711ad
mov eax, dword [ebp - 0xc]
push eax
call sub.wsock32.dll_closesocket
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4711d0
call sub.wsock32.dll_WSACleanup
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4711f5
lea eax, [ebp - 0x66c]
mov edx, 3
call fcn.00404388
ret