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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp byte [0x7dac39], 0
jne 0x525e82
mov ecx, dword [0x7dac3c]
test ecx, ecx
je 0x525e82
cmp dword [0x7dac54], 0
je 0x525e82
push ebx
push esi
push edi
call fcn.004c8510
mov ecx, dword [0x7dac54]
call fcn.004c73a0
mov ebx, eax
mov dword [ebp - 0x14], ebx
cmp ebx, 2
jle 0x525e74
mov esi, 2
mov ecx, dword [0x7dac54]
push esi
call fcn.004c7230
mov edi, eax
test edi, edi
je 0x525c33
cmp dword [edi + 0x80], 0
je 0x525e5a
inc esi
cmp esi, ebx
jl 0x525c14
xor edi, edi
mov dword [ebp - 8], 0xa
xor eax, eax
mov dword [ebp - 0x10], edi
xor ecx, ecx
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
mov edi, 1
mov ecx, dword [0x7dac54]
push edi
call fcn.004c7230
mov ebx, eax
test ebx, ebx
je 0x525cb0
mov esi, dword [ebx + 0x80]
cmp esi, 0xa
jge 0x525c7b
cmp esi, dword [ebp - 8]
jge 0x525c7b
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
xor ecx, ecx
xor edx, edx
test esi, esi
jle 0x525ca5
nop dword [eax]
nop word [eax + eax]
cmp byte [ebx + edx + 0x84], 0
lea eax, [ecx + 1]
cmove eax, ecx
inc edx
mov ecx, eax
cmp edx, esi
jl 0x525c90
cmp ecx, dword [ebp - 0xc]
jle 0x525cb0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], edi
mov ebx, dword [ebp - 0x14]
inc edi
cmp edi, ebx
jl 0x525c53
mov eax, dword [ebp - 4]
mov edi, 0x50
test eax, eax
mov ecx, 0x5a
cmovle edi, ecx
cmp dword [0x7dac58], 0
jne 0x525cdd
call sub.KERNEL32.dll_GetTickCount
mov dword [0x7dac58], eax
call fcn.004b1f30
mov esi, eax
imul esi, dword [0x7dac58]
call fcn.004b1f40
mov ecx, eax
xor edx, edx
mov eax, esi
div ecx
mov eax, edx
mov dword [0x7dac58], eax
test eax, eax
jne 0x525d0d
call sub.KERNEL32.dll_GetTickCount
mov dword [0x7dac58], eax
push 0x64
push 1
push eax
call fcn.004b22b0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, edi
jg 0x525d4b
mov edi, dword [ebp - 0x10]
mov ecx, dword [0x7dac54]
push edi
call fcn.004c7230
mov esi, eax
test esi, esi
je 0x525d48
mov ecx, dword [0x7dac54]
push edi
call fcn.004c7c70
push esi
jmp 0x525e67
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
test edi, edi
jle 0x525d69
cmp eax, 0x5a
jg 0x525d69
mov ecx, dword [0x7dac54]
push edi
call fcn.004c7230
mov esi, eax
test esi, esi
jne 0x525d36
cmp dword [0x7dac58], 0
jne 0x525d7c
call sub.KERNEL32.dll_GetTickCount
mov dword [0x7dac58], eax
call fcn.004b1f30
mov esi, eax
imul esi, dword [0x7dac58]
call fcn.004b1f40
mov ecx, eax
xor edx, edx
mov eax, esi
div ecx
mov eax, edx
mov dword [0x7dac58], eax
test eax, eax
jne 0x525dac
call sub.KERNEL32.dll_GetTickCount
mov dword [0x7dac58], eax
lea esi, [ebx - 1]
push esi
push 1
push eax
call fcn.004b22b0
add esp, 0xc
cmp eax, 1
jge 0x525dc7
mov eax, 1
jmp 0x525dcc
cmp eax, ebx
cmovge eax, esi
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov esi, eax
nop word [eax + eax]
mov ecx, dword [0x7dac54]
push esi
call fcn.004c7230
mov edi, eax
test edi, edi
je 0x525e2c
cmp dword [ebp - 0xc], 0x5f
jg 0x525e5a
mov ebx, dword [edi + 0x80]
xor edx, edx
xor ecx, ecx
test ebx, ebx
jle 0x525e29
nop word [eax + eax]
cmp byte [edi + ecx + 0x84], 0
lea eax, [edx + 1]
cmove eax, edx
inc ecx
mov edx, eax
cmp ecx, ebx
jl 0x525e10
test edx, edx
jg 0x525e5a
mov ebx, dword [ebp - 4]
lea eax, [esi + 1]
mov esi, 1
cmp eax, dword [ebp - 0x14]
cmovne esi, eax
cmp esi, dword [ebp - 0x10]
je 0x525e74
inc ebx
mov dword [ebp - 4], ebx
cmp ebx, 0x64
jl 0x525de0
mov ecx, dword [0x7dac3c]
call fcn.004c8540
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x7dac54]
push esi
call fcn.004c7c70
push edi
mov ecx, dword [0x7dac54]
push 1
call fcn.004c75c0
mov ecx, dword [0x7dac3c]
call fcn.004c8540
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret