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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4cc51b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x31], 0
lea eax, [ebp - 0x2c]
mov edx, dword [0x4cbf3c]
call fcn.00405b28
lea eax, [ebp - 0x30]
mov edx, dword [0x4cbf5c]
call fcn.00405b28
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x4c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
call fcn.0047e3e4
jmp 0x4cc4c8
call sub.KERNEL32.DLL_GetTickCount
mov dword [0x4e03f0], eax
mov eax, dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp + 0x14]
xor edx, edx
xor eax, eax
call fcn.00406a1c
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x58]
lea edi, [eax + 0x60]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 4]
lea esi, [eax + 0x60]
lea edi, [edx + 0x70]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 0xc]
dec eax
sub eax, 2
jb 0x4cc2d6
sub eax, 3
jae 0x4cc406
mov edx, dword [ebp + 0x10]
test edx, edx
jns 0x4cc046
add edx, 3
sar edx, 2
mov eax, dword [0x4dd090]
call fcn.00429b30
mov edi, eax
cmp dword [ebp + 0xc], 4
jne 0x4cc074
mov edx, dword [ebp + 0x10]
test edx, edx
jns 0x4cc065
add edx, 7
sar edx, 3
mov eax, dword [0x4dd090]
call fcn.00429b30
mov edi, eax
cmp dword [ebp + 0xc], 5
jne 0x4cc07f
mov edi, 0xa
cmp dword [ebp - 0x14], 0
jne 0x4cc15b
lea ebx, [edi + 1]
mov eax, ebx
imul ebx
push eax
lea eax, [ebp - 0x2c]
mov ecx, 1
mov edx, dword [0x4cbf3c]
call fcn.00405b1c
add esp, 4
mov eax, dword [ebp - 0x2c]
call fcn.00405960
mov dword [ebp - 0x18], eax
test edi, edi
jl 0x4cc0ee
mov eax, edi
inc eax
mov dword [ebp - 0x38], eax
xor ebx, ebx
mov eax, edi
test eax, eax
jl 0x4cc0e8
inc eax
xor esi, esi
lea edx, [edi + 1]
imul edx, esi
add edx, ebx
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + edx*8], ebx
lea edx, [edi + 1]
imul edx, esi
add edx, ebx
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + edx*8 + 4], esi
inc esi
dec eax
jne 0x4cc0c7
inc ebx
dec dword [ebp - 0x38]
jne 0x4cc0be
mov eax, dword [ebp - 0x2c]
call fcn.00405960
dec eax
test eax, eax
jl 0x4cc15b
inc eax
mov dword [ebp - 0x38], eax
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0x2c]
call fcn.00405960
call fcn.004032f0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [eax + edx*8]
mov dword [ebp - 0x28], ecx
mov ecx, dword [eax + edx*8 + 4]
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x20]
lea edx, [eax + edx*8]
mov eax, dword [ecx + esi*8]
mov dword [edx], eax
mov eax, dword [ecx + esi*8 + 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
mov dword [eax + edx*8], ecx
mov ecx, dword [ebp - 0x24]
mov dword [eax + edx*8 + 4], ecx
inc ebx
dec dword [ebp - 0x38]
jne 0x4cc101
mov eax, edi
test eax, eax
jns 0x4cc164
add eax, 3
sar eax, 2
mov edx, eax
shl edx, 2
mov eax, 1
call fcn.00429bc0
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 0xc], 5
jne 0x4cc186
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x1c]
test eax, eax
jle 0x4cc406
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x18], 0
jle 0x4cc2c8
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
mov ecx, dword [eax + edx*8 - 8]
mov dword [ebp - 0x28], ecx
mov ecx, dword [eax + edx*8 - 4]
mov dword [ebp - 0x24], ecx
dec dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0
jne 0x4cc1cd
mov byte [ebp - 0x31], 1
lea eax, [ebp - 0x2c]
mov edx, dword [0x4cbf3c]
call fcn.00405b28
cmp dword [ebp + 0xc], 3
jne 0x4cc24f
cmp dword [ebp - 0x10], 1
jne 0x4cc212
mov esi, dword [ebp - 0x24]
mov eax, esi
inc eax
imul dword [ebp + 0x10]
cdq
idiv edi
push eax
mov ebx, dword [ebp - 0x28]
mov eax, ebx
inc eax
imul dword [ebp + 0x14]
cdq
idiv edi
push eax
mov eax, esi
imul dword [ebp + 0x10]
cdq
idiv edi
push eax
mov eax, ebx
imul dword [ebp + 0x14]
cdq
idiv edi
push eax
call sub.gdi32.dll_CreateRectRgn
mov dword [ebp - 0x10], eax
jmp 0x4cc2c8
mov esi, dword [ebp - 0x24]
mov eax, esi
inc eax
imul dword [ebp + 0x10]
cdq
idiv edi
push eax
mov ebx, dword [ebp - 0x28]
mov eax, ebx
inc eax
imul dword [ebp + 0x14]
cdq
idiv edi
push eax
mov eax, esi
imul dword [ebp + 0x10]
cdq
idiv edi
push eax
mov eax, ebx
imul dword [ebp + 0x14]
cdq
idiv edi
push eax
call sub.gdi32.dll_CreateRectRgn
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.004caad0
jmp 0x4cc2c8
cmp dword [ebp - 0x10], 1
jne 0x4cc28d
mov esi, dword [ebp - 0x24]
mov eax, esi
inc eax
imul dword [ebp + 0x10]
cdq
idiv edi
push eax
mov ebx, dword [ebp - 0x28]
mov eax, ebx
inc eax
imul dword [ebp + 0x14]
cdq
idiv edi
push eax
mov eax, esi
dec eax
imul dword [ebp + 0x10]
cdq
idiv edi
push eax
mov eax, ebx
dec eax
imul dword [ebp + 0x14]
cdq
idiv edi
push eax
call sub.gdi32.dll_CreateEllipticRgn
mov dword [ebp - 0x10], eax
jmp 0x4cc2c8
mov eax, dword [ebp - 0x24]
inc eax
imul dword [ebp + 0x10]
cdq
idiv edi
push eax
mov eax, dword [ebp - 0x28]
inc eax
imul dword [ebp + 0x14]
cdq
idiv edi
push eax
mov eax, dword [ebp - 0x24]
dec eax
imul dword [ebp + 0x10]
cdq
idiv edi
push eax
mov eax, dword [ebp - 0x28]
dec eax
imul dword [ebp + 0x14]
cdq
idiv edi
push eax
call sub.gdi32.dll_CreateEllipticRgn
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.004caad0
dec dword [ebp - 0x38]
jne 0x4cc194
jmp 0x4cc406
cmp dword [ebp + 0xc], 2
jne 0x4cc2ed
mov edx, dword [ebp + 0x14]
mov eax, dword [0x4dd090]
call fcn.00429b30
mov edi, eax
jmp 0x4cc2fc
mov edx, dword [ebp + 0x10]
mov eax, dword [0x4dd090]
call fcn.00429b30
mov edi, eax
cmp dword [ebp - 0x14], 0
jne 0x4cc391
push edi
lea eax, [ebp - 0x30]
mov ecx, 1
mov edx, dword [0x4cbf5c]
call fcn.00405b1c
add esp, 4
mov eax, dword [ebp - 0x30]
call fcn.00405960
mov dword [ebp - 0x18], eax
mov eax, edi
dec eax
test eax, eax
jl 0x4cc341
inc eax
mov dword [ebp - 0x38], eax
xor ebx, ebx
mov eax, dword [ebp - 0x30]
mov dword [eax + ebx*4], ebx
inc ebx
dec dword [ebp - 0x38]
jne 0x4cc335
mov eax, dword [ebp - 0x30]
call fcn.00405960
dec eax
test eax, eax
jl 0x4cc391
inc eax
mov dword [ebp - 0x38], eax
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0x30]
call fcn.00405960
call fcn.004032f0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x1c]
mov esi, dword [eax + edx*4]
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x20]
mov eax, dword [eax + edx*4]
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x1c]
mov dword [edx + ecx*4], eax
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x20]
mov dword [eax + edx*4], esi
inc ebx
dec dword [ebp - 0x38]
jne 0x4cc354
cmp dword [ebp - 0x18], 0
jle 0x4cc406
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x18]
mov esi, dword [eax + edx*4 - 4]
dec dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0
jne 0x4cc3bc
mov byte [ebp - 0x31], 1
lea eax, [ebp - 0x30]
mov edx, dword [0x4cbf5c]
call fcn.00405b28
cmp dword [ebp + 0xc], 2
jne 0x4cc3e5
mov eax, dword [ebp + 0x10]
push eax
lea eax, [esi + 1]
imul dword [ebp + 0x14]
cdq
idiv edi
push eax
push 0
mov eax, esi
imul dword [ebp + 0x14]
cdq
idiv edi
push eax
call sub.gdi32.dll_CreateRectRgn
mov dword [ebp - 0x10], eax
jmp 0x4cc406
lea eax, [esi + 1]
imul dword [ebp + 0x10]
cdq
idiv edi
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, esi
imul dword [ebp + 0x10]
cdq
idiv edi
push eax
push 0
call sub.gdi32.dll_CreateRectRgn
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
je 0x4cc483
push 1
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
call fcn.0047e278
call fcn.00422cdc
push eax
call sub.gdi32.dll_ExtSelectClipRgn
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
call fcn.0047e278
call fcn.00422cdc
push eax
call sub.gdi32.dll_GetClipBox
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
call fcn.0047e278
lea edx, [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
call fcn.0042267c
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
call fcn.0047e278
call fcn.00422cdc
push eax
call sub.gdi32.dll_SelectClipRgn
cmp dword [ebp - 0x10], 1
je 0x4cc483
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_DeleteObject
inc dword [ebp - 0x14]
mov eax, dword [ebp - 4]
push eax
push 0x4c43e0
mov eax, dword [ebp - 4]
call fcn.0041e364
mov edx, 1
mov eax, dword [ebp + 8]
call fcn.00429b30
push eax
call sub.KERNEL32.DLL_Sleep
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [0x4e03f0]
cdq
xor eax, edx
sub eax, edx
cmp eax, dword [ebp + 8]
jge 0x4cc4c8
cmp byte [0x4e03e8], 0
je 0x4cc497
cmp byte [0x4e03e8], 0
jne 0x4cc4f1
cmp byte [ebp - 0x31], 0
jne 0x4cc4f1
mov eax, dword [0x4dd090]
imul dword [0x4dd090]
imul dword [0x4dd090]
cmp eax, dword [ebp - 0x14]
jg 0x4cbfe4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cc522
lea eax, [ebp - 0x30]
mov edx, dword [0x4cbf5c]
call fcn.00405b28
lea eax, [ebp - 0x2c]
mov edx, dword [0x4cbf3c]
call fcn.00405b28
ret