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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x487a9b
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x4bf1d0]
xor eax, esp
mov dword [esp + 0x94], eax
push esi
push edi
mov eax, dword [0x4bf1d0]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
cmp dword [ebx + 0x40], 0
je 0x4523cc
mov ecx, dword [ebx + 0x2c]
lea eax, [esp + 0x64]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x68]
mov esi, dword [esp + 0x64]
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
mov dword [ebx + 0x30], esi
mov dword [ebx + 0x34], edx
sub eax, edx
mov edx, dword [ebx + 0x2c]
sub ecx, esi
mov dword [ebx + 0x38], ecx
push edx
mov dword [ebx + 0x3c], eax
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0x2c
mov dword [esp + 0x14], eax
lea eax, [esp + 0x78]
push 0
push eax
call fcn.0046bab0
mov edx, dword [ebx + 0x3c]
mov ecx, dword [ebx + 0x38]
xor eax, eax
add esp, 0xc
push eax
mov dword [esp + 0x2c], eax
push eax
mov dword [esp + 0x30], edx
lea edx, [esp + 0x68]
push edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
push eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x40], eax
lea eax, [esp + 0x84]
mov dword [esp + 0x34], ecx
push eax
mov ecx, 0xa
lea esi, [esp + 0x34]
lea edi, [esp + 0x88]
mov dword [esp + 0x34], 0x28
mov dword [esp + 0x40], 0x200001
push 0
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov esi, dword [esp + 0x10]
mov edi, eax
push edi
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [esp + 0x10]
push ecx
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.gdiplus.dll_GdipCreateFromHDC]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
lea eax, [esp + 0x18]
mov dword [esp + 0xb0], 0
mov ecx, dword [ebx + 0x40]
push eax
call fcn.00445aa0
mov ecx, dword [ebx + 0x30]
mov dword [esp + 0xc], 0x1ff0000
mov dword [esp + 0x50], ecx
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x34]
mov ecx, dword [ebx + 0x3c]
mov dword [esp + 0x58], eax
xor eax, eax
test byte [0x4c9f94], 1
mov dword [esp + 0x54], edx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
jne 0x452357
or dword [0x4c9f94], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4c9f90], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 2
lea edx, [esp + 0x10]
push edx
push 0
mov dword [0x4c9f90], eax
lea eax, [esp + 0x54]
push eax
mov eax, dword [esp + 0x24]
push esi
lea ecx, [esp + 0x6c]
push ecx
mov ecx, dword [ebx + 0x2c]
lea edx, [esp + 0x68]
push edx
push eax
push ecx
call dword [sym.imp.USER32.dll_UpdateLayeredWindow]
mov edx, dword [esp + 0x18]
push esi
push edx
call dword [sym.imp.gdiplus.dll_GdipReleaseDC]
test eax, eax
je 0x4523a4
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + 0x2c]
push eax
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004682fb
mov esp, ebp
pop ebp
ret