Function at 0x10005230
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.1002aca0
add esp, 8
test eax, eax
jne 0x100052ab
mov ecx, esi
call fcn.10005120
call fcn.10048fe8
mov dword [esp + 0x1c], eax
push ecx
fild dword [esp + 0x20]
mov ecx, esi
fstp dword [esp]
call fcn.10005090
call fcn.10048fe8
mov dword [esp + 0x20], eax
push ecx
fild dword [esp + 0x24]
fstp dword [esp]
call fcn.1001b1c0
add esp, 8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.10004f40
test eax, eax
jne 0x10005286
push ebx
push ebp
call fcn.1002aca0
add esp, 8
test eax, eax
je 0x100054db
push edi
push ebx
push ebp
mov ecx, esi
call fcn.100051b0
mov ecx, esi
call fcn.10005090
fstp dword [esp + 0x1c]
mov ecx, esi
call fcn.10005120
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 0x100053af
mov eax, dword [esp + 0x28]
test eax, eax
je 0x10005318
mov eax, dword [0x100afdd0]
test eax, eax
jne 0x10005318
mov eax, dword [0x100afde0]
test eax, eax
jne 0x10005318
call fcn.1003b3e0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x28], edi
call fcn.10024950
fcomp dword [0x1008678c]
add esp, 8
fnstsw ax
test ah, 5
jp 0x100053af
call fcn.10048fc5
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.10005120
fadd dword [esp + 0x1c]
push ecx
fstp dword [esp]
call fcn.10048fc5
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.10005090
fadd dword [esp + 0x20]
push ecx
fstp dword [esp]
call fcn.1001b1c0
add esp, 8
mov ecx, esi
call fcn.10005090
fstp dword [esp + 0x1c]
mov ecx, esi
call fcn.10005120
fstp dword [esp + 0x10]
mov ecx, esi
call fcn.10004ff0
cmp eax, 2
jne 0x100054c7
push ebx
push ebp
mov ecx, esi
call fcn.100054f0
fcomp dword [esp + 0x24]
fnstsw ax
test ah, 5
jnp 0x100054c7
mov ecx, esi
call fcn.10004f40
cmp eax, 2
je 0x100052d5
cmp eax, 5
je 0x100052d5
mov ecx, esi
call fcn.10004ff0
cmp eax, 2
jne 0x100054c7
push ebx
push ebp
mov ecx, esi
call fcn.100054f0
fcomp dword [esp + 0x24]
fnstsw ax
test ah, 5
jnp 0x100054c7
push ebx
push ebp
mov ecx, esi
call fcn.100051b0
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.10004f40
cmp eax, 2
je 0x100052d5
cmp eax, 5
je 0x100052d5
mov ecx, esi
call fcn.10004ff0
cmp eax, 2
jne 0x100054c7
push ebx
push ebp
mov ecx, esi
call fcn.100054f0
fcomp dword [esp + 0x24]
fnstsw ax
test ah, 5
jnp 0x100054c7
call fcn.10048fc5
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.10005120
fadd dword [esp + 0x14]
push ecx
fstp dword [esp]
call fcn.10048fc5
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.10005090
fadd dword [esp + 0x18]
push ecx
mov ecx, esi
fstp dword [esp]
call fcn.100051b0
jmp 0x100052d5
mov eax, dword [esp + 0x2c]
pop edi
test eax, eax
je 0x100054db
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x14