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

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x31c
mov edx, dword [ebp + 0x78]
push ebx
push esi
mov esi, dword [ebp + 0x74]
push edi
mov edi, dword [ebp + 0x70]
xor ebx, ebx
mov dword [ebp + 0x60], ebx
mov dword [ebp + 0x64], ebx
cmp edi, 0xffffffff
jne 0x100173b5
cmp esi, edi
jne 0x100173b5
cmp edx, edi
jne 0x100173b5
push dword [ebp + 0x7c]
call fcn.10017358
pop ecx
jmp 0x100175f5
cmp dword [ebp + 0x7c], ebx
jle 0x100173cb
mov ebx, dword [ebp + 0x7c]
call fcn.1001d007
mov dword [ebp + 0x64], edx
mov edx, dword [ebp + 0x78]
mov dword [ebp + 0x60], eax
and dword [ebp - 0xac], 0
and dword [ebp - 0x1b0], 0
or ecx, 0xffffffff
cmp edi, 0xffffffff
je 0x100173fe
xor eax, eax
inc eax
mov dword [ebp - 0x1ac], edi
mov dword [ebp - 0x1b0], eax
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0xac], eax
mov ecx, edi
cmp esi, 0xffffffff
je 0x10017469
mov edi, dword [ebp - 0x1b0]
xor eax, eax
test edi, edi
jbe 0x1001741d
cmp dword [ebp + eax*4 - 0x1ac], esi
je 0x1001741d
inc eax
cmp eax, edi
jb 0x1001740f
cmp eax, edi
jne 0x10017433
cmp edi, 0x40
jae 0x10017433
mov dword [ebp + eax*4 - 0x1ac], esi
inc dword [ebp - 0x1b0]
mov edi, dword [ebp - 0xac]
xor eax, eax
test edi, edi
jbe 0x1001744d
cmp dword [ebp + eax*4 - 0xa8], esi
je 0x1001744d
inc eax
cmp eax, edi
jb 0x1001743f
cmp eax, edi
jne 0x10017463
cmp edi, 0x40
jae 0x10017463
mov dword [ebp + eax*4 - 0xa8], esi
inc dword [ebp - 0xac]
cmp esi, ecx
jbe 0x10017469
mov ecx, esi
and dword [ebp - 0x2b4], 0
cmp edx, 0xffffffff
je 0x100174bb
mov esi, dword [ebp - 0xac]
xor eax, eax
mov dword [ebp - 0x2b0], edx
mov dword [ebp - 0x2b4], 1
test esi, esi
jbe 0x1001749f
cmp dword [ebp + eax*4 - 0xa8], edx
je 0x1001749f
inc eax
cmp eax, esi
jb 0x10017491
cmp eax, esi
jne 0x100174b5
cmp esi, 0x40
jae 0x100174b5
mov dword [ebp + eax*4 - 0xa8], edx
inc dword [ebp - 0xac]
cmp edx, ecx
jbe 0x100174bb
mov ecx, edx
cmp dword [ebp + 0x7c], 0
jge 0x100174c5
xor esi, esi
jmp 0x100174c8
lea esi, [ebp + 0x58]
lea edi, [ecx + 1]
xor eax, eax
cmp dword [ebp + 0x7c], eax
jle 0x100174e7
mov eax, ebx
cdq
mov ecx, 0x3e8
idiv ecx
imul edx, edx, 0x3e8
mov dword [ebp + 0x5c], edx
jmp 0x100174ec
jne 0x100174ef
mov dword [ebp + 0x5c], eax
mov dword [ebp + 0x58], eax
push esi
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x2b4]
push eax
lea eax, [ebp - 0x1b0]
push eax
push edi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x10017548
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x10017522
cmp eax, 0x2714
jne 0x1001754c
cmp dword [ebp + 0x7c], 0
jle 0x100174cb
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.1001d007
push edx
push eax
call fcn.1001d01d
mov ebx, dword [ebp + 0x7c]
sub ebx, eax
add esp, 0x10
test ebx, ebx
jg 0x100174cb
jmp 0x1001754c
test eax, eax
jge 0x10017554
or eax, 0xffffffff
jmp 0x100175f5
jne 0x1001755d
xor eax, eax
jmp 0x100175f5
xor esi, esi
cmp dword [ebp + 0x70], 0xffffffff
je 0x1001758f
lea eax, [ebp - 0x1b0]
push eax
push dword [ebp + 0x70]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10017579
inc esi
lea eax, [ebp - 0xac]
push eax
push dword [ebp + 0x70]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1001758f
or esi, 4
cmp dword [ebp + 0x74], 0xffffffff
je 0x100175c1
lea eax, [ebp - 0x1b0]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100175ab
or esi, 8
lea eax, [ebp - 0xac]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100175c1
or esi, 4
cmp dword [ebp + 0x78], 0xffffffff
je 0x100175f3
lea eax, [ebp - 0x2b4]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100175dd
or esi, 2
lea eax, [ebp - 0xac]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100175f3
or esi, 4
mov eax, esi
pop edi
pop esi
pop ebx
add ebp, 0x68
leave
ret