Function at 0x1005a680
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:[0x12b4a90]
mov eax, 0x6932a0
call eax
mov dword [ebp - 0x4c], eax
popal
cmp dword [ebp - 0x4c], 0
jne 0x1005a93e
mov edi, dword [ebp - 0x50]
mov eax, 0x35f5170
mov edx, 7
mov ecx, dword [eax]
test ecx, ecx
je 0x1005a6d5
cmp byte [ecx + 0x330], 0
je 0x1005a6d5
inc edi
add eax, 4
dec edx
jne 0x1005a6c5
cmp edi, dword [0x101976a4]
jge 0x1005a93e
lea ebx, [edx + 1]
test edi, edi
jne 0x1005a6fa
cmp dword [0x10197264], ebx
je 0x1005a93e
push 0x1009460c
call fcn.100072f0
push 0x100945bc
mov esi, eax
call fcn.100072f0
add esp, 8
cmp esi, ebx
jne 0x1005a776
test eax, eax
jne 0x1005a776
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
sub edx, dword [0x101b8ca8]
cmp edx, 0x1e
jb 0x1005a93e
push 0
push 3
mov byte [0x101b830c], 0
call fcn.100396f0
push 0x100a0088
call fcn.10008090
push 0x100a0074
push 0
call fcn.100397c0
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10085dc6
mov esp, ebp
pop ebp
ret
cmp edi, 7
jge 0x1005a93e
test esi, esi
jne 0x1005a93e
cmp dword [0x10197258], ebx
je 0x1005a79b
cmp dword [0x10197268], ebx
jne 0x1005a815
lea edx, [ebp - 0x48]
push edx
call fcn.10046460
add esp, 4
cmp dword [ebp - 0x24], 0
jl 0x1005a815
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov dword [0x101b8ca8], edx
mov edx, dword [ebp - 0x24]
push edx
call fcn.10039890
add esp, 4
xor eax, eax
mov cl, byte [ebp + eax - 0x48]
mov byte [eax + 0x101b830c], cl
add eax, ebx
test cl, cl
jne 0x1005a7d3
lea eax, [ebp - 0x48]
push eax
push 0x100a006c
push 0x1011c6e8
call dword [sym.imp.MSVCR100.dll_sprintf]
push 0x1011c6e8
call fcn.10008090
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10085dc6
mov esp, ebp
pop ebp
ret
cmp dword [0x10197254], ebx
jne 0x1005a93e
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 0x1005a934
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, 0x35f5170
xor edi, edi
lea esp, [esp]
mov eax, dword [esi]
test eax, eax
je 0x1005a8a5
cmp byte [eax + 0x330], 0
je 0x1005a8a5
lea ecx, [eax + 0x338]
lea eax, [ebp - 0x18]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1005a898
test dl, dl
je 0x1005a894
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1005a898
add eax, 2
add ecx, 2
test dl, dl
jne 0x1005a878
xor eax, eax
jmp 0x1005a89d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1005a916
inc edi
add esi, 4
cmp edi, 7
jl 0x1005a860
mov ecx, 0x33cbd50
lea eax, [ebp - 0x18]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1005a8d6
test dl, dl
je 0x1005a8d2
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1005a8d6
add eax, 2
add ecx, 2
test dl, dl
jne 0x1005a8b6
xor eax, eax
jmp 0x1005a8db
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1005a916
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0x24], 0xffffffff
call fcn.10046300
add esp, 8
cmp dword [ebp - 0x24], 0
jl 0x1005a916
fld dword [ebp - 0x28]
fild dword [0x10197358]
fcompp
fnstsw ax
test ah, 1
jne 0x1005a916
cmp ebx, dword [0x100ae73c]
jg 0x1005a94f
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 0x1005a83f
mov dword [0x100ae73c], 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10085dc6
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 [0x101b8ca8], edx
mov edx, dword [ebp - 0x24]
push edx
call fcn.10039890
add esp, 4
xor eax, eax
mov cl, byte [ebp + eax - 0x48]
mov byte [eax + 0x101b830c], cl
inc eax
test cl, cl
jne 0x1005a975
lea eax, [ebp - 0x48]
push eax
push 0x100a006c
push 0x1011c6e8
mov dword [0x100ae73c], ebx
call dword [sym.imp.MSVCR100.dll_sprintf]
push 0x1011c6e8
call fcn.10008090
mov ecx, dword [ebp - 4]
add esp, 0x10
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10085dc6
mov esp, ebp
pop ebp
ret