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

Disassembly:
push 0xffffffffffffffff
push 0x10176f20
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x101c8fb4]
xor eax, esp
mov dword [esp + 0x74], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101c8fb4]
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.10067910
add esp, 8
test eax, eax
je 0x1009fce9
push 0
push eax
call fcn.10067910
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 0x1009fce9
test ebx, ebx
mov ebp, ebx
mov dword [esp + 0x28], ebx
je 0x1009fbba
test byte [esp + 0xa8], 1
je 0x1009fad4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1009fad4
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1009fa50
sub eax, edx
je 0x1009fad4
push 1
mov esi, ebx
lea edi, [esp + 0x34]
call fcn.1009f460
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 0x1009fa89
lea eax, [esp + 0x34]
mov ecx, dword [esp + 0x1c]
push ecx
push eax
call fcn.10056f90
add esp, 8
test eax, eax
jne 0x1009fa9d
xor ebp, ebp
mov dword [esp + 0x94], 0xffffffff
cmp dword [esp + 0x48], edi
jb 0x1009fabb
mov edx, dword [esp + 0x34]
push edx
call fcn.10100548
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 0x1009fbba
test byte [esp + 0xa8], 2
je 0x1009fb8a
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1009fb8a
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1009fb00
sub eax, edx
je 0x1009fb8a
push 1
mov edi, ebp
lea esi, [esp + 0x50]
call fcn.1009f590
add esp, 4
mov dword [esp + 0x94], 1
mov eax, dword [esp + 0x50]
mov esi, 0x10
cmp dword [esp + 0x64], esi
jae 0x1009fb3b
lea eax, [esp + 0x50]
mov ecx, dword [esp + 0x18]
push ecx
push eax
call fcn.10112130
add esp, 8
test eax, eax
jne 0x1009fb4f
xor ebp, ebp
mov dword [esp + 0x94], 0xffffffff
cmp dword [esp + 0x64], esi
jb 0x1009fb6d
mov edx, dword [esp + 0x50]
push edx
call fcn.10100548
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 0x1009fbba
test byte [esp + 0xa8], 0x10
je 0x1009fba3
push ebp
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1009fbb8
test byte [esp + 0xa8], 8
je 0x1009fbba
push ebp
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x1009fbba
xor ebp, ebp
test edi, edi
je 0x1009fc00
test ebp, ebp
je 0x1009fc9b
lea eax, [esp + 0x14]
push eax
push ebp
mov dword [esp + 0x1c], 0
call fcn.100678d0
mov edx, dword [esp + 0x1c]
add esp, 8
xor eax, eax
mov ecx, dword [edi + eax*4]
test ecx, ecx
je 0x1009fc9b
cmp edx, ecx
je 0x1009fc00
add eax, 1
cmp eax, 0x400
jl 0x1009fbe2
jmp 0x1009fc9b
test ebp, ebp
je 0x1009fc9b
push ebp
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1009fc9b
xor eax, eax
push ebp
lea ecx, [esp + 0x6c]
push 0x1017bab8
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.10112d57
add esp, 0xc
cmp dword [esi + 0x14], 0
jbe 0x1009fc7c
push 1
push 0x1017ba54
mov ecx, esi
call fcn.10003f90
lea eax, [esp + 0x68]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1009fc83
sub eax, edx
push eax
lea edx, [esp + 0x6c]
push edx
mov ecx, esi
call fcn.10003f90
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.1009f980
push 2
push ebx
call fcn.10067910
mov ebx, eax
add esp, 0x20
cmp dword [esp + 0x28], ebx
je 0x1009fce9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x2c]
cmp eax, dword [0x101b4590]
jae 0x1009fce9
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x1009fa21
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.10111b17
add esp, 0x84
ret