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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffd4
mov dword [esp], edx
mov ebp, eax
mov eax, dword [0x68fdf8]
cmp dword [eax], 0
je 0x542450
call sub.kernel32.dll_GetTickCount_1
cmp eax, dword [ebp + 0x48]
jbe 0x542273
mov eax, dword [ebp + 0xc]
cmp dword [eax + 8], 6
jle 0x542217
mov eax, dword [ebp + 8]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x54220f
inc eax
mov dword [esp + 0x18], eax
xor ebx, ebx
mov eax, dword [ebp + 8]
mov edx, ebx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov edi, eax
mov eax, dword [edi]
call fcn.00404328
mov edx, 0x10
mov eax, edi
call fcn.00402f9c
inc ebx
dec dword [esp + 0x18]
jne 0x5421e9
mov eax, dword [ebp + 8]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x54225e
inc eax
mov dword [esp + 0x18], eax
xor ebx, ebx
mov eax, dword [ebp + 0xc]
mov edx, ebx
call fcn.0041b280
mov esi, eax
movzx eax, byte [esi + 0xc]
push eax
mov eax, dword [esi + 8]
push eax
mov ecx, dword [esi + 4]
mov edx, dword [esi]
mov eax, ebp
call fcn.0053f700
mov edx, dword [0x53f1d0]
mov eax, esi
call fcn.00406510
inc ebx
dec dword [esp + 0x18]
jne 0x542229
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
call dword [edx + 8]
call sub.kernel32.dll_GetTickCount_1
add eax, 0x3e8
mov dword [ebp + 0x48], eax
mov eax, dword [0x68fcf4]
mov eax, dword [eax]
sub eax, 0x136
mov dword [esp + 8], eax
xor ebx, ebx
xor eax, eax
mov dword [esp + 0xc], eax
mov byte [esp + 0x10], 0
mov eax, dword [ebp + 8]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, 5
jle 0x5422c6
mov eax, dword [ebp + 8]
mov edx, dword [eax]
call dword [edx + 0x14]
sub eax, 5
add eax, eax
lea eax, [eax + eax*4]
push eax
mov eax, 0x64
pop edx
sub eax, edx
mov edx, 0x1e
call fcn.0047fa80
mov dword [esp + 0x14], eax
jmp 0x5422ce
mov dword [esp + 0x14], 0x64
mov eax, dword [ebp + 8]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp ebx, eax
jge 0x542450
cmp ebx, 5
jg 0x542450
mov eax, dword [ebp + 8]
mov edx, ebx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov edi, eax
mov dword [esp + 4], 0x1e
cmp ebx, 5
jne 0x54234c
cmp byte [esp + 0x10], 0
je 0x542450
lea edx, [esp + 0x1c]
mov eax, dword [edi]
mov si, 0xfffa
call fcn.00404524
lea eax, [esp + 0x1c]
push eax
mov eax, dword [edi]
push eax
mov eax, 0xfa
sub eax, dword [esp + 0x14]
shl eax, 0x18
or eax, 0xffffff
push eax
push 0x7b
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
call fcn.0047d60c
jmp 0x542450
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [edi + 4]
cmp eax, 0xfa0
ja 0x54236c
mov eax, dword [ebp + 8]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, 5
jle 0x54241b
test ebx, ebx
jne 0x54241b
mov byte [esp + 0x10], 1
call sub.kernel32.dll_GetTickCount_1
cmp eax, dword [edi + 8]
jbe 0x542392
call sub.kernel32.dll_GetTickCount_1
add eax, dword [esp + 0x14]
mov dword [edi + 8], eax
inc dword [edi + 0xc]
cmp dword [edi + 0xc], 8
jl 0x5423bf
mov byte [esp + 0x10], 0
mov eax, dword [edi]
call fcn.00404328
mov edx, 0x10
mov eax, edi
call fcn.00402f9c
mov eax, dword [ebp + 8]
mov edx, ebx
mov ecx, dword [eax]
call dword [ecx + 0x48]
jmp 0x5422ce
fild dword [edi + 0xc]
fld xword [0x542458]
fmulp st(1)
fsubr dword [0x542464]
call fcn.004034f8
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0xc]
add eax, eax
sub dword [esp + 8], eax
lea edx, [esp + 0x1c]
mov eax, dword [edi]
mov si, 0xfffa
call fcn.00404524
lea eax, [esp + 0x1c]
push eax
mov eax, dword [edi]
push eax
mov eax, dword [esp + 0x14]
shl eax, 0x18
or eax, 0xffffff
push eax
push 0x7b
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
call fcn.0047d60c
jmp 0x542445
lea edx, [esp + 0x1c]
mov eax, dword [edi]
mov si, 0xfffa
call fcn.00404524
lea eax, [esp + 0x1c]
push eax
mov eax, dword [edi]
push eax
push 1
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
call fcn.0047d590
inc ebx
add dword [esp + 8], 0x10
jmp 0x5422ce
add esp, 0x2c
pop ebp
pop edi
pop esi
pop ebx
ret