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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov dword [ebp - 4], eax
mov byte [ebp - 5], 0
cmp dword [0x567470], 0
je 0x505d76
mov dword [ebp - 0x14], 0xffffffff
mov eax, dword [0x567470]
cmp byte [eax + 0x16], 1
jne 0x505c74
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [0x568e10]
cmp eax, 0xdac
jbe 0x505c74
cmp byte [0x58115f], 1
jne 0x505bbe
mov dword [ebp - 0x14], 0x1f
mov al, byte [0x5810f9]
sub al, 1
jb 0x505b6f
je 0x505ba3
dec al
je 0x505b8a
jmp 0x505bb7
cmp byte [0x581910], 0
je 0x505b81
mov byte [0x581910], 0
jmp 0x505bbe
mov dword [ebp - 0x14], 0xffffffff
jmp 0x505bbe
push ebp
mov eax, 3
call fcn.00505a58
pop ecx
test al, al
jne 0x505bbe
mov dword [ebp - 0x14], 0xffffffff
jmp 0x505bbe
mov eax, dword [0x567470]
test byte [eax + 0x26], 0x10
je 0x505bbe
mov dword [ebp - 0x14], 0xffffffff
jmp 0x505bbe
mov dword [ebp - 0x14], 0xffffffff
cmp byte [0x581164], 1
jne 0x505bde
push ebp
mov eax, 2
call fcn.00505a58
pop ecx
test al, al
je 0x505bde
mov dword [ebp - 0x14], 8
mov eax, dword [0x568e0c]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x505c74
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 0xc]
mov eax, dword [0x568e0c]
call fcn.00419164
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 8]
cmp eax, dword [ebp - 0x14]
jne 0x505c6c
cmp dword [ebp - 0x14], 8
jne 0x505c3c
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [0x567470]
movzx ecx, word [eax + 0xa]
mov eax, dword [0x567470]
movzx edx, word [eax + 8]
mov eax, dword [ebp - 4]
call fcn.005035b0
jmp 0x505c62
mov eax, dword [0x567470]
movzx eax, word [eax + 0xa]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 0
mov eax, dword [0x567470]
movzx ecx, word [eax + 8]
mov edx, 0xbc9
mov eax, dword [ebp - 4]
call fcn.00508160
call sub.kernel32.dll_GetTickCount_1
mov dword [0x568e10], eax
inc dword [ebp - 0xc]
dec dword [ebp - 0x18]
jne 0x505bfa
mov eax, dword [0x567470]
cmp byte [eax + 0x16], 2
jne 0x505d76
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [0x568e10]
cmp eax, 0x157c
jbe 0x505d76
cmp byte [0x581161], 1
jne 0x505d76
cmp byte [0x5810fa], 0
jne 0x505cbe
mov eax, dword [0x567470]
test byte [eax + 0x26], 0x80
jne 0x505d76
cmp byte [0x5810fa], 1
jne 0x505cdb
push ebp
mov eax, 3
call fcn.00505a58
pop ecx
test al, al
je 0x505d76
mov eax, dword [0x568e0c]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x505d76
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 0xc]
mov eax, dword [0x568e0c]
call fcn.00419164
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp word [eax + 8], 0x12
jne 0x505d6e
mov eax, 0x5675c8
mov edx, 0x505d80
xor ecx, ecx
mov cl, byte [eax]
inc ecx
call fcn.00403914
jne 0x505d76
mov eax, dword [0x567470]
movzx eax, word [eax + 0xa]
push eax
push 0x12
push 0
mov eax, dword [0x567470]
movzx ecx, word [eax + 8]
mov edx, 0xbc9
mov eax, dword [ebp - 4]
call fcn.00508160
call sub.kernel32.dll_GetTickCount_1
mov dword [0x568e10], eax
push 0xffffff
mov ecx, 0x8000
mov edx, 0x505d90
mov eax, dword [0x5673f8]
call fcn.004af04c
inc dword [ebp - 0xc]
dec dword [ebp - 0x18]
jne 0x505cf7
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret