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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x4241d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
movdqu xmm0, xmmword [eax]
mov esi, ecx
lea eax, [ebp - 0x14]
push eax
movdqu xmmword [ebp - 0x44], xmm0
push dword [esi + 4]
movdqu xmmword [ebp - 0x58], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
movdqu xmm1, xmmword [ebp - 0x44]
mov edx, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x58]
mov edi, dword [ebp - 0xc]
movdqa xmm0, xmm1
psrldq xmm0, 0xc
movd eax, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 4
mov ecx, eax
mov dword [ebp - 0x18], eax
movd eax, xmm0
sub ecx, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], ecx
cmp ecx, eax
jg 0x403023
mov ecx, edi
mov eax, edx
sub ecx, dword [ebp - 0x14]
sub eax, ebx
cmp eax, ecx
jg 0x403023
xor ecx, ecx
jmp 0x403028
mov ecx, 1
sub ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
sub ebx, edi
sub eax, dword [ebp - 0x10]
add ebx, edx
sub eax, dword [ebp - 8]
add eax, dword [ebp - 0x18]
mov edi, dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x30], eax
test ecx, ecx
je 0x4030c6
neg eax
push eax
mov eax, ebx
neg eax
push eax
lea eax, [ebp - 0x14]
push eax
movdqu xmmword [ebp - 0x14], xmm1
call dword [sym.imp.USER32.dll_OffsetRect]
cmp dword [esi + 0x94], 0
je 0x4030a4
movdqu xmm0, xmmword [esi + 0x4c]
push 2
lea eax, [ebp - 0x44]
mov ecx, esi
push eax
movdqu xmmword [ebp - 0x44], xmm0
call fcn.00401240
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x44]
sub eax, edx
push 0x34
push eax
mov eax, dword [ebp - 0x3c]
sub eax, ecx
push eax
push edx
push ecx
push 0
push dword [esi + 4]
call edi
mov eax, dword [esi + 0x34]
jmp 0x4030c9
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
sub eax, edx
mov ecx, dword [ebp - 0x14]
push 0x34
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push edx
push ecx
push 0
push dword [esi + 4]
call edi
mov eax, dword [esi + 0x34]
jmp 0x4030c9
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, eax
push edi
mov dword [ebp - 0x34], edi
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 2
push edi
mov dword [ebp - 0x48], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov dword [ebp - 0x18], eax
call edi
mov edx, dword [ebp - 0x18]
mov ecx, eax
mov eax, dword [ebp - 0x1c]
add eax, edx
mov dword [ebp - 0x28], eax
cmp ecx, eax
jge 0x403162
mov edi, dword [sym.imp.USER32.dll_UpdateWindow]
mov edi, edi
sub ecx, edx
mov eax, ecx
imul ecx, ebx
imul eax, dword [ebp - 0x30]
push 0x15
push 0
push 0
cdq
idiv dword [ebp - 0x1c]
add eax, dword [ebp - 0x10]
push eax
mov eax, ecx
cdq
idiv dword [ebp - 0x1c]
add eax, dword [ebp - 0x14]
push eax
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [ebp - 0x24], 0
je 0x403149
push dword [esi + 4]
jmp 0x403150
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp - 0x18]
mov ecx, eax
cmp ecx, dword [ebp - 0x28]
jl 0x403110
push dword [ebp - 0x48]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x50]
push 0x34
push dword [ebp - 0x2c]
sub eax, ecx
push eax
push dword [ebp - 0x20]
push ecx
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ad72
mov esp, ebp
pop ebp
ret 4