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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
test eax, eax
je 0x5302a7
cmp dword [eax + 8], 0
jg 0x5302a7
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.00419770
xor eax, eax
push ebp
push 0x530251
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov eax, dword [eax]
call fcn.00403f0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x530265
xor eax, eax
push ebp
push 0x53028d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov edx, 0x14
call fcn.00402b08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x53029f
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 8], edx
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
jne 0x5302e7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
cmp dword [eax + 8], 0
jle 0x5302e7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
xor edx, edx
call fcn.004195b0
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x20], edx
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
je 0x5305a2
mov eax, dword [0x53f218]
mov eax, dword [eax]
mov eax, dword [eax + 0x874]
cmp byte [eax + 0x2a8], 0
jne 0x53033a
mov eax, dword [0x53f218]
mov eax, dword [eax]
mov eax, dword [eax + 0xb1c]
cmp byte [eax + 0x2a8], 0
jne 0x53033a
mov eax, dword [0x53f218]
mov eax, dword [eax]
mov eax, dword [eax + 0x690]
cmp byte [eax + 0x2a8], 0
je 0x5303f4
mov eax, dword [0x53f218]
mov eax, dword [eax]
mov eax, dword [eax + 0xb1c]
cmp byte [eax + 0x2a8], 0
je 0x530375
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x1c]
mov ecx, dword [0x53f218]
cmp edx, dword [eax + 0x4c]
jg 0x530375
mov edx, dword [0x53f218]
mov eax, dword [eax + 0x48]
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], eax
jmp 0x5303fe
mov eax, dword [0x53f218]
mov eax, dword [eax]
mov eax, dword [eax + 0x874]
cmp byte [eax + 0x2a8], 0
je 0x5303ad
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x1c]
mov ecx, dword [0x53f218]
cmp edx, dword [eax + 0x4c]
jg 0x5303ad
mov edx, dword [0x53f218]
mov eax, dword [eax + 0x48]
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], eax
jmp 0x5303fe
mov eax, dword [0x53f218]
mov eax, dword [eax]
mov eax, dword [eax + 0x690]
cmp byte [eax + 0x2a8], 0
je 0x5303e8
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x1c]
mov ecx, dword [0x53f218]
cmp edx, dword [eax + 0x4c]
jg 0x5303e8
mov edx, dword [0x53f218]
mov eax, dword [eax + 0x48]
add eax, 0xa
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], eax
jmp 0x5303fe
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 0x32
jmp 0x5303fe
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 0x32
mov ebx, dword [0x53e5d4]
mov ebx, dword [ebx]
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x18]
sub ebx, 0x32
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
cmp ebx, eax
jle 0x530433
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
test eax, eax
jle 0x530445
mov edx, dword [ebp - 4]
add dword [edx + 0x20], eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x14], edx
jmp 0x530445
cmp ebx, eax
jge 0x530445
sub eax, ebx
mov edx, dword [ebp - 4]
add dword [edx + 0x14], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x20], ebx
push 0x96
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov eax, dword [eax]
mov esi, dword [eax + 4]
mov eax, esi
add eax, eax
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x1c]
sar esi, 1
jns 0x53046b
adc esi, 0
sub edx, esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
mov ecx, ebx
call fcn.00417ecc
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov al, byte [eax + 4]
call fcn.004ffce8
mov ecx, eax
mov eax, dword [ebp - 8]
pop edx
call fcn.0046fbc8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov eax, dword [eax]
mov eax, dword [eax + 4]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x14]
sub ecx, esi
mov eax, esi
xor edx, edx
call fcn.00417ecc
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov eax, dword [eax]
push eax
push 1
push 0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x18]
add edx, ebx
mov eax, dword [ebp - 4]
sub edx, dword [eax + 0x20]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ebp - 8]
call fcn.0046e108
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0xc]
cmp eax, 5
jbe 0x5305a2
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
cmp ebx, eax
jle 0x530537
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
test eax, eax
jle 0x53052f
inc eax
mov edx, dword [ebp - 4]
add dword [edx + 0x20], eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x14], edx
jmp 0x530552
mov eax, dword [ebp - 4]
inc dword [eax + 0x20]
jmp 0x530552
cmp ebx, eax
jge 0x53054c
sub eax, ebx
inc eax
mov edx, dword [ebp - 4]
add dword [edx + 0x14], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x20], ebx
jmp 0x530552
mov eax, dword [ebp - 4]
inc dword [eax + 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 8]
mov edx, dword [edx]
cmp eax, dword [edx + 8]
jge 0x53056b
mov eax, dword [ebp - 4]
inc dword [eax + 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
mov edx, dword [ebp - 4]
add eax, dword [edx + 0x14]
mov edx, dword [ebp - 4]
add ebx, dword [edx + 0x10]
cmp eax, ebx
jl 0x5305a2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
dec dword [eax + 8]
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x20], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret