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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov ecx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
cmp ecx, esi
je 0x101f2a20
mov edx, dword [ebp + 0xc]
xor eax, eax
cmp edx, esi
jbe 0x101f2a20
cmp dword [ecx + eax*8], 0xffffffff
jne 0x101f2a4a
inc eax
cmp eax, edx
jb 0x101f2a15
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x101f2a43
jge 0x101f2a3c
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
cmp eax, esi
jle 0x101f2a5f
mov dword [ebp - 4], eax
call fcn.101fa2d0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
push ebx
push edi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x328], esi
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov word [eax + ebx*8 + 6], cx
mov ecx, dword [eax + ebx*8]
cmp ecx, 0xffffffff
je 0x101f2b5b
movzx edx, word [eax + ebx*8 + 4]
test dl, 7
je 0x101f2b5b
cmp ecx, dword [ebp - 8]
jbe 0x101f2aad
mov dword [ebp - 8], ecx
test dl, 1
je 0x101f2ae7
mov ebx, dword [ebp - 0x120]
xor eax, eax
test ebx, ebx
je 0x101f2ace
mov edi, edi
cmp dword [ebp + eax*4 - 0x11c], ecx
je 0x101f2ace
inc eax
cmp eax, ebx
jb 0x101f2ac0
cmp eax, ebx
jne 0x101f2ae4
cmp ebx, 0x40
jae 0x101f2ae4
mov dword [ebp + eax*4 - 0x11c], ecx
inc dword [ebp - 0x120]
mov ebx, dword [ebp - 0x14]
test dl, 4
je 0x101f2b1d
xor eax, eax
test edi, edi
je 0x101f2b00
cmp dword [ebp + eax*4 - 0x220], ecx
je 0x101f2b00
inc eax
cmp eax, edi
jb 0x101f2af2
cmp eax, edi
jne 0x101f2b1d
cmp edi, 0x40
jae 0x101f2b1d
mov dword [ebp + eax*4 - 0x220], ecx
mov edi, dword [ebp - 0x224]
inc edi
mov dword [ebp - 0x224], edi
test dl, 2
je 0x101f2b5b
xor eax, eax
test esi, esi
je 0x101f2b3e
jmp 0x101f2b30
cmp dword [ebp + eax*4 - 0x324], ecx
je 0x101f2b3e
inc eax
cmp eax, esi
jb 0x101f2b30
cmp eax, esi
jne 0x101f2b5b
cmp esi, 0x40
jae 0x101f2b5b
mov dword [ebp + eax*4 - 0x324], ecx
mov esi, dword [ebp - 0x328]
inc esi
mov dword [ebp - 0x328], esi
inc ebx
mov dword [ebp - 0x14], ebx
cmp ebx, dword [ebp + 0xc]
jb 0x101f2a81
mov ebx, dword [ebp - 8]
mov edi, dword [sym.imp.WS2_32.dll_select]
xor edx, edx
cmp dword [ebp + 0x10], edx
lea eax, [ebp - 0x1c]
setl dl
lea esi, [edx - 1]
and esi, eax
inc ebx
mov eax, dword [ebp + 0x10]
xor ecx, ecx
cmp eax, ecx
jle 0x101f2bb3
mov ecx, dword [ebp - 4]
mov eax, 0x10624dd3
imul dword [ebp - 4]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x1c], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul ecx, ecx, 0x3e8
jmp 0x101f2bb8
jne 0x101f2bbb
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
push esi
lea edx, [ebp - 0x328]
push edx
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x120]
push ecx
push ebx
call edi
cmp eax, 0xffffffff
jne 0x101f2c2a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x101f2bf3
cmp dword [0x102de584], 0
jne 0x101f2c2e
cmp eax, 0x2714
jne 0x101f2c2e
cmp dword [ebp + 0x10], 0
jle 0x101f2b82
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
push edx
push eax
call fcn.101fa2d0
push edx
push eax
call fcn.101fa300
mov ecx, dword [ebp + 0x10]
sub ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
test ecx, ecx
jg 0x101f2b82
pop edi
pop ebx
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
test eax, eax
jns 0x101f2c38
pop edi
pop ebx
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
jne 0x101f2c43
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
add esi, 6
mov edi, edi
mov eax, dword [esi - 6]
xor ecx, ecx
mov word [esi], cx
cmp eax, 0xffffffff
je 0x101f2ca9
lea edx, [ebp - 0x120]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x101f2c72
or word [esi], 1
mov ecx, dword [esi - 6]
lea eax, [ebp - 0x224]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x101f2c8a
or word [esi], 4
mov eax, dword [esi - 6]
lea edx, [ebp - 0x328]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x101f2ca2
or word [esi], 2
cmp word [esi], 0
je 0x101f2ca9
inc ebx
add esi, 8
dec edi
jne 0x101f2c50
pop edi
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret