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

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x320
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 0x74]
cmp edi, esi
mov dword [ebp + 0x60], esi
mov dword [ebp + 0x64], esi
mov dword [ebp + 0x68], esi
je 0x42534f
xor eax, eax
cmp dword [ebp + 0x78], esi
jbe 0x42534f
cmp dword [edi + eax*8], 0xffffffff
jne 0x42535c
inc eax
cmp eax, dword [ebp + 0x78]
jb 0x425343
mov eax, dword [ebp + 0x7c]
call fcn.00425125
jmp 0x425574
push ebx
mov ebx, dword [ebp + 0x7c]
cmp ebx, esi
jle 0x425372
mov dword [ebp + 0x68], ebx
call fcn.00415f6c
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x64], edx
or dword [ebp + 0x74], 0xffffffff
mov dword [ebp - 0x1b0], esi
mov dword [ebp - 0xac], esi
mov dword [ebp - 0x2b4], esi
mov ecx, dword [edi + esi*8]
lea eax, [edi + esi*8 + 4]
and word [eax + 2], 0
cmp ecx, 0xffffffff
je 0x425464
movzx edx, word [eax]
test dl, 7
je 0x425464
cmp ecx, dword [ebp + 0x74]
jbe 0x4253b1
mov dword [ebp + 0x74], ecx
test dl, 1
je 0x4253f0
xor eax, eax
cmp dword [ebp - 0x1b0], eax
jbe 0x4253d2
cmp dword [ebp + eax*4 - 0x1ac], ecx
je 0x4253d2
inc eax
cmp eax, dword [ebp - 0x1b0]
jb 0x4253c0
cmp eax, dword [ebp - 0x1b0]
jne 0x4253f0
cmp dword [ebp - 0x1b0], 0x40
jae 0x4253f0
mov dword [ebp + eax*4 - 0x1ac], ecx
inc dword [ebp - 0x1b0]
test dl, 4
je 0x42542f
xor eax, eax
cmp dword [ebp - 0xac], eax
jbe 0x425411
cmp dword [ebp + eax*4 - 0xa8], ecx
je 0x425411
inc eax
cmp eax, dword [ebp - 0xac]
jb 0x4253ff
cmp eax, dword [ebp - 0xac]
jne 0x42542f
cmp dword [ebp - 0xac], 0x40
jae 0x42542f
mov dword [ebp + eax*4 - 0xa8], ecx
inc dword [ebp - 0xac]
test dl, 2
je 0x425464
mov edx, dword [ebp - 0x2b4]
xor eax, eax
test edx, edx
jbe 0x42544e
cmp dword [ebp + eax*4 - 0x2b0], ecx
je 0x42544e
inc eax
cmp eax, edx
jb 0x425440
cmp eax, edx
jne 0x425464
cmp edx, 0x40
jae 0x425464
mov dword [ebp + eax*4 - 0x2b0], ecx
inc dword [ebp - 0x2b4]
inc esi
cmp esi, dword [ebp + 0x78]
jb 0x425388
test ebx, ebx
jge 0x425476
xor ebx, ebx
jmp 0x425479
lea ebx, [ebp + 0x58]
mov esi, dword [ebp + 0x74]
inc esi
xor eax, eax
cmp dword [ebp + 0x7c], eax
jle 0x42549a
mov eax, dword [ebp + 0x68]
cdq
mov ecx, 0x3e8
idiv ecx
imul edx, edx, 0x3e8
mov dword [ebp + 0x5c], edx
jmp 0x42549f
jne 0x4254a2
mov dword [ebp + 0x5c], eax
mov dword [ebp + 0x58], eax
push ebx
lea eax, [ebp - 0x2b4]
push eax
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x1b0]
push eax
push esi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x4254fe
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x4254d5
cmp eax, 0x2714
jne 0x425502
cmp dword [ebp + 0x7c], 0
jle 0x42547d
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.00415f6c
push edx
push eax
call fcn.00415f82
mov ecx, dword [ebp + 0x7c]
sub ecx, eax
add esp, 0x10
test ecx, ecx
mov dword [ebp + 0x68], ecx
jg 0x42547d
jmp 0x425502
test eax, eax
jge 0x425507
or eax, 0xffffffff
jmp 0x425573
jne 0x42550d
xor eax, eax
jmp 0x425573
lea esi, [edi + 6]
mov edi, dword [ebp + 0x78]
xor ebx, ebx
mov eax, dword [esi - 6]
and word [esi], 0
cmp eax, 0xffffffff
je 0x42556b
lea ecx, [ebp - 0x1b0]
push ecx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x425536
or word [esi], 1
lea eax, [ebp - 0xac]
push eax
push dword [esi - 6]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x42554d
or word [esi], 4
lea eax, [ebp - 0x2b4]
push eax
push dword [esi - 6]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x425564
or word [esi], 2
cmp word [esi], 0
je 0x42556b
inc ebx
add esi, 8
dec edi
jne 0x425515
mov eax, ebx
pop ebx
pop edi
pop esi
add ebp, 0x6c
leave
ret