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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x70
push esi
push dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x1c], esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1070150
push edi
mov ecx, esi
call fcn.0101874e
test eax, eax
je 0x106ff88
lea eax, [ebp - 0x70]
push eax
push dword [esi + 0xcd8]
mov ecx, esi
call fcn.0102ff66
lea eax, [ebp - 0x70]
mov dword [ebp - 0x10], eax
xor edi, edi
jmp 0x106ff8d
xor edi, edi
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x50]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
push edi
lea eax, [ebp - 0x20]
push eax
push edi
push 0x1002
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
cmp dword [ebp + 0x10], edi
je 0x106ffb8
mov eax, dword [esi + 0xd1c]
jmp 0x106ffbe
mov eax, dword [esi + 0xd18]
mov dword [ebp - 4], eax
cmp dword [0x10b2170], edi
je 0x107012d
cmp dword [ebp - 0x20], edi
je 0x107012d
cmp eax, edi
jle 0x107012d
lea esi, [ebp - 0x50]
lea edi, [ebp - 0x60]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x40]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x50]
push ebx
sub eax, dword [ebp - 0x48]
add eax, dword [ebp - 0x40]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x44]
add eax, dword [ebp - 0x3c]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 2
push dword [ebp - 0xc]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
lea esi, [ebp - 0x60]
lea edi, [ebp - 0x40]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
movsd dword es:[edi], dword [esi]
call ebx
mov esi, eax
mov dword [ebp - 8], esi
jmp 0x107010f
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
je 0x10700d0
mov eax, esi
imul eax, dword [ebp - 0x24]
cdq
idiv dword [ebp - 4]
mov ecx, dword [ebp - 0x38]
sub ecx, dword [ebp - 0x40]
add eax, dword [ebp - 0x60]
add ecx, eax
mov dword [ebp - 0x40], eax
mov eax, esi
imul eax, dword [ebp - 0x28]
cdq
idiv dword [ebp - 4]
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x34]
sub ecx, dword [ebp - 0x3c]
add eax, dword [ebp - 0x5c]
add ecx, eax
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x34], ecx
push dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
call fcn.0106fe90
cmp dword [ebp + 0x10], 0
je 0x10700c0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [ebp - 8]
lea esi, [ebp - 0x40]
lea edi, [ebp - 0x50]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x14], eax
call ebx
sub eax, dword [ebp - 8]
cmp eax, 0x14
jge 0x10700e6
push 0x14
pop ecx
sub ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
cmp dword [ebp + 0x10], eax
jne 0x1070108
lea ecx, [ebp - 0x30]
push ecx
push 0x32
push 2
push eax
push eax
push 0x45d
push dword [0x10b10e8]
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
call ebx
mov esi, eax
mov dword [ebp - 8], eax
sub esi, dword [ebp - 0x18]
cmp esi, dword [ebp - 4]
jb 0x107005d
push dword [ebp - 0x2c]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov esi, dword [ebp - 0x1c]
xor edi, edi
pop ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x10]
mov ecx, esi
push dword [ebp + 8]
call fcn.0106fe90
cmp dword [ebp + 0x10], edi
pop edi
je 0x1070150
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_UpdateWindow]
pop esi
leave
ret 0xc