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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62180c
mov eax, dword fs:[0]
push eax
sub esp, 0x2e8
mov eax, dword [0x68d9ac]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
mov dword [ebp - 0x25c], ebx
push eax
mov dword [ebp - 0x24c], 0
call fcn.005e3240
add esp, 0xc
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x254]
mov dword [ebp - 0x254], 0x104
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x258], 1
push eax
lea eax, [ebp - 0x258]
push eax
push str.Wallpaper
push str.Control_PanelDesktop
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x218]
push eax
call esi
test eax, eax
jne 0x458162
push eax
lea eax, [ebp - 0x218]
push eax
push 0x104
push 0x73
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
lea eax, [ebp - 0x218]
push eax
call esi
test eax, eax
jne 0x458162
lea eax, [ebp - 0x24c]
push eax
push 0x637b1c
push 1
push 0
push 0x637b3c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [ebp - 0x24c]
test ecx, ecx
je 0x458109
mov eax, dword [ecx]
lea edx, [ebp - 0x218]
push 2
push 0x104
push edx
push ecx
call dword [eax + 0x10]
mov eax, dword [ebp - 0x24c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebp - 0x24c], 0
lea eax, [ebp - 0x218]
push eax
call esi
test eax, eax
jne 0x458162
lea eax, [ebp - 0x250]
push eax
call fcn.00458c50
add esp, 4
push dword [ebp - 0x250]
call esi
test eax, eax
je 0x458144
push dword [ebp - 0x250]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
mov edx, dword [ebp - 0x250]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x458162
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call dword [sym.imp.ole32.dll_CoUninitialize]
call fcn.0047ce80
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4582f2
push 0x3e
push str.d:jenkins.jenkinsworkspacehalodeskcoral_desktoputils.cpp
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], al
call fcn.004080e0
push 3
push 0x6306cc
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.004080e0
mov byte [ebp - 4], 1
call fcn.0047ce80
mov edi, eax
lea ecx, [ebp - 0x2f4]
push 0x1ee
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00420130
mov esi, eax
push str.GetCurWallPaperPath:
push esi
mov byte [ebp - 4], 2
call fcn.00420890
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.0040c9f0
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x2f4]
call fcn.004209e0
mov edx, dword [ebp - 0x21c]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x45827b
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x458271
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45836c
push edx
push ecx
call fcn.004f9a35
add esp, 8
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x4582d7
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4582cd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x458371
push edx
push ecx
call fcn.004f9a35
add esp, 8
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.00407320
mov ecx, eax
test ecx, ecx
je 0x458376
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 3
push eax
mov ecx, ebx
call fcn.00408fd0
test al, al
jne 0x45834e
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x458330
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.0040b130
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f9a43
mov esp, ebp
pop ebp
ret
call fcn.005e6a79
call fcn.005e6a79
push 0x80004005
call fcn.00407030
int3