Function at 0x454170
Capabilities:
Change the wallpaper
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4cb2c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x65c
mov eax, dword [str._none_]
mov cx, word [0x4e24a8]
mov dl, byte [0x4e24aa]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x128], eax
mov word [esp + 0x12c], cx
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x12f]
mov byte [esp + 0x12e], dl
mov ebx, 1
rep stosd dword es:[edi], eax
push 0x7f02
push 0
mov dword [esp + 0x20], ebx
stosw word es:[edi], ax
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [esp + 0x67c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x680]
push 0x1f4
push str.Set_wallpaper
push eax
push ecx
call fcn.004539e0
mov ebp, dword [esp + 0x6a8]
add esp, 0x10
test ebp, ebp
mov esi, eax
je 0x454226
push ebp
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x454226
xor ebp, ebp
mov eax, dword [esp + 0x688]
test eax, eax
je 0x4547fc
push eax
lea ecx, [esp + 0x5c]
call fcn.00459cd0
mov edi, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 0
push 0
push 0x402
push 0x208
push esi
mov dword [esp + 0x688], 0
call edi
push 0x27100000
push 0
push 0x401
push 0x208
push esi
call edi
mov eax, dword [0x4e248c]
mov cx, word [0x4e2490]
mov edx, dword [str.Decoding]
mov dword [esp + 0x234], eax
mov word [esp + 0x238], cx
mov ecx, 0x46
xor eax, eax
lea edi, [esp + 0x23a]
mov dword [esp + 0x230], edx
lea edx, [esp + 0x230]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edx
call edi
mov ecx, 0x122
lea edx, [esp + 0x230]
sub ecx, eax
push ecx
push edx
call edi
lea eax, [esp + eax + 0x234]
lea ecx, [esp + 0x5c]
push eax
call fcn.0045b1b0
push eax
call sub.comdlg32.dll_GetFileTitleA
lea ecx, [esp + 0x230]
push ecx
push 0x1fb
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
lea ecx, [esp + 0xb4]
call fcn.00459c90
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call edi
push ebx
mov dword [esp + 0xb8], eax
call edi
test ebp, ebp
mov dword [esp + 0xb8], eax
je 0x454377
mov edx, dword [ebp + 8]
mov edi, dword [ebp]
sub edx, edi
lea ecx, [esp + 0x58]
inc edx
push edx
push 0xffffffffffffffff
call fcn.0045ac50
mov edi, dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
mov eax, dword [esp + 0xbc]
push eax
call edi
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0xb4], eax
sub ecx, dword [ebp + 4]
inc ecx
push ecx
push 0xffffffffffffffff
lea ecx, [esp + 0x60]
call fcn.0045acc0
mov edx, dword [esp + 0xb8]
push eax
push edx
call edi
mov dword [esp + 0xb8], eax
mov ecx, dword [esp + 0x694]
mov eax, dword [esp + 0x690]
lea edx, [esp + 0xb4]
mov dword [esp + 0xc8], ecx
push edx
lea ecx, [esp + 0x5c]
mov dword [esp + 0xc0], 4
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc8], eax
mov dword [esp + 0xd0], ebx
call fcn.0045a2c0
push 0xffffffffffffffff
lea ecx, [esp + 0x5c]
call fcn.0045b0c0
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x4544c8
mov eax, dword [0x4eba3c]
test eax, eax
jne 0x4544c8
push 0xffffffffffffffff
lea ecx, [esp + 0x5c]
call fcn.0045acc0
mov ecx, eax
mov eax, 0x51eb851f
add ecx, 0x32
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jge 0x454410
mov edx, 1
jmp 0x454431
push 0xffffffffffffffff
lea ecx, [esp + 0x5c]
call fcn.0045acc0
mov ecx, eax
mov eax, 0x51eb851f
add ecx, 0x32
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
push 0
push 0
push edx
lea ecx, [esp + 0x64]
call fcn.0045a6b0
test eax, eax
je 0x4544c8
push 0
lea ecx, [esp + 0x5c]
call fcn.0045b270
push eax
push 0x402
push 0x208
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 1
push 0
push 0
lea edx, [esp + 0x48]
push esi
push edx
call ebx
test eax, eax
je 0x4544ae
lea eax, [esp + 0x3c]
push eax
push esi
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x45449c
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
lea eax, [esp + 0x48]
push esi
push eax
call ebx
test eax, eax
jne 0x454476
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0xffffffffffffffff
lea ecx, [esp + 0x5c]
call fcn.0045b0c0
test eax, eax
je 0x4543d6
push 0xffffffffffffffff
lea ecx, [esp + 0x5c]
call fcn.0045b0c0
test eax, eax
jne 0x45451f
mov eax, dword [0x4eba3c]
test eax, eax
jne 0x4544fd
mov ecx, dword [esp + 0x684]
mov edx, dword [esp + 0x680]
push 0
push ecx
push str.Could_not_read_image.
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
lea ecx, [esp + 0x58]
mov dword [esp + 0x674], 0xffffffff
call fcn.00459f00
xor eax, eax
jmp 0x454ab9
push 0xffffffffffffffff
lea ecx, [esp + 0x5c]
call fcn.0045af80
test ebp, ebp
mov edi, eax
je 0x4545f7
push 0xffffffffffffffff
lea ecx, [esp + 0x5c]
call fcn.0045ad90
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x60]
call fcn.0045ac50
push eax
mov eax, dword [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push 0xffffffffffffffff
lea ecx, [esp + 0x5c]
mov dword [ebp], eax
call fcn.0045adf0
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x60]
call fcn.0045acc0
mov ecx, dword [ebp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
push 0xffffffffffffffff
lea ecx, [esp + 0x5c]
mov dword [ebp + 4], eax
call fcn.0045ad90
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x60]
call fcn.0045ac50
mov edx, dword [ebp + 8]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
push 0xffffffffffffffff
lea ecx, [esp + 0x5c]
mov dword [ebp + 8], eax
call fcn.0045adf0
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x60]
call fcn.0045acc0
push eax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [ebp + 4]
mov edx, dword [ebp]
mov dword [ebp + 0xc], eax
sub eax, ecx
inc eax
push eax
mov eax, dword [ebp + 8]
sub eax, edx
inc eax
push eax
push ecx
push edx
push edi
call fcn.0044a240
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4545f7
push 0xffffffffffffffff
lea ecx, [esp + 0x5c]
call fcn.0045af80
mov edi, eax
lea ecx, [esp + 0x564]
push 0x105
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x4e246c
lea edx, [esp + 0x460]
push str._s_Wallpaper.bmp
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x468]
lea ecx, [esp + 0x570]
push eax
lea edx, [esp + 0x138]
push ecx
push edx
call fcn.0044a2d0
add esp, 0x18
push str.Writing_BMP
push 0x1fb
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov ebp, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 0
push 0
push 0x402
push 0x208
push esi
call ebp
lea ecx, [esp + 0xec]
mov dword [esp + 0x18], 0
call fcn.00466720
lea eax, [esp + 0x128]
lea ecx, [esp + 0xec]
push eax
mov byte [esp + 0x678], 1
call fcn.004657a0
push edi
lea ecx, [esp + 0xf0]
call fcn.00465940
lea ecx, [esp + 0xec]
call fcn.00465ac0
test eax, eax
jl 0x4547c8
mov eax, dword [esp + 0x118]
mov edi, 0x2710
cmp eax, edi
jge 0x4547b0
mov eax, dword [0x4eba3c]
test eax, eax
jne 0x4547b0
push 0xffffffffffffffff
lea ecx, [esp + 0x5c]
call fcn.0045acc0
mov ecx, eax
mov eax, 0x51eb851f
add ecx, 0x32
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp edx, 1
jge 0x454709
mov edx, 1
jmp 0x45472a
push 0xffffffffffffffff
lea ecx, [esp + 0x5c]
call fcn.0045acc0
mov ecx, eax
mov eax, 0x51eb851f
add ecx, 0x32
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
push edx
lea ecx, [esp + 0xf0]
call fcn.00465b10
test eax, eax
jl 0x4547b0
mov ecx, dword [esp + 0x118]
push 0
push ecx
push 0x402
push 0x208
push esi
call ebp
push 1
push 0
push 0
lea edx, [esp + 0x48]
push esi
push edx
call ebx
test eax, eax
je 0x45479c
lea eax, [esp + 0x3c]
push eax
push esi
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x45478a
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
lea eax, [esp + 0x48]
push esi
push eax
call ebx
test eax, eax
jne 0x454764
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [esp + 0x118], edi
jl 0x4546cf
lea ecx, [esp + 0xec]
call fcn.00465b20
test eax, eax
jl 0x4547c8
mov dword [esp + 0x18], 1
lea ecx, [esp + 0xec]
mov byte [esp + 0x674], 0
call fcn.00465740
lea ecx, [esp + 0x58]
mov dword [esp + 0x674], 0xffffffff
call fcn.00459f00
mov eax, dword [esp + 0x18]
test eax, eax
je 0x454a86
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov ebp, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 2
push esi
call ebp
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call ebx
push str.Setting_Wallpaper
push 0x1fb
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 0
push 0
push 0x402
push 0x208
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
lea ecx, [esp + 0x10]
push ecx
push str.Control_Paneldesktop
push DrawStatusTextA
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x454a3a
mov al, byte [0x4eb858]
xor edx, edx
mov dword [esp + 0x21], edx
xor ecx, ecx
mov dword [esp + 0x25], edx
mov dword [esp + 0x2d], ecx
mov byte [esp + 0x29], dl
mov edx, dword [esp + 0x68c]
mov dword [esp + 0x31], ecx
mov byte [esp + 0x2c], al
mov byte [esp + 0x354], al
mov byte [esp + 0x35], cl
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x355]
mov byte [esp + 0x21], al
test edx, edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x688]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
setne dl
add edx, 0x30
test eax, eax
mov byte [esp + 0x20], dl
je 0x454990
lea eax, [esp + 0x14]
lea ecx, [esp + 0x354]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x20]
push ecx
push edx
push 0
push str.Wallpaper
push eax
mov dword [esp + 0x2c], 0x105
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push str.TileWallpaper
push ecx
mov dword [esp + 0x2c], 0xa
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x128]
lea eax, [esp + 0x354]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4549e5
lea ecx, [esp + 0x354]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
lea edx, [esp + 0x354]
push eax
mov eax, dword [esp + 0x14]
push edx
push 1
push 0
push str.PrevWallpaper
push eax
call edi
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
lea edx, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x14]
push edx
push 1
push 0
push str.PrevTileWallpaper
push eax
call edi
jmp 0x4549e5
lea ecx, [esp + 0x14]
lea edx, [esp + 0x128]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push str.PrevWallpaper
push ecx
mov dword [esp + 0x2c], 0x105
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x14]
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
push ecx
push 0
push str.PrevTileWallpaper
push edx
mov dword [esp + 0x2c], 0xa
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x10]
inc eax
lea ecx, [esp + 0x128]
push eax
push ecx
push 1
push 0
push str.Wallpaper
push edx
call edi
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x10]
inc eax
lea ecx, [esp + 0x20]
push eax
push ecx
push 1
push 0
push str.TileWallpaper
push edx
call edi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x128]
push 3
push ecx
push 0
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push 0
push 0x2710
push 0x402
push 0x208
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push 1
push 2
push esi
call ebp
push eax
call ebx
jmp 0x454aa3
mov edx, dword [esp + 0x684]
mov eax, dword [esp + 0x680]
push 0
push edx
push str.Could_not_write_bitmap.
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x38]
push ecx
call dword [sym.imp.USER32.dll_SetCursor]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x66c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x668
ret