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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x625abc
mov eax, dword fs:[0]
push eax
sub esp, 0x2e8
mov eax, dword [0x690a1c]
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.005e3920
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 0x458852
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 0x458852
lea eax, [ebp - 0x24c]
push eax
push 0x63bc0c
push 1
push 0
push 0x63bc2c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [ebp - 0x24c]
test ecx, ecx
je 0x4587f9
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 0x458852
lea eax, [ebp - 0x250]
push eax
call fcn.00459340
add esp, 4
push dword [ebp - 0x250]
call esi
test eax, eax
je 0x458834
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 0x458852
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call dword [sym.imp.ole32.dll_CoUninitialize]
call fcn.0047d560
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4589e2
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.004081d0
push 3
push 0x6346cc
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.004081d0
mov byte [ebp - 4], 1
call fcn.0047d560
mov edi, eax
lea ecx, [ebp - 0x2f4]
push 0x1ee
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00420260
mov esi, eax
push str.GetCurWallPaperPath:
push esi
mov byte [ebp - 4], 2
call fcn.004209c0
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.0040cae0
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x2f4]
call fcn.00420b10
mov edx, dword [ebp - 0x21c]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x45896b
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x458961
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x458a5c
push edx
push ecx
call fcn.004fa0f5
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 0x4589c7
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4589bd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x458a61
push edx
push ecx
call fcn.004fa0f5
add esp, 8
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.00407410
mov ecx, eax
test ecx, ecx
je 0x458a66
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.004090c0
test al, al
jne 0x458a3e
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x458a20
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.0040b220
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.004fa103
mov esp, ebp
pop ebp
ret
call fcn.005e72a0
call fcn.005e72a0
push 0x80004005
call fcn.00407120
int3