Function at 0x415c96
Capabilities:
Check if file exists
Get common file path
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe44
mov eax, dword [0x51a230]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, 0x208
lea eax, [ebp - 0x61c]
push ebx
xor edi, edi
mov esi, ecx
push edi
push eax
call fcn.004bac70
push ebx
lea eax, [ebp - 0xa2c]
push edi
push eax
call fcn.004bac70
push ebx
lea eax, [ebp - 0x824]
push edi
push eax
call fcn.004bac70
push ebx
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004bac70
push ebx
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.004bac70
push ebx
lea eax, [ebp - 0xe3c]
push edi
push eax
call fcn.004bac70
add esp, 0x48
lea eax, [ebp - 0x61c]
push edi
push 0x2b
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x61c]
push 0x4eb0a8
push eax
call fcn.004ca068
lea eax, [ebp - 0x61c]
push 0x4ea3b4
push eax
call fcn.004ca068
lea eax, [ebp - 0x61c]
push 0x4eb0a8
push eax
call fcn.004ca068
lea eax, [ebp - 0x61c]
push 0x4ea3b4
push eax
call fcn.004ca068
lea eax, [ebp - 0x61c]
push 0x4eb0ac
push eax
call fcn.004ca068
add esp, 0x28
lea eax, [ebp - 0x61c]
push eax
push 0x104
lea eax, [ebp - 0xa2c]
push eax
push 0x4e8798
push str.InstallPath
push str.AppConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004ca0d9
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.004ca0d9
add esp, 0x10
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00415a9c
test eax, eax
je 0x415dea
lea eax, [ebp - 0x20c]
push eax
call fcn.004ca0fb
pop ecx
jmp 0x415f9f
push ebx
lea eax, [ebp - 0xc34]
push edi
push eax
call fcn.004bac70
lea eax, [ebp - 0xc34]
push 0x4eb1b0
push eax
call fcn.004ca0d9
lea eax, [ebp - 0xc34]
push 0x4ea3b4
push eax
call fcn.004ca068
add esp, 0x1c
lea eax, [ebp - 0xe40]
push eax
push 0x20019
push edi
lea eax, [ebp - 0xc34]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x415eb7
lea eax, [ebp - 0xe44]
mov dword [ebp - 0xe44], ebx
push eax
lea eax, [ebp - 0xe3c]
push eax
push edi
push edi
push str.InstallPath
push dword [ebp - 0xe40]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x415eb7
lea eax, [ebp - 0xe3c]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004ca0d9
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.004ca0d9
add esp, 0x10
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00415a9c
test eax, eax
je 0x415eb7
push dword [ebp - 0xe40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x415dd8
push dword [ebp - 0xe40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push 0x26
lea eax, [ebp - 0x824]
push eax
push edi
call fcn.00421ed8
mov ebx, 0x4eb0a8
lea eax, [ebp - 0x824]
push ebx
push eax
call fcn.004ca068
lea eax, [ebp - 0x824]
push str.HKWallPaper
push eax
call fcn.004ca068
lea eax, [ebp - 0x824]
push ebx
push eax
call fcn.004ca068
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004ca0d9
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.004ca0d9
add esp, 0x38
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00415a9c
test eax, eax
jne 0x415dd8
lea eax, [ebp - 0xa2c]
push eax
call fcn.004ca0fb
pop ecx
test eax, eax
jle 0x415f6a
lea eax, [ebp - 0xa2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
lea eax, [ebp - 0xa2c]
jne 0x415f70
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004ca0d9
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.004ca0d9
lea eax, [ebp - 0x20c]
push eax
call fcn.004ca0fb
add esp, 0x14
push eax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0x44]
call fcn.00407d80
lea eax, [ebp - 0x414]
push eax
call fcn.004ca0fb
pop ecx
push eax
lea eax, [ebp - 0x414]
push eax
lea ecx, [esi + 0x74]
call fcn.00407d80
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00490604
leave
ret