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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
call fcn.005358c7
mov ebx, dword [0x835e3d]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [0x835e49]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x20
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x535e78
mov ebx, dword [0x835e3d]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [0x835e49]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x20
mov dword [ebp - 4], ebx
mov ebx, dword [0x835e3d]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [0x835e49]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 8], ebx
mov ebx, dword [0x835e3d]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [0x835e49]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x18
mov dword [ebp - 0xc], ebx
push 0
mov ebx, dword [ebp - 0xc]
push dword [ebx]
mov ebx, dword [ebp - 8]
push dword [ebx]
push 0x10
mov ebx, dword [ebp - 4]
push dword [ebx]
call fcn.004d4428
mov dword [0x835e61], eax
cmp dword [0x835e61], 0
jne 0x535d8c
mov dword [0x835e61], 0
mov dword [0x835e59], 1
push 0
mov ebx, 0x2dc
call fcn.006ea8a0
add esp, 4
mov dword [ebp - 4], eax
push 0
mov ebx, 0x2e0
call fcn.006ea8c0
add esp, 4
mov dword [ebp - 0x10], eax
fild dword [ebp - 0x10]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fadd qword [0x7fa7c8]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
call fcn.004cf02e
push eax
push dword [ebp - 4]
push dword [0x835e49]
call fcn.00535f4c
mov dword [0x835e51], 0
mov ebx, dword [0x835e3d]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [0x835e49]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x14
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x535d73
push 0
mov ebx, 0x308
call sub.kernel32.dll_GetTickCount
add esp, 4
mov dword [0x835e5d], eax
jmp 0x535d87
mov dword [0x835e51], 0
mov dword [0x835e5d], 0xffffffff
jmp 0x535e73
cmp dword [0x835e61], 1
jne 0x535dc6
mov dword [0x835e61], 0xffffffff
mov dword [0x835e51], 0
mov dword [0x835e5d], 0xffffffff
mov eax, 1
jmp 0x535f48
cmp dword [0x835e61], 2
jne 0x535e55
mov dword [0x835e61], 0xfffffffe
mov dword [0x835e59], 1
mov dword [0x835e51], 0
mov ebx, dword [0x835e3d]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [0x835e49]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x14
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x535e3c
push 0
mov ebx, 0x308
call sub.kernel32.dll_GetTickCount
add esp, 4
mov dword [0x835e5d], eax
jmp 0x535e46
mov dword [0x835e5d], 0xffffffff
mov eax, 2
jmp 0x535f48
mov dword [0x835e61], 0xffffffff
mov dword [0x835e51], 0
mov dword [0x835e5d], 0xffffffff
jmp 0x535f3e
mov dword [0x835e61], 0
mov dword [0x835e59], 1
push 0
mov ebx, 0x2dc
call fcn.006ea8a0
add esp, 4
mov dword [ebp - 4], eax
push 0
mov ebx, 0x2e0
call fcn.006ea8c0
add esp, 4
mov dword [ebp - 0x10], eax
fild dword [ebp - 0x10]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fadd qword [0x7fa7c8]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
call fcn.004cf02e
push eax
push dword [ebp - 4]
push dword [0x835e49]
call fcn.00535f4c
mov dword [0x835e51], 0
mov ebx, dword [0x835e3d]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [0x835e49]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x14
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x535f34
push 0
mov ebx, 0x308
call sub.kernel32.dll_GetTickCount
add esp, 4
mov dword [0x835e5d], eax
jmp 0x535f3e
mov dword [0x835e5d], 0xffffffff
mov eax, 0
jmp 0x535f48
mov esp, ebp
pop ebp
ret