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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f03d6
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x10136674]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
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 - 0x21c]
push eax
push 0x101038f0
push 1
push 0
push 0x101038e0
mov dword [ebp - 0x21c], 0
call esi
mov ecx, dword [ebp - 0x21c]
test ecx, ecx
je 0x1001a367
xorps xmm0, xmm0
lea edx, [ebp - 0x240]
movlpd qword [ebp - 0x240], xmm0
push 0
mov dword [ebp - 0x240], 8
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x18]
test eax, eax
jne 0x1001a0d7
mov eax, dword [ebp - 0x21c]
lea edx, [ebp - 0x240]
push 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x224], 0
push 0
push eax
call fcn.1007bae0
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
push 0x101038f0
push 1
push 0
push 0x101038e0
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 - 0x230], 0x104
mov dword [ebp - 0x234], 1
call esi
test eax, eax
jne 0x1001a175
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x234]
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 0x1001a1a0
mov ecx, dword [ebp - 0x224]
test ecx, ecx
je 0x1001a1ba
mov eax, dword [ecx]
lea edx, [ebp - 0x218]
push 2
push 0x104
push edx
push ecx
call dword [eax + 0x10]
mov ecx, dword [ebp - 0x224]
test ecx, ecx
je 0x1001a1ba
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x224], 0
lea eax, [ebp - 0x218]
push eax
call esi
test eax, eax
jne 0x1001a1d8
lea eax, [ebp - 0x220]
push eax
call fcn.10018530
add esp, 4
jmp 0x1001a242
call fcn.100087f0
mov ecx, eax
test ecx, ecx
je 0x1001a388
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x220]
call fcn.10007c80
test al, al
jne 0x1001a242
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001a220
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x220]
call fcn.10007690
push dword [ebp - 0x220]
mov dword [ebp - 4], 1
call esi
test eax, eax
je 0x1001a269
mov eax, dword [ebp - 0x21c]
push 0
push dword [ebp - 0x220]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
cmp dword [0x10134e44], 0
je 0x1001a30e
push str.ntdll.dll
mov dword [ebp - 0x22c], 0
xor edi, edi
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x228], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x1001a304
push str.RtlGetNtVersionNumbers
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001a2e0
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x238]
push ecx
lea ecx, [ebp - 0x22c]
push ecx
call eax
movzx eax, word [ebp - 0x228]
mov edi, 1
mov dword [ebp - 0x228], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x1001a304
mov eax, dword [0x10139a80]
mov ecx, 1
cmp dword [ebp - 0x22c], 6
cmovae eax, ecx
mov dword [0x10139a80], eax
mov dword [0x10134e44], 0
cmp dword [0x10139a80], 0
je 0x1001a31b
push 0xf
jmp 0x1001a32a
call fcn.10019820
test eax, eax
je 0x1001a328
push 0xf
jmp 0x1001a32a
push 7
mov eax, dword [ebp - 0x21c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x21c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov edx, dword [ebp - 0x220]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001a367
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 edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10069b58
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10005ea0
int3