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

Disassembly:
push 0xffffffffffffffff
push 0x10165240
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x101b629c]
xor eax, esp
mov dword [esp + 0x74], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101b629c]
xor eax, esp
push eax
lea eax, [esp + 0x8c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0xa4]
mov esi, dword [esp + 0xac]
mov edi, dword [esp + 0xb0]
push 5
push eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], edi
call fcn.10054350
add esp, 8
test eax, eax
je 0x1008bc59
push 0
push eax
call fcn.10054350
add esp, 8
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push ebx
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1008bc59
test ebx, ebx
mov ebp, ebx
mov dword [esp + 0x28], ebx
je 0x1008bb2a
test byte [esp + 0xa8], 1
je 0x1008ba44
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1008ba44
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1008b9c0
sub eax, edx
je 0x1008ba44
push 1
mov esi, ebx
lea edi, [esp + 0x34]
call fcn.1008b3d0
add esp, 4
xor esi, esi
mov dword [esp + 0x94], esi
mov eax, dword [esp + 0x34]
mov edi, 0x10
cmp dword [esp + 0x48], edi
jae 0x1008b9f9
lea eax, [esp + 0x34]
mov ecx, dword [esp + 0x1c]
push ecx
push eax
call fcn.100439e0
add esp, 8
test eax, eax
jne 0x1008ba0d
xor ebp, ebp
mov dword [esp + 0x94], 0xffffffff
cmp dword [esp + 0x48], edi
jb 0x1008ba2b
mov edx, dword [esp + 0x34]
push edx
call fcn.100ee0d8
add esp, 4
mov edi, dword [esp + 0x24]
mov dword [esp + 0x44], esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x48], 0xf
mov byte [esp + 0x34], 0
test ebp, ebp
je 0x1008bb2a
test byte [esp + 0xa8], 2
je 0x1008bafa
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1008bafa
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1008ba70
sub eax, edx
je 0x1008bafa
push 1
mov edi, ebp
lea esi, [esp + 0x50]
call fcn.1008b500
add esp, 4
mov dword [esp + 0x94], 1
mov eax, dword [esp + 0x50]
mov esi, 0x10
cmp dword [esp + 0x64], esi
jae 0x1008baab
lea eax, [esp + 0x50]
mov ecx, dword [esp + 0x18]
push ecx
push eax
call fcn.10101f80
add esp, 8
test eax, eax
jne 0x1008babf
xor ebp, ebp
mov dword [esp + 0x94], 0xffffffff
cmp dword [esp + 0x64], esi
jb 0x1008badd
mov edx, dword [esp + 0x50]
push edx
call fcn.100ee0d8
add esp, 4
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], 0
mov byte [esp + 0x50], 0
test ebp, ebp
je 0x1008bb2a
test byte [esp + 0xa8], 0x10
je 0x1008bb13
push ebp
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1008bb28
test byte [esp + 0xa8], 8
je 0x1008bb2a
push ebp
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x1008bb2a
xor ebp, ebp
test edi, edi
je 0x1008bb70
test ebp, ebp
je 0x1008bc0b
lea eax, [esp + 0x14]
push eax
push ebp
mov dword [esp + 0x1c], 0
call fcn.10054310
mov edx, dword [esp + 0x1c]
add esp, 8
xor eax, eax
mov ecx, dword [edi + eax*4]
test ecx, ecx
je 0x1008bc0b
cmp edx, ecx
je 0x1008bb70
add eax, 1
cmp eax, 0x400
jl 0x1008bb52
jmp 0x1008bc0b
test ebp, ebp
je 0x1008bc0b
push ebp
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1008bc0b
xor eax, eax
push ebp
lea ecx, [esp + 0x6c]
push 0x1016a690
push ecx
mov byte [esp + 0x74], 0
mov dword [esp + 0x75], eax
mov dword [esp + 0x79], eax
mov dword [esp + 0x7d], eax
mov dword [esp + 0x81], eax
mov dword [esp + 0x85], eax
mov dword [esp + 0x89], eax
mov dword [esp + 0x8d], eax
mov word [esp + 0x91], ax
mov byte [esp + 0x93], al
call fcn.10100f40
add esp, 0xc
cmp dword [esi + 0x14], 0
jbe 0x1008bbec
push 1
push 0x1016a5a8
mov ecx, esi
call fcn.100098e0
lea eax, [esp + 0x68]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1008bbf3
sub eax, edx
push eax
lea edx, [esp + 0x6c]
push edx
mov ecx, esi
call fcn.100098e0
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push edi
push esi
push eax
push ecx
push edx
push ebx
call fcn.1008b8f0
push 2
push ebx
call fcn.10054350
mov ebx, eax
add esp, 0x20
cmp dword [esp + 0x28], ebx
je 0x1008bc59
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [esp + 0x2c]
cmp eax, dword [0x101a18e8]
jae 0x1008bc59
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x1008b991
mov ecx, dword [esp + 0x8c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.100ff704
add esp, 0x84
ret