Function at 0x1400b1860
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x1230]
mov eax, 0x1330
call fcn.1402bb5d0
sub rsp, rax
mov rax, qword [0x14049f3c0]
xor rax, rsp
mov qword [rbp + 0x1220], rax
mov r13, rcx
xor r14d, r14d
cmp dword [rcx + 0xc], 6
jb 0x1400b18d6
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
lea r9d, [r14 + 1]
xor r8d, r8d
lea rdx, str.BCD00000000
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400b1908
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [r13 + 0x158], r14b
mov rcx, qword [rbp + 0x1220]
xor rcx, rsp
call fcn.1402ba9b0
lea r11, [rsp + 0x1330]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
cmp eax, 5
je 0x1400b18d6
cmp eax, 0x20
je 0x1400b18d6
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x101
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinPE
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400b18d6
mov byte [r13 + 0x158], 1
mov dword [rbp - 0x70], 0x1000
mov dword [rbp - 0x20], 1
lea rax, [rbp - 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x220]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x20]
xor r8d, r8d
lea rdx, str.InstRoot
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x1400b1cfb
mov eax, dword [rbp - 0x70]
shr rax, 1
mov word [rbp + rax*2 + 0x21e], r14w
lea rdx, [rbp + 0x220]
lea rcx, [rbp - 0x18]
call fcn.140031ed0
nop
lea rdx, str.__t_n_r_f_v
lea rcx, [rsp + 0x70]
call fcn.140031ed0
nop
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x18]
call fcn.1400a4820
mov rbx, rax
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.1400a4d30
mov rdi, qword [rbx + 0x10]
cmp rdi, rax
cmovb rax, rdi
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x1400b19fe
mov rcx, qword [rbx]
sub rdi, rax
lea rdx, [rcx + rax*2]
lea r8, [rdi*2 + 2]
call fcn.14030ac20
mov qword [rbx + 0x10], rdi
lea rcx, [rsp + 0x70]
call fcn.1400166f0
lea rax, [rbp - 0x18]
cmp rax, rbx
je 0x1400b1a43
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 7
jbe 0x1400b1a37
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rbp - 0x18]
call fcn.140031b60
lea rsi, [rbp - 0x18]
mov r8, qword [rbp - 0x18]
cmp qword [rbp], 7
cmova rsi, r8
lea rcx, [rbp - 0x18]
cmova rcx, r8
mov rax, qword [rbp - 8]
lea rbx, [rcx + rax*2]
lea rdi, [rbp - 0x18]
cmova rdi, r8
cmp rdi, rbx
je 0x1400b1a89
sub rsi, rdi
movzx ecx, word [rdi]
call fcn.1402da054
mov word [rsi + rdi], ax
add rdi, 2
cmp rdi, rbx
jne 0x1400b1a74
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
movdqa xmm1, xmmword [0x140445990]
movdqu xmmword [rbp - 0x50], xmm1
mov word [rbp - 0x60], r14w
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x24]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov rdi, 0xffffffffffffffff
test eax, eax
js 0x1400b1ae8
lea rax, [rbp + 0x10]
mov r8, rdi
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x1400b1ad0
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x60]
call fcn.140031b60
lea r14, [rbp - 0x60]
mov r8, qword [rbp - 0x60]
cmp qword [rbp - 0x48], 7
cmova r14, r8
lea rcx, [rbp - 0x60]
cmova rcx, r8
mov rax, qword [rbp - 0x50]
lea rbx, [rcx + rax*2]
lea rsi, [rbp - 0x60]
cmova rsi, r8
cmp rsi, rbx
je 0x1400b1b36
sub r14, rsi
nop dword [rax]
movzx ecx, word [rsi]
call fcn.1402da054
mov word [r14 + rsi], ax
add rsi, 2
cmp rsi, rbx
jne 0x1400b1b20
lea rdx, str.__t_n_r_f_v
lea rcx, [rsp + 0x30]
call fcn.140031ed0
nop
lea r14, [rsp + 0x30]
cmp qword [rsp + 0x48], 7
cmova r14, qword [rsp + 0x30]
lea rsi, [rbp - 0x60]
cmp qword [rbp - 0x48], 7
cmova rsi, qword [rbp - 0x60]
mov r15, qword [rbp - 0x50]
test r15, r15
je 0x1400b1c35
mov ebx, 0x100
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0x10]
call fcn.14030b3a0
mov rcx, r14
mov r9, qword [rsp + 0x40]
lea rdx, [r14 + r9*2]
cmp r14, rdx
je 0x1400b1bb1
movzx eax, word [rcx]
cmp ax, bx
jae 0x1400b1bdd
movzx eax, al
mov byte [rbp + rax + 0x10], 1
add rcx, 2
cmp rcx, rdx
jne 0x1400b1b98
lea rcx, [r15 - 1]
mov rax, rdi
cmp rcx, rax
cmovb rax, rcx
lea rcx, [rsi + rax*2]
movzx eax, word [rcx]
cmp ax, bx
jae 0x1400b1c2c
cmp byte [rbp + rax + 0x10], 0
je 0x1400b1c2c
cmp rcx, rsi
je 0x1400b1c35
sub rcx, 2
jmp 0x1400b1bc3
lea rcx, [r15 - 1]
mov rax, rdi
cmp rcx, rax
cmovb rax, rcx
lea r8, [rsi + rax*2]
nop
mov rax, r9
movzx edx, word [r8]
mov rcx, r14
test r9, r9
je 0x1400b1c27
cmp word [r14], dx
je 0x1400b1c17
cmp rax, 1
je 0x1400b1c27
dec rax
add rcx, 2
cmp word [rcx], dx
jne 0x1400b1c05
test rcx, rcx
je 0x1400b1c27
cmp r8, rsi
je 0x1400b1c35
sub r8, 2
jmp 0x1400b1bf0
mov rdi, r8
jmp 0x1400b1c2f
mov rdi, rcx
sub rdi, rsi
sar rdi, 1
inc rdi
cmp r15, rdi
jb 0x1400b1f60
lea rax, [rbp - 0x60]
cmp qword [rbp - 0x48], 7
cmova rax, qword [rbp - 0x60]
mov qword [rbp - 0x50], rdi
xor ecx, ecx
mov word [rax + rdi*2], cx
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x60]
call fcn.1400a4d30
mov rbx, qword [rbp - 0x50]
cmp rbx, rax
cmovb rax, rbx
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], 7
cmova rcx, qword [rbp - 0x60]
sub rbx, rax
lea rdx, [rcx + rax*2]
lea r8, [rbx*2 + 2]
call fcn.14030ac20
mov qword [rbp - 0x50], rbx
lea rcx, [rsp + 0x30]
call fcn.1400166f0
lea r9, [rbp - 0x18]
cmp qword [rbp], 7
cmova r9, qword [rbp - 0x18]
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], 7
cmova rcx, qword [rbp - 0x60]
mov rax, qword [rbp - 8]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, qword [rbp - 0x50]
call fcn.140060cc0
test rax, rax
je 0x1400b1ce3
mov byte [r13 + 0x158], 0
lea rcx, [rbp - 0x60]
call fcn.1400166f0
nop
lea rcx, [rbp - 0x18]
call fcn.1400166f0
jmp 0x1400b18dd
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
movdqa xmm1, xmmword [0x140445990]
movdqu xmmword [rbp - 0x30], xmm1
mov word [rbp - 0x40], r14w
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x24]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov rdi, 0xffffffffffffffff
test eax, eax
js 0x1400b1d59
lea rax, [rbp + 0x10]
mov r8, rdi
inc r8
cmp word [rax + r8*2], 0
jne 0x1400b1d41
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x40]
call fcn.140031b60
lea r14, [rbp - 0x40]
mov r8, qword [rbp - 0x40]
cmp qword [rbp - 0x28], 7
cmova r14, r8
lea rcx, [rbp - 0x40]
cmova rcx, r8
mov rax, qword [rbp - 0x30]
lea rbx, [rcx + rax*2]
lea rsi, [rbp - 0x40]
cmova rsi, r8
cmp rsi, rbx
je 0x1400b1da6
sub r14, rsi
nop word [rax + rax]
movzx ecx, word [rsi]
call fcn.1402da054
mov word [rsi + r14], ax
add rsi, 2
cmp rsi, rbx
jne 0x1400b1d90
lea rdx, str.__t_n_r_f_v
lea rcx, [rsp + 0x50]
call fcn.140031ed0
nop
lea r14, [rsp + 0x50]
cmp qword [rsp + 0x68], 7
cmova r14, qword [rsp + 0x50]
lea rsi, [rbp - 0x40]
cmp qword [rbp - 0x28], 7
cmova rsi, qword [rbp - 0x40]
mov r15, qword [rbp - 0x30]
test r15, r15
je 0x1400b1ea5
mov ebx, 0x100
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0x10]
call fcn.14030b3a0
mov rcx, r14
mov r9, qword [rsp + 0x60]
lea rdx, [r14 + r9*2]
cmp r14, rdx
je 0x1400b1e21
movzx eax, word [rcx]
cmp ax, bx
jae 0x1400b1e4d
movzx eax, al
mov byte [rbp + rax + 0x10], 1
add rcx, 2
cmp rcx, rdx
jne 0x1400b1e08
lea rcx, [r15 - 1]
mov rax, rdi
cmp rcx, rax
cmovb rax, rcx
lea rcx, [rsi + rax*2]
movzx eax, word [rcx]
cmp ax, bx
jae 0x1400b1e9c
cmp byte [rbp + rax + 0x10], 0
je 0x1400b1e9c
cmp rcx, rsi
je 0x1400b1ea5
sub rcx, 2
jmp 0x1400b1e33
lea rcx, [r15 - 1]
mov rax, rdi
cmp rcx, rax
cmovb rax, rcx
lea r8, [rsi + rax*2]
nop
mov rax, r9
movzx edx, word [r8]
mov rcx, r14
test r9, r9
je 0x1400b1e97
cmp word [r14], dx
je 0x1400b1e87
cmp rax, 1
je 0x1400b1e97
dec rax
add rcx, 2
cmp word [rcx], dx
jne 0x1400b1e75
test rcx, rcx
je 0x1400b1e97
cmp r8, rsi
je 0x1400b1ea5
sub r8, 2
jmp 0x1400b1e60
mov rdi, r8
jmp 0x1400b1e9f
mov rdi, rcx
sub rdi, rsi
sar rdi, 1
inc rdi
cmp r15, rdi
jb 0x1400b1f5a
lea rax, [rbp - 0x40]
cmp qword [rbp - 0x28], 7
cmova rax, qword [rbp - 0x40]
mov qword [rbp - 0x30], rdi
xor ecx, ecx
mov word [rax + rdi*2], cx
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x40]
call fcn.1400a4d30
mov rbx, qword [rbp - 0x30]
cmp rbx, rax
cmovb rax, rbx
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 7
cmova rcx, qword [rbp - 0x40]
sub rbx, rax
lea rdx, [rcx + rax*2]
lea r8, [rbx*2 + 2]
call fcn.14030ac20
mov qword [rbp - 0x30], rbx
lea rcx, [rsp + 0x50]
call fcn.1400166f0
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 7
cmova rcx, qword [rbp - 0x40]
mov qword [rsp + 0x20], 2
lea r9, [0x14042a6cc]
xor r8d, r8d
mov rdx, qword [rbp - 0x30]
call fcn.140060cc0
test rax, rax
je 0x1400b1f4c
mov byte [r13 + 0x158], 0
lea rcx, [rbp - 0x40]
call fcn.1400166f0
jmp 0x1400b18dd
call fcn.140015bd0
nop
call fcn.140015bd0
int3