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

Disassembly:
mov eax, 0x523951
call fcn.0051f0b4
sub esp, 0x64
push ebx
push esi
push edi
lea ecx, [ebp - 0x54]
call fcn.0040f11d
xor ebx, ebx
lea edi, [ebp - 0x54]
mov dword [ebp - 4], ebx
call fcn.0040cc94
cmp dword [ebp - 0x3c], ebx
jne 0x40cea3
mov eax, dword [ebp + 8]
mov esi, dword [eax + 4]
call fcn.00407808
mov eax, dword [eax]
cmp eax, ebx
je 0x40d108
mov ecx, dword [eax]
push ebx
push esi
push eax
call dword [ecx + 0x28]
jmp 0x40d108
test byte [0x57d648], 1
jne 0x40ced0
or dword [0x57d648], 1
mov ecx, 0x579d50
mov byte [ebp - 4], 1
call fcn.0040f11d
push 0x529016
call fcn.004e92a1
pop ecx
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x40]
test eax, eax
je 0x40ceed
cmp eax, dword [ebp - 0x54]
je 0x40cef2
call fcn.004e9f42
cmp dword [ebp - 0x10], esi
je 0x40cf6a
mov eax, dword [0x579d64]
mov ecx, dword [0x579d50]
mov edi, dword [eax]
lea esi, [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
mov ebx, eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x30], ecx
call fcn.0043f2e3
push ebx
push dword [ebp - 0x28]
push edi
push dword [ebp - 0x30]
lea edi, [ebp - 0x38]
push eax
call fcn.00411293
add esp, 0x14
lea edi, [ebp - 0x20]
mov esi, eax
call fcn.00434410
test al, al
je 0x40cf5d
lea esi, [ebp - 0x14]
call fcn.0043f2e3
mov ecx, dword [0x579d64]
mov edx, dword [0x579d50]
push ecx
push edx
push eax
push 0x579d50
call fcn.0040f7f5
lea esi, [ebp - 0x14]
call fcn.00422425
jmp 0x40cede
lea eax, [ebp - 0x70]
push eax
call fcn.0040f161
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x5c]
xor edi, edi
cmp eax, edi
je 0x40cf96
cmp eax, dword [ebp - 0x70]
je 0x40cf9b
call fcn.004e9f42
cmp dword [ebp - 0x1c], esi
je 0x40cfd7
lea esi, [ebp - 0x20]
mov dword [ebp - 0x10], edi
call fcn.0043f2e3
mov ebx, dword [eax]
lea ecx, [ebp - 0x10]
push ecx
call fcn.0040cd34
test eax, eax
je 0x40cfc0
cmp dword [ebp - 0x10], 0
jne 0x40cfcd
lea esi, [ebp - 0x20]
call fcn.0043f2e3
call fcn.0040f228
lea esi, [ebp - 0x20]
call fcn.00422425
jmp 0x40cf85
cmp dword [0x579d68], edi
jne 0x40d001
mov eax, dword [ebp + 8]
mov esi, dword [eax + 4]
call fcn.00407808
mov eax, dword [eax]
cmp eax, edi
je 0x40d100
mov ecx, dword [eax]
push edi
push esi
push eax
call dword [ecx + 0x28]
jmp 0x40d100
test byte [0x57d648], 2
jne 0x40d01c
or dword [0x57d648], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x57d644], eax
mov eax, dword [0x579d64]
mov ecx, dword [0x579d50]
mov edx, dword [eax]
push eax
push ecx
push edx
mov dword [ebp - 0x1c], eax
push ecx
lea eax, [ebp - 0x70]
mov dword [ebp - 0x20], ecx
call fcn.0040f20a
push eax
lea edi, [ebp - 0x38]
call fcn.00411293
add esp, 0x14
lea edi, [ebp - 0x20]
mov esi, eax
call fcn.00434410
test al, al
jne 0x40d0a8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x57d644]
cmp eax, 0x7530
jb 0x40d0b3
mov ebx, 0x579d50
mov eax, ebx
call fcn.0040f20a
mov eax, dword [eax]
mov ecx, dword [0x579d50]
mov dword [ebp - 0x10], eax
mov eax, dword [0x579d64]
mov eax, dword [eax]
push eax
push ecx
lea eax, [ebp - 0x38]
push eax
call fcn.0040f826
mov eax, dword [0x579d64]
mov ecx, dword [0x579d50]
push eax
push ecx
lea eax, [ebp - 0x10]
push eax
push ebx
call fcn.0040f7f5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x57d644], eax
fldz
mov eax, 0x579d50
fstp qword [ebp - 0x20]
call fcn.0040f20a
lea ecx, [ebp - 0x20]
push ecx
push dword [eax]
call fcn.0040cdc9
test eax, eax
je 0x40d100
mov eax, dword [ebp + 8]
mov edi, dword [eax + 4]
call fcn.00407808
mov esi, dword [eax]
test esi, esi
je 0x40d100
fld qword [ebp - 0x20]
mov ebx, dword [esi]
fmul qword [0x54c890]
push 0
push 0x2710
call fcn.004f2ae6
push edx
push eax
push edi
push esi
call dword [ebx + 0x24]
lea ecx, [ebp - 0x70]
call fcn.0040f1eb
lea ecx, [ebp - 0x54]
call fcn.0040f1eb
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4