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

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x324
push ebx
mov ebx, dword [ebp + 0x70]
push esi
xor esi, esi
push edi
or edi, 0xffffffff
mov dword [ebp + 0x58], esi
mov dword [ebp + 0x5c], esi
mov dword [ebp + 0x64], esi
cmp ebx, edi
jne 0x41cbee
cmp dword [ebp + 0x74], edi
jne 0x41cbee
cmp dword [ebp + 0x78], edi
jne 0x41cbee
push dword [ebp + 0x7c]
call fcn.0041cb90
pop ecx
jmp 0x41ce73
mov eax, dword [ebp + 0x7c]
cmp eax, esi
jle 0x41cc03
mov dword [ebp + 0x64], eax
call fcn.00424e94
mov dword [ebp + 0x58], eax
mov dword [ebp + 0x5c], edx
mov dword [ebp - 0xb4], esi
mov dword [ebp - 0x1b8], esi
cmp ebx, 0xffffffff
je 0x41cc31
xor esi, esi
inc esi
mov dword [ebp - 0x1b4], ebx
mov dword [ebp - 0x1b8], esi
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xb4], esi
mov edi, ebx
mov ecx, dword [ebp + 0x74]
cmp ecx, 0xffffffff
je 0x41ccaa
xor eax, eax
test esi, esi
jbe 0x41cc4d
cmp dword [ebp + eax*4 - 0x1b4], ecx
je 0x41cc4d
inc eax
cmp eax, esi
jb 0x41cc3f
cmp eax, esi
jne 0x41cc6a
cmp esi, 0x40
jae 0x41cc6a
mov dword [ebp + eax*4 - 0x1b4], ecx
mov esi, dword [ebp - 0x1b8]
inc esi
mov dword [ebp - 0x1b8], esi
xor eax, eax
cmp dword [ebp - 0xb4], eax
jbe 0x41cc86
cmp dword [ebp + eax*4 - 0xb0], ecx
je 0x41cc86
inc eax
cmp eax, dword [ebp - 0xb4]
jb 0x41cc74
cmp eax, dword [ebp - 0xb4]
jne 0x41cca4
cmp dword [ebp - 0xb4], 0x40
jae 0x41cca4
mov dword [ebp + eax*4 - 0xb0], ecx
inc dword [ebp - 0xb4]
cmp ecx, edi
jbe 0x41ccaa
mov edi, ecx
mov edx, dword [ebp + 0x78]
xor ecx, ecx
mov dword [ebp - 0x2bc], ecx
cmp edx, 0xffffffff
je 0x41cd07
inc ecx
xor eax, eax
mov dword [ebp - 0x2b8], edx
mov dword [ebp - 0x2bc], ecx
cmp dword [ebp - 0xb4], eax
jbe 0x41cce3
cmp dword [ebp + eax*4 - 0xb0], edx
je 0x41cce3
inc eax
cmp eax, dword [ebp - 0xb4]
jb 0x41ccd1
cmp eax, dword [ebp - 0xb4]
jne 0x41cd01
cmp dword [ebp - 0xb4], 0x40
jae 0x41cd01
mov dword [ebp + eax*4 - 0xb0], edx
inc dword [ebp - 0xb4]
cmp edx, edi
jbe 0x41cd07
mov edi, edx
xor eax, eax
cmp dword [ebp + 0x7c], eax
jge 0x41cd13
mov dword [ebp + 0x60], eax
jmp 0x41cd19
lea edx, [ebp + 0x50]
mov dword [ebp + 0x60], edx
inc edi
jmp 0x41cd2a
mov esi, dword [ebp - 0x1b8]
mov ecx, dword [ebp - 0x2bc]
xor eax, eax
cmp dword [ebp + 0x7c], eax
jle 0x41cd48
mov eax, dword [ebp + 0x64]
cdq
mov ebx, 0x3e8
idiv ebx
mov ebx, dword [ebp + 0x70]
imul edx, edx, 0x3e8
mov dword [ebp + 0x54], edx
jmp 0x41cd4d
jne 0x41cd50
mov dword [ebp + 0x54], eax
mov dword [ebp + 0x50], eax
push dword [ebp + 0x60]
neg ecx
lea eax, [ebp - 0xb4]
push eax
sbb ecx, ecx
lea eax, [ebp - 0x2bc]
and ecx, eax
neg esi
sbb esi, esi
lea eax, [ebp - 0x1b8]
push ecx
and esi, eax
push esi
push edi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x41cdcb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x41cd9a
cmp dword [0x48c698], 0
jne 0x41cdcf
cmp eax, 0x2714
jne 0x41cdcf
cmp dword [ebp + 0x7c], 0
jle 0x41cd1c
push dword [ebp + 0x5c]
push dword [ebp + 0x58]
call fcn.00424e94
push edx
push eax
call fcn.00424eaa
mov ecx, dword [ebp + 0x7c]
sub ecx, eax
add esp, 0x10
mov dword [ebp + 0x64], ecx
test ecx, ecx
jg 0x41cd1c
xor eax, eax
test eax, eax
jge 0x41cdd7
or eax, 0xffffffff
jmp 0x41ce73
jne 0x41cde0
xor eax, eax
jmp 0x41ce73
xor esi, esi
cmp ebx, 0xffffffff
je 0x41ce0d
lea eax, [ebp - 0x1b8]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41cdf9
inc esi
lea eax, [ebp - 0xb4]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41ce0d
or esi, 4
cmp dword [ebp + 0x74], 0xffffffff
je 0x41ce3f
lea eax, [ebp - 0x1b8]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41ce29
or esi, 8
lea eax, [ebp - 0xb4]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41ce3f
or esi, 4
cmp dword [ebp + 0x78], 0xffffffff
je 0x41ce71
lea eax, [ebp - 0x2bc]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41ce5b
or esi, 2
lea eax, [ebp - 0xb4]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41ce71
or esi, 4
mov eax, esi
pop edi
pop esi
pop ebx
add ebp, 0x68
leave
ret