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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x100ae8c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
push esi
push edi
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], eax
pushal
mov ecx, dword ds:[0xeac6bc]
mov eax, 0x859cf0
call eax
mov dword [ebp - 0x4c], eax
popal
cmp dword [ebp - 0x4c], 0
jne 0x1005b13e
mov edi, dword [ebp - 0x50]
mov eax, 0x2fce210
mov edx, 7
mov ecx, dword [eax]
test ecx, ecx
je 0x1005aed5
cmp byte [ecx + 0x330], 0
je 0x1005aed5
inc edi
add eax, 4
dec edx
jne 0x1005aec5
cmp edi, dword [0x101976a4]
jge 0x1005b13e
lea ebx, [edx + 1]
test edi, edi
jne 0x1005aefa
cmp dword [0x10197264], ebx
je 0x1005b13e
push 0x10094630
call fcn.10007370
push 0x100945e0
mov esi, eax
call fcn.10007370
add esp, 8
cmp esi, ebx
jne 0x1005af76
test eax, eax
jne 0x1005af76
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
sub edx, dword [0x101b8cb4]
cmp edx, 0x1e
jb 0x1005b13e
push 0
push 3
mov byte [0x101b831c], 0
call fcn.10039c40
push 0x100a00f0
call fcn.10008110
push 0x100a00dc
push 0
call fcn.10039d10
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10086786
mov esp, ebp
pop ebp
ret
cmp edi, 7
jge 0x1005b13e
test esi, esi
jne 0x1005b13e
cmp dword [0x10197258], ebx
je 0x1005af9b
cmp dword [0x10197268], ebx
jne 0x1005b015
lea edx, [ebp - 0x48]
push edx
call fcn.10046af0
add esp, 4
cmp dword [ebp - 0x24], 0
jl 0x1005b015
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov dword [0x101b8cb4], edx
mov edx, dword [ebp - 0x24]
push edx
call fcn.10039de0
add esp, 4
xor eax, eax
mov cl, byte [ebp + eax - 0x48]
mov byte [eax + 0x101b831c], cl
add eax, ebx
test cl, cl
jne 0x1005afd3
lea eax, [ebp - 0x48]
push eax
push 0x100a00d4
push 0x1011c6e8
call dword [sym.imp.MSVCR100.dll_sprintf]
push 0x1011c6e8
call fcn.10008110
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10086786
mov esp, ebp
pop ebp
ret
cmp dword [0x10197254], ebx
jne 0x1005b13e
mov ecx, dword [0x10197290]
xor ebx, ebx
push ebx
push ebx
push 0x18b
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jle 0x1005b134
mov eax, dword [0x10197290]
lea edx, [ebp - 0x18]
push edx
push ebx
push 0x189
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, 0x2fce210
xor edi, edi
lea esp, [esp]
mov eax, dword [esi]
test eax, eax
je 0x1005b0a5
cmp byte [eax + 0x330], 0
je 0x1005b0a5
lea ecx, [eax + 0x338]
lea eax, [ebp - 0x18]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1005b098
test dl, dl
je 0x1005b094
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1005b098
add eax, 2
add ecx, 2
test dl, dl
jne 0x1005b078
xor eax, eax
jmp 0x1005b09d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1005b116
inc edi
add esi, 4
cmp edi, 7
jl 0x1005b060
mov ecx, 0x3505b08
lea eax, [ebp - 0x18]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1005b0d6
test dl, dl
je 0x1005b0d2
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1005b0d6
add eax, 2
add ecx, 2
test dl, dl
jne 0x1005b0b6
xor eax, eax
jmp 0x1005b0db
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1005b116
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0x24], 0xffffffff
call fcn.10046990
add esp, 8
cmp dword [ebp - 0x24], 0
jl 0x1005b116
fld dword [ebp - 0x28]
fild dword [0x10197358]
fcompp
fnstsw ax
test ah, 1
jne 0x1005b116
cmp ebx, dword [0x100ae73c]
jg 0x1005b14f
mov eax, dword [0x10197290]
push 0
push 0
push 0x18b
push eax
inc ebx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp ebx, eax
jl 0x1005b03f
mov dword [0x100ae73c], 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10086786
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov dword [0x101b8cb4], edx
mov edx, dword [ebp - 0x24]
push edx
call fcn.10039de0
add esp, 4
xor eax, eax
mov cl, byte [ebp + eax - 0x48]
mov byte [eax + 0x101b831c], cl
inc eax
test cl, cl
jne 0x1005b175
lea eax, [ebp - 0x48]
push eax
push 0x100a00d4
push 0x1011c6e8
mov dword [0x100ae73c], ebx
call dword [sym.imp.MSVCR100.dll_sprintf]
push 0x1011c6e8
call fcn.10008110
mov ecx, dword [ebp - 4]
add esp, 0x10
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10086786
mov esp, ebp
pop ebp
ret