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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0xfd0]
mov eax, 0x10d0
call fcn.180204780
sub rsp, rax
mov rax, qword [0x180332088]
xor rax, rsp
mov qword [rbp + 0xfc0], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rbp + 0x570]
mov r8d, 0x208
call fcn.180233580
xor edx, edx
lea rcx, [rbp + 0xba0]
mov r8d, 0x208
call fcn.180233580
xor edx, edx
lea rcx, [rbp + 0x780]
mov r8d, 0x208
call fcn.180233580
xor edx, edx
lea rcx, [rbp + 0xdb0]
mov r8d, 0x208
call fcn.180233580
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.180233580
xor edx, edx
lea rcx, [rbp + 0x150]
mov r8d, 0x208
call fcn.180233580
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
nop dword [rax + rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x180070b60
mov eax, dword [0x1802abc78]
mov dword [rcx], eax
lea rcx, [rbp + 0x570]
sub rcx, 2
nop
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x180070b80
movups xmm1, xmmword [0x1802abf08]
mov edx, dword [0x1802abf18]
movups xmmword [rcx], xmm1
mov dword [rcx + 0x10], edx
lea rcx, [rbp + 0x570]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x180070bb0
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 0x180070bd0
lea rcx, [rbp + 0x570]
movups xmmword [rax], xmm1
sub rcx, 2
mov dword [rax + 0x10], edx
nop dword [rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x180070bf0
movzx eax, word [0x1802abc88]
lea r9, [rbp + 0xba0]
movsd xmm0, qword [str..ini]
lea r8, [0x1802abc2c]
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 + 0xba0]
mov word [rsp + rcx + 0x40], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180070c50
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 0x180070c70
lea rcx, [rbp + 0x150]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180070d7f
xor edx, edx
lea rcx, [rbp + 0x360]
mov r8d, 0x208
call fcn.180233580
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 0x180070cc0
lea rcx, [rbp + 0x360]
sub rcx, 2
cmp word [rcx + 2], bx
lea rcx, [rcx + 2]
jne 0x180070ce4
movups xmm0, xmmword [str.WnConfig.exe]
movzx eax, word [0x1802abdc8]
movsd xmm1, qword [0x1802abdc0]
movups xmmword [rcx], xmm0
movsd qword [rcx + 0x10], xmm1
mov word [rcx + 0x18], ax
lea rcx, [rbp + 0x360]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180070d7f
cmp word [rsp + 0x40], bx
jne 0x180070d2d
mov r8, rbx
jmp 0x180070d40
lea rax, [rsp + 0x40]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x180070d36
lea rcx, [rdi + 0xa8]
lea rdx, [rsp + 0x40]
call fcn.18005c660
cmp word [rbp + 0x150], bx
je 0x18007132a
lea rax, [rbp + 0x150]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x180070d70
jmp 0x18007132a
xor edx, edx
lea rcx, [rbp + 0x992]
mov r8d, 0x206
call fcn.180233580
movups xmm0, xmmword [str.SOFTWARE_]
mov eax, dword [0x1802abd90]
lea rcx, [rbp + 0x990]
mov dword [rbp + 0x9a0], eax
sub rcx, 2
movaps xmmword [rbp + 0x990], xmm0
nop dword [rax + rax]
cmp word [rcx + 2], bx
lea rcx, [rcx + 2]
jne 0x180070dc0
mov eax, dword [0x1802abf18]
lea rdx, [rbp + 0x990]
movups xmm0, xmmword [0x1802abf08]
mov r9d, 0x20019
xor r8d, r8d
movups xmmword [rcx], xmm0
mov dword [rcx + 0x10], eax
lea rax, [rsp + 0x38]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180070f83
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], 0x104
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180070f83
mov rcx, rbx
nop dword [rax]
movzx eax, word [rbp + rcx + 0xdb0]
mov word [rsp + rcx + 0x40], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180070e50
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 0x180070e70
lea rcx, [rbp + 0x150]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180070f83
xor edx, edx
lea rcx, [rbp + 0x360]
mov r8d, 0x208
call fcn.180233580
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 0x180070ec0
lea rcx, [rbp + 0x360]
sub rcx, 2
cmp word [rcx + 2], bx
lea rcx, [rcx + 2]
jne 0x180070ee4
movups xmm0, xmmword [str.WnConfig.exe]
movzx eax, word [0x1802abdc8]
movsd xmm1, qword [0x1802abdc0]
movups xmmword [rcx], xmm0
movsd qword [rcx + 0x10], xmm1
mov word [rcx + 0x18], ax
lea rcx, [rbp + 0x360]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180070f83
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [rsp + 0x40], bx
jne 0x180070f38
mov r8, rbx
jmp 0x180070f4b
lea rax, [rsp + 0x40]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x180070f41
lea rcx, [rdi + 0xa8]
lea rdx, [rsp + 0x40]
call fcn.18005c660
cmp word [rbp + 0x150], bx
je 0x18007132a
lea rax, [rbp + 0x150]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x180070f74
jmp 0x18007132a
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor r9d, r9d
lea rdx, [rbp + 0x780]
xor ecx, ecx
lea r8d, [r9 + 0x2a]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea rcx, [rbp + 0x780]
sub rcx, 2
nop
cmp word [rcx + 2], bx
lea rcx, [rcx + 2]
jne 0x180070fb0
mov eax, dword [0x1802abc78]
lea rdx, [rbp + 0x780]
sub rdx, 2
mov dword [rcx], eax
nop dword [rax]
cmp word [rdx + 2], bx
lea rdx, [rdx + 2]
jne 0x180070fd0
mov ecx, dword [0x1802abf18]
movups xmm0, xmmword [0x1802abf08]
movups xmmword [rdx], xmm0
mov dword [rdx + 0x10], ecx
lea rcx, [rbp + 0x780]
sub rcx, 2
nop dword [rax + rax]
cmp word [rcx + 2], bx
lea rcx, [rcx + 2]
jne 0x180071000
mov dword [rcx], eax
mov rcx, rbx
nop
movzx eax, word [rbp + rcx + 0x780]
mov word [rsp + rcx + 0x40], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180071010
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 0x180071030
lea rcx, [rbp + 0x150]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18007113f
xor edx, edx
lea rcx, [rbp + 0x360]
mov r8d, 0x208
call fcn.180233580
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 0x180071080
lea rcx, [rbp + 0x360]
sub rcx, 2
cmp word [rcx + 2], bx
lea rcx, [rcx + 2]
jne 0x1800710a4
movups xmm0, xmmword [str.WnConfig.exe]
movzx eax, word [0x1802abdc8]
movsd xmm1, qword [0x1802abdc0]
movups xmmword [rcx], xmm0
movsd qword [rcx + 0x10], xmm1
mov word [rcx + 0x18], ax
lea rcx, [rbp + 0x360]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18007113f
cmp word [rsp + 0x40], bx
jne 0x1800710ed
mov r8, rbx
jmp 0x180071100
lea rax, [rsp + 0x40]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x1800710f6
lea rcx, [rdi + 0xa8]
lea rdx, [rsp + 0x40]
call fcn.18005c660
cmp word [rbp + 0x150], bx
je 0x18007132a
lea rax, [rbp + 0x150]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x180071130
jmp 0x18007132a
lea rcx, [rbp + 0xba0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1800711f2
mov rcx, rbx
nop word [rax + rax]
movzx eax, word [rbp + rcx + 0xba0]
mov word [rsp + rcx + 0x40], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180071160
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 0x180071180
cmp word [rsp + 0x40], bx
jne 0x1800711a2
mov r8, rbx
jmp 0x1800711ba
lea rax, [rsp + 0x40]
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x1800711b0
lea rcx, [rdi + 0xa8]
lea rdx, [rsp + 0x40]
call fcn.18005c660
cmp word [rbp + 0x150], bx
je 0x18007132a
lea rax, [rbp + 0x150]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1800711e3
jmp 0x18007132a
lea rcx, [rbp + 0xdb0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov rcx, rbx
test eax, eax
je 0x1800712a2
nop word [rax + rax]
movzx eax, word [rbp + rcx + 0xdb0]
mov word [rsp + rcx + 0x40], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180071210
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 0x180071230
cmp word [rsp + 0x40], bx
jne 0x180071252
mov r8, rbx
jmp 0x18007126a
lea rax, [rsp + 0x40]
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x180071260
lea rcx, [rdi + 0xa8]
lea rdx, [rsp + 0x40]
call fcn.18005c660
cmp word [rbp + 0x150], bx
je 0x18007132a
lea rax, [rbp + 0x150]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x180071293
jmp 0x18007132a
movzx eax, word [rbp + rcx + 0x780]
mov word [rsp + rcx + 0x40], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x1800712a2
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 0x1800712c0
cmp word [rsp + 0x40], bx
jne 0x1800712e2
mov r8, rbx
jmp 0x1800712fa
lea rax, [rsp + 0x40]
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x1800712f0
lea rcx, [rdi + 0xa8]
lea rdx, [rsp + 0x40]
call fcn.18005c660
cmp word [rbp + 0x150], bx
je 0x18007132a
lea rax, [rbp + 0x150]
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x180071320
mov r8, rbx
lea rdx, [rbp + 0x150]
lea rcx, [rdi + 0xc8]
call fcn.18005c660
mov rcx, qword [rbp + 0xfc0]
xor rcx, rsp
call fcn.1802037a0
lea r11, [rsp + 0x10d0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret