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

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
push esi
push ebx
push ebp
mov esi, ecx
call fcn.10029d00
add esp, 8
test eax, eax
jne 0x10005c1b
mov ecx, esi
call fcn.10005a90
call fcn.10047878
mov dword [esp + 0x1c], eax
push ecx
fild dword [esp + 0x20]
mov ecx, esi
fstp dword [esp]
call fcn.10005a00
call fcn.10047878
mov dword [esp + 0x20], eax
push ecx
fild dword [esp + 0x24]
fstp dword [esp]
call fcn.1001abc0
add esp, 8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.100058b0
test eax, eax
jne 0x10005bf6
push ebx
push ebp
call fcn.10029d00
add esp, 8
test eax, eax
je 0x10005e4b
push edi
push ebx
push ebp
mov ecx, esi
call fcn.10005b20
mov ecx, esi
call fcn.10005a00
fstp dword [esp + 0x1c]
mov ecx, esi
call fcn.10005a90
fstp dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x20], eax
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x20]
mov edi, eax
sub eax, edx
cmp eax, 0x1388
jbe 0x10005d1f
mov eax, dword [esp + 0x28]
test eax, eax
je 0x10005c88
mov eax, dword [0x100ad864]
test eax, eax
jne 0x10005c88
mov eax, dword [0x100ad874]
test eax, eax
jne 0x10005c88
call fcn.1003a3a0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x28], edi
call fcn.10023a00
fcomp dword [0x1008480c]
add esp, 8
fnstsw ax
test ah, 5
jp 0x10005d1f
call fcn.10047855
cdq
mov ecx, 0xa
idiv ecx
mov ecx, esi
sub edx, 5
mov dword [esp + 0x1c], edx
fild dword [esp + 0x1c]
fstp dword [esp + 0x1c]
call fcn.10005a90
fadd dword [esp + 0x1c]
push ecx
fstp dword [esp]
call fcn.10047855
cdq
mov ecx, 0xa
idiv ecx
mov ecx, esi
sub edx, 5
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
fstp dword [esp + 0x20]
call fcn.10005a00
fadd dword [esp + 0x20]
push ecx
fstp dword [esp]
call fcn.1001abc0
add esp, 8
mov ecx, esi
call fcn.10005a00
fstp dword [esp + 0x1c]
mov ecx, esi
call fcn.10005a90
fstp dword [esp + 0x10]
mov ecx, esi
call fcn.10005960
cmp eax, 2
jne 0x10005e37
push ebx
push ebp
mov ecx, esi
call fcn.10005e60
fcomp dword [esp + 0x24]
fnstsw ax
test ah, 5
jnp 0x10005e37
mov ecx, esi
call fcn.100058b0
cmp eax, 2
je 0x10005c45
cmp eax, 5
je 0x10005c45
mov ecx, esi
call fcn.10005960
cmp eax, 2
jne 0x10005e37
push ebx
push ebp
mov ecx, esi
call fcn.10005e60
fcomp dword [esp + 0x24]
fnstsw ax
test ah, 5
jnp 0x10005e37
push ebx
push ebp
mov ecx, esi
call fcn.10005b20
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.100058b0
cmp eax, 2
je 0x10005c45
cmp eax, 5
je 0x10005c45
mov ecx, esi
call fcn.10005960
cmp eax, 2
jne 0x10005e37
push ebx
push ebp
mov ecx, esi
call fcn.10005e60
fcomp dword [esp + 0x24]
fnstsw ax
test ah, 5
jnp 0x10005e37
call fcn.10047855
cdq
mov ecx, 0xa
idiv ecx
mov ecx, esi
sub edx, 5
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fstp dword [esp + 0x14]
call fcn.10005a90
fadd dword [esp + 0x14]
push ecx
fstp dword [esp]
call fcn.10047855
cdq
mov ecx, 0xa
idiv ecx
mov ecx, esi
sub edx, 5
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
fstp dword [esp + 0x18]
call fcn.10005a00
fadd dword [esp + 0x18]
push ecx
mov ecx, esi
fstp dword [esp]
call fcn.10005b20
jmp 0x10005c45
mov eax, dword [esp + 0x2c]
pop edi
test eax, eax
je 0x10005e4b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x14