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

Disassembly:
sub esp, 0x2c
mov eax, dword [esp + 0x34]
push ebx
push ebp
push esi
mov esi, dword [eax]
push edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x2c], esi
mov edi, dword [eax + 4]
mov dword [esp + 0x30], edi
mov ebx, dword [eax + 8]
mov dword [esp + 0x34], ebx
mov ebp, dword [eax + 0xc]
mov eax, dword [ecx + 8]
test eax, eax
jle 0x402fd0
mov eax, dword [ecx + 4]
test eax, eax
jle 0x402fd0
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov ecx, eax
sub ecx, edx
mov edx, ebp
sub edx, edi
cmp edx, ecx
jg 0x402e8a
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
sub ecx, edx
mov edx, ebx
sub edx, esi
mov dword [esp + 0x44], 0
cmp edx, ecx
jle 0x402e92
mov dword [esp + 0x44], 1
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
sub esi, edx
sub esi, ecx
mov ecx, dword [esp + 0x20]
sub edi, ecx
add esi, ebx
sub edi, eax
mov eax, dword [esp + 0x44]
add edi, ebp
test eax, eax
je 0x402f0f
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
mov edx, edi
mov eax, esi
mov dword [esp + 0x20], ecx
neg edx
neg eax
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebp
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
sub edx, eax
push 0x34
push edx
mov edx, dword [esp + 0x2c]
sub edx, ecx
push edx
push eax
mov eax, dword [esp + 0x50]
push ecx
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esp + 0x10]
mov ebx, dword [ecx + 8]
jmp 0x402f16
mov edx, dword [esp + 0x10]
mov ebx, dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x10]
add ecx, ebx
cmp eax, ecx
jge 0x402fb4
mov edx, dword [esp + 0x10]
mov ecx, eax
sub ecx, edx
push 0x15
mov eax, ecx
push 0
imul eax, edi
cdq
idiv ebx
mov edx, dword [esp + 0x28]
push 0
add eax, edx
push eax
mov eax, ecx
imul eax, esi
cdq
idiv ebx
mov edx, dword [esp + 0x2c]
add eax, edx
mov edx, dword [esp + 0x50]
push eax
push 0
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esp + 0x44]
test eax, eax
mov eax, dword [esp + 0x40]
jne 0x402f9d
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x10]
add ecx, ebx
cmp eax, ecx
jl 0x402f52
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x40]
sub ebp, edi
push 0x34
sub ebx, esi
push ebp
push ebx
push edi
push esi
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 8