Function at 0x1001f590
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x324
xor ecx, ecx
cmp dword [esp + 0x338], ecx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], ecx
jl 0x1001f5cf
jg 0x1001f5bd
mov eax, dword [esp + 0x334]
cmp eax, 0x7fffffff
jb 0x1001f5d6
mov dword [esp + 0x334], connect
mov dword [esp + 0x338], ecx
mov eax, dword [esp + 0x334]
push ebx
mov ebx, dword [esp + 0x334]
push ebp
mov ebp, dword [esp + 0x334]
push edi
mov edi, dword [esp + 0x334]
cmp edi, 0xffffffff
jne 0x1001f62b
cmp ebp, edi
jne 0x1001f62b
cmp ebx, edi
jne 0x1001f62b
cmp eax, ecx
je 0x1001f61f
jge 0x1001f618
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, edi
pop edi
pop ebp
pop ebx
add esp, 0x324
ret
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x324
ret
cmp dword [esp + 0x344], ecx
jl 0x1001f64d
jg 0x1001f63a
cmp eax, ecx
jbe 0x1001f64d
mov dword [esp + 0x10], eax
call fcn.10028fe0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
xor ecx, ecx
push esi
xor edx, edx
xor esi, esi
mov dword [esp + 0x28], edx
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x12c], esi
cmp edi, 0xffffffff
je 0x1001f68b
mov esi, 1
mov edx, esi
mov dword [esp + 0x130], edi
mov dword [esp + 0x12c], esi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edx
mov dword [esp + 0x10], edi
cmp ebp, 0xffffffff
je 0x1001f6fb
xor eax, eax
cmp esi, ecx
jbe 0x1001f6a4
cmp dword [esp + eax*4 + 0x130], ebp
je 0x1001f6a4
inc eax
cmp eax, esi
jb 0x1001f696
cmp eax, esi
jne 0x1001f6c3
cmp esi, 0x40
jae 0x1001f6c3
mov dword [esp + eax*4 + 0x130], ebp
mov esi, dword [esp + 0x12c]
inc esi
mov dword [esp + 0x12c], esi
xor eax, eax
cmp edx, ecx
jbe 0x1001f6db
lea esp, [esp]
cmp dword [esp + eax*4 + 0x2c], ebp
je 0x1001f6db
inc eax
cmp eax, edx
jb 0x1001f6d0
cmp eax, edx
jne 0x1001f6f1
cmp edx, 0x40
jae 0x1001f6f1
mov dword [esp + eax*4 + 0x2c], ebp
mov edx, dword [esp + 0x28]
inc edx
mov dword [esp + 0x28], edx
cmp ebp, dword [esp + 0x10]
jbe 0x1001f6fb
mov dword [esp + 0x10], ebp
mov dword [esp + 0x230], ecx
cmp ebx, 0xffffffff
je 0x1001f747
mov ecx, 1
xor eax, eax
mov dword [esp + 0x234], ebx
mov dword [esp + 0x230], ecx
test edx, edx
jbe 0x1001f72c
cmp dword [esp + eax*4 + 0x2c], ebx
je 0x1001f72c
add eax, ecx
cmp eax, edx
jb 0x1001f720
cmp eax, edx
jne 0x1001f73d
cmp edx, 0x40
jae 0x1001f73d
mov dword [esp + eax*4 + 0x2c], ebx
add dword [esp + 0x28], ecx
cmp ebx, dword [esp + 0x10]
jbe 0x1001f747
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x348], 0
jg 0x1001f76c
jl 0x1001f75d
cmp dword [esp + 0x344], 0
jae 0x1001f76c
mov ebx, dword [esp + 0x10]
mov edi, dword [sym.imp.WS2_32.dll_select]
xor ebp, ebp
inc ebx
jmp 0x1001f790
mov ebx, dword [esp + 0x10]
mov edi, dword [sym.imp.WS2_32.dll_select]
lea ebp, [esp + 0x20]
inc ebx
jmp 0x1001f790
mov ecx, dword [esp + 0x230]
mov esi, dword [esp + 0x12c]
mov edi, edi
mov eax, dword [esp + 0x348]
test eax, eax
jl 0x1001f7d6
jg 0x1001f7a7
cmp dword [esp + 0x344], 0
jbe 0x1001f7d6
mov eax, 0x10624dd3
imul dword [esp + 0x14]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x20], eax
imul eax, eax, 0x3e8
sub edx, eax
imul edx, edx, 0x3e8
mov dword [esp + 0x24], edx
jmp 0x1001f7eb
mov edx, dword [esp + 0x344]
or edx, eax
jne 0x1001f7eb
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
neg ecx
sbb ecx, ecx
push ebp
lea edx, [esp + 0x234]
and ecx, edx
lea eax, [esp + 0x2c]
push eax
neg esi
sbb esi, esi
lea eax, [esp + 0x134]
push ecx
and esi, eax
push esi
push ebx
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x1001f87e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x1001f831
cmp dword [0x1008bfe8], 0
jne 0x1001f87e
cmp eax, 0x2714
jne 0x1001f87e
cmp dword [esp + 0x348], 0
jl 0x1001f780
jg 0x1001f84f
cmp dword [esp + 0x344], 0
jbe 0x1001f780
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
call fcn.10028fe0
push edx
push eax
call fcn.10029010
mov ecx, dword [esp + 0x354]
sub ecx, eax
add esp, 0x10
mov dword [esp + 0x14], ecx
test ecx, ecx
jle 0x1001f892
jmp 0x1001f780
test esi, esi
jge 0x1001f890
pop esi
pop edi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x324
ret
jne 0x1001f89f
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x324
ret
mov edi, dword [esp + 0x338]
xor esi, esi
cmp edi, 0xffffffff
je 0x1001f8d6
lea eax, [esp + 0x12c]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1001f8c4
mov esi, 1
lea ecx, [esp + 0x28]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1001f8d6
or esi, 4
mov edi, dword [esp + 0x33c]
cmp edi, 0xffffffff
je 0x1001f909
lea edx, [esp + 0x12c]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1001f8f7
or esi, 8
lea eax, [esp + 0x28]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1001f909
or esi, 4
mov edi, dword [esp + 0x340]
cmp edi, 0xffffffff
je 0x1001f93c
lea ecx, [esp + 0x230]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1001f92a
or esi, 2
lea edx, [esp + 0x28]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1001f93c
or esi, 4
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x324
ret