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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
mov esi, dword [0x52a69c]
xor edx, edx
push ebp
push 0x515f0b
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.00515798
mov ebx, dword [esi + 0x4b]
call sub.KERNEL32.DLL_GetTickCount
sub eax, 0x7d0
xor edx, edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
call sub.KERNEL32.DLL_GetTickCount
xor edx, edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
call sub.KERNEL32.DLL_GetTickCount
xor edx, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov eax, dword [0x52aaf0]
cmp byte [eax], 0
jne 0x515ccc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x515f15
test ebx, ebx
jne 0x515cdd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x515f15
mov eax, ebx
call fcn.00515170
test al, al
je 0x515ced
cmp ebx, dword [esi + 0x4b]
je 0x515d14
push 0
call fcn.0051ea84
mov dl, 1
xor eax, eax
call fcn.00515a98
xor eax, eax
mov dword [esi + 0x4b], eax
xor eax, eax
mov dword [esi + 0x4f], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x515f15
mov eax, dword [esi + 0x4b]
mov edx, dword [0x52a970]
add eax, dword [edx + 0x74]
lea edx, [ebp - 0x30]
mov ecx, 0xc
call fcn.0051a4dc
fstp st(0)
mov eax, dword [0x52a6cc]
cmp dword [eax + 0x22], 1
jne 0x515d73
fld dword [esi + 0x2b]
call fcn.00402c0c
push eax
fld dword [esi + 0x23]
call fcn.00402c0c
pop edx
call fcn.00516430
test al, al
jne 0x515dac
push 0
call fcn.0051ea84
mov eax, dword [esi + 0x4f]
xor edx, edx
call fcn.00515a98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x515f15
fld dword [ebp - 0x28]
call fcn.00402c0c
push eax
fld dword [ebp - 0x30]
call fcn.00402c0c
pop edx
call fcn.00516430
test al, al
jne 0x515dac
push 0
call fcn.0051ea84
mov eax, dword [esi + 0x4f]
xor edx, edx
call fcn.00515a98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x515f15
lea edx, [esi + 0x23]
lea eax, [ebp - 0x30]
call fcn.005163a0
cmp eax, 4
jbe 0x515de3
mov edx, 3
mov eax, ebx
call fcn.005156b0
test al, al
jne 0x515de3
mov eax, dword [esi + 0x4f]
xor edx, edx
call fcn.00515a98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x515f15
mov eax, dword [0x52a970]
mov eax, dword [eax + 0x7c]
add eax, ebx
call fcn.0051a3ec
mov edi, eax
cmp edi, dword [ebp - 0x24]
jne 0x515e37
fld dword [esi + 0x23]
call fcn.00402c0c
push edx
push eax
fld dword [ebp - 0x3c]
call fcn.00402c0c
cmp edx, dword [esp + 4]
jne 0x515e14
cmp eax, dword [esp]
pop edx
pop eax
jne 0x515e37
fld dword [esi + 0x2b]
call fcn.00402c0c
push edx
push eax
fld dword [ebp - 0x34]
call fcn.00402c0c
cmp edx, dword [esp + 4]
jne 0x515e33
cmp eax, dword [esp]
pop edx
pop eax
je 0x515e5b
call sub.KERNEL32.DLL_GetTickCount
xor edx, edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x24], edi
mov eax, dword [esi + 0x23]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 0x27]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x2b]
mov dword [ebp - 0x34], eax
jmp 0x515e8f
call sub.KERNEL32.DLL_GetTickCount
xor edx, edx
sub eax, dword [ebp - 0x10]
sbb edx, dword [ebp - 0xc]
cmp edx, 0
jne 0x515e76
cmp eax, 0x1388
jbe 0x515e8f
jmp 0x515e78
jle 0x515e8f
mov eax, dword [esi + 0x4f]
xor edx, edx
call fcn.00515a98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x515f15
call sub.KERNEL32.DLL_GetTickCount
xor edx, edx
sub eax, dword [ebp - 0x20]
sbb edx, dword [ebp - 0x1c]
cmp edx, 0
jne 0x515eaa
cmp eax, 0x493e0
jbe 0x515ec0
jmp 0x515eac
jle 0x515ec0
mov eax, dword [esi + 0x4f]
xor edx, edx
call fcn.00515a98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x515f15
call sub.KERNEL32.DLL_GetTickCount
xor edx, edx
sub eax, dword [ebp - 0x18]
sbb edx, dword [ebp - 0x14]
cmp edx, 0
jne 0x515edb
cmp eax, 0x7d0
jbe 0x515ef7
jmp 0x515edd
jle 0x515ef7
call sub.KERNEL32.DLL_GetTickCount
xor edx, edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [esi + 0x58]
push eax
mov eax, dword [esi + 0x4f]
push eax
call fcn.0051e25c
push 0x64
call sub.KERNEL32.DLL_Sleep
jmp 0x515cb5
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret