Function at 0x4a6b70
Capabilities:
Check for time delay via gettickcount
Create tcp socket
Create udp socket
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x31c
push ebx
push ebp
push esi
push edi
call fcn.00479de0
mov esi, dword [0xcc02c8]
mov edi, 1
push 0x11
mov dword [0xcc02c8], edi
call fcn.00479d60
add esp, 4
mov ebx, 2
mov dword [0xcc02c8], esi
push 0
push ebx
push ebx
call sub.WSOCK32.dll_socket
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x10], ebp
jne 0x4a6bd3
push 0
push 0
push 0
push 0
push str.Socket_Creation_Failed
call fcn.00457b00
add esp, 0x14
jmp 0x4a6ea8
mov cx, word [0x548fbc]
xor eax, eax
mov dword [esp + 0x1c], eax
push ecx
mov dword [esp + 0x24], eax
mov word [esp + 0x20], bx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call sub.WSOCK32.dll_htons
lea edx, [esp + 0x1c]
push 0x10
push edx
push ebp
mov word [esp + 0x2a], ax
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
jne 0x4a6c2e
push 0
push 0
push 0
push 0
push str.Bind_Failed
call fcn.00457b00
mov esi, dword [0xcc2f70]
add esp, 0x14
jmp 0x4a6e5b
lea eax, [esp + 0x18]
mov dword [esp + 0x18], edi
push eax
push 0x8004667e
push ebp
call sub.WSOCK32.dll_ioctlsocket
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x12c]
rep stosd dword es:[edi], eax
mov eax, dword [0xcc2f70]
xor edi, edi
test eax, eax
jle 0x4a6c96
lea esi, [esp + 0x130]
mov ecx, dword [0xcc2f54]
mov word [esi - 4], bx
mov edx, dword [ecx + edi*4]
push edx
call sub.WSOCK32.dll_htonl
mov dword [esi], eax
mov ax, word [0x548fbc]
push eax
call sub.WSOCK32.dll_htons
mov word [esi - 2], ax
mov eax, dword [0xcc2f70]
inc edi
add esi, 0x10
cmp edi, eax
jl 0x4a6c64
xor eax, eax
mov dword [esp + 0x14], eax
mov ecx, dword [0xcc2f70]
xor ebx, ebx
test ecx, ecx
jle 0x4a6d73
lea esi, [esp + 0x12c]
lea edi, [eax*4]
mov cx, word [0x548fbc]
mov dword [edi + 0xcc939c], 0
push ecx
call sub.WSOCK32.dll_htons
mov dl, byte [esp + 0x14]
mov word [esp + 0xac], ax
mov byte [esp + 0xae], bl
mov byte [esp + 0xaf], dl
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x10]
push 0x10
mov ebp, eax
push esi
push 0
lea eax, [esp + 0xb8]
push 0x28
push eax
push ecx
call sub.WSOCK32.dll_sendto
test eax, eax
jge 0x4a6d3d
add ebp, 0xfa0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp ebp, eax
jl 0x4a6d5e
mov eax, dword [esp + 0x10]
push 0x10
push esi
push 0
lea edx, [esp + 0xb8]
push 0x28
push edx
push eax
call sub.WSOCK32.dll_sendto
test eax, eax
jl 0x4a6d16
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0xcc9d9c], eax
mov eax, dword [0xcc2f70]
inc ebx
add esi, 0x10
add edi, 0x50
cmp ebx, eax
jge 0x4a6d73
jmp 0x4a6cba
push 0
push 0
push 0
push 0
push str.Couldnt_send_for_4_seconds.
call fcn.00457b00
add esp, 0x14
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0x14
mov dword [esp + 0x14], eax
jl 0x4a6c9c
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebp, eax
xor ebx, ebx
mov edx, dword [esp + 0x10]
push 0
push 0
push 0
lea ecx, [esp + 0x38]
push 0x28
push ecx
push edx
mov byte [esp + 0x46], 0xff
mov byte [esp + 0x47], 0xff
call sub.WSOCK32.dll_recvfrom
test eax, eax
jge 0x4a6de1
lea esi, [ebp + 0x1f40]
call edi
cmp esi, eax
jl 0x4a6e51
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0
lea eax, [esp + 0x38]
push 0x28
push eax
push ecx
call sub.WSOCK32.dll_recvfrom
test eax, eax
jl 0x4a6dbc
call edi
movsx edx, byte [esp + 0x2e]
movsx ecx, byte [esp + 0x2f]
test edx, edx
jl 0x4a6e25
mov esi, dword [0xcc2f70]
cmp edx, esi
jge 0x4a6e25
cmp ecx, 0x14
jge 0x4a6e25
lea edx, [edx + edx*4]
lea ecx, [ecx + edx*4]
shl ecx, 2
sub eax, dword [ecx + 0xcc9d9c]
test eax, eax
mov dword [ecx + 0xcc939c], eax
jg 0x4a6e40
mov dword [ecx + 0xcc939c], 1
jmp 0x4a6e40
push 0
push 0
push 0
push 0
push str.Bogus_return_ping
call fcn.00457b00
mov esi, dword [0xcc2f70]
add esp, 0x14
lea eax, [esi + esi*4]
inc ebx
shl eax, 2
cmp ebx, eax
jne 0x4a6d91
jmp 0x4a6e57
mov esi, dword [0xcc2f70]
mov ebp, dword [esp + 0x10]
xor eax, eax
test esi, esi
jle 0x4a6e9d
mov edx, 0xcc939c
mov ecx, dword [0xcc2f58]
mov edi, 0x14
mov word [ecx + eax*2], 0
mov esi, dword [edx]
test esi, esi
jne 0x4a6e82
mov esi, 0xc8
mov ecx, dword [0xcc2f58]
add edx, 4
add word [ecx + eax*2], si
dec edi
jne 0x4a6e77
mov ecx, dword [0xcc2f70]
inc eax
cmp eax, ecx
jl 0x4a6e66
push ebp
call sub.WSOCK32.dll_closesocket
mov edi, 1
call fcn.00479df0
mov esi, dword [0xcc02c8]
push 0x11
mov dword [0xcc02c8], edi
call fcn.00479d60
add esp, 4
mov dword [0xcc02c8], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret