Function at 0x10004f30
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 [0x1003a064]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x61c]
mov ebx, ecx
push 0
push eax
call fcn.10012430
push 0x208
lea eax, [ebp - 0xa2c]
push 0
push eax
call fcn.10012430
push 0x208
lea eax, [ebp - 0x824]
push 0
push eax
call fcn.10012430
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10012430
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.10012430
push 0x208
lea eax, [ebp - 0xe3c]
push 0
push eax
call fcn.10012430
add esp, 0x48
lea eax, [ebp - 0x61c]
push 0
push 0x2b
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [ebp - 0x61c]
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x10004fe0
mov eax, dword [0x10029460]
mov dword [edi], eax
lea edi, [ebp - 0x61c]
add edi, 0xfffffffe
nop dword [eax]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x10005000
mov ecx, 8
mov esi, 0x10029464
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x61c]
add edi, 0xfffffffe
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x10005021
mov dword [edi], eax
lea edi, [ebp - 0x61c]
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10005040
mov ecx, 8
mov esi, 0x10029464
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x61c]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x10005061
mov eax, dword [str..ini]
mov dword [ecx], eax
mov eax, dword [0x10029488]
mov dword [ecx + 4], eax
mov ax, word [0x1002948c]
mov word [ecx + 8], ax
lea eax, [ebp - 0x61c]
push eax
push 0x104
lea eax, [ebp - 0xa2c]
push eax
push 0x10029424
push str.InstallPath
push str.AppConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor ecx, ecx
movzx eax, word [ebp + ecx - 0xa2c]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x20e], ax
test ax, ax
jne 0x100050b0
xor ecx, ecx
nop word [eax + eax]
movzx eax, word [ebp + ecx - 0x20c]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x416], ax
test ax, ax
jne 0x100050d0
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.10004970
test eax, eax
je 0x10005140
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10005103
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebx + 0x44]
call fcn.10002740
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10005130
jmp 0x1000551b
push 0x1f4
lea eax, [ebp - 0xc20]
push 0
push eax
call fcn.10012430
movups xmm0, xmmword [str.SOFTWARE_]
mov eax, dword [0x100295a0]
lea edi, [ebp - 0xc34]
add esp, 0xc
mov dword [ebp - 0xc24], eax
movups xmmword [ebp - 0xc34], xmm0
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10005180
lea eax, [ebp - 0xe40]
mov ecx, 8
push eax
push 0x20019
push 0
lea eax, [ebp - 0xc34]
mov esi, 0x10029464
push eax
rep movsd dword es:[edi], dword [esi]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100052a0
lea eax, [ebp - 0xe44]
mov dword [ebp - 0xe44], 0x208
push eax
lea eax, [ebp - 0xe3c]
push eax
push 0
push 0
push str.InstallPath
push dword [ebp - 0xe40]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100052a0
xor ecx, ecx
nop word [eax + eax]
movzx eax, word [ebp + ecx - 0xe3c]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x20e], ax
test ax, ax
jne 0x10005200
xor ecx, ecx
nop word [eax + eax]
movzx eax, word [ebp + ecx - 0x20c]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x416], ax
test ax, ax
jne 0x10005220
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.10004970
test eax, eax
je 0x100052a0
push dword [ebp - 0xe40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10005260
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebx + 0x44]
call fcn.10002740
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10005290
jmp 0x1000551b
push dword [ebp - 0xe40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0x26
lea eax, [ebp - 0x824]
push eax
push 0
call fcn.1000ac90
lea edi, [ebp - 0x824]
add esp, 0x10
add edi, 0xfffffffe
nop word [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x100052d0
mov eax, dword [0x10029460]
lea edx, [ebp - 0x824]
mov dword [edi], eax
add edx, 0xfffffffe
nop dword [eax]
mov cx, word [edx + 2]
lea edx, [edx + 2]
test cx, cx
jne 0x100052f0
mov ecx, dword [str.HKWallPaper]
lea edi, [ebp - 0x824]
mov dword [edx], ecx
add edi, 0xfffffffe
mov ecx, dword [0x100295a8]
mov dword [edx + 4], ecx
mov ecx, dword [0x100295ac]
mov dword [edx + 8], ecx
mov ecx, dword [0x100295b0]
mov dword [edx + 0xc], ecx
mov ecx, dword [0x100295b4]
mov dword [edx + 0x10], ecx
mov ecx, dword [0x100295b8]
mov dword [edx + 0x14], ecx
nop word [eax + eax]
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x10005340
mov dword [edi], eax
xor ecx, ecx
movzx eax, word [ebp + ecx - 0x824]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x20e], ax
test ax, ax
jne 0x10005350
xor ecx, ecx
nop word [eax + eax]
movzx eax, word [ebp + ecx - 0x20c]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x416], ax
test ax, ax
jne 0x10005370
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.10004970
test eax, eax
je 0x100053e0
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100053a3
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebx + 0x44]
call fcn.10002740
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100053d0
jmp 0x1000551b
lea ecx, [ebp - 0xa2c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100053f0
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x100054a0
lea eax, [ebp - 0xa2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100054a0
xor ecx, ecx
nop
movzx eax, word [ebp + ecx - 0xa2c]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x20e], ax
test ax, ax
jne 0x10005420
xor ecx, ecx
nop word [eax + eax]
movzx eax, word [ebp + ecx - 0x20c]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x416], ax
test ax, ax
jne 0x10005440
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10005461
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebx + 0x44]
call fcn.10002740
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10005490
jmp 0x1000551b
xor ecx, ecx
movzx eax, word [ebp + ecx - 0x824]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x20e], ax
test ax, ax
jne 0x100054a2
xor ecx, ecx
nop dword [eax]
movzx eax, word [ebp + ecx - 0x20c]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x416], ax
test ax, ax
jne 0x100054c0
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100054e1
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebx + 0x44]
call fcn.10002740
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10005510
sub ecx, edx
lea eax, [ebp - 0x414]
sar ecx, 1
push ecx
push eax
lea ecx, [ebx + 0x74]
call fcn.10002740
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000fe5f
mov esp, ebp
pop ebp
ret