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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0xdc0]
sub rsp, 0xec0
mov rax, qword [0x1800420b0]
xor rax, rsp
mov qword [rbp + 0xdb0], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rbp + 0x360]
mov r8d, 0x208
call fcn.180014da0
xor edx, edx
lea rcx, [rbp + 0x780]
mov r8d, 0x208
call fcn.180014da0
xor edx, edx
lea rcx, [rbp + 0x570]
mov r8d, 0x208
call fcn.180014da0
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.180014da0
xor edx, edx
lea rcx, [rbp + 0x150]
mov r8d, 0x208
call fcn.180014da0
xor edx, edx
lea rcx, [rbp + 0xba0]
mov r8d, 0x208
call fcn.180014da0
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 0x180004665
mov eax, dword [0x18002b8dc]
mov dword [rcx], eax
lea rcx, [rbp + 0x360]
sub rcx, 2
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x180004683
movups xmm1, xmmword [str.YimiZip]
movups xmmword [rcx], xmm1
lea rcx, [rbp + 0x360]
sub rcx, 2
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x1800046a3
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 0x1800046c0
lea rcx, [rbp + 0x360]
sub rcx, 2
movups xmmword [rax], xmm1
nop dword [rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x1800046e0
movzx eax, word [0x18002b910]
lea r9, [rbp + 0x780]
movsd xmm0, qword [str..ini]
lea r8, [0x18002b8d8]
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 ebx, ebx
mov ecx, ebx
nop dword [rax]
movzx eax, word [rbp + rcx + 0x780]
mov word [rsp + rcx + 0x40], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180004740
mov rcx, rbx
nop dword [rax]
movzx eax, word [rsp + rcx + 0x40]
mov word [rbp + rcx + 0x150], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180004760
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1800040a0
test eax, eax
je 0x1800047df
cmp word [rsp + 0x40], bx
jne 0x180004793
mov r8, rbx
jmp 0x1800047aa
lea rax, [rsp + 0x40]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x1800047a0
lea rcx, [rdi + 0x50]
lea rdx, [rsp + 0x40]
call fcn.180002090
cmp word [rbp + 0x150], bx
je 0x180004bea
lea rax, [rbp + 0x150]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1800047d0
jmp 0x180004bea
xor edx, edx
lea rcx, [rbp + 0x992]
mov r8d, 0x206
call fcn.180014da0
mov eax, dword [0x18002ba40]
movups xmm0, xmmword [str.SOFTWARE_]
mov dword [rbp + 0x9a0], eax
lea rax, [rbp + 0x990]
sub rax, 2
movaps xmmword [rbp + 0x990], xmm0
nop dword [rax + rax]
cmp word [rax + 2], bx
lea rax, [rax + 2]
jne 0x180004820
movups xmm0, xmmword [str.YimiZip]
mov r9d, 0x20019
lea rdx, [rbp + 0x990]
xor r8d, r8d
mov rcx, 0xffffffff80000002
movups xmmword [rax], xmm0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18000495f
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 0x18000495f
mov rcx, rbx
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rbp + rcx + 0xba0]
mov word [rsp + rcx + 0x40], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x1800048b0
mov rcx, rbx
nop dword [rax]
movzx eax, word [rsp + rcx + 0x40]
mov word [rbp + rcx + 0x150], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x1800048d0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1800040a0
test eax, eax
je 0x18000495f
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [rsp + 0x40], bx
jne 0x18000490e
mov r8, rbx
jmp 0x18000492a
lea rax, [rsp + 0x40]
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x180004920
lea rcx, [rdi + 0x50]
lea rdx, [rsp + 0x40]
call fcn.180002090
cmp word [rbp + 0x150], bx
je 0x180004bea
lea rax, [rbp + 0x150]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x180004950
jmp 0x180004bea
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.180009280
lea rcx, [rbp + 0x570]
sub rcx, 2
nop word [rax + rax]
cmp word [rcx + 2], bx
lea rcx, [rcx + 2]
jne 0x180004990
mov eax, dword [0x18002b8dc]
lea rdx, [rbp + 0x570]
sub rdx, 2
mov dword [rcx], eax
nop dword [rax]
cmp word [rdx + 2], bx
lea rdx, [rdx + 2]
jne 0x1800049b0
movzx ecx, word [0x18002ba58]
movups xmm0, xmmword [str.YiiMiZip]
movups xmmword [rdx], xmm0
mov word [rdx + 0x10], cx
lea rcx, [rbp + 0x570]
sub rcx, 2
nop word [rax + rax]
cmp word [rcx + 2], bx
lea rcx, [rcx + 2]
jne 0x1800049e0
mov dword [rcx], eax
mov rcx, rbx
nop
movzx eax, word [rbp + rcx + 0x570]
mov word [rsp + rcx + 0x40], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x1800049f0
mov rcx, rbx
nop dword [rax]
movzx eax, word [rsp + rcx + 0x40]
mov word [rbp + rcx + 0x150], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180004a10
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1800040a0
test eax, eax
je 0x180004a8f
cmp word [rsp + 0x40], bx
jne 0x180004a43
mov r8, rbx
jmp 0x180004a5a
lea rax, [rsp + 0x40]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x180004a50
lea rcx, [rdi + 0x50]
lea rdx, [rsp + 0x40]
call fcn.180002090
cmp word [rbp + 0x150], bx
je 0x180004bea
lea rax, [rbp + 0x150]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x180004a80
jmp 0x180004bea
lea rcx, [rbp + 0x780]
or rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], bx
jne 0x180004aa0
test eax, eax
jle 0x180004b5f
lea rcx, [rbp + 0x780]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180004b5f
mov rcx, rbx
nop dword [rax]
movzx eax, word [rbp + rcx + 0x780]
mov word [rsp + rcx + 0x40], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180004ad0
mov rcx, rbx
nop dword [rax]
movzx eax, word [rsp + rcx + 0x40]
mov word [rbp + rcx + 0x150], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180004af0
cmp word [rsp + 0x40], bx
jne 0x180004b12
mov r8, rbx
jmp 0x180004b2a
lea rax, [rsp + 0x40]
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x180004b20
lea rcx, [rdi + 0x50]
lea rdx, [rsp + 0x40]
call fcn.180002090
cmp word [rbp + 0x150], bx
je 0x180004bea
lea rax, [rbp + 0x150]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x180004b50
jmp 0x180004bea
mov rcx, rbx
movzx eax, word [rbp + rcx + 0x570]
mov word [rsp + rcx + 0x40], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180004b62
mov rcx, rbx
nop dword [rax + rax]
movzx eax, word [rsp + rcx + 0x40]
mov word [rbp + rcx + 0x150], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180004b80
cmp word [rsp + 0x40], bx
jne 0x180004ba2
mov r8, rbx
jmp 0x180004bba
lea rax, [rsp + 0x40]
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x180004bb0
lea rcx, [rdi + 0x50]
lea rdx, [rsp + 0x40]
call fcn.180002090
cmp word [rbp + 0x150], bx
je 0x180004bea
lea rax, [rbp + 0x150]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x180004be0
mov r8, rbx
lea rdx, [rbp + 0x150]
lea rcx, [rdi + 0x90]
call fcn.180002090
mov rcx, qword [rbp + 0xdb0]
xor rcx, rsp
call fcn.180011e50
lea r11, [rsp + 0xec0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret