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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff80c
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x7f4], edx
mov dword [ebp - 0x7f0], edx
mov dword [ebp - 0x7ec], edx
mov esi, eax
xor eax, eax
push ebp
push 0x47f390
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
mov eax, esi
call fcn.00405428
lea eax, [ebp - 0x19c]
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
cmp dword [ebp - 4], 0xffffffff
je 0x47f372
xor edx, edx
push ebp
push 0x47f358
push dword fs:[edx]
mov dword fs:[edx], esp
lea ebx, [ebp - 8]
push 0
push 0
push ebx
push 0x400
lea eax, [ebp - 0x7e8]
push eax
push 0
push 0
push 0x4004747f
mov eax, dword [ebp - 4]
push eax
call sub.WS2_32.DLL_WSAIoctl
inc eax
je 0x47f34e
mov eax, dword [ebp - 8]
mov ecx, 0x4c
cdq
idiv ecx
dec eax
test eax, eax
jl 0x47f34e
inc eax
mov dword [ebp - 0xc], eax
lea ebx, [ebp - 0x7e4]
push esi
mov esi, ebx
lea edi, [ebp - 0x1ac]
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 esi
push dword [ebp - 0x1a8]
call sub.wsock32.dll_inet_ntoa
mov edi, eax
push dword [esi]
push 0x47f3a8
lea eax, [ebp - 0x7ec]
mov edx, edi
call fcn.00405620
push dword [ebp - 0x7ec]
push 0x47f3b8
mov eax, esi
mov edx, 4
call fcn.004057bc
push esi
lea esi, [ebx + 0x30]
lea edi, [ebp - 0x1ac]
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 esi
push dword [ebp - 0x1a8]
call sub.wsock32.dll_inet_ntoa
mov edi, eax
push dword [esi]
push 0x47f3c4
lea eax, [ebp - 0x7f0]
mov edx, edi
call fcn.00405620
push dword [ebp - 0x7f0]
push 0x47f3b8
mov eax, esi
mov edx, 4
call fcn.004057bc
push esi
lea esi, [ebx + 0x18]
lea edi, [ebp - 0x1ac]
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 esi
push dword [ebp - 0x1a8]
call sub.wsock32.dll_inet_ntoa
mov edi, eax
push dword [esi]
push 0x47f3d8
lea eax, [ebp - 0x7f4]
mov edx, edi
call fcn.00405620
push dword [ebp - 0x7f4]
push 0x47f3b8
mov eax, esi
mov edx, 4
call fcn.004057bc
mov edi, dword [ebx - 4]
mov eax, edi
and eax, 1
dec eax
jne 0x47f29c
push dword [esi]
push 0x47f3f8
push 0x47f3b8
mov eax, esi
mov edx, 3
call fcn.004057bc
jmp 0x47f2b4
push dword [esi]
push 0x47f410
push 0x47f3b8
mov eax, esi
mov edx, 3
call fcn.004057bc
mov eax, edi
and eax, 2
cmp eax, 2
jne 0x47f2d8
push dword [esi]
push 0x47f428
push 0x47f3b8
mov eax, esi
mov edx, 3
call fcn.004057bc
jmp 0x47f2f0
push dword [esi]
push 0x47f444
push 0x47f3b8
mov eax, esi
mov edx, 3
call fcn.004057bc
and edi, 4
cmp edi, 4
jne 0x47f312
push dword [esi]
push 0x47f460
push 0x47f3b8
mov eax, esi
mov edx, 3
call fcn.004057bc
jmp 0x47f32a
push dword [esi]
push 0x47f47c
push 0x47f3b8
mov eax, esi
mov edx, 3
call fcn.004057bc
push dword [esi]
push 0x47f3b8
push 0x47f3b8
mov eax, esi
mov edx, 3
call fcn.004057bc
add ebx, 0x4c
dec dword [ebp - 0xc]
jne 0x47f1a3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47f362
mov eax, dword [ebp - 4]
push eax
call sub.wsock32.dll_closesocket
call sub.wsock32.dll_WSACleanup
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47f397
lea eax, [ebp - 0x7f4]
mov edx, 3
call fcn.0040544c
ret