Function at 0x478a30
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
sub esp, 0x324
push esi
mov esi, dword [esp + 0x32c]
push edi
xor edi, edi
cmp esi, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov dword [esp + 8], edi
je 0x478a6b
mov ecx, dword [esp + 0x334]
xor eax, eax
cmp ecx, edi
jbe 0x478a6b
mov edi, edi
cmp dword [esi + eax*8], 0xffffffff
jne 0x478aa1
inc eax
cmp eax, ecx
jb 0x478a60
mov eax, dword [esp + 0x338]
cmp eax, edi
je 0x478a96
jge 0x478a8f
push 0x2726
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x324
ret
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
xor eax, eax
pop esi
add esp, 0x324
ret
mov eax, dword [esp + 0x338]
cmp eax, edi
jle 0x478abd
mov dword [esp + 8], eax
call fcn.00466ae0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
push ebx
push ebp
xor ebp, ebp
mov dword [esp + 0x28], edi
mov dword [esp + 0x12c], edi
mov dword [esp + 0x230], ebp
mov dword [esp + 0x14], 0xffffffff
xor ebx, ebx
lea ecx, [ecx]
mov ecx, dword [esi + ebx*8]
cmp ecx, 0xffffffff
mov word [esi + ebx*8 + 6], 0
je 0x478bbd
mov dx, word [esi + ebx*8 + 4]
test dl, 7
je 0x478bbd
cmp ecx, dword [esp + 0x14]
jbe 0x478b0b
mov dword [esp + 0x14], ecx
test dl, 1
je 0x478b43
mov esi, dword [esp + 0x28]
xor eax, eax
test esi, esi
jbe 0x478b2b
lea ebx, [ebx]
cmp dword [esp + eax*4 + 0x2c], ecx
je 0x478b2b
inc eax
cmp eax, esi
jb 0x478b20
cmp eax, esi
jne 0x478b3c
cmp esi, 0x40
jae 0x478b3c
mov dword [esp + eax*4 + 0x2c], ecx
inc dword [esp + 0x28]
mov esi, dword [esp + 0x338]
test dl, 4
je 0x478b7d
xor eax, eax
test edi, edi
jbe 0x478b5e
mov edi, edi
cmp dword [esp + eax*4 + 0x130], ecx
je 0x478b5e
inc eax
cmp eax, edi
jb 0x478b50
cmp eax, edi
jne 0x478b7d
cmp edi, 0x40
jae 0x478b7d
mov dword [esp + eax*4 + 0x130], ecx
mov edi, dword [esp + 0x12c]
inc edi
mov dword [esp + 0x12c], edi
test dl, 2
je 0x478bbd
xor eax, eax
test ebp, ebp
jbe 0x478b9e
jmp 0x478b90
cmp dword [esp + eax*4 + 0x234], ecx
je 0x478b9e
inc eax
cmp eax, ebp
jb 0x478b90
cmp eax, ebp
jne 0x478bbd
cmp ebp, 0x40
jae 0x478bbd
mov dword [esp + eax*4 + 0x234], ecx
mov ebp, dword [esp + 0x230]
inc ebp
mov dword [esp + 0x230], ebp
mov eax, dword [esp + 0x33c]
inc ebx
cmp ebx, eax
jb 0x478ae0
mov eax, dword [esp + 0x340]
mov edi, dword [esp + 0x14]
mov ebp, dword [sym.imp.WSOCK32.dll_select]
xor ebx, ebx
xor ecx, ecx
cmp eax, ecx
setl bl
lea edx, [esp + 0x20]
dec ebx
and ebx, edx
inc edi
jmp 0x478c00
mov eax, dword [esp + 0x340]
xor ecx, ecx
lea ebx, [ebx]
cmp eax, ecx
jle 0x478c20
mov eax, dword [esp + 0x10]
cdq
mov ecx, 0x3e8
idiv ecx
imul edx, edx, 0x3e8
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
jmp 0x478c2a
jne 0x478c2a
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
push ebx
lea edx, [esp + 0x234]
push edx
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x34]
push ecx
push edi
call ebp
mov esi, eax
cmp esi, 0xffffffff
jne 0x478c94
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
test eax, eax
je 0x478c5b
cmp eax, 0x2714
jne 0x478c94
mov eax, dword [esp + 0x340]
test eax, eax
jle 0x478bf1
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
call fcn.00466ae0
push edx
push eax
call fcn.00466b00
mov ecx, dword [esp + 0x350]
sub ecx, eax
add esp, 0x10
test ecx, ecx
mov dword [esp + 0x10], ecx
jg 0x478bf1
test esi, esi
jge 0x478ca6
pop ebp
pop ebx
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x324
ret
jne 0x478cb5
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x324
ret
mov esi, dword [esp + 0x338]
mov edi, dword [esp + 0x33c]
xor ebx, ebx
add esi, 6
jmp 0x478cd0
mov eax, dword [esi - 6]
cmp eax, 0xffffffff
mov word [esi], 0
je 0x478d26
lea ecx, [esp + 0x28]
push ecx
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x478cef
or byte [esi], 1
mov eax, dword [esi - 6]
lea edx, [esp + 0x12c]
push edx
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x478d07
or byte [esi], 4
mov edx, dword [esi - 6]
lea ecx, [esp + 0x230]
push ecx
push edx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x478d1f
or byte [esi], 2
cmp word [esi], 0
je 0x478d26
inc ebx
add esi, 8
dec edi
jne 0x478cd0
pop ebp
mov eax, ebx
pop ebx
pop edi
pop esi
add esp, 0x324
ret