Function at 0x45f720
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c018
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x60f520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx], 0
mov dword [ebp - 0x24], 8
jne 0x45fa6f
push ebx
push 0x5abbf8
push 1
push 0
push 0x5abbe8
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp dword [ebx], 0
mov dword [ebp - 0x1c], eax
je 0x45fa6f
mov eax, dword [ebx + 4]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
jge 0x45f79f
push 0x104
lea ecx, [ebx + 4]
call fcn.0040c110
push 0
push dword [ebx + 4]
push 0x104
push 0x73
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [ebx + 4]
test eax, eax
jne 0x45f7bc
xor ecx, ecx
jmp 0x45f7d2
push dword [eax - 8]
push eax
call fcn.00551cd2
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x45f90a
mov eax, dword [ebx + 4]
cmp ecx, dword [eax - 8]
jg 0x45f90a
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebx + 4]
mov word [eax + ecx*2], dx
push dword [ebx + 4]
mov dword [ebp - 0x14], 0x104
mov dword [ebp - 0x18], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x45f8b9
call fcn.0050acc0
mov eax, dword [ebx + 4]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
cmp dword [0x6412b4], 0x800
jl 0x45f85b
or eax, ecx
jge 0x45f844
push 0x104
lea ecx, [ebx + 4]
call fcn.0040c110
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 4]
lea eax, [ebp - 0x18]
push eax
push 0x5c0950
push str.SoftwareMicrosoftInternet_ExplorerDesktopGeneral
jmp 0x45f881
or eax, ecx
jge 0x45f86c
push 0x104
lea ecx, [ebx + 4]
call fcn.0040c110
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 4]
lea eax, [ebp - 0x18]
push eax
push str.Wallpaper
push str.Control_PanelDesktop
push SysReAllocString
call esi
mov eax, dword [ebx + 4]
test eax, eax
jne 0x45f893
xor ecx, ecx
jmp 0x45f8a5
push dword [eax - 8]
push eax
call fcn.00551cd2
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x45f90a
mov eax, dword [ebx + 4]
cmp ecx, dword [eax - 8]
jg 0x45f90a
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebx + 4]
mov word [eax + ecx*2], dx
push dword [ebx + 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45f93a
mov eax, dword [ebx + 4]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
jge 0x45f8ea
push 0x104
lea ecx, [ebx + 4]
call fcn.0040c110
mov eax, dword [ebx]
push 2
push 0x104
push dword [ebx + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 4]
test eax, eax
jne 0x45f914
xor ecx, ecx
jmp 0x45f926
push 0x80070057
call fcn.0040c390
push dword [eax - 8]
push eax
call fcn.00551cd2
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x45f90a
mov eax, dword [ebx + 4]
cmp ecx, dword [eax - 8]
jg 0x45f90a
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebx + 4]
mov word [eax + ecx*2], dx
call fcn.0040bce0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x45f956
push 0x80004005
call fcn.0040c390
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x45f98e
push 0x104
lea ecx, [ebp - 0x10]
call fcn.0040c110
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push str.ConvertedWallpaper
push str.Control_PanelDesktop
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push dword [esi - 8]
push esi
call fcn.00551cd2
add esp, 8
test eax, eax
js 0x45f90a
cmp eax, dword [esi - 8]
jg 0x45f90a
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [esi - 0xc], ecx
je 0x45f9f3
mov eax, dword [ebx + 0xc]
cmp dword [eax - 0xc], ecx
je 0x45f9f3
push eax
lea ecx, [ebp - 0x10]
call fcn.0040b8f0
test eax, eax
je 0x45f9f3
mov dword [ebx + 0x10], 1
lea eax, [ebp - 0x10]
lea ecx, [ebx + 0xc]
push eax
call fcn.0040b7d0
cmp dword [ebp - 0x1c], 0
je 0x45fa0d
lea ecx, [ebx + 4]
call fcn.0040bff0
mov eax, dword [ebx]
lea edx, [ebp - 0x24]
push 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
test eax, eax
jne 0x45fa25
mov eax, dword [ebp - 0x20]
mov dword [ebx + 8], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x45fa37
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebx], 0
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45fa58
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret