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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 4], eax
mov byte [ebp - 5], 0
mov eax, dword [0x57382c]
cmp dword [eax], 0
je 0x53a568
mov eax, dword [0x57382c]
mov eax, dword [eax]
cmp byte [eax + 0x2c], 0
jne 0x53a568
mov eax, dword [0x57382c]
mov eax, dword [eax]
cmp byte [eax + 0x17], 1
jne 0x53a4aa
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x573594]
sub eax, dword [edx]
cmp eax, 0x1f4
jbe 0x53a4aa
mov eax, dword [0x573b60]
cmp byte [eax], 0
je 0x53a4aa
mov eax, dword [0x57382c]
mov eax, dword [eax]
test byte [eax + 0x2a], 0x10
jne 0x53a568
mov byte [ebp - 6], 0
mov eax, dword [0x573940]
mov eax, dword [eax]
cmp dword [eax + 8], 0
jle 0x53a428
mov eax, dword [0x573940]
mov eax, dword [eax]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x53a428
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
mov eax, dword [0x573940]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
call fcn.00419dc8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x53a420
mov eax, dword [ebp - 0x10]
cmp word [eax + 8], 0x42
jne 0x53a420
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [0x573c84]
mov ecx, dword [ecx]
mov edx, dword [0x573dd0]
mov edx, dword [edx]
mov eax, dword [ebp - 4]
call fcn.00537e5c
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x573594]
mov dword [edx], eax
jmp 0x53a428
inc dword [ebp - 0xc]
dec dword [ebp - 0x14]
jne 0x53a3cf
cmp byte [ebp - 6], 0
jne 0x53a4aa
mov eax, dword [0x573940]
mov eax, dword [eax]
cmp dword [eax + 8], 0
jle 0x53a4aa
mov eax, dword [0x573940]
mov eax, dword [eax]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x53a4aa
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
mov eax, dword [0x573940]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
call fcn.00419dc8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x53a4a2
mov eax, dword [ebp - 0x10]
cmp word [eax + 8], 0x1f
jne 0x53a4a2
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [0x573c84]
mov ecx, dword [ecx]
mov edx, dword [0x573dd0]
mov edx, dword [edx]
mov eax, dword [ebp - 4]
call fcn.00537e5c
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x573594]
mov dword [edx], eax
jmp 0x53a4aa
inc dword [ebp - 0xc]
dec dword [ebp - 0x14]
jne 0x53a455
mov eax, dword [0x57382c]
mov eax, dword [eax]
cmp byte [eax + 0x17], 2
jne 0x53a568
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x573594]
sub eax, dword [edx]
cmp eax, 0x1f4
jbe 0x53a568
mov eax, dword [0x573ea0]
cmp byte [eax], 0
je 0x53a568
mov eax, dword [0x57382c]
mov eax, dword [eax]
test byte [eax + 0x2a], 0x80
jne 0x53a568
mov eax, dword [0x573940]
mov eax, dword [eax]
cmp dword [eax + 8], 0
jle 0x53a568
mov eax, dword [0x573940]
mov eax, dword [eax]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x53a568
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
mov eax, dword [0x573940]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
call fcn.00419dc8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x53a560
mov eax, dword [ebp - 0x10]
cmp word [eax + 8], 0x12
jne 0x53a560
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [0x573c84]
mov ecx, dword [ecx]
mov edx, dword [0x573dd0]
mov edx, dword [edx]
mov eax, dword [ebp - 4]
call fcn.00537e5c
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x573594]
mov dword [edx], eax
inc dword [ebp - 0xc]
dec dword [ebp - 0x14]
jne 0x53a515
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret