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

Disassembly:
push 0xffffffffffffffff
push 0x10153fe0
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x101a42b4]
xor eax, esp
mov dword [esp + 0x74], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101a42b4]
xor eax, esp
push eax
lea eax, [esp + 0x8c]
mov dword fs:[0], eax
mov ecx, dword [esp + 0xa0]
mov eax, dword [esp + 0x9c]
mov edx, dword [esp + 0xa4]
mov edi, dword [esp + 0xac]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0xb0]
push 5
push eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ecx
call fcn.1004d8f0
add esp, 8
test edi, edi
test eax, eax
je 0x10085ac9
push 0
push eax
call fcn.1004d8f0
add esp, 8
mov esi, eax
test al, al
mov ebx, esi
test ch, ch
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [esp + 0x2c], eax
mov ch, ch
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10085ac9
jmp 0x100857e0
mov ebp, ebx
mov dh, dh
mov dword [esp + 0x28], ebx
push ecx
pop ecx
test ebx, ebx
je 0x10085984
test byte [esp + 0xa8], 1
je 0x10085894
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10085894
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10085810
sub eax, edx
je 0x10085894
push 1
mov esi, ebx
lea edi, [esp + 0x34]
call fcn.10085190
add esp, 4
xor esi, esi
mov dword [esp + 0x94], esi
mov dl, dl
mov eax, dword [esp + 0x34]
mov edi, 0x10
cmp dword [esp + 0x48], edi
jae 0x1008584b
lea eax, [esp + 0x34]
mov edx, dword [esp + 0x1c]
push edx
push eax
call fcn.1003bd50
add esp, 8
test eax, eax
jne 0x10085861
xor ebp, ebp
mov edi, edi
mov dword [esp + 0x94], 0xffffffff
cmp dword [esp + 0x48], edi
jb 0x1008587f
mov eax, dword [esp + 0x34]
push eax
call fcn.100e2dad
add esp, 4
mov edi, dword [esp + 0x20]
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], esi
mov byte [esp + 0x34], 0
test ebp, ebp
je 0x10085984
test byte [esp + 0xa8], 2
je 0x1008594a
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1008594a
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100858c0
sub eax, edx
je 0x1008594a
push 1
mov edi, ebp
lea esi, [esp + 0x50]
call fcn.10085300
add esp, 4
mov dword [esp + 0x94], 1
mov al, al
mov eax, dword [esp + 0x50]
mov esi, 0x10
cmp dword [esp + 0x64], esi
jae 0x100858fd
lea eax, [esp + 0x50]
mov ecx, dword [esp + 0x18]
push ecx
push eax
call fcn.100f4be0
add esp, 8
test eax, eax
jne 0x10085913
xor ebp, ebp
mov eax, eax
mov dword [esp + 0x94], 0xffffffff
cmp dword [esp + 0x64], esi
jb 0x10085931
mov edx, dword [esp + 0x50]
push edx
call fcn.100e2dad
add esp, 4
mov edi, dword [esp + 0x20]
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], 0
mov byte [esp + 0x50], 0
test ebp, ebp
je 0x10085984
test byte [esp + 0xa8], 0x10
je 0x10085969
push ebp
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x10085969
xor ebp, ebp
test al, al
jmp 0x10085984
test byte [esp + 0xa8], 8
je 0x10085984
push ebp
call dword [sym.imp.USER32.dll_GetParent]
mov edx, edx
test eax, eax
je 0x10085984
xor ebp, ebp
mov edi, edi
mov esi, dword [esp + 0x24]
test esi, esi
je 0x100859d6
test ebp, ebp
je 0x10085a6f
mov dword [esp + 0x14], 0
mov dh, dh
lea eax, [esp + 0x14]
push eax
push ebp
call fcn.1004d8b0
add esp, 8
test bh, bh
mov cl, cl
mov bl, bl
mov edx, dword [esp + 0x14]
xor eax, eax
mov ecx, dword [esi + eax*4]
test ecx, ecx
je 0x100859cd
cmp edx, ecx
je 0x100859d4
add eax, 1
cmp eax, 0x400
jl 0x100859b8
test ebx, ebx
jmp 0x10085a6f
test ecx, ecx
test ebp, ebp
je 0x10085a6f
push ebp
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10085a6f
xor eax, eax
mov byte [esp + 0x68], 0
mov dword [esp + 0x69], eax
mov dword [esp + 0x6d], eax
mov dword [esp + 0x71], eax
mov dword [esp + 0x75], eax
mov dword [esp + 0x79], eax
mov dword [esp + 0x7d], eax
mov dword [esp + 0x81], eax
mov word [esp + 0x85], ax
mov byte [esp + 0x87], al
nop
push ebp
lea ecx, [esp + 0x6c]
push 0x101594b0
push ecx
call fcn.100f5cb0
add esp, 0xc
mov edx, edx
cmp dword [edi + 0x14], 0
jbe 0x10085a4e
push 1
push 0x101593cc
mov ecx, edi
call fcn.1000a0f0
push eax
pop eax
lea eax, [esp + 0x68]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10085a55
sub eax, edx
push eax
lea edx, [esp + 0x6c]
push edx
mov ecx, edi
call fcn.1000a0f0
test ch, ch
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push esi
push edi
push eax
push ecx
push edx
push ebx
call fcn.10085730
add esp, 0x18
test eax, 0x5897
push 2
push ebx
call fcn.1004d8f0
add esp, 8
mov ebx, eax
push ebx
pop ebx
cmp dword [esp + 0x28], ebx
je 0x10085ac9
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
test ah, ah
sub eax, dword [esp + 0x2c]
cmp eax, dword [0x1018f904]
jae 0x10085ac9
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x100857e0
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.100f43d6
add esp, 0x84
ret