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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x100ae8c8]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov esi, dword [0x361f6dc]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
cmp esi, eax
je 0x1005efd5
push ebx
mov ebx, dword [esi + 0x1d24]
push edi
push 0xaf2ae4
push ebx
mov dword [ebp - 0x38], ebx
call fcn.10006f00
mov edi, eax
add esp, 8
test edi, edi
je 0x1005eb9a
push edi
call fcn.1003d310
mov eax, dword [edi]
mov ecx, dword [edi + 0x3c0]
mov ebx, dword [edi + 0x10a4]
fld dword [ebx + 0x280]
add esp, 4
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ecx
call fcn.10085e30
fld dword [ebx + 0x288]
mov dword [ebp - 0x28], eax
call fcn.10085e30
mov ebx, dword [ebp - 0x38]
mov dword [ebp - 0x2c], eax
jmp 0x1005ebc2
cmp dword [0x1019e5c8], 0
je 0x1005ebc2
cmp byte [0x1012d412], 1
jne 0x1005ebc2
push 0xaf54b8
push ebx
call fcn.10006f00
add esp, 8
test eax, eax
jne 0x1005efd3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x101b8d00]
cmp eax, 0x7530
jb 0x1005ecc4
cmp dword [0x101956d0], 1
jne 0x1005ecc4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [0x101956d4]
push edx
mov dword [0x101b8d00], eax
call fcn.1005bde0
add esp, 4
mov dword [0x101b8954], eax
test eax, eax
je 0x1005ecc4
mov eax, dword [0x101a46dc]
mov ecx, dword [0x100eaf2c]
add eax, 0x45
push eax
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
mov esi, dword [0x101b8954]
fld dword [esi]
call fcn.10085e30
mov dword [0x101b8958], eax
fld dword [esi + 8]
call fcn.10085e30
mov ecx, dword [0x100eaf2c]
mov dword [0x101b895c], eax
mov eax, dword [0x101a46dc]
mov edx, dword [esi + 0x20]
push fcn.1005c610
push 0x12c
add eax, 0x46
push eax
push ecx
mov dword [0x101b8960], edx
call dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0
push 0
push 0
mov dword [0x1011d1ac], 0
mov dword [0x1011cd2c], 1
mov byte [0x1012d40c], 0
mov byte [0x1012d40d], 0
mov dword [0x1011cd68], 4
call fcn.1005c610
push 0x100a0608
call fcn.10008090
add esp, 4
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10085dc6
mov esp, ebp
pop ebp
ret 0x10
cmp dword [0x101919ec], 1
mov dword [0x1012d3c8], 0xffffffff
jne 0x1005edaa
fld dword [0x1012d2ac]
sub esp, 0x10
fstp dword [esp + 0xc]
fld dword [0x1012d2a8]
fstp dword [esp + 8]
fld dword [esi + 0x1f6c]
fstp dword [esp + 4]
fld dword [esi + 0x1f64]
fstp dword [esp]
call fcn.100081f0
fcomp qword [0x100a0600]
add esp, 0x10
fnstsw ax
test ah, 0x41
jne 0x1005edaa
mov dword [esi + 0x1d24], 0xffff
mov edx, dword [0x101a46dc]
mov eax, dword [0x100eaf2c]
add edx, 0x45
push edx
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [0x101a46dc]
mov edx, dword [0x100eaf2c]
push 0x1003e180
push 0x12c
add ecx, 0x4d
push ecx
push edx
call dword [sym.imp.USER32.dll_SetTimer]
fld dword [0x1012d2ac]
sub esp, 0xc
fstp dword [esp + 8]
mov dword [0x1011d1ac], 0
fldz
mov dword [0x1011cd2c], 1
fstp dword [esp + 4]
fld dword [0x1012d2a8]
fstp dword [esp]
call fcn.10037ba0
add esp, 0xc
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10085dc6
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [0x1012d264]
push eax
call fcn.1003e290
mov ecx, dword [0x101919e8]
inc ecx
add esp, 4
cmp eax, ecx
jge 0x1005edf7
mov edx, dword [0x101a46dc]
mov eax, dword [0x100eaf2c]
add edx, 0x45
push edx
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [0x101a46dc]
mov edx, dword [0x100eaf2c]
push 0x1005d210
push 0xa
add ecx, 0x46
push ecx
push edx
call dword [sym.imp.USER32.dll_SetTimer]
fild dword [ebp - 0x2c]
sub esp, 0x10
fstp dword [esp + 0xc]
fild dword [ebp - 0x28]
fstp dword [esp + 8]
fld dword [esi + 0x1f6c]
fstp dword [esp + 4]
fld dword [esi + 0x1f64]
fstp dword [esp]
call fcn.100081f0
add esp, 0x10
call fcn.10085e30
cmp dword [ebp - 0x30], 1
je 0x1005ef0a
cmp ebx, 0xffff
je 0x1005ef0a
cmp eax, 0x1e
jg 0x1005ef0a
test edi, edi
je 0x1005ef0a
mov esi, dword [esi + 0x2a58]
cmp esi, 8
je 0x1005ee64
cmp esi, 9
je 0x1005ee64
cmp esi, 0xb
jne 0x1005eed3
mov ecx, 0x101a20f8
xor edi, edi
call fcn.10001240
test eax, eax
jle 0x1005eed3
xor esi, esi
lea eax, [ebp - 0x24]
push eax
push esi
call fcn.10006ba0
mov ecx, dword [0x101a20f8]
mov ecx, dword [ecx + edi*4]
add esp, 8
lea eax, [ebp - 0x24]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1005eeb0
test dl, dl
je 0x1005eeac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1005eeb0
add eax, 2
add ecx, 2
test dl, dl
jne 0x1005ee90
xor eax, eax
jmp 0x1005eeb5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1005eebe
cmp dword [ebp - 0xc], eax
je 0x1005eef4
inc esi
cmp esi, 0xa
jl 0x1005ee76
mov ecx, 0x101a20f8
inc edi
call fcn.10001240
cmp edi, eax
jl 0x1005ee74
mov edx, dword [0x10192e80]
dec edx
push 0
push edx
call fcn.10037da0
add esp, 8
mov dword [0x100ae394], 0xffffffff
jmp 0x1005efaf
push 0xb
push esi
call fcn.10037da0
add esp, 8
mov dword [0x100ae394], esi
jmp 0x1005efaf
xor ebx, ebx
lea esp, [esp]
mov eax, dword [ebx*4 + 0x1012d2d8]
test eax, eax
jle 0x1005ef88
push 0xaf2ae4
push eax
call fcn.10006f00
add esp, 8
test eax, eax
je 0x1005ef88
mov edi, dword [eax + 0x10a4]
fld dword [edi + 0x280]
call fcn.10085e30
fld dword [edi + 0x288]
mov dword [ebp - 0x28], eax
call fcn.10085e30
mov dword [ebp - 0x2c], eax
fild dword [ebp - 0x2c]
sub esp, 0x10
fstp dword [esp + 0xc]
fild dword [ebp - 0x28]
fstp dword [esp + 8]
fld dword [esi + 0x1f6c]
fstp dword [esp + 4]
fld dword [esi + 0x1f64]
fstp dword [esp]
call fcn.100081f0
fcomp qword [0x100a05f8]
add esp, 0x10
fnstsw ax
test ah, 5
jnp 0x1005ef90
inc ebx
cmp ebx, 0x1e
jl 0x1005ef10
jmp 0x1005efaf
mov eax, dword [ebx*4 + 0x1012d2d8]
push eax
call fcn.10038100
mov ecx, dword [0x10192e80]
dec ecx
push 0
push ecx
call fcn.10037da0
add esp, 0xc
cmp dword [0x10191860], 1
jne 0x1005efd3
cmp dword [ebp - 0x34], 0xaf2ae4
jne 0x1005efd3
mov byte [0x1012d401], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1012d268], eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10085dc6
mov esp, ebp
pop ebp
ret 0x10