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

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x32c
push ebx
mov ebx, dword [ebp + 0x74]
push esi
xor esi, esi
mov dword [ebp + 0x54], esi
mov dword [ebp + 0x58], esi
mov dword [ebp + 0x60], esi
cmp ebx, esi
je 0x41cead
xor eax, eax
cmp dword [ebp + 0x78], esi
jbe 0x41cead
cmp dword [ebx + eax*8], 0xffffffff
jne 0x41cebb
inc eax
cmp eax, dword [ebp + 0x78]
jb 0x41cea1
push dword [ebp + 0x7c]
call fcn.0041cb90
pop ecx
jmp 0x41d140
mov eax, dword [ebp + 0x7c]
cmp eax, esi
jle 0x41ced0
mov dword [ebp + 0x60], eax
call fcn.00424e94
mov dword [ebp + 0x54], eax
mov dword [ebp + 0x58], edx
push edi
xor ecx, ecx
xor edi, edi
or dword [ebp + 0x64], 0xffffffff
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 0x1bc], esi
mov dword [ebp - 0x2c0], edi
mov dword [ebp + 0x68], esi
mov eax, dword [ebp + 0x68]
shl eax, 3
xor edx, edx
mov dword [ebp + 0x5c], eax
lea eax, [eax + ebx + 4]
mov word [eax + 2], dx
mov edx, dword [ebp + 0x5c]
mov edx, dword [edx + ebx]
cmp edx, 0xffffffff
je 0x41cfc9
movzx ebx, word [eax]
test bl, 7
je 0x41cfc6
cmp edx, dword [ebp + 0x64]
jbe 0x41cf24
mov dword [ebp + 0x64], edx
test bl, 1
je 0x41cf5a
xor eax, eax
test ecx, ecx
jbe 0x41cf3d
cmp dword [ebp + eax*4 - 0xb4], edx
je 0x41cf3d
inc eax
cmp eax, ecx
jb 0x41cf2f
cmp eax, ecx
jne 0x41cf5a
cmp ecx, 0x40
jae 0x41cf5a
mov dword [ebp + eax*4 - 0xb4], edx
mov ecx, dword [ebp - 0xb8]
inc ecx
mov dword [ebp - 0xb8], ecx
test bl, 4
je 0x41cf90
xor eax, eax
test esi, esi
jbe 0x41cf73
cmp dword [ebp + eax*4 - 0x1b8], edx
je 0x41cf73
inc eax
cmp eax, esi
jb 0x41cf65
cmp eax, esi
jne 0x41cf90
cmp esi, 0x40
jae 0x41cf90
mov dword [ebp + eax*4 - 0x1b8], edx
mov esi, dword [ebp - 0x1bc]
inc esi
mov dword [ebp - 0x1bc], esi
test bl, 2
je 0x41cfc6
xor eax, eax
test edi, edi
jbe 0x41cfa9
cmp dword [ebp + eax*4 - 0x2bc], edx
je 0x41cfa9
inc eax
cmp eax, edi
jb 0x41cf9b
cmp eax, edi
jne 0x41cfc6
cmp edi, 0x40
jae 0x41cfc6
mov dword [ebp + eax*4 - 0x2bc], edx
mov edi, dword [ebp - 0x2c0]
inc edi
mov dword [ebp - 0x2c0], edi
mov ebx, dword [ebp + 0x74]
inc dword [ebp + 0x68]
mov eax, dword [ebp + 0x68]
cmp eax, dword [ebp + 0x78]
jb 0x41ceee
xor ebx, ebx
cmp ecx, ebx
jne 0x41cff4
cmp esi, ebx
jne 0x41cff4
cmp edi, ebx
jne 0x41cff4
push dword [ebp + 0x7c]
call fcn.0041cb90
pop ecx
jmp 0x41d13f
cmp dword [ebp + 0x7c], ebx
jge 0x41cffe
mov dword [ebp + 0x68], ebx
jmp 0x41d004
lea eax, [ebp + 0x4c]
mov dword [ebp + 0x68], eax
mov eax, dword [ebp + 0x64]
inc eax
mov dword [ebp + 0x5c], eax
jmp 0x41d01f
mov ecx, dword [ebp - 0xb8]
mov esi, dword [ebp - 0x1bc]
mov edi, dword [ebp - 0x2c0]
cmp dword [ebp + 0x7c], ebx
jle 0x41d03f
mov eax, dword [ebp + 0x60]
cdq
mov ebx, 0x3e8
idiv ebx
imul edx, edx, 0x3e8
mov dword [ebp + 0x4c], eax
mov dword [ebp + 0x50], edx
xor ebx, ebx
jmp 0x41d047
jne 0x41d047
mov dword [ebp + 0x4c], ebx
mov dword [ebp + 0x50], ebx
push dword [ebp + 0x68]
neg edi
sbb edi, edi
lea eax, [ebp - 0x2c0]
and edi, eax
neg esi
sbb esi, esi
lea eax, [ebp - 0x1bc]
and esi, eax
neg ecx
push edi
sbb ecx, ecx
lea eax, [ebp - 0xb8]
push esi
and ecx, eax
push ecx
push dword [ebp + 0x5c]
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x41d0c8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, ebx
je 0x41d098
cmp dword [0x48c698], ebx
jne 0x41d0cc
cmp eax, 0x2714
jne 0x41d0cc
cmp dword [ebp + 0x7c], ebx
jle 0x41d00d
push dword [ebp + 0x58]
push dword [ebp + 0x54]
call fcn.00424e94
push edx
push eax
call fcn.00424eaa
mov ecx, dword [ebp + 0x7c]
sub ecx, eax
add esp, 0x10
cmp ecx, ebx
mov dword [ebp + 0x60], ecx
jg 0x41d00d
xor eax, eax
cmp eax, ebx
jge 0x41d0d1
or eax, 0xffffffff
jmp 0x41d13f
jne 0x41d0d7
xor eax, eax
jmp 0x41d13f
mov esi, dword [ebp + 0x74]
mov edi, dword [ebp + 0x78]
add esi, 6
xor eax, eax
mov word [esi], ax
mov eax, dword [esi - 6]
cmp eax, 0xffffffff
je 0x41d137
lea ecx, [ebp - 0xb8]
push ecx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41d102
or word [esi], 1
lea eax, [ebp - 0x1bc]
push eax
push dword [esi - 6]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41d119
or word [esi], 4
lea eax, [ebp - 0x2c0]
push eax
push dword [esi - 6]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41d130
or word [esi], 2
cmp word [esi], 0
je 0x41d137
inc ebx
add esi, 8
dec edi
jne 0x41d0e0
mov eax, ebx
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret