Function at 0x1005af00
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:[0xe7c850]
mov eax, 0x836890
call eax
mov dword [ebp - 0x4c], eax
popal
cmp dword [ebp - 0x4c], 0
jne 0x1005b1be
mov edi, dword [ebp - 0x50]
mov eax, 0x2f9b2b0
mov edx, 7
mov ecx, dword [eax]
test ecx, ecx
je 0x1005af55
cmp byte [ecx + 0x330], 0
je 0x1005af55
inc edi
add eax, 4
dec edx
jne 0x1005af45
cmp edi, dword [0x101976a4]
jge 0x1005b1be
lea ebx, [edx + 1]
test edi, edi
jne 0x1005af7a
cmp dword [0x10197264], ebx
je 0x1005b1be
push 0x10094630
call fcn.10007390
push 0x100945e0
mov esi, eax
call fcn.10007390
add esp, 8
cmp esi, ebx
jne 0x1005aff6
test eax, eax
jne 0x1005aff6
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 0x1005b1be
push 0
push 3
mov byte [0x101b831c], 0
call fcn.10039ce0
push 0x100a00f0
call fcn.10008130
push 0x100a00dc
push 0
call fcn.10039db0
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100867e6
mov esp, ebp
pop ebp
ret
cmp edi, 7
jge 0x1005b1be
test esi, esi
jne 0x1005b1be
cmp dword [0x10197258], ebx
je 0x1005b01b
cmp dword [0x10197268], ebx
jne 0x1005b095
lea edx, [ebp - 0x48]
push edx
call fcn.10046b90
add esp, 4
cmp dword [ebp - 0x24], 0
jl 0x1005b095
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.10039e80
add esp, 4
xor eax, eax
mov cl, byte [ebp + eax - 0x48]
mov byte [eax + 0x101b831c], cl
add eax, ebx
test cl, cl
jne 0x1005b053
lea eax, [ebp - 0x48]
push eax
push 0x100a00d4
push 0x1011c6e8
call dword [sym.imp.MSVCR100.dll_sprintf]
push 0x1011c6e8
call fcn.10008130
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100867e6
mov esp, ebp
pop ebp
ret
cmp dword [0x10197254], ebx
jne 0x1005b1be
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 0x1005b1b4
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, 0x2f9b2b0
xor edi, edi
lea esp, [esp]
mov eax, dword [esi]
test eax, eax
je 0x1005b125
cmp byte [eax + 0x330], 0
je 0x1005b125
lea ecx, [eax + 0x338]
lea eax, [ebp - 0x18]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1005b118
test dl, dl
je 0x1005b114
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1005b118
add eax, 2
add ecx, 2
test dl, dl
jne 0x1005b0f8
xor eax, eax
jmp 0x1005b11d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1005b196
inc edi
add esi, 4
cmp edi, 7
jl 0x1005b0e0
mov ecx, 0x34d28e8
lea eax, [ebp - 0x18]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1005b156
test dl, dl
je 0x1005b152
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1005b156
add eax, 2
add ecx, 2
test dl, dl
jne 0x1005b136
xor eax, eax
jmp 0x1005b15b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1005b196
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0x24], 0xffffffff
call fcn.10046a30
add esp, 8
cmp dword [ebp - 0x24], 0
jl 0x1005b196
fld dword [ebp - 0x28]
fild dword [0x10197358]
fcompp
fnstsw ax
test ah, 1
jne 0x1005b196
cmp ebx, dword [0x100ae73c]
jg 0x1005b1cf
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 0x1005b0bf
mov dword [0x100ae73c], 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100867e6
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.10039e80
add esp, 4
xor eax, eax
mov cl, byte [ebp + eax - 0x48]
mov byte [eax + 0x101b831c], cl
inc eax
test cl, cl
jne 0x1005b1f5
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.10008130
mov ecx, dword [ebp - 4]
add esp, 0x10
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100867e6
mov esp, ebp
pop ebp
ret