Function at 0x41ea60
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
lea ebp, [esp - 0x92c]
sub esp, 0x9ac
mov eax, dword [0x437b00]
xor eax, ebp
mov dword [ebp + 0x928], eax
cmp dword [0x439060], 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 0x41eb06
cmp dword [0x4390e8], 0
jne 0x41eae9
push 0x42d704
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 [0x4390e8], eax
call esi
cmp dword [0x4390e8], 0
mov dword [0x439bd0], eax
je 0x41f1c2
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 0x41f1c2
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 0x41eb58
push 0x4b0
lea eax, [ebp + 0x478]
push eax
push str.Opaque
push ebx
call edi
cmp word [ebp + 0x478], 0
je 0x41eb7d
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 0x41ebb6
cmp dword [0x4390e8], 0
je 0x41eba2
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 [0x4390e0]
test eax, eax
je 0x41ecd6
push 0x4318ec
jmp 0x41ec29
test eax, eax
jge 0x41ec33
mov eax, dword [0x4390d4]
test eax, eax
jne 0x41ebd8
push 0xd
call dword [sym.imp.PPLIB32W.DLL__LoadSystemDLL_4]
mov dword [0x4390d4], eax
test eax, eax
je 0x41ecd6
push str.DwmEnableBlurBehindWindow
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4318fc
push dword [ebp - 0x3c]
mov dword [0x4390e0], eax
call eax
cmp dword [0x43b404], 0xa
jb 0x41ecd6
push 0x42d704
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.SetWindowCompositionAttribute
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4390e4], eax
test eax, eax
je 0x41ecd6
push 0x437a30
push dword [ebp - 0x3c]
call eax
jmp 0x41ecd6
cmp dword [0x4390e8], 0
jne 0x41ec77
push 0x42d704
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 [0x4390e8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x4390e8], 0
mov dword [0x439bd0], eax
je 0x41ecd6
push dword [ebp - 0x3c]
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
jne 0x41ecd6
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 [0x439060], 2
je 0x41ecd6
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x41ecc3
imul eax, eax, 0xff
push 2
push 0x64
pop ecx
cdq
idiv ecx
push eax
push 0
jmp 0x41eccd
push 1
push 0
push dword [0x439078]
push dword [ebp - 0x3c]
call dword [0x4390e8]
test esi, esi
je 0x41f1c2
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 0x41ed36
push 0x4b0
lea eax, [ebp + 0x478]
push eax
push str.Type
push ebx
call edi
test eax, eax
je 0x41ed36
push esi
call fcn.0041ea2b
jmp 0x41f1c2
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 0x41ed2b
cmp eax, 0xa
jne 0x41ed90
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 0x41edaa
mov dword [ebp - 0x40], 0xb
cmp dword [ebp - 0x40], 0x14
jne 0x41edaa
push dword [ebp - 0x3c]
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
jne 0x41edaa
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 0x41edf3
push 0x4b0
lea eax, [ebp + 0x478]
push eax
push str.Bright
push ebx
call edi
cmp word [ebp + 0x478], 0
je 0x41ee13
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 0x41ee5c
push 0x4b0
lea eax, [ebp + 0x478]
push eax
push str.Path
push ebx
call edi
xor eax, eax
cmp word [ebp + 0x478], ax
je 0x41ee84
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 0x41eee5
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 0x41eec2
xor eax, eax
mov word [ebp + 0x478], ax
cmp word [ebp + 0x478], 0
jne 0x41eeef
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 0x41ef1f
lea eax, [ebp + 0x478]
push eax
call dword [sym.imp.PPLIB32W.DLL__GetFileAttributesL_4]
cmp eax, 0xffffffff
jne 0x41ef1f
push str.Wallpaper_file_not_found
push 0xbffc
push dword [0x43b660]
push dword [ebp - 0x3c]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x41f1c2
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 0x41f1c2
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 0x41f1c2
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 0x41efbe
cmp edi, dword [esi + 0x24]
je 0x41f1c2
cmp dword [0x43b404], 6
jae 0x41efd5
mov eax, dword [esi + 0x28]
cmp word [eax + 0xe], 8
jbe 0x41f1c2
mov eax, dword [esi + 0x28]
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x41efe3
mov edx, ecx
jmp 0x41eff2
movzx ecx, word [eax + 0xe]
xor edx, edx
cmp cx, 8
ja 0x41eff5
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.004223c0
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 0x41f09a
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 0x41f0bf
cmp word [ebp + 0x478], 0x36
jne 0x41f0bf
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 0x41f10f
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 0x41f14e
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 0x41f17d
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.004223c0
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.00422725
add ebp, 0x92c
leave
ret 0xc