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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007f816
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x100a6250]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov esi, dword [sym.imp.ole32.dll_CoCreateInstance]
lea eax, [ebp - 0x22c]
push eax
push 0x100893d0
push 1
push 0
push 0x100893e0
mov dword [ebp - 0x22c], 0
call esi
mov ecx, dword [ebp - 0x22c]
test ecx, ecx
je 0x10009c76
xorps xmm0, xmm0
lea edx, [ebp - 0x228]
movlpd qword [ebp - 0x228], xmm0
push 0
mov dword [ebp - 0x228], 8
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x18]
test eax, eax
jne 0x10009a86
mov eax, dword [ebp - 0x22c]
lea edx, [ebp - 0x228]
push 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x234], 0
push 0
push eax
mov dword [ebp - 0x230], 0
call fcn.100456c0
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push 0x100893d0
push 1
push 0
push 0x100893e0
call esi
push 0
lea eax, [ebp - 0x218]
push eax
push 0x104
push 0x73
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x21c], 0x104
mov dword [ebp - 0x220], 1
call esi
test eax, eax
jne 0x10009b2e
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x220]
push eax
push str.Wallpaper
push str.Control_PanelDesktop
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0x218]
push eax
call esi
test eax, eax
jne 0x10009b59
mov ecx, dword [ebp - 0x230]
test ecx, ecx
je 0x10009b73
mov eax, dword [ecx]
lea edx, [ebp - 0x218]
push 2
push 0x104
push edx
push ecx
call dword [eax + 0x10]
mov ecx, dword [ebp - 0x230]
test ecx, ecx
je 0x10009b73
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x230], 0
lea eax, [ebp - 0x218]
push eax
call esi
test eax, eax
jne 0x10009b91
lea eax, [ebp - 0x234]
push eax
call fcn.10009530
add esp, 4
jmp 0x10009bf6
call fcn.10006f60
mov ecx, eax
test ecx, ecx
je 0x10009c96
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x234]
call fcn.10008d80
test al, al
jne 0x10009bf6
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10009bd4
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.10007190
push dword [ebp - 0x234]
mov dword [ebp - 4], 1
call esi
test eax, eax
je 0x10009c1d
mov eax, dword [ebp - 0x22c]
push 0
push dword [ebp - 0x234]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
call fcn.10009920
test al, al
je 0x10009c2a
push 0xf
jmp 0x10009c39
call fcn.10009860
test al, al
je 0x10009c37
push 0xf
jmp 0x10009c39
push 7
mov eax, dword [ebp - 0x22c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x22c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov edx, dword [ebp - 0x234]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10009c76
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001a767
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10006e50
int3