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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
call fcn.004052c8
lea edi, [ebp - 0x10]
xor eax, eax
push ebp
push 0x4cee7f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5465e4]
cmp dword [eax + 8], 0
jle 0x4ceb8c
call fcn.00407464
sub eax, dword [0x5465ec]
cmp eax, 0x1388
jb 0x4ceb8c
call fcn.00407464
mov dword [0x5465ec], eax
mov eax, dword [0x5465e4]
call fcn.004ce9a4
mov eax, dword [0x5465e4]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4cec10
inc ebx
xor esi, esi
mov edx, esi
mov eax, dword [0x5465e4]
call fcn.0041f6dc
mov dword [edi], eax
cmp dword [edi], 0
je 0x4cec0c
mov eax, dword [ebp + 0x14]
xor edx, edx
push edx
push eax
mov eax, dword [edi]
mov eax, dword [eax + 8]
cdq
cmp edx, dword [esp + 4]
jne 0x4cebc5
cmp eax, dword [esp]
pop edx
pop eax
jne 0x4cec0c
mov eax, dword [ebp + 0xc]
mov edx, dword [edi]
mov edx, dword [edx + 4]
call fcn.00405224
jne 0x4cec0c
call fcn.00407464
mov edx, dword [edi]
mov dword [edx + 0x10], eax
lea edx, [ebp - 0x28]
mov eax, dword [edi]
mov eax, dword [eax]
call fcn.00485718
lea eax, [ebp - 0x28]
push eax
mov eax, dword [edi]
mov eax, dword [eax]
push eax
push 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00484e94
jmp 0x4cee69
inc esi
dec ebx
jne 0x4ceb9c
cmp dword [ebp + 0xc], 0
je 0x4cee69
mov edx, dword [0x4cd890]
mov eax, 0x18
call fcn.00405d54
mov dword [edi], eax
mov eax, dword [0x531df0]
mov eax, dword [eax]
mov eax, dword [eax + 0x344]
mov ecx, dword [eax + 0x274]
mov dl, 1
mov eax, dword [0x4829f0]
call fcn.004845b8
mov ebx, eax
mov eax, dword [edi]
mov dword [eax], ebx
mov byte [ebx + 0x20], 1
mov eax, dword [ebp - 4]
call fcn.004856f8
mov eax, dword [eax + 0xc]
call fcn.00429064
cmp eax, 9
jne 0x4cec84
mov eax, dword [ebp - 4]
call fcn.004856f8
mov eax, dword [eax + 0xc]
call fcn.004290a0
mov dl, byte [0x4cee90]
cmp dl, al
jne 0x4ceca8
mov eax, dword [ebp - 4]
call fcn.004856f8
lea ecx, [ebp - 0x18]
mov edx, dword [ebp + 0xc]
call fcn.00429cbc
mov eax, dword [edi]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
call fcn.004860a0
jmp 0x4cece3
mov eax, dword [0x531df0]
mov eax, dword [eax]
call fcn.0046cec4
mov edx, dword [ebp + 0xc]
call fcn.00429d1c
add eax, 2
push eax
mov eax, dword [0x531df0]
mov eax, dword [eax]
call fcn.0046cec4
mov edx, dword [ebp + 0xc]
call fcn.00429d00
mov edx, eax
add edx, 2
mov eax, dword [edi]
mov eax, dword [eax]
pop ecx
call fcn.004860a0
mov eax, dword [edi]
mov eax, dword [eax]
mov edx, 0x12
call fcn.004855b0
mov eax, dword [ebp - 4]
call fcn.004856f8
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [edi]
mov eax, dword [eax]
call fcn.004856f8
pop edx
call fcn.00429dc0
mov eax, dword [edi]
mov eax, dword [eax]
call fcn.004856f8
mov eax, dword [eax + 0xc]
mov edx, dword [ebp + 0x10]
call fcn.00428de0
push 1
mov eax, dword [edi]
mov eax, dword [eax]
call fcn.004856f8
call fcn.00429ec4
push eax
call fcn.004077c4
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [edi]
mov eax, dword [eax]
call fcn.004856f8
mov ecx, 1
xor edx, edx
call fcn.00429b90
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [edi]
mov eax, dword [eax]
call fcn.004856f8
mov ecx, 1
mov edx, 2
call fcn.00429b90
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [edi]
mov eax, dword [eax]
call fcn.004856f8
xor ecx, ecx
mov edx, 1
call fcn.00429b90
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [edi]
mov eax, dword [eax]
call fcn.004856f8
mov ecx, 2
mov edx, 1
call fcn.00429b90
mov eax, dword [edi]
mov eax, dword [eax]
call fcn.004856f8
mov eax, dword [eax + 0xc]
mov edx, dword [ebp + 0x14]
call fcn.00428de0
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [edi]
mov eax, dword [eax]
call fcn.004856f8
mov ecx, 1
mov edx, 1
call fcn.00429b90
mov eax, dword [edi]
mov eax, dword [eax]
call fcn.004856f8
call fcn.00484534
mov eax, dword [edi]
mov eax, dword [eax]
mov edx, 0x12
call fcn.0048619c
lea edx, [ebp - 0x28]
mov eax, dword [edi]
mov eax, dword [eax]
call fcn.00485718
lea eax, [ebp - 0x28]
push eax
mov eax, dword [edi]
mov eax, dword [eax]
push eax
push 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00484e94
mov eax, dword [edi]
add eax, 4
mov edx, dword [ebp + 0xc]
call fcn.00404e6c
mov eax, dword [edi]
mov edx, dword [ebp + 0x14]
mov dword [eax + 8], edx
mov eax, dword [edi]
mov edx, dword [ebp + 0x10]
mov dword [eax + 0xc], edx
call fcn.00407464
mov edx, dword [edi]
mov dword [edx + 0x10], eax
cmp dword [ebp + 8], 0x61a8
jne 0x4cee55
mov eax, 0x1388
call fcn.004038e0
add eax, dword [ebp + 8]
mov edx, dword [edi]
mov dword [edx + 0x14], eax
jmp 0x4cee5d
mov eax, dword [edi]
mov edx, dword [ebp + 8]
mov dword [eax + 0x14], edx
mov edx, dword [edi]
mov eax, dword [0x5465e4]
call fcn.0041f580
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cee86
lea eax, [ebp + 0xc]
call fcn.00404e18
ret