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

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x10000
mov esi, eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], 0x10000
call fcn.0044ed5f
add esp, 4
mov dword [esp + 0x24], eax
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0x50]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push eax
push ecx
push edx
mov dword [esp + 0x38], 0xffffffff
call fcn.0040c8f0
mov edi, eax
mov dword [esp + 0x54], edi
test edi, edi
jne 0x40ccd8
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x20]
push edi
push eax
push ecx
push edx
call fcn.004555c0
mov ecx, edx
mov edi, eax
or eax, ecx
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], ecx
je 0x40ccd4
jmp 0x40cb88
mov ecx, dword [esp + 0x4c]
mov edi, dword [esp + 0x48]
mov eax, dword [esp + 0x14]
cdq
cmp ecx, edx
ja 0x40cb9b
jb 0x40cb97
cmp edi, eax
jae 0x40cb9b
mov dword [esp + 0x14], edi
mov ecx, dword [esi + 0x10]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
xor edx, edx
div ecx
mov edi, dword [esp + 0x28]
push ecx
mov ecx, dword [esi + 0x28]
push edi
push ecx
call fcn.0040cd20
mov dword [esp + 0x54], eax
test eax, eax
jne 0x40ccd4
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x2c]
lea edx, [esp + 0x28]
push edx
push eax
push edi
mov edi, dword [esp + 0x24]
push ecx
mov eax, edi
call fcn.0040cda0
mov dword [esp + 0x54], eax
test eax, eax
jne 0x40ccd4
mov eax, dword [esi + 0x10]
imul eax, edi
xor ecx, ecx
sub dword [esp + 0x48], eax
sbb dword [esp + 0x4c], ecx
add ebx, eax
adc ebp, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov edx, edi
sub edx, dword [esp + 0x1c]
cmp edx, 0x1388
jl 0x40cc69
mov ecx, edi
sub ecx, dword [esp + 0x2c]
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cdq
push edx
push eax
push ebp
push ebx
call fcn.0045d8b0
mov dword [esp + 0x30], eax
or eax, edx
jne 0x40cc48
mov dword [esp + 0x30], 1
xor edx, edx
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x34]
sub eax, ebx
push edx
sbb ecx, ebp
push ecx
push eax
call fcn.0045d8b0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edi
mov eax, dword [esi + 0x30]
test eax, eax
je 0x40ccc6
mov ecx, dword [esp + 0x20]
mov edi, dword [esi + 0x10]
mov edx, dword [esp + 0x44]
push ecx
xor eax, eax
push eax
mov eax, dword [esp + 0x48]
push edi
push edx
push eax
call fcn.0045d8b0
push edx
push eax
xor eax, eax
push eax
push edi
push ebp
push ebx
call fcn.0045d8b0
push edx
push eax
push 0
push 0x64
push ebp
push ebx
call fcn.004555c0
mov ecx, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push ecx
push edx
push eax
call fcn.0045d8b0
mov edx, dword [esi + 0x34]
push eax
push edx
call dword [esi + 0x30]
mov dword [esp + 0x54], eax
test eax, eax
jne 0x40ccd4
mov eax, dword [esp + 0x48]
or eax, dword [esp + 0x4c]
jne 0x40cb80
mov edi, dword [esp + 0x54]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40cce9
push eax
call fcn.0044ec82
add esp, 4
mov eax, dword [esi + 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
or ebp, 0xffffffff
cmp eax, ebp
je 0x40ccff
push eax
call ebx
mov dword [esi + 0x28], ebp
mov eax, dword [esi + 0x2c]
cmp eax, ebp
je 0x40cd0c
push eax
call ebx
mov dword [esi + 0x2c], ebp
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0x1c