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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
push ebx
xor ecx, ecx
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4cf467
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x52b860]
cmp dword [eax], 0
je 0x4cf434
mov eax, dword [0x52b734]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x28]
jne 0x4cf434
push 1
mov eax, dword [ebp - 8]
call fcn.00484c80
call fcn.00423148
push eax
call fcn.00406ee0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4cf2b0
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov edx, dword [eax]
call dword [edx + 0x14]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4cf0e7
cmp eax, dword [esp]
pop edx
pop eax
jb 0x4cf0f9
jmp 0x4cf0eb
pop edx
pop eax
jl 0x4cf0f9
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x18], edx
mov eax, dword [ebp - 4]
inc dword [eax + 0x24]
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1c], 0xc8
jg 0x4cf12d
mov eax, dword [ebp - 8]
call fcn.00484c80
mov edx, 0x4cf47c
call fcn.00422fa8
push eax
mov eax, 0xc8
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x1c]
pop edx
mov ecx, edx
cdq
idiv ecx
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
call fcn.00484c80
mov edx, 0x4cf47c
call fcn.00422fa8
push eax
mov eax, 0x220
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x1c]
pop edx
mov ecx, edx
cdq
idiv ecx
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x18]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
call fcn.0047d148
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x18]
call fcn.0040471c
cmp dword [ebp - 0x18], 0
je 0x4cf1c0
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x28]
call fcn.00404944
cmp eax, dword [ebp - 0x10]
jge 0x4cf213
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov edx, dword [eax]
call dword [edx + 0x14]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4cf1e5
cmp eax, dword [esp]
pop edx
pop eax
jae 0x4cf203
jmp 0x4cf1e9
pop edx
pop eax
jge 0x4cf203
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
inc dword [eax + 8]
mov eax, dword [ebp - 4]
mov dword [eax + 0x1c], 0x212
mov eax, dword [ebp - 4]
inc dword [eax + 0x18]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x1c]
mov eax, 0xc8
call fcn.0047dd04
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push eax
push 0
mov eax, dword [ebp - 0x18]
push eax
mov ecx, 5
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.0050bd74
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x14]
cmp eax, dword [edx + 4]
jl 0x4cf26a
mov eax, dword [ebp - 0x14]
cmp dword [eax + 4], 0
jle 0x4cf26a
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x48]
call fcn.00406bb0
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
cmp edx, 0
jne 0x4cf293
cmp eax, 0x64
jbe 0x4cf427
jmp 0x4cf299
jle 0x4cf427
mov eax, dword [ebp - 4]
sub dword [eax + 0x1c], 2
call fcn.00406bb0
mov edx, dword [ebp - 4]
mov dword [edx + 0x20], eax
jmp 0x4cf427
mov eax, dword [0x52b84c]
cmp byte [eax + 0xfb6], 0
je 0x4cf2e4
push 0xff
push 0
mov eax, dword [0x52bc70]
mov eax, dword [eax]
push eax
mov ecx, 0xa
mov edx, 0x32
mov eax, dword [ebp - 8]
call fcn.0050bd74
jmp 0x4cf427
mov eax, dword [0x52b84c]
cmp byte [eax + 0xc1], 1
jne 0x4cf427
mov eax, dword [0x52b92c]
cmp dword [eax], 0
jne 0x4cf30f
lea eax, [ebp - 0x1c]
mov edx, 0x4cf488
call fcn.0040471c
jmp 0x4cf35a
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [0x52b92c]
mov eax, dword [eax]
mov eax, dword [eax + 0x40]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0xb
mov eax, dword [0x52b92c]
mov eax, dword [eax]
movzx eax, word [eax + 0x62]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
mov eax, dword [0x52b92c]
mov eax, dword [eax]
movzx eax, word [eax + 0x66]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
lea edx, [ebp - 0x40]
mov ecx, 2
mov eax, 0x4cf494
call fcn.00409cf4
lea eax, [ebp - 0x18]
push eax
call fcn.0040aa6c
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x84]
call fcn.0040b6d4
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x80], eax
mov byte [ebp - 0x7c], 0xb
mov eax, dword [0x52b860]
mov eax, dword [eax]
mov eax, dword [eax + 0x6a]
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x74], 0
mov eax, dword [0x52b860]
mov eax, dword [eax]
movzx eax, word [eax + 0x72]
mov dword [ebp - 0x70], eax
mov byte [ebp - 0x6c], 0
mov eax, dword [0x52b860]
mov eax, dword [eax]
movzx eax, word [eax + 0x74]
mov dword [ebp - 0x68], eax
mov byte [ebp - 0x64], 0
mov eax, dword [0x52b854]
mov eax, dword [eax]
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x5c], 0
mov eax, dword [0x52b7b8]
mov eax, dword [eax]
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x54], 0
mov eax, dword [0x52b860]
mov eax, dword [eax]
mov eax, dword [eax + 0x80]
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x4c], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x44], 0xb
lea edx, [ebp - 0x80]
mov ecx, 7
mov eax, 0x4cf4a8
call fcn.00409cf4
mov eax, dword [0x52b84c]
mov eax, dword [eax + 0xf64]
push eax
push 0
mov eax, dword [ebp - 0x18]
push eax
mov ecx, 5
mov edx, 0xa
mov eax, dword [ebp - 8]
call fcn.0050bd74
mov eax, dword [ebp - 8]
call fcn.00484c80
call fcn.00483cec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cf46e
lea eax, [ebp - 0x84]
call fcn.00404684
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004046a8
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004046a8
ret