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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4ccc47
cmp dword [ebp - 8], 0
je 0x4ccadd
mov byte [ebp - 0x11], 0
call fcn.00422f34
test al, al
je 0x4cca46
xor eax, eax
push ebp
push 0x4cca3f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004ccce4
mov ebx, eax
dec ebx
cmp ebx, 0
jl 0x4cca2c
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004cccfc
mov eax, dword [eax + 4]
cmp eax, dword [ebp - 8]
jne 0x4cca26
lea eax, [ebp - 0xc]
push eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004cccfc
mov eax, dword [eax + 0xc]
push eax
call sub.kernel32.dll_GetExitCodeThread
test eax, eax
je 0x4cca20
cmp dword [ebp - 0xc], 0x103
je 0x4cca26
mov byte [ebp - 0x11], 1
jmp 0x4cca2c
dec ebx
cmp ebx, 0xffffffff
jne 0x4cc9ea
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cca46
call fcn.00422f9c
ret
cmp byte [ebp - 0x11], 0
je 0x4ccc47
call fcn.00422f68
test al, al
je 0x4ccc47
xor eax, eax
push ebp
push 0x4ccad6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004ccce4
mov ebx, eax
dec ebx
cmp ebx, 0
jl 0x4ccac3
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004cccfc
mov eax, dword [eax + 4]
cmp eax, dword [ebp - 8]
jne 0x4ccabd
lea eax, [ebp - 0xc]
push eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004cccfc
mov eax, dword [eax + 0xc]
push eax
call sub.kernel32.dll_GetExitCodeThread
test eax, eax
je 0x4ccab1
cmp dword [ebp - 0xc], 0x103
je 0x4ccabd
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004cc6a4
jmp 0x4ccac3
dec ebx
cmp ebx, 0xffffffff
jne 0x4cca7b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ccc47
call fcn.00422f9c
ret
call sub.kernel32.dll_GetCurrentThreadId_1
mov edi, eax
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc]
cmp eax, edx
jbe 0x4ccb0b
sub eax, edx
cmp eax, 0x3e8
jae 0x4ccb0b
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.004cc99c
jmp 0x4ccc47
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
xor eax, eax
call fcn.004ca81c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4ccc40
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x11], 0
mov eax, dword [ebp - 0x10]
call fcn.004ce418
mov esi, eax
dec esi
test esi, esi
jl 0x4ccbab
inc esi
xor ebx, ebx
mov edx, ebx
mov eax, dword [ebp - 0x10]
call fcn.004ce420
mov byte [eax + 0x5f], 0
mov edx, ebx
mov eax, dword [ebp - 0x10]
call fcn.004ce420
cmp dword [eax + 0xc], 0
je 0x4ccba7
mov edx, ebx
mov eax, dword [ebp - 0x10]
call fcn.004ce420
cmp edi, dword [eax + 4]
je 0x4ccba7
lea eax, [ebp - 0xc]
push eax
mov edx, ebx
mov eax, dword [ebp - 0x10]
call fcn.004ce420
mov eax, dword [eax + 0xc]
push eax
call sub.kernel32.dll_GetExitCodeThread
test eax, eax
je 0x4ccb95
cmp dword [ebp - 0xc], 0x103
je 0x4ccba7
mov edx, ebx
mov eax, dword [ebp - 0x10]
call fcn.004ce420
mov byte [eax + 0x5f], 1
mov byte [ebp - 0x11], 1
inc ebx
dec esi
jne 0x4ccb44
cmp byte [ebp - 0x11], 0
jne 0x4ccbbb
call fcn.004057d4
jmp 0x4ccc47
call fcn.00422f68
test al, al
je 0x4ccc25
xor eax, eax
push ebp
push 0x4ccc1e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004ccce4
mov ebx, eax
dec ebx
cmp ebx, 0
jl 0x4ccc0b
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004cccfc
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x10]
call fcn.004cc944
test al, al
je 0x4ccc05
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004cc6a4
dec ebx
cmp ebx, 0xffffffff
jne 0x4ccbe2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ccc25
call fcn.00422f9c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ccc47
mov ebx, dword [0x66be9c]
mov ebx, dword [ebx]
lea eax, [ebp - 0x10]
call ebx
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret