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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x612642
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0x14]
jae 0x586ba3
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
push 0
call dword [sym.imp.USER32.dll_FindWindowExA]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x586b9e
mov edx, dword [ebp + 0x18]
and edx, 0xff
test edx, edx
je 0x58692e
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x58692e
jmp 0x5868da
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00587cef
add esp, 4
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp + 8]
jne 0x586b9e
push 3
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_GetAncestor]
cmp eax, dword [ebp - 0x10]
jne 0x586b9e
mov ecx, dword [ebp - 0x10]
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.00587dcc
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00587d0f
add esp, 8
mov byte [ebp - 4], 1
cmp dword [ebp + 0xc], 0
jne 0x5869be
cmp dword [ebp + 0x10], 0
jne 0x5869be
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x24], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004e0030
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004e0030
mov eax, dword [ebp - 0x24]
jmp 0x586ba5
cmp dword [ebp + 0xc], 0
jne 0x586a3a
push 0
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004e0720
mov byte [ebp - 4], 2
push 1
push 0
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00500e40
xor edx, edx
cmp eax, dword [0x6bed34]
setne dl
mov byte [ebp - 0x28], dl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004e0030
mov eax, dword [ebp - 0x28]
and eax, 0xff
test eax, eax
je 0x586a35
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x30], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004e0030
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004e0030
mov eax, dword [ebp - 0x30]
jmp 0x586ba5
jmp 0x586b7e
cmp dword [ebp + 0x10], 0
jne 0x586ab7
push 0
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x38]
call fcn.004e0720
mov byte [ebp - 4], 3
push 1
push 0
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x20]
call fcn.00500e40
xor ecx, ecx
cmp eax, dword [0x6bed34]
setne cl
mov byte [ebp - 0x34], cl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.004e0030
mov edx, dword [ebp - 0x34]
and edx, 0xff
test edx, edx
je 0x586ab2
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004e0030
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004e0030
mov eax, dword [ebp - 0x3c]
jmp 0x586ba5
jmp 0x586b7e
push 0
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x44]
call fcn.004e0720
mov byte [ebp - 4], 4
push 1
push 0
lea edx, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x20]
call fcn.00500e40
cmp eax, dword [0x6bed34]
je 0x586b32
push 0
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x4c]
call fcn.004e0720
mov byte [ebp - 4], 5
push 1
push 0
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00500e40
xor edx, edx
cmp eax, dword [0x6bed34]
setne dl
mov byte [ebp - 0x48], dl
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x4c]
call fcn.004e0030
mov eax, dword [ebp - 0x48]
and eax, 0xff
test eax, eax
je 0x586b32
mov dword [ebp - 0x54], 1
jmp 0x586b39
mov dword [ebp - 0x54], 0
mov cl, byte [ebp - 0x54]
mov byte [ebp - 0x40], cl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.004e0030
mov edx, dword [ebp - 0x40]
and edx, 0xff
test edx, edx
je 0x586b7e
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004e0030
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004e0030
mov eax, dword [ebp - 0x50]
jmp 0x586ba5
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004e0030
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004e0030
jmp 0x5868da
jmp 0x5868da
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret