Function at 0x456442
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
lea ebp, [esp - 0x92c]
sub esp, 0x9ac
mov eax, dword [0x488548]
xor eax, ebp
mov dword [ebp + 0x928], eax
cmp dword [0x4895ac], 2
mov eax, dword [ebp + 0x93c]
push ebx
mov ebx, dword [ebp + 0x938]
push esi
mov esi, dword [ebp + 0x934]
push edi
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x4c], 0x64
jne 0x4564e8
cmp dword [0x489740], 0
jne 0x4564cb
push 0x473a68
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.SetLayeredWindowAttributes
push edi
call esi
push str.UpdateLayeredWindow
push edi
mov dword [0x489740], eax
call esi
cmp dword [0x489740], 0
mov dword [0x48a8d4], eax
je 0x456ba4
push 0xffffffffffffffec
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 0x80000
push eax
push 0xffffffffffffffec
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongW]
jmp 0x456ba4
push eax
lea eax, [ebp - 0x38]
xor ecx, ecx
push str.O__s
push eax
mov word [ebp + 0x478], cx
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [sym.imp.PPLIB32W.DLL__GetCustTable_16]
add esp, 0xc
push 0x4b0
lea eax, [ebp + 0x478]
push eax
lea eax, [ebp - 0x38]
push eax
mov ebx, str.X_bg
push ebx
call edi
test eax, eax
je 0x45653a
push 0x4b0
lea eax, [ebp + 0x478]
push eax
push str.Opaque
push ebx
call edi
cmp word [ebp + 0x478], 0
je 0x45655f
lea eax, [ebp + 0x478]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.PPLIB32W.DLL__GetNumber_4]
cmp eax, 0x64
mov dword [ebp - 0x54], eax
jl 0x456598
cmp dword [0x489740], 0
je 0x456584
push 0xffffffffffffffec
push dword [ebp - 0x3c]
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xfff7ffff
push eax
push 0xffffffffffffffec
push dword [ebp - 0x3c]
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [0x489738]
test eax, eax
je 0x4566b8
push 0x47fb14
jmp 0x45660b
test eax, eax
jge 0x456615
mov eax, dword [0x48972c]
test eax, eax
jne 0x4565ba
push 0xd
call dword [sym.imp.PPLIB32W.DLL__LoadSystemDLL_4]
mov dword [0x48972c], eax
test eax, eax
je 0x4566b8
push str.DwmEnableBlurBehindWindow
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x47fb24
push dword [ebp - 0x3c]
mov dword [0x489738], eax
call eax
cmp dword [0x48aa04], 0xa
jb 0x4566b8
push 0x473a68
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.SetWindowCompositionAttribute
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x48973c], eax
test eax, eax
je 0x4566b8
push 0x488510
push dword [ebp - 0x3c]
call eax
jmp 0x4566b8
cmp dword [0x489740], 0
jne 0x456659
push 0x473a68
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.SetLayeredWindowAttributes
push eax
mov dword [ebp - 0x58], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.UpdateLayeredWindow
push dword [ebp - 0x58]
mov dword [0x489740], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x489740], 0
mov dword [0x48a8d4], eax
je 0x4566b8
push dword [ebp - 0x3c]
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
jne 0x4566b8
push 0xffffffffffffffec
push dword [ebp - 0x3c]
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 0x80000
push eax
push 0xffffffffffffffec
push dword [ebp - 0x3c]
call dword [sym.imp.USER32.dll_SetWindowLongW]
cmp dword [0x4895ac], 2
je 0x4566b8
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x4566a5
imul eax, eax, 0xff
push 2
push 0x64
pop ecx
cdq
idiv ecx
push eax
push 0
jmp 0x4566af
push 1
push 0
push dword [0x4895e0]
push dword [ebp - 0x3c]
call dword [0x489740]
test esi, esi
je 0x456ba4
push dword [ebp - 0x44]
xor eax, eax
mov word [ebp + 0x478], ax
lea eax, [ebp - 0x38]
push str.T__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x4b0
lea eax, [ebp + 0x478]
push eax
lea eax, [ebp - 0x38]
push eax
push ebx
call edi
test eax, eax
je 0x456718
push 0x4b0
lea eax, [ebp + 0x478]
push eax
push str.Type
push ebx
call edi
test eax, eax
je 0x456718
push esi
call fcn.0045640d
jmp 0x456ba4
lea eax, [ebp + 0x478]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.PPLIB32W.DLL__GetNumber_4]
mov dword [ebp - 0x40], eax
test eax, eax
je 0x45670d
cmp eax, 0xa
jne 0x456772
xor eax, eax
push 0x258
mov word [ebp + 0x478], ax
lea eax, [ebp + 0x478]
push eax
push str.TileWallpaper
push str.SoftwareMicrosoftInternet_ExplorerDesktopGeneral
push 0x80000001
call dword [sym.imp.PPLIB32W.DLL__GetRegString_20]
cmp word [ebp + 0x478], 0x31
jne 0x45678c
mov dword [ebp - 0x40], 0xb
cmp dword [ebp - 0x40], 0x14
jne 0x45678c
push dword [ebp - 0x3c]
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
jne 0x45678c
mov dword [ebp - 0x40], 1
push dword [ebp - 0x44]
xor eax, eax
mov word [ebp + 0x478], ax
lea eax, [ebp - 0x38]
push str.B__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x4b0
lea eax, [ebp + 0x478]
push eax
lea eax, [ebp - 0x38]
push eax
push ebx
call edi
test eax, eax
je 0x4567d5
push 0x4b0
lea eax, [ebp + 0x478]
push eax
push str.Bright
push ebx
call edi
cmp word [ebp + 0x478], 0
je 0x4567f5
lea eax, [ebp + 0x478]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.PPLIB32W.DLL__GetNumber_4]
mov dword [ebp - 0x4c], eax
push dword [ebp - 0x44]
xor eax, eax
mov word [ebp + 0x478], ax
lea eax, [ebp - 0x38]
push str.P__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x4b0
lea eax, [ebp + 0x478]
push eax
lea eax, [ebp - 0x38]
push eax
push ebx
call edi
test eax, eax
je 0x45683e
push 0x4b0
lea eax, [ebp + 0x478]
push eax
push str.Path
push ebx
call edi
xor eax, eax
cmp word [ebp + 0x478], ax
je 0x456866
push 0x18
push eax
lea ecx, [ebp + 0x478]
push ecx
push eax
call dword [sym.imp.PPLIB32W.DLL__VFSFixPath_16]
mov ebx, 0x80000001
mov edi, 0x258
jmp 0x4568c7
mov edi, 0x258
push edi
lea eax, [ebp + 0x478]
push eax
push str.Wallpaper
push str.SoftwareMicrosoftInternet_ExplorerDesktopGeneral
mov ebx, 0x80000001
push ebx
call dword [sym.imp.PPLIB32W.DLL__GetRegString_20]
lea eax, [ebp + 0x478]
push eax
call dword [sym.imp.PPLIB32W.DLL__GetFileAttributesL_4]
cmp eax, 0xffffffff
jne 0x4568a4
xor eax, eax
mov word [ebp + 0x478], ax
cmp word [ebp + 0x478], 0
jne 0x4568d1
push edi
lea eax, [ebp + 0x478]
push eax
push str.Wallpaper
push str.Control_PanelDesktop
push ebx
call dword [sym.imp.PPLIB32W.DLL__GetRegString_20]
cmp word [ebp + 0x478], 0
je 0x456901
lea eax, [ebp + 0x478]
push eax
call dword [sym.imp.PPLIB32W.DLL__GetFileAttributesL_4]
cmp eax, 0xffffffff
jne 0x456901
push str.Wallpaper_file_not_found
push 0xbffc
push dword [0x48b024]
push dword [ebp - 0x3c]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x456ba4
push dword [ebp - 0x4c]
and dword [esi + 0x45c], 0
lea eax, [ebp + 0x478]
push eax
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.PPLIB32W.DLL__LoadBMP_12]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x40]
mov dword [esi + 0x458], eax
cmp eax, 0xa
jne 0x456ba4
xor eax, eax
push edi
mov word [ebp + 0x478], ax
lea eax, [ebp + 0x478]
push eax
push str.WallpaperStyle
push str.Control_PanelDesktop
push ebx
call dword [sym.imp.PPLIB32W.DLL__GetRegString_20]
cmp word [ebp + 0x478], 0x30
jbe 0x456ba4
push dword [ebp - 0x3c]
call dword [sym.imp.USER32.dll_GetDC]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ebx, eax
push 8
push ebx
call edi
push 0xa
push ebx
mov dword [ebp - 0x40], eax
call edi
push ebx
push dword [ebp - 0x3c]
mov edi, eax
mov dword [ebp - 0x44], edi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 0x40]
cmp eax, dword [esi + 0x20]
jne 0x4569a0
cmp edi, dword [esi + 0x24]
je 0x456ba4
cmp dword [0x48aa04], 6
jae 0x4569b7
mov eax, dword [esi + 0x28]
cmp word [eax + 0xe], 8
jbe 0x456ba4
mov eax, dword [esi + 0x28]
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x4569c5
mov edx, ecx
jmp 0x4569d4
movzx ecx, word [eax + 0xe]
xor edx, edx
cmp cx, 8
ja 0x4569d7
inc edx
shl edx, cl
shl edx, 2
movzx edi, word [eax + 0xe]
imul edi, dword [ebp - 0x40]
mov ebx, dword [esi + 0x2c]
push dword [ebp - 0x3c]
add edi, 0x1f
shr edi, 3
add ebx, edx
and edi, 0x1ffffffc
imul edi, dword [ebp - 0x44]
mov dword [ebp - 0x58], ebx
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [ebp - 0x4c], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x48], eax
lea eax, [edi + ebx]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push dword [ebp - 0x58]
mov ebx, eax
push dword [esi + 0x28]
push ebx
call fcn.00468fa0
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebx], 0x28
mov dword [ebx + 4], edx
mov dword [ebx + 8], ecx
mov dword [ebx + 0x10], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x54], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x64], eax
mov eax, dword [esi + 0x24]
add esp, 0xc
cmp word [ebp + 0x478], 0x31
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], ecx
jne 0x456a7c
imul eax, edx
cdq
idiv dword [ebp - 0x64]
mov dword [ebp - 0x5c], eax
mov eax, ecx
sub eax, dword [ebp - 0x5c]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x6c], eax
jmp 0x456aa1
cmp word [ebp + 0x478], 0x36
jne 0x456aa1
mov eax, dword [ebp - 0x64]
imul eax, ecx
cdq
idiv dword [ebp - 0x68]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x60]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x54], eax
xor eax, eax
push eax
push eax
lea ecx, [ebp - 0x70]
push ecx
push eax
push ebx
push dword [ebp - 0x4c]
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push eax
push dword [ebp - 0x48]
mov dword [ebp - 0x74], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 4
push dword [ebp - 0x48]
mov dword [ebp - 0x78], eax
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
mov dword [ebp - 0x7c], eax
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x456af1
push 0
push eax
push dword [ebp - 0x48]
call dword [sym.imp.GDI32.dll_SelectPalette]
push dword [ebp - 0x48]
mov dword [ebp - 0x80], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
push 0xcc0020
xor eax, eax
push eax
push dword [esi + 0x28]
push dword [esi + 0x10]
push dword [ebp - 0x68]
push dword [ebp - 0x64]
push eax
push eax
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
push dword [ebp - 0x6c]
push dword [ebp - 0x54]
push dword [ebp - 0x48]
call dword [sym.imp.GDI32.dll_StretchDIBits]
cmp dword [esi + 0x1c], 0
je 0x456b30
push 0
push dword [ebp - 0x80]
push dword [ebp - 0x4c]
call dword [sym.imp.GDI32.dll_SelectPalette]
push dword [ebp - 0x7c]
push dword [ebp - 0x48]
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
push dword [ebp - 0x78]
push dword [ebp - 0x48]
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x456b5f
push eax
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x58]
push edi
push dword [ebp - 0x70]
add eax, ebx
push eax
mov dword [esi + 0x28], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], eax
call fcn.00468fa0
mov eax, dword [ebp - 0x40]
add esp, 0xc
push dword [ebp - 0x74]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x44]
mov dword [esi + 0x24], eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x48]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 0x4c]
push dword [ebp - 0x3c]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [ebp + 0x928]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046890b
add ebp, 0x92c
leave
ret 0xc