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

Disassembly:
push 0x5c
mov eax, 0x5ce6e2
call fcn.00518b46
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov edi, dword [ebp + 8]
cmp dword [edi + 4], 0x1312d00
mov dword [ebp - 0x10], eax
jl 0x582b52
cmp eax, dword [edi + 0x14]
jb 0x582b52
call fcn.00514768
push 0x3c
xor edx, edx
pop ecx
div ecx
mov esi, edx
add esi, 0x1e
imul esi, esi, 0x3e8
call ebx
add eax, esi
mov dword [edi + 0x14], eax
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], eax
lea eax, [edi + 8]
mov ecx, dword [eax + 4]
mov ebx, dword [ecx]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], eax
lea eax, [edi + 8]
mov eax, dword [eax + 4]
lea edi, [ebp - 0x20]
lea esi, [ebp - 0x18]
mov dword [ebp - 0x1c], eax
call fcn.004216f6
test al, al
jne 0x5829fd
mov esi, dword [ebp - 0x18]
test esi, esi
jne 0x58297f
call fcn.00512070
cmp ebx, dword [esi + 4]
jne 0x5829a7
call fcn.00512070
cmp ebx, dword [esi + 4]
jne 0x5829a7
call fcn.00512070
cmp ebx, dword [esi + 4]
jne 0x5829a7
call fcn.00512070
cmp ebx, dword [esi + 4]
jne 0x5829a7
call fcn.00512070
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0x14]
imul eax, eax, 0xea60
sub ecx, eax
mov eax, dword [ebx + 0x20]
sub ecx, dword [ebx + 0x10]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x28], ecx
call fcn.00425cec
cmp ebx, dword [esi + 4]
jne 0x5829dd
call fcn.00512070
shr dword [ebx + 0x14], 1
cmp ebx, dword [esi + 4]
jne 0x5829ea
call fcn.00512070
lea esi, [ebp - 0x18]
call fcn.00421855
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp + 8]
jmp 0x582957
xor eax, eax
cmp dword [ebp - 0x3c], eax
je 0x582a10
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x3c]
push 0xc
cdq
pop ecx
idiv ecx
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004f3ce5
pop ecx
mov ecx, eax
lea esi, [ebp - 0x18]
call fcn.0041fc4c
mov ebx, dword [ebp + 8]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
jmp 0x582ade
mov esi, dword [ebp - 0x3c]
cmp esi, dword [ebp - 0x38]
jbe 0x582a51
call fcn.00512070
cmp esi, dword [ebp - 0x38]
jb 0x582a58
call fcn.00512070
lea edi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x38]
cmp dword [ebp - 0x3c], esi
jbe 0x582a6b
call fcn.00512070
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x38]
mov dword [ebp + 8], eax
jbe 0x582a7b
call fcn.00512070
mov eax, esi
sub eax, dword [ebp + 8]
push 0xc
cdq
pop ecx
idiv ecx
cmp eax, 1
jle 0x582aa7
push dword [ebp - 0x30]
mov ecx, dword [ebp + 8]
lea eax, [esi - 0xc]
sub esp, 0xc
mov esi, eax
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call fcn.00427cd9
add esp, 0x14
cmp dword [ebp - 0x3c], 0
je 0x582ac0
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x3c]
push 0xc
cdq
pop ecx
idiv ecx
test eax, eax
je 0x582ac0
sub dword [ebp - 0x38], ecx
lea eax, [ebx + 8]
push eax
lea edx, [ebp - 0x2c]
call fcn.00425b17
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
add dword [ebp - 0x10], 4
mov dword [ecx], eax
mov eax, dword [ebp - 0x24]
sub dword [ebx + 4], eax
cmp dword [ebx + 4], 0x1312d00
jg 0x582a41
push 0x24
lea eax, [ebp - 0x68]
push eax
call fcn.00401000
mov edi, dword [ebp - 0x10]
mov byte [ebp - 4], 2
sub edi, dword [ebp - 0x18]
push 0
push dword [ebp - 0x18]
sar edi, 2
shl edi, 2
push 3
lea esi, [ebp - 0x68]
call fcn.005aa5d5
mov eax, dword [ebx]
push 0xb
call fcn.0040107b
push dword [ebp + 0xc]
mov ecx, esi
call fcn.005aaea1
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00401040
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x582b43
call fcn.004113ee
cmp dword [ebp - 0x3c], 0
je 0x582b52
push dword [ebp - 0x3c]
call fcn.005112a2
pop ecx
call fcn.00518c1e
ret 8