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

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
mov esi, eax
cmp dword [esi + 0x234], 0
push edi
jne 0x45f80d
cmp dword [esp + 0x44], 0
jne 0x45f80d
push esi
xor eax, eax
call fcn.0045f570
mov ebp, eax
mov dword [esp + 0x1c], ebp
test ebp, ebp
je 0x45f80d
cmp dword [esi + 0x1e4], 0
lea edi, [esi + 0x1e4]
je 0x45f681
call fcn.004607e0
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45f67c
call fcn.004607e0
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x45f681
call fcn.00410e00
mov eax, dword [esi + 4]
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea edi, [esp + 0x30]
call fcn.0045fda0
mov ebx, eax
cmp ebx, 2
jne 0x45f6a6
mov eax, dword [esp + 0x30]
jmp 0x45f6ae
push 0x4e
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, ebp
xor edi, edi
sub ecx, 1
mov dword [esp + 0x44], eax
je 0x45f6ce
sub ecx, 1
jne 0x45f6df
mov edi, eax
sub edi, dword [esi + 0x238]
sub edi, dword [esp + 0x20]
jmp 0x45f6df
dec ebx
neg ebx
sbb ebx, ebx
not ebx
and ebx, dword [esp + 0x38]
sub ebx, dword [esp + 0x20]
mov edi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov ebp, eax
push ebp
mov dword [esp + 0x18], ebp
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 2
push ebp
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [esi + 0x22c], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ebx + 0x32]
cmp eax, ecx
jge 0x45f77d
mov edi, edi
sub eax, ebx
imul eax, edi
mov ecx, eax
mov eax, 0x51eb851f
imul ecx
mov ecx, dword [esp + 0x20]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x28]
mov ebp, edx
sub ebp, ecx
add ebp, dword [esp + 0x44]
add eax, ecx
cmp eax, ebp
jg 0x45f76c
sub ecx, edx
cmp eax, ecx
jl 0x45f76c
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 4]
push 0x15
push 0
push 0
push ecx
push eax
push 0
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ebx + 0x32]
cmp eax, ecx
jl 0x45f720
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esi + 0x238]
push 0x14
sub ecx, eax
push ecx
mov ecx, dword [esi + 4]
push edx
push eax
mov eax, dword [esp + 0x30]
add eax, edi
push eax
xor ebx, ebx
push ebx
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [esp + 0x18]
push edx
push ebp
mov dword [esi + 0x22c], ebx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [esp + 0x1c]
call fcn.0045d270
mov edi, esi
call fcn.00496ea0
call fcn.004607e0
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45f7fe
call fcn.004607e0
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x45f7fe
xor esi, esi
call fcn.004607e0
push ebx
push esi
mov edi, eax
call fcn.0046b050
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30
ret 4