Function at 0x1005b000
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:[0x12b5b20]
mov eax, 0x693d60
call eax
mov dword [ebp - 0x4c], eax
popal
cmp dword [ebp - 0x4c], 0
jne 0x1005b2be
mov edi, dword [ebp - 0x50]
mov eax, 0x35f6378
mov edx, 7
mov ecx, dword [eax]
test ecx, ecx
je 0x1005b055
cmp byte [ecx + 0x330], 0
je 0x1005b055
inc edi
add eax, 4
dec edx
jne 0x1005b045
cmp edi, dword [0x101976a4]
jge 0x1005b2be
lea ebx, [edx + 1]
test edi, edi
jne 0x1005b07a
cmp dword [0x10197264], ebx
je 0x1005b2be
push 0x1009460c
call fcn.10007300
push 0x100945bc
mov esi, eax
call fcn.10007300
add esp, 8
cmp esi, ebx
jne 0x1005b0f6
test eax, eax
jne 0x1005b0f6
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 0x1005b2be
push 0
push 3
mov byte [0x101b831c], 0
call fcn.10039c30
push 0x100a0238
call fcn.100080a0
push 0x100a0224
push 0
call fcn.10039d00
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10086746
mov esp, ebp
pop ebp
ret
cmp edi, 7
jge 0x1005b2be
test esi, esi
jne 0x1005b2be
cmp dword [0x10197258], ebx
je 0x1005b11b
cmp dword [0x10197268], ebx
jne 0x1005b195
lea edx, [ebp - 0x48]
push edx
call fcn.10046b10
add esp, 4
cmp dword [ebp - 0x24], 0
jl 0x1005b195
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.10039dd0
add esp, 4
xor eax, eax
mov cl, byte [ebp + eax - 0x48]
mov byte [eax + 0x101b831c], cl
add eax, ebx
test cl, cl
jne 0x1005b153
lea eax, [ebp - 0x48]
push eax
push 0x100a021c
push 0x1011c6e8
call dword [sym.imp.MSVCR100.dll_sprintf]
push 0x1011c6e8
call fcn.100080a0
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10086746
mov esp, ebp
pop ebp
ret
cmp dword [0x10197254], ebx
jne 0x1005b2be
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 0x1005b2b4
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, 0x35f6378
xor edi, edi
lea esp, [esp]
mov eax, dword [esi]
test eax, eax
je 0x1005b225
cmp byte [eax + 0x330], 0
je 0x1005b225
lea ecx, [eax + 0x338]
lea eax, [ebp - 0x18]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1005b218
test dl, dl
je 0x1005b214
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1005b218
add eax, 2
add ecx, 2
test dl, dl
jne 0x1005b1f8
xor eax, eax
jmp 0x1005b21d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1005b296
inc edi
add esi, 4
cmp edi, 7
jl 0x1005b1e0
mov ecx, 0x33ccf58
lea eax, [ebp - 0x18]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1005b256
test dl, dl
je 0x1005b252
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1005b256
add eax, 2
add ecx, 2
test dl, dl
jne 0x1005b236
xor eax, eax
jmp 0x1005b25b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1005b296
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0x24], 0xffffffff
call fcn.100469b0
add esp, 8
cmp dword [ebp - 0x24], 0
jl 0x1005b296
fld dword [ebp - 0x28]
fild dword [0x10197358]
fcompp
fnstsw ax
test ah, 1
jne 0x1005b296
cmp ebx, dword [0x100ae73c]
jg 0x1005b2cf
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 0x1005b1bf
mov dword [0x100ae73c], 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10086746
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.10039dd0
add esp, 4
xor eax, eax
mov cl, byte [ebp + eax - 0x48]
mov byte [eax + 0x101b831c], cl
inc eax
test cl, cl
jne 0x1005b2f5
lea eax, [ebp - 0x48]
push eax
push 0x100a021c
push 0x1011c6e8
mov dword [0x100ae73c], ebx
call dword [sym.imp.MSVCR100.dll_sprintf]
push 0x1011c6e8
call fcn.100080a0
mov ecx, dword [ebp - 4]
add esp, 0x10
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10086746
mov esp, ebp
pop ebp
ret