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

Disassembly:
push rbp
push rbx
push rsi
lea rbp, [rsp - 0xfd0]
mov eax, 0x10d0
call fcn.18001dc70
sub rsp, rax
mov rax, qword [0x18005d3f0]
xor rax, rsp
mov qword [rbp + 0xfc0], rax
mov rsi, rcx
xor edx, edx
lea rcx, [rbp + 0x570]
mov r8d, 0x208
call fcn.18001f6b0
xor edx, edx
lea rcx, [rbp + 0x990]
mov r8d, 0x208
call fcn.18001f6b0
xor edx, edx
lea rcx, [rbp + 0x780]
mov r8d, 0x208
call fcn.18001f6b0
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.18001f6b0
xor edx, edx
lea rcx, [rbp + 0x150]
mov r8d, 0x208
call fcn.18001f6b0
xor edx, edx
lea rcx, [rbp + 0xdb0]
mov r8d, 0x208
call fcn.18001f6b0
xor r9d, r9d
lea rdx, [rbp + 0x570]
xor ecx, ecx
lea r8d, [r9 + 0x2c]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea rcx, [rbp + 0x570]
sub rcx, 2
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x180008564
mov eax, dword [0x18003ff24]
mov dword [rcx], eax
lea rcx, [rbp + 0x570]
sub rcx, 2
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x180008582
movups xmm1, xmmword [str.PuddingZip]
mov edx, dword [0x18003fee8]
movzx r8d, word [0x18003feec]
movups xmmword [rcx], xmm1
mov dword [rcx + 0x10], edx
mov word [rcx + 0x14], r8w
lea rcx, [rbp + 0x570]
sub rcx, 2
nop dword [rax + rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x1800085c0
mov dword [rcx], eax
lea rax, [rbp + 0x570]
sub rax, 2
nop dword [rax + rax]
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x1800085e0
movups xmmword [rax], xmm1
lea rcx, [rbp + 0x570]
mov dword [rax + 0x10], edx
mov word [rax + 0x14], r8w
sub rcx, 2
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x180008601
movzx eax, word [0x18003ff30]
lea r9, [rbp + 0x990]
movsd xmm0, qword [0x18003ff28]
lea r8, [0x18003f874]
movsd qword [rcx], xmm0
lea rdx, str.InstallPath
mov word [rcx + 8], ax
lea rax, [rbp + 0x570]
mov qword [rsp + 0x28], rax
lea rcx, str.Globals
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 + 0x990]
mov word [rsp + rcx + 0x40], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180008660
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
nop
inc rax
cmp word [rcx + rax*2], bx
jne 0x180008680
test eax, eax
jle 0x18000879f
mov rcx, rbx
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rsp + rcx + 0x40]
mov word [rbp + rcx + 0x150], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x1800086a0
lea rcx, [rbp + 0x150]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18000879f
xor edx, edx
lea rcx, [rbp + 0x360]
mov r8d, 0x208
call fcn.18001f6b0
mov rcx, rbx
nop dword [rax]
nop word [rax + rax]
movzx eax, word [rbp + rcx + 0x150]
mov word [rbp + rcx + 0x360], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x1800086f0
lea rcx, [rbp + 0x360]
sub rcx, 2
cmp word [rcx + 2], bx
lea rcx, [rcx + 2]
jne 0x180008714
movups xmm0, xmmword [str.PDZip.exe]
mov eax, dword [0x18003f888]
movups xmmword [rcx], xmm0
mov dword [rcx + 0x10], eax
lea rcx, [rbp + 0x360]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18000879f
cmp word [rsp + 0x40], bx
jne 0x18000874e
mov r8, rbx
jmp 0x18000876a
lea rax, [rsp + 0x40]
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x180008760
lea rcx, [rsi + 0x50]
lea rdx, [rsp + 0x40]
call fcn.180002310
cmp word [rbp + 0x150], bx
je 0x180008d3a
lea rax, [rbp + 0x150]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x180008790
jmp 0x180008d3a
xor edx, edx
lea rcx, [rbp + 0xba2]
mov r8d, 0x206
call fcn.18001f6b0
movups xmm0, xmmword [str.SOFTWARE_]
mov eax, dword [0x1800401d8]
lea rcx, [rbp + 0xba0]
mov dword [rbp + 0xbb0], eax
sub rcx, 2
movaps xmmword [rbp + 0xba0], xmm0
nop dword [rax + rax]
cmp word [rcx + 2], bx
lea rcx, [rcx + 2]
jne 0x1800087e0
mov eax, dword [0x18003fee8]
lea rdx, [rbp + 0xba0]
movups xmm0, xmmword [str.PuddingZip]
mov r9d, 0x20019
xor r8d, r8d
movups xmmword [rcx], xmm0
mov dword [rcx + 0x10], eax
movzx eax, word [0x18003feec]
mov word [rcx + 0x14], ax
lea rax, [rsp + 0x38]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1800089a1
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, str.InstallPath
lea rax, [rbp + 0xdb0]
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 0x1800089a1
mov rcx, rbx
nop dword [rax + rax]
movzx eax, word [rbp + rcx + 0xdb0]
mov word [rsp + rcx + 0x40], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180008880
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 0x1800088a0
lea rcx, [rbp + 0x150]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1800089a1
xor edx, edx
lea rcx, [rbp + 0x360]
mov r8d, 0x208
call fcn.18001f6b0
mov rcx, rbx
nop dword [rax]
nop word [rax + rax]
movzx eax, word [rbp + rcx + 0x150]
mov word [rbp + rcx + 0x360], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x1800088f0
lea rcx, [rbp + 0x360]
sub rcx, 2
cmp word [rcx + 2], bx
lea rcx, [rcx + 2]
jne 0x180008914
movups xmm0, xmmword [str.PDZip.exe]
mov eax, dword [0x18003f888]
movups xmmword [rcx], xmm0
mov dword [rcx + 0x10], eax
lea rcx, [rbp + 0x360]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1800089a1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [rsp + 0x40], bx
jne 0x180008959
mov r8, rbx
jmp 0x18000896c
lea rax, [rsp + 0x40]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x180008962
lea rcx, [rsi + 0x50]
lea rdx, [rsp + 0x40]
call fcn.180002310
cmp word [rbp + 0x150], bx
je 0x180008d3a
lea rax, [rbp + 0x150]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x180008992
jmp 0x180008d3a
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x10f8], rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rsi
xor dil, dil
call fcn.1800083d0
test al, al
je 0x180008a2f
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rbx
mov rcx, rsi
call fcn.1800068d0
test al, al
je 0x180008a2f
mov r8, qword [rsp + 0x30]
lea rax, [rbp + 0x780]
mov qword [rsp + 0x1100], r14
xor ecx, ecx
mov r14d, 1
mov qword [rsp + 0x20], rax
mov r9d, r14d
lea edx, [r14 + 0x29]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
movzx edi, dil
cmove edi, r14d
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x1100]
test dil, dil
jne 0x180008a45
xor r9d, r9d
lea rdx, [rbp + 0x780]
xor ecx, ecx
lea r8d, [r9 + 0x2a]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov rdi, qword [rsp + 0x10f8]
lea rcx, [rbp + 0x780]
sub rcx, 2
nop dword [rax + rax]
cmp word [rcx + 2], bx
lea rcx, [rcx + 2]
jne 0x180008a60
mov eax, dword [0x18003ff24]
lea rdx, [rbp + 0x780]
sub rdx, 2
mov dword [rcx], eax
nop dword [rax]
cmp word [rdx + 2], bx
lea rdx, [rdx + 2]
jne 0x180008a80
mov ecx, dword [0x18003fee8]
movups xmm0, xmmword [str.PuddingZip]
movups xmmword [rdx], xmm0
mov dword [rdx + 0x10], ecx
movzx ecx, word [0x18003feec]
mov word [rdx + 0x14], cx
lea rcx, [rbp + 0x780]
sub rcx, 2
cmp word [rcx + 2], bx
lea rcx, [rcx + 2]
jne 0x180008ab3
mov dword [rcx], eax
mov rcx, rbx
movzx eax, word [rbp + rcx + 0x780]
mov word [rsp + rcx + 0x40], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180008ac2
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 0x180008ae0
lea rcx, [rbp + 0x150]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180008bdf
xor edx, edx
lea rcx, [rbp + 0x360]
mov r8d, 0x208
call fcn.18001f6b0
mov rcx, rbx
nop dword [rax]
nop word [rax + rax]
movzx eax, word [rbp + rcx + 0x150]
mov word [rbp + rcx + 0x360], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180008b30
lea rcx, [rbp + 0x360]
sub rcx, 2
cmp word [rcx + 2], bx
lea rcx, [rcx + 2]
jne 0x180008b54
movups xmm0, xmmword [str.PDZip.exe]
mov eax, dword [0x18003f888]
movups xmmword [rcx], xmm0
mov dword [rcx + 0x10], eax
lea rcx, [rbp + 0x360]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180008bdf
cmp word [rsp + 0x40], bx
jne 0x180008b8e
mov r8, rbx
jmp 0x180008baa
lea rax, [rsp + 0x40]
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x180008ba0
lea rcx, [rsi + 0x50]
lea rdx, [rsp + 0x40]
call fcn.180002310
cmp word [rbp + 0x150], bx
je 0x180008d3a
lea rax, [rbp + 0x150]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x180008bd0
jmp 0x180008d3a
lea rcx, [rbp + 0x990]
or rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], bx
jne 0x180008bf0
test eax, eax
jle 0x180008caf
lea rcx, [rbp + 0x990]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180008caf
mov rcx, rbx
nop dword [rax]
movzx eax, word [rbp + rcx + 0x990]
mov word [rsp + rcx + 0x40], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180008c20
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 0x180008c40
cmp word [rsp + 0x40], bx
jne 0x180008c62
mov r8, rbx
jmp 0x180008c7a
lea rax, [rsp + 0x40]
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x180008c70
lea rcx, [rsi + 0x50]
lea rdx, [rsp + 0x40]
call fcn.180002310
cmp word [rbp + 0x150], bx
je 0x180008d3a
lea rax, [rbp + 0x150]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x180008ca0
jmp 0x180008d3a
mov rcx, rbx
movzx eax, word [rbp + rcx + 0x780]
mov word [rsp + rcx + 0x40], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180008cb2
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 0x180008cd0
cmp word [rsp + 0x40], bx
jne 0x180008cf2
mov r8, rbx
jmp 0x180008d0a
lea rax, [rsp + 0x40]
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x180008d00
lea rcx, [rsi + 0x50]
lea rdx, [rsp + 0x40]
call fcn.180002310
cmp word [rbp + 0x150], bx
je 0x180008d3a
lea rax, [rbp + 0x150]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x180008d30
mov r8, rbx
lea rdx, [rbp + 0x150]
lea rcx, [rsi + 0x90]
call fcn.180002310
mov rcx, qword [rbp + 0xfc0]
xor rcx, rsp
call fcn.18001d7b0
add rsp, 0x10d0
pop rsi
pop rbx
pop rbp
ret