Function at 0x4b74f0
Capabilities:
Check for time delay via gettickcount
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x704
push ebx
push ebp
push esi
mov esi, dword [esp + 0x714]
push edi
xor ebp, ebp
mov eax, dword [esi + 0x6c]
xor edi, edi
xor edx, edx
cmp eax, ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x34], edx
jle 0x4b76bd
mov ecx, dword [esi + 8]
cmp dword [ecx + 4], ebp
je 0x4b7547
inc edi
cmp edx, 0x40
jae 0x4b7547
mov ebx, dword [ecx]
mov dword [esp + edx*4 + 0x38], ebx
mov edx, dword [esp + 0x34]
inc edx
mov dword [esp + 0x34], edx
add ecx, 0x1c
dec eax
jne 0x4b752d
cmp edi, ebp
mov dword [esp + 0x18], edi
jle 0x4b76bd
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x34]
push eax
push ebp
push ebp
push ecx
push 0x40
call sub.wsock32.dll_select
cmp eax, 0xffffffff
je 0x4b76bd
cmp eax, ebp
je 0x4b76bd
mov eax, dword [esi + 0x6c]
mov dword [esp + 0x10], ebp
cmp eax, ebp
jle 0x4b76bd
mov edx, dword [esi + 8]
mov ecx, dword [edx + ebp + 4]
lea eax, [edx + ebp]
test ecx, ecx
je 0x4b76a6
mov edx, dword [eax]
lea ecx, [esp + 0x34]
push ecx
push edx
call sub.wsock32.dll___WSAFDIsSet
test eax, eax
je 0x4b76a6
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esi + 8]
push ecx
mov dword [esp + 0x1c], 0x10
mov ecx, dword [eax + ebp]
push 0
lea edx, [esp + 0x144]
push 0x5db
push edx
push ecx
call sub.wsock32.dll_recvfrom
mov edx, dword [esi + 8]
mov edi, dword [edx + ebp + 0x10]
lea ecx, [edx + ebp]
mov edx, dword [esp + 0x28]
cmp edx, edi
jne 0x4b76a6
mov dx, word [esp + 0x26]
cmp dx, word [ecx + 0xe]
jne 0x4b76a6
cmp eax, 0xffffffff
je 0x4b769f
mov byte [esp + eax + 0x138], 0
lea eax, [esp + 0x138]
push 0x57c5ac
push eax
call dword [sym.imp.msvcrt.dll_strstr]
mov ecx, dword [esi + 8]
mov edi, eax
add esp, 8
mov ebx, dword [ecx + ebp + 4]
neg edi
sbb edi, edi
neg edi
cmp word [ebx + 6], 0x270f
jne 0x4b7654
call sub.kernel32.dll_GetTickCount
mov edx, dword [esi + 8]
sub ax, word [edx + ebp + 8]
mov word [ebx + 6], ax
lea eax, [esp + 0x138]
push eax
push ebx
call fcn.004b43a0
add esp, 8
test edi, edi
je 0x4b76a6
mov ecx, dword [esi + 4]
push ecx
call fcn.004b7990
mov ecx, eax
mov eax, dword [esi + 0x70]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 2
cdq
idiv ecx
mov edx, dword [esi + 0x7c]
push eax
push ebx
push edx
push 2
push esi
call dword [esi + 0x78]
mov eax, dword [esi + 8]
add esp, 0x18
mov dword [eax + ebp + 4], 0
jmp 0x4b76a6
mov dword [ecx + 4], 0
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x6c]
inc eax
add ebp, 0x1c
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4b758c
mov eax, dword [esi + 0x6c]
xor ebx, ebx
test eax, eax
jle 0x4b76f9
xor edi, edi
mov ecx, dword [esi + 8]
mov eax, dword [edi + ecx + 4]
test eax, eax
je 0x4b76ee
mov edx, ecx
lea ebp, [edi + edx]
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebp + 8]
cmp eax, 0xbb8
jbe 0x4b76ee
mov dword [ebp + 4], 0
mov eax, dword [esi + 0x6c]
inc ebx
add edi, 0x1c
cmp ebx, eax
jl 0x4b76c8
mov eax, dword [esi + 0x74]
test eax, eax
jne 0x4b77fa
mov eax, dword [esi + 4]
push eax
call fcn.004b7990
mov ecx, dword [esi + 0x70]
add esp, 4
cmp ecx, eax
jl 0x4b7723
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4b77fa
mov eax, dword [esi + 0x6c]
xor ebx, ebx
test eax, eax
jle 0x4b780b
xor edi, edi
mov ecx, dword [esi + 4]
mov ebp, dword [esi + 0x70]
push ecx
call fcn.004b7990
add esp, 4
cmp ebp, eax
jge 0x4b780b
mov edx, dword [esi + 8]
mov eax, dword [edi + edx + 4]
test eax, eax
jne 0x4b77de
mov eax, dword [esi + 4]
push ebp
push eax
call fcn.004b79a0
mov ecx, dword [esi + 0x70]
mov ebp, dword [eax]
inc ecx
push ebp
mov dword [esi + 0x70], ecx
mov ecx, dword [esi + 8]
mov dword [edi + ecx + 4], ebp
mov edx, dword [esi + 8]
mov word [edi + edx + 0xc], 2
call fcn.004b44c0
add esp, 0xc
push eax
call sub.wsock32.dll_inet_addr
mov ecx, dword [esi + 8]
push ebp
mov dword [edi + ecx + 0x10], eax
call fcn.004b44d0
add esp, 4
push eax
call sub.wsock32.dll_htons_1
mov edx, dword [esi + 8]
push 0x10
mov word [edi + edx + 0xe], ax
mov eax, dword [esi + 8]
mov ebp, dword [ebp + 8]
add eax, edi
shl ebp, 2
lea ecx, [eax + 0xc]
mov edx, dword [ebp + 0x548e70]
push ecx
mov ecx, dword [ebp + 0x57d964]
push 0
push edx
mov edx, dword [eax]
push ecx
push edx
call sub.wsock32.dll_sendto
call sub.kernel32.dll_GetTickCount
mov ecx, dword [esi + 8]
mov dword [edi + ecx + 8], eax
mov eax, dword [esi + 0x6c]
inc ebx
add edi, 0x1c
cmp ebx, eax
jl 0x4b7732
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x704
ret
push esi
call fcn.004b7820
push 0
push esi
call fcn.004b6c60
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x704
ret