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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
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]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x58], ecx
push eax
push dword [ecx + 4]
movdqu xmmword [ebp - 0x44], xmm0
movdqu xmmword [ebp - 0x24], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
movdqu xmm1, xmmword [ebp - 0x44]
mov edx, dword [ebp - 0x24]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x14]
movdqa xmm0, xmm1
psrldq xmm0, 0xc
movd eax, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 4
mov ecx, eax
mov dword [ebp - 0x64], eax
movd eax, xmm0
sub ecx, eax
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0x70], ecx
cmp ecx, eax
jg 0x403227
mov eax, dword [ebp - 0x1c]
mov ecx, esi
sub ecx, edi
sub eax, edx
cmp eax, ecx
jg 0x403227
xor eax, eax
jmp 0x40322c
mov eax, 1
mov ecx, dword [ebp - 0x1c]
mov ebx, edx
sub ebx, edi
mov dword [ebp - 0x5c], eax
mov edi, dword [ebp - 0x68]
sub ebx, esi
sub edi, dword [ebp - 0x10]
add ebx, ecx
sub edi, dword [ebp - 8]
mov esi, dword [ebp - 0x58]
add edi, dword [ebp - 0x64]
mov dword [ebp - 0x84], edi
mov esi, dword [esi + 0x90]
test eax, eax
je 0x4032fa
mov eax, edi
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]
lea eax, [ebp - 0x44]
xorps xmm0, xmm0
push eax
push esi
movdqu xmmword [ebp - 0x44], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
push 0x5d
push 0
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x3c]
cmp edx, ecx
jle 0x4032b2
mov eax, edx
mov edx, ecx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x40]
cmp ecx, dword [ebp - 0x38]
jle 0x4032c5
mov eax, ecx
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x38], eax
neg ecx
lea eax, [ebp - 0x44]
push ecx
neg edx
push edx
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push dword [ebp - 0x38]
mov dword [ebp - 0x40], edi
push dword [ebp - 0x3c]
push edi
push dword [ebp - 0x44]
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push 1
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowRgn]
mov eax, dword [ebp - 0x58]
mov eax, dword [eax + 0x34]
jmp 0x40331c
push 0x3c
push dword [ebp - 0x70]
mov eax, ecx
sub eax, edx
push eax
push dword [ebp - 0x68]
mov eax, dword [ebp - 0x58]
push edx
push 0
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebp - 0x58]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x60], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x34]
push eax
push esi
movdqu xmmword [ebp - 0x34], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
movdqu xmm0, xmmword [ebp - 0x34]
movd eax, xmm0
movdqu xmmword [ebp - 0x54], xmm0
psrldq xmm0, 8
movd edx, xmm0
cmp eax, edx
jle 0x403355
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x4c], eax
jmp 0x403358
mov edx, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x50]
cmp ecx, dword [ebp - 0x48]
jle 0x40336b
mov eax, ecx
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x48], eax
neg ecx
lea eax, [ebp - 0x54]
push ecx
neg edx
push edx
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
mov dword [ebp - 0x64], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 2
push dword [ebp - 0x64]
mov dword [ebp - 0x80], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x6c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp - 0x6c]
mov ecx, eax
mov eax, dword [ebp - 0x60]
add eax, edx
cmp ecx, eax
jge 0x40345d
xor eax, eax
cmp dword [ebp - 0x5c], eax
sete al
mov dword [ebp - 0x78], eax
sub ecx, edx
mov eax, ecx
imul ecx, edi
imul eax, ebx
cdq
idiv dword [ebp - 0x60]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x74], eax
mov eax, ecx
cdq
idiv dword [ebp - 0x60]
mov ecx, dword [ebp - 0x34]
add eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x30]
sub ecx, dword [ebp - 0x74]
sub edx, eax
cmp dword [ebp - 0x5c], 0
mov dword [ebp - 0x7c], eax
je 0x4033fa
add edx, edi
add ecx, ebx
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push edx
push ecx
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push dword [ebp - 0x78]
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowRgn]
push 0x1d
push 0
push 0
push dword [ebp - 0x7c]
push dword [ebp - 0x74]
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [ebp - 0x5c], 0
je 0x403431
push esi
jmp 0x403438
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [ebp - 0x84]
mov ecx, eax
mov eax, dword [ebp - 0x6c]
add eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x6c]
cmp ecx, eax
jl 0x4033c5
push dword [ebp - 0x80]
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
mov ebx, dword [sym.imp.USER32.dll_SetWindowPos]
sub eax, edi
push 0x18
push dword [ebp - 0x70]
push eax
push dword [ebp - 0x68]
mov eax, dword [ebp - 0x58]
push edi
push esi
push dword [eax + 4]
call ebx
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowRgn]
cmp dword [ebp - 0x5c], 0
jne 0x4034d7
lea eax, [ebp - 0x24]
xorps xmm0, xmm0
push eax
push esi
movdqu xmmword [ebp - 0x24], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x18]
push 0xb5
push 0
push 0
push eax
push edi
push 0
push esi
call ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ad72
mov esp, ebp
pop ebp
ret 4
push 0x1d
push 0
push 0
push dword [ebp - 0x68]
push edi
push 0
push esi
call ebx
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ad72
mov esp, ebp
pop ebp
ret 4