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

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0xdc0]
sub rsp, 0xec0
mov rax, qword [0x18004a0a8]
xor rax, rsp
mov qword [rbp + 0xdb0], rax
mov rsi, rcx
xor edx, edx
lea rcx, [rbp + 0x360]
mov r8d, 0x208
call fcn.1800174c0
xor edx, edx
lea rcx, [rbp + 0x780]
mov r8d, 0x208
call fcn.1800174c0
xor edx, edx
lea rcx, [rbp + 0x570]
mov r8d, 0x208
call fcn.1800174c0
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.1800174c0
xor edx, edx
lea rcx, [rbp + 0x150]
mov r8d, 0x208
call fcn.1800174c0
xor edx, edx
lea rcx, [rbp + 0xba0]
mov r8d, 0x208
call fcn.1800174c0
xor r9d, r9d
lea rdx, [rbp + 0x360]
xor ecx, ecx
lea r8d, [r9 + 0x2c]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea rcx, [rbp + 0x360]
sub rcx, 2
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x180005945
mov eax, dword [0x180031944]
mov dword [rcx], eax
lea rcx, [rbp + 0x360]
sub rcx, 2
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x180005963
movups xmm0, xmmword [str.HaoKanWallPaper]
movups xmm1, xmmword [0x180031990]
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm1
lea rcx, [rbp + 0x360]
sub rcx, 2
nop
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x180005990
mov dword [rcx], eax
lea rax, [rbp + 0x360]
sub rax, 2
nop dword [rax + rax]
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x1800059b0
lea rcx, [rbp + 0x360]
movups xmmword [rax], xmm0
sub rcx, 2
movups xmmword [rax + 0x10], xmm1
nop dword [rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x1800059d0
movzx eax, word [0x1800319a8]
lea r9, [rbp + 0x780]
movsd xmm0, qword [str..ini]
lea r8, [0x180031940]
movsd qword [rcx], xmm0
lea rdx, str.InstallPath
mov word [rcx + 8], ax
lea rax, [rbp + 0x360]
mov qword [rsp + 0x28], rax
lea rcx, str.AppConfig
mov dword [rsp + 0x20], 0x104
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor edi, edi
mov ecx, edi
nop dword [rax]
movzx eax, word [rbp + rcx + 0x780]
mov word [rsp + rcx + 0x40], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180005a30
mov rcx, rdi
nop dword [rax]
movzx eax, word [rsp + rcx + 0x40]
mov word [rbp + rcx + 0x150], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180005a50
lea rdx, [rsp + 0x40]
mov qword [rsp + 0xed8], rbx
mov rcx, rsi
call fcn.1800050a0
test eax, eax
je 0x180005abe
mov rbx, 0xffffffffffffffff
lea rax, [rsp + 0x40]
mov r8, rbx
nop
inc r8
cmp word [rax + r8*2], di
jne 0x180005a90
lea rcx, [rsi + 0x60]
lea rdx, [rsp + 0x40]
call fcn.180006750
lea rax, [rbp + 0x150]
nop
inc rbx
cmp word [rax + rbx*2], di
jne 0x180005ab0
jmp 0x180005e3a
xor edx, edx
lea rcx, [rbp + 0x9a4]
mov r8d, 0x1f4
call fcn.1800174c0
mov eax, dword [0x180031ad0]
movups xmm0, xmmword [str.SOFTWARE_]
mov dword [rbp + 0x9a0], eax
lea rax, [rbp + 0x990]
sub rax, 2
movaps xmmword [rbp + 0x990], xmm0
nop word [rax + rax]
cmp word [rax + 2], di
lea rax, [rax + 2]
jne 0x180005b00
movups xmm0, xmmword [str.HaoKanWallPaper]
mov r9d, 0x20019
xor r8d, r8d
movups xmm1, xmmword [0x180031990]
lea rdx, [rbp + 0x990]
mov rcx, 0xffffffff80000002
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm1
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180005c1e
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, str.InstallPath
lea rax, [rbp + 0xba0]
mov dword [rsp + 0x30], 0x208
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180005c1e
mov rcx, rdi
nop
movzx eax, word [rbp + rcx + 0xba0]
mov word [rsp + rcx + 0x40], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180005b90
mov rcx, rdi
nop dword [rax]
movzx eax, word [rsp + rcx + 0x40]
mov word [rbp + rcx + 0x150], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180005bb0
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1800050a0
test eax, eax
je 0x180005c1e
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, 0xffffffffffffffff
lea rax, [rsp + 0x40]
mov r8, rbx
inc r8
cmp word [rax + r8*2], di
jne 0x180005bf1
lea rcx, [rsi + 0x60]
lea rdx, [rsp + 0x40]
call fcn.180006750
lea rax, [rbp + 0x150]
inc rbx
cmp word [rax + rbx*2], di
jne 0x180005c10
jmp 0x180005e3a
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor r9d, r9d
lea rdx, [rbp + 0x570]
xor ecx, ecx
lea r8d, [r9 + 0x2a]
call fcn.18000c2f0
lea rcx, [rbp + 0x570]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], di
lea rcx, [rcx + 2]
jne 0x180005c50
mov eax, dword [0x180031944]
mov dword [rcx], eax
lea rcx, [rbp + 0x570]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], di
lea rcx, [rcx + 2]
jne 0x180005c70
movups xmm0, xmmword [str.HKWallPaper]
movsd xmm1, qword [0x180031ae8]
movups xmmword [rcx], xmm0
movsd qword [rcx + 0x10], xmm1
lea rcx, [rbp + 0x570]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], di
lea rcx, [rcx + 2]
jne 0x180005ca0
mov dword [rcx], eax
mov rcx, rdi
nop
movzx eax, word [rbp + rcx + 0x570]
mov word [rsp + rcx + 0x40], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180005cb0
mov rcx, rdi
nop dword [rax]
movzx eax, word [rsp + rcx + 0x40]
mov word [rbp + rcx + 0x150], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180005cd0
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1800050a0
mov rbx, 0xffffffffffffffff
test eax, eax
je 0x180005d33
lea rax, [rsp + 0x40]
mov r8, rbx
inc r8
cmp word [rax + r8*2], di
jne 0x180005d06
lea rcx, [rsi + 0x60]
lea rdx, [rsp + 0x40]
call fcn.180006750
lea rax, [rbp + 0x150]
inc rbx
cmp word [rax + rbx*2], di
jne 0x180005d25
jmp 0x180005e3a
lea rcx, [rbp + 0x780]
mov rax, rbx
nop dword [rax]
inc rax
cmp word [rcx + rax*2], di
jne 0x180005d40
test eax, eax
jle 0x180005dcc
lea rcx, [rbp + 0x780]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180005dcc
mov rcx, rdi
movzx eax, word [rbp + rcx + 0x780]
mov word [rsp + rcx + 0x40], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180005d61
nop word [rax + rax]
movzx eax, word [rsp + rdi + 0x40]
mov word [rbp + rdi + 0x150], ax
lea rdi, [rdi + 2]
test ax, ax
jne 0x180005d80
lea rax, [rsp + 0x40]
mov r8, rbx
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x180005da0
lea rcx, [rsi + 0x60]
lea rdx, [rsp + 0x40]
call fcn.180006750
lea rax, [rbp + 0x150]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x180005dc0
jmp 0x180005e3a
mov rcx, rdi
nop
movzx eax, word [rbp + rcx + 0x570]
mov word [rsp + rcx + 0x40], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180005dd0
nop word [rax + rax]
movzx eax, word [rsp + rdi + 0x40]
mov word [rbp + rdi + 0x150], ax
lea rdi, [rdi + 2]
test ax, ax
jne 0x180005df0
lea rax, [rsp + 0x40]
mov r8, rbx
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x180005e10
lea rcx, [rsi + 0x60]
lea rdx, [rsp + 0x40]
call fcn.180006750
lea rax, [rbp + 0x150]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x180005e30
mov r8, rbx
lea rdx, [rbp + 0x150]
lea rcx, [rsi + 0xa0]
call fcn.180006750
mov rbx, qword [rsp + 0xed8]
mov rcx, qword [rbp + 0xdb0]
xor rcx, rsp
call fcn.1800154d0
lea r11, [rsp + 0xec0]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret