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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x374
mov eax, dword [0x5cab48]
xor eax, esp
mov dword [esp + 0x370], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x3c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x274]
push eax
push dword [esi + 0xc]
xor ebx, ebx
xor edi, edi
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x44], 0
mov dword [esp + 0x27c], 0
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x174], edi
call fcn.0042a870
mov esi, dword [esi]
xorps xmm2, xmm2
xor eax, eax
add esp, 0xc
movapd xmm1, xmm2
movsd qword [esp + 0x50], xmm1
mov dword [esp + 0x4c], eax
test esi, esi
jne 0x42d2b4
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [ebp + 0xc]
xor eax, eax
test esi, esi
cmovs esi, eax
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [esp + 0x58], ecx
imul ecx, ecx, 0x3e8
mov eax, esi
sub eax, ecx
imul eax, eax, 0x3e8
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x16c]
push eax
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x27c]
push eax
mov eax, dword [esp + 0x44]
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
mov dword [esp + 0x38], ebx
call edi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
cmp dword [0x5cad00], 4
addsd xmm0, qword [eax*8 + 0x5605e0]
divsd xmm0, qword [0x55cb20]
movsd qword [esp + 0x50], xmm0
movsd qword [esp + 0x40], xmm0
jl 0x42d231
mov eax, dword [0x5cad04]
test eax, eax
jne 0x42d207
call sub.MSVCR110.dll___iob_func
add eax, 0x40
mov dword [0x5cad04], eax
push str.mongoose.c:3406
push str.__20s
push eax
call sub.MSVCR110.dll_fprintf
cvttsd2si eax, qword [esp + 0x5c]
push esi
push dword [esp + 0x5c]
push ebx
push eax
push str.select____ld_num_ev_d_of__d__timeout_d
call fcn.00428f00
add esp, 0x20
mov esi, dword [esp + 0x3c]
test ebx, ebx
jle 0x42d25c
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
je 0x42d25c
lea ecx, [esp + 0x270]
push ecx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x42d25c
push esi
call fcn.0042cee0
add esp, 4
mov edi, dword [esi]
test edi, edi
je 0x42d4c1
mov ecx, dword [edi + 0x10]
xor eax, eax
cmp ecx, 0xffffffff
je 0x42d499
test ebx, ebx
jle 0x42d499
lea eax, [esp + 0x270]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x42d464
test byte [edi + 0x80], 2
je 0x42d2a5
cmp dword [edi + 8], 0
jne 0x42d464
mov ebx, 1
jmp 0x42d466
mov eax, dword [esp + 0x4c]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi]
mov dword [esp + 0x40], ecx
cmp edx, 0xffffffff
je 0x42d3ce
mov ecx, dword [esi + 0x80]
inc eax
mov dword [esp + 0x4c], eax
test cl, cl
js 0x42d307
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x28]
jae 0x42d307
test cl, 2
je 0x42d2e8
cmp dword [esi + 8], 0
jne 0x42d307
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x274]
push eax
push edx
call fcn.0042a870
movsd xmm1, qword [esp + 0x5c]
add esp, 0xc
xorps xmm2, xmm2
mov ecx, dword [esi + 0x80]
mov eax, ecx
and eax, 8
je 0x42d319
test cl, 0x40
je 0x42d32b
cmp dword [esi + 0x3c], 0
jbe 0x42d3ca
test eax, eax
jne 0x42d3ca
mov ecx, dword [esi + 0x10]
cmp ecx, 0xffffffff
je 0x42d376
xor eax, eax
test ebx, ebx
je 0x42d34b
lea esp, [esp]
cmp dword [esp + eax*4 + 0x64], ecx
je 0x42d34b
inc eax
cmp eax, ebx
jb 0x42d340
cmp eax, ebx
jne 0x42d361
cmp ebx, 0x40
jae 0x42d361
mov dword [esp + eax*4 + 0x64], ecx
mov ebx, dword [esp + 0x60]
inc ebx
mov dword [esp + 0x60], ebx
mov edx, dword [esp + 0x34]
cmp edx, 0xffffffff
je 0x42d36e
cmp ecx, edx
jbe 0x42d37a
mov edx, ecx
mov dword [esp + 0x34], edx
jmp 0x42d37a
mov edx, dword [esp + 0x34]
mov ecx, dword [esi + 0x10]
cmp ecx, 0xffffffff
je 0x42d3ca
xor eax, eax
test edi, edi
je 0x42d39e
jmp 0x42d390
cmp dword [esp + eax*4 + 0x16c], ecx
je 0x42d39e
inc eax
cmp eax, edi
jb 0x42d390
cmp eax, edi
jne 0x42d3bd
cmp edi, 0x40
jae 0x42d3bd
mov dword [esp + eax*4 + 0x16c], ecx
mov edi, dword [esp + 0x168]
inc edi
mov dword [esp + 0x168], edi
cmp edx, 0xffffffff
je 0x42d3c6
cmp ecx, edx
jbe 0x42d3ca
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x40]
movsd xmm0, qword [esi + 0x58]
comisd xmm0, xmm2
mov eax, dword [esp + 0x38]
jbe 0x42d3f6
test eax, eax
je 0x42d3e7
comisd xmm1, xmm0
jbe 0x42d3f1
movapd xmm1, xmm0
movsd qword [esp + 0x50], xmm1
inc eax
mov dword [esp + 0x38], eax
mov esi, ecx
test ecx, ecx
jne 0x42d2b0
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
test eax, eax
jle 0x42d15f
call edi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movsd xmm1, qword [esp + 0x50]
addsd xmm0, qword [eax*8 + 0x5605e0]
mov esi, dword [ebp + 0xc]
divsd xmm0, qword [0x55cb20]
subsd xmm1, xmm0
movd xmm0, esi
cvtdq2pd xmm0, xmm0
mulsd xmm1, qword [0x55cb20]
addsd xmm1, qword [0x5605c8]
comisd xmm0, xmm1
jbe 0x42d162
cvttsd2si esi, xmm1
jmp 0x42d162
xor ebx, ebx
lea eax, [esp + 0x168]
push eax
push dword [edi + 0x10]
call sub.WS2_32.dll___WSAFDIsSet
neg eax
sbb esi, esi
lea eax, [esp + 0x60]
push eax
push dword [edi + 0x10]
and esi, 4
call sub.WS2_32.dll___WSAFDIsSet
neg eax
sbb eax, eax
and eax, 2
or eax, esi
or eax, ebx
mov ebx, dword [esp + 0x38]
movsd xmm0, qword [esp + 0x50]
mov esi, dword [edi]
sub esp, 8
movsd qword [esp], xmm0
push eax
push edi
call fcn.0042ccd0
add esp, 0x10
mov edi, esi
test esi, esi
jne 0x42d266
mov esi, dword [esp + 0x3c]
mov eax, dword [esi]
test eax, eax
je 0x42d4fd
jmp 0x42d4d0
mov ecx, dword [eax + 0x80]
mov esi, dword [eax]
test ecx, 0x800
jne 0x42d4ee
cmp dword [eax + 0x3c], 0
jne 0x42d4f7
test ecx, 0x400
je 0x42d4f7
push eax
call fcn.0042acc0
add esp, 4
mov eax, esi
test esi, esi
jne 0x42d4d0
fld qword [esp + 0x40]
call fcn.005548b6
mov ecx, dword [esp + 0x37c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0055423a
mov esp, ebp
pop ebp
ret