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

Disassembly:
push 0xffffffffffffffff
push 0x10041706
mov eax, dword fs:[0]
push eax
sub esp, 0x94
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100532d0]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x54], 0
call sub.KERNEL32.dll_GetTickCount
mov dword [esp + 0x58], eax
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [esp + 0x2c], eax
mov byte [esi + 0x38], 1
push 4
call fcn.1001e2d3
xor edi, edi
add esp, 4
cmp eax, edi
je 0x1001c78a
lea ecx, [esp + 0x14]
mov dword [eax], ecx
jmp 0x1001c78c
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
push 4
mov dword [esp + 0xb4], 1
call fcn.1001e2d3
add esp, 4
cmp eax, edi
je 0x1001c7bd
lea edx, [esp + 0x34]
mov dword [eax], edx
jmp 0x1001c7bf
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov edx, dword [esp + 0x20]
mov byte [esp + 0xb0], 3
cmp edx, edi
jne 0x1001c7e3
xor ecx, ecx
jmp 0x1001c7ec
mov ecx, dword [esp + 0x28]
sub ecx, edx
sar ecx, 2
mov eax, dword [esp + 0x24]
mov esi, eax
sub esi, edx
sar esi, 2
cmp esi, ecx
jae 0x1001c80a
mov ecx, dword [esp + 0x2c]
mov dword [eax], ecx
add eax, 4
mov dword [esp + 0x24], eax
jmp 0x1001c831
mov esi, eax
cmp edx, eax
jbe 0x1001c815
call fcn.1002927e
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push edx
push esi
push eax
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x24]
call fcn.1001c600
mov ebx, dword [esp + 0x30]
lea eax, [ebx + 0x20]
mov esi, eax
push esi
mov dword [esp + 0x50], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebx + 0x14]
sub ecx, dword [ebx + 0x10]
xor ebp, ebp
sar ecx, 2
mov byte [esp + 0xb0], 4
mov dword [esp + 0x50], ebp
test ecx, ecx
jbe 0x1001c9d6
mov edx, dword [ebx + 0x14]
sub edx, dword [ebx + 0x10]
sar edx, 2
cmp ebp, edx
jb 0x1001c876
call fcn.1002927e
cmp byte [esp + 0xbc], 0
mov eax, dword [ebx + 0x10]
mov esi, dword [eax + ebp*4]
mov dword [esp + 0x5c], esi
jne 0x1001c893
cmp esi, dword [ebx + 0x1c]
jne 0x1001c9bc
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
mov edx, dword [esi]
mov edi, eax
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
test al, al
jne 0x1001c9ba
mov edx, dword [esi]
mov ecx, esi
cmp edi, 0xffffffff
je 0x1001c907
mov eax, dword [edx]
call eax
mov esi, 0x20
test al, 1
je 0x1001c8ca
mov esi, 0x21
test al, 2
je 0x1001c8d1
or esi, 2
test al, 4
je 0x1001c8d8
or esi, 0x10
test al, 0x10
je 0x1001c8df
or esi, 8
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x20]
sar ecx, 2
test ecx, ecx
ja 0x1001c8f3
call fcn.1002927e
mov edx, dword [esp + 0x20]
mov eax, dword [edx]
push esi
push eax
push edi
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
jmp 0x1001c9ba
mov eax, dword [edx + 0xc]
call eax
mov edi, dword [esp + 0x20]
mov dword [esp + 0x60], eax
test edi, edi
jne 0x1001c91c
xor edx, edx
jmp 0x1001c925
mov edx, dword [esp + 0x28]
sub edx, edi
sar edx, 2
mov ecx, dword [esp + 0x24]
mov ebp, ecx
sub ebp, edi
sar ebp, 2
cmp ebp, edx
jae 0x1001c93f
mov dword [ecx], eax
add ecx, 4
mov dword [esp + 0x24], ecx
jmp 0x1001c963
mov ebp, ecx
cmp edi, ecx
jbe 0x1001c94a
call fcn.1002927e
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x60]
push ecx
push ebp
push eax
lea edx, [esp + 0x70]
push edx
lea ecx, [esp + 0x24]
call fcn.1001c600
mov edx, dword [esp + 0x40]
test edx, edx
jne 0x1001c96f
xor ecx, ecx
jmp 0x1001c978
mov ecx, dword [esp + 0x48]
sub ecx, edx
sar ecx, 2
mov eax, dword [esp + 0x44]
mov edi, eax
sub edi, edx
sar edi, 2
cmp edi, ecx
jae 0x1001c992
mov dword [eax], esi
add eax, 4
mov dword [esp + 0x44], eax
jmp 0x1001c9b6
mov esi, eax
cmp edx, eax
jbe 0x1001c99d
call fcn.1002927e
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x5c]
push ecx
push esi
push eax
lea edx, [esp + 0x78]
push edx
lea ecx, [esp + 0x44]
call fcn.1001c600
mov ebp, dword [esp + 0x50]
xor edi, edi
mov eax, dword [ebx + 0x14]
sub eax, dword [ebx + 0x10]
inc ebp
sar eax, 2
mov dword [esp + 0x50], ebp
cmp ebp, eax
jb 0x1001c864
mov esi, dword [esp + 0x4c]
push esi
mov byte [esp + 0xb4], 3
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0xb8]
cmp eax, 0xffffffff
jne 0x1001c9f5
or esi, eax
jmp 0x1001ca06
sub eax, dword [esp + 0x54]
mov ecx, 0
sets cl
dec ecx
and ecx, eax
mov esi, ecx
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, eax
sub edx, ecx
sar edx, 2
test edx, edx
ja 0x1001ca26
call fcn.1002927e
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push edi
push esi
push edi
sub eax, ecx
sar eax, 2
push ecx
push eax
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001cc79
cmp esi, 0x102
je 0x1001cce5
lea eax, [ebx + 0x20]
push eax
mov dword [esp + 0x50], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp esi, edi
mov byte [esp + 0xb0], 5
jle 0x1001cb7e
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x40]
dec esi
sar eax, 2
cmp esi, eax
jb 0x1001ca80
call fcn.1002927e
mov ecx, dword [esp + 0x40]
mov ecx, dword [ecx + esi*4]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [esp + 0x44]
sub ecx, dword [esp + 0x40]
sar ecx, 2
cmp esi, ecx
jb 0x1001caa3
call fcn.1002927e
mov edx, dword [esp + 0x40]
mov ecx, dword [edx + esi*4]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
push 0
push 0
call edx
mov ebp, dword [esp + 0x30]
xor esi, esi
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
mov eax, dword [esp + 0x4c]
push eax
mov byte [esp + 0xb4], 3
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebp + 0x38], 0
je 0x1001cd49
mov ecx, dword [esp + 0x58]
push ecx
call sub.KERNEL32.dll_GetTickCount
push eax
call fcn.10015350
mov ecx, eax
mov eax, dword [esp + 0xc0]
add esp, 8
mov dword [esp + 0x54], ecx
cmp eax, 0xffffffff
je 0x1001cb10
cmp ecx, eax
jge 0x1001cd8b
mov eax, dword [esp + 0x40]
cmp eax, esi
je 0x1001cb21
push eax
call fcn.1001e30d
add esp, 4
mov edx, dword [esp + 0x34]
push edx
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
call fcn.1001e30d
mov eax, dword [esp + 0x24]
add esp, 4
mov dword [esp + 0xb0], 0xffffffff
cmp eax, esi
je 0x1001cb56
push eax
call fcn.1001e30d
add esp, 4
mov eax, dword [esp + 0x14]
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call fcn.1001e30d
add esp, 4
cmp byte [ebp + 0x38], 0
jne 0x1001c772
jmp 0x1001cddf
cmp byte [esp + 0xbc], 0
je 0x1001cab5
mov ebp, dword [esp + 0x30]
mov eax, dword [ebp + 0x14]
sub eax, dword [ebp + 0x10]
xor esi, esi
sar eax, 2
xor ebx, ebx
test eax, eax
jbe 0x1001cabb
mov ecx, dword [ebp + 0x14]
sub ecx, dword [ebp + 0x10]
sar ecx, 2
cmp ebx, ecx
jb 0x1001cbb7
call fcn.1002927e
mov edx, dword [ebp + 0x10]
mov edi, dword [edx + ebx*4]
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
mov ecx, edi
call edx
mov esi, eax
cmp esi, 0xffffffff
je 0x1001cc62
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x20]
sar eax, 2
test eax, eax
ja 0x1001cbe5
call fcn.1002927e
mov edx, dword [esp + 0x20]
mov eax, dword [edx]
lea ecx, [esp + 0x7c]
push ecx
push eax
push esi
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x1001cc62
mov cl, byte [esp + 0x7c]
xor esi, esi
xor ebp, ebp
test cl, 1
je 0x1001cc0c
lea esi, [eax + 1]
test cl, 2
je 0x1001cc14
or esi, 2
test cl, 0x10
je 0x1001cc2e
mov eax, dword [esp + 0x90]
test eax, eax
jne 0x1001cc29
or esi, 4
jmp 0x1001cc2e
or esi, 8
mov ebp, eax
test cl, 8
je 0x1001cc36
or esi, 0x10
test cl, 0x20
je 0x1001cc45
mov ebp, dword [esp + 0x94]
or esi, 8
test esi, esi
je 0x1001cc5e
mov edx, dword [edi]
mov eax, dword [edx + 4]
push esi
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [edx + 8]
push ebp
push esi
mov ecx, edi
call eax
mov ebp, dword [esp + 0x30]
mov ecx, dword [ebp + 0x14]
sub ecx, dword [ebp + 0x10]
inc ebx
sar ecx, 2
cmp ebx, ecx
jb 0x1001cba5
jmp 0x1001cab9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov eax, dword [esp + 0x40]
cmp eax, edi
je 0x1001cc9b
push eax
call fcn.1001e30d
add esp, 4
mov edx, dword [esp + 0x34]
push edx
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
call fcn.1001e30d
mov eax, dword [esp + 0x24]
add esp, 4
cmp eax, edi
je 0x1001ccc5
push eax
call fcn.1001e30d
add esp, 4
mov eax, dword [esp + 0x14]
push eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call fcn.1001e30d
add esp, 4
xor al, al
jmp 0x1001cdec
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov eax, dword [esp + 0x40]
cmp eax, edi
je 0x1001cd01
push eax
call fcn.1001e30d
add esp, 4
mov edx, dword [esp + 0x34]
push edx
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
call fcn.1001e30d
mov eax, dword [esp + 0x24]
add esp, 4
cmp eax, edi
je 0x1001cd2b
push eax
call fcn.1001e30d
add esp, 4
mov eax, dword [esp + 0x14]
push eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call fcn.1001e30d
add esp, 4
jmp 0x1001cdea
mov eax, dword [esp + 0x40]
cmp eax, esi
je 0x1001cd5a
push eax
call fcn.1001e30d
add esp, 4
mov ecx, dword [esp + 0x34]
push ecx
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
call fcn.1001e30d
mov eax, dword [esp + 0x24]
add esp, 4
cmp eax, esi
je 0x1001cd84
push eax
call fcn.1001e30d
add esp, 4
mov edx, dword [esp + 0x14]
push edx
jmp 0x1001cdcb
mov eax, dword [esp + 0x40]
cmp eax, esi
je 0x1001cd9c
push eax
call fcn.1001e30d
add esp, 4
mov eax, dword [esp + 0x34]
push eax
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
call fcn.1001e30d
mov eax, dword [esp + 0x24]
add esp, 4
cmp eax, esi
je 0x1001cdc6
push eax
call fcn.1001e30d
add esp, 4
mov ecx, dword [esp + 0x14]
push ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call fcn.1001e30d
add esp, 4
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov al, 1
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret 8