Function at 0x4bf5f8
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
xor eax, eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
xor esi, esi
call fcn.00406f84
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x20]
push eax
call fcn.00407184
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x4bf8d6
jmp 0x4bf7cd
inc dword [ebp - 0x5c]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ebx
lea eax, [ebp - 0x10]
push eax
call fcn.0040717c
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x64]
push eax
call fcn.0040706c
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0x7fffffff
je 0x4bf6ad
push 0xf
mov eax, dword [ebp - 0x64]
push eax
call fcn.004071dc
xor eax, eax
push ebp
push 0x4bf74d
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x4bf6d1
lea eax, [ebp - 0x18]
push eax
call fcn.0040717c
call fcn.004bf520
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
sub eax, dword [ebp - 0x10]
sbb edx, dword [ebp - 0xc]
cmp edx, 0
jne 0x4bf6e9
cmp eax, 0x32
jb 0x4bf6bd
jmp 0x4bf6eb
jl 0x4bf6bd
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
jmp 0x4bf70d
lea eax, [ebp - 0x18]
push eax
call fcn.0040717c
call fcn.004bf520
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
sub eax, dword [ebp - 0x10]
sbb edx, dword [ebp - 0xc]
cmp edx, 0
jne 0x4bf727
cmp eax, 0x3e8
jb 0x4bf6f9
jmp 0x4bf729
jl 0x4bf6f9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bf754
cmp dword [ebp - 0x60], 0x7fffffff
je 0x4bf74c
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [ebp - 0x64]
push eax
call fcn.004071dc
ret
cmp dword [ebp - 0x5c], 3
jl 0x4bf66c
cmp dword [ebp - 0x5c], 0x14
jge 0x4bf81c
lea eax, [ebx + ebx*2]
sub eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, 3
jg 0x4bf66c
mov eax, dword [ebp - 0x24]
lea eax, [eax + eax*2]
sub eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, 3
jg 0x4bf66c
mov eax, dword [ebp - 0x28]
lea eax, [eax + eax*2]
sub eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, 3
jg 0x4bf66c
push 0
push 0xa
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
call fcn.004057dc
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], edx
fild qword [ebp - 0x6c]
fdiv qword [ebp - 0x50]
call fcn.00402bf0
mov dword [ebp - 0x28], eax
push 0
push 0x64
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
call fcn.004057dc
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], edx
fild qword [ebp - 0x6c]
fdiv qword [ebp - 0x50]
call fcn.00402bf0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x28]
add eax, eax
lea eax, [eax + eax*4]
mov edx, dword [ebp - 0x24]
sub edx, eax
cmp edx, 6
jl 0x4bf877
inc dword [ebp - 0x28]
fild qword [ebp - 0x30]
fdiv qword [ebp - 0x50]
call fcn.00402bf0
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax], ebx
mov eax, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
add ebx, ebx
lea ebx, [ebx + ebx*4]
mov eax, dword [ebp - 0x28]
sub eax, ebx
cmp eax, 6
jl 0x4bf8ac
mov eax, dword [ebp - 4]
inc dword [eax + 4]
fld qword [ebp - 0x50]
call fcn.00402bf0
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x30]
mov dword [eax + 8], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.004bf580
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret