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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe8
mov dword [esp], eax
mov byte [esp + 4], 0
mov eax, dword [esp]
mov ebp, dword [eax + 0x54]
mov eax, dword [esp]
cmp byte [eax + 0x58], 0
je 0x5274ed
mov ebp, 0x64
jmp 0x52750a
cmp ebp, 0x190
jge 0x52750a
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.0050e4d4
test al, al
je 0x52750a
mov ebp, 0x190
call fcn.004b9988
mov dword [esp + 0xc], eax
xor edi, edi
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.0050ee74
mov ebx, eax
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.0050e140
sub ebx, eax
mov eax, dword [esp]
cmp byte [eax + 0x59], 0
jne 0x527712
mov eax, dword [esp]
cmp byte [eax + 0x58], 0
jne 0x527712
jmp 0x52761a
call fcn.004b9988
sub eax, dword [esp + 0xc]
xor edx, edx
push edx
push eax
mov eax, ebp
cdq
cmp edx, dword [esp + 4]
jne 0x527572
cmp eax, dword [esp]
pop edx
pop eax
jae 0x52757a
jmp 0x52771f
pop edx
pop eax
jl 0x52771f
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.0050bdb8
test al, al
jne 0x52771f
lea ecx, [esp + 8]
mov edx, ebx
sub edx, edi
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.005108a8
mov byte [esp + 4], al
cmp dword [esp + 8], 0
je 0x52771f
cmp byte [esp + 4], 0
je 0x52771f
add edi, dword [esp + 8]
mov eax, dword [esp + 8]
mov ecx, 0xa
cdq
idiv ecx
mov edx, dword [esp + 8]
sub edx, eax
mov eax, ebx
sub eax, edx
cmp edi, eax
jge 0x52771f
fild dword [esp + 8]
mov dword [esp + 0x10], ebx
fild dword [esp + 0x10]
fdivp st(1)
mov eax, ebp
sar eax, 1
jns 0x5275f5
adc eax, 0
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmulp st(1)
call fcn.00403424
mov esi, eax
cmp esi, 0xa
jge 0x527610
mov esi, 0xa
push esi
call sub.kernel32.dll_Sleep_2
sub ebx, dword [esp + 8]
mov eax, dword [esp]
cmp byte [eax + 0xd], 0
je 0x527550
jmp 0x52771f
call fcn.004b9988
sub eax, dword [esp + 0xc]
xor edx, edx
push edx
push eax
mov eax, ebp
add eax, eax
cdq
cmp edx, dword [esp + 4]
jne 0x527650
cmp eax, dword [esp]
pop edx
pop eax
jae 0x527658
jmp 0x52771f
pop edx
pop eax
jl 0x52771f
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.0050bdb8
test al, al
jne 0x52771f
lea ecx, [esp + 8]
mov eax, dword [0x5865d0]
mov eax, dword [eax]
mov edx, ebx
call fcn.005108a8
mov byte [esp + 4], al
cmp dword [esp + 8], 0
je 0x52771f
cmp byte [esp + 4], 0
je 0x52771f
add edi, dword [esp + 8]
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.0050e140
mov esi, eax
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.0050ee74
cmp esi, eax
jl 0x5276be
cmp ebx, edi
jle 0x52771f
fild dword [esp + 8]
mov dword [esp + 0x10], ebx
fild dword [esp + 0x10]
fdivp st(1)
mov eax, ebp
sar eax, 1
jns 0x5276d5
adc eax, 0
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmulp st(1)
call fcn.00403424
mov esi, eax
cmp esi, 0xa
jge 0x5276f0
mov esi, 0xa
push esi
call sub.kernel32.dll_Sleep_2
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.0050ee74
mov ebx, eax
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.0050e140
sub ebx, eax
mov eax, dword [esp]
cmp byte [eax + 0xd], 0
je 0x52762c
movzx eax, byte [esp + 4]
add esp, 0x18
pop ebp
pop edi
pop esi
pop ebx
ret