Function at 0x1400aa660
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.1402b6820
sub rsp, rax
mov rax, qword [0x1404953c0]
xor rax, rsp
mov qword [rbp + 0x1220], rax
mov r13, rcx
xor r14d, r14d
cmp dword [rcx + 0xc], 6
jb 0x1400aa6d6
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 0x1400aa708
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.1402b5c00
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 0x1400aa6d6
cmp eax, 0x20
je 0x1400aa6d6
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 0x1400aa6d6
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 0x1400aaafb
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.140030cb0
nop
lea rdx, str.__t_n_r_f_v
lea rcx, [rsp + 0x70]
call fcn.140030cb0
nop
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x18]
call fcn.14009d030
mov rbx, rax
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.14009d540
mov rdi, qword [rbx + 0x10]
cmp rdi, rax
cmovb rax, rdi
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x1400aa7fe
mov rcx, qword [rbx]
sub rdi, rax
lea rdx, [rcx + rax*2]
lea r8, [rdi*2 + 2]
call fcn.140305e90
mov qword [rbx + 0x10], rdi
lea rcx, [rsp + 0x70]
call fcn.1400166f0
lea rax, [rbp - 0x18]
cmp rax, rbx
je 0x1400aa843
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 7
jbe 0x1400aa837
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rbp - 0x18]
call fcn.140030940
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 0x1400aa889
sub rsi, rdi
movzx ecx, word [rdi]
call fcn.1402d2a24
mov word [rsi + rdi], ax
add rdi, 2
cmp rdi, rbx
jne 0x1400aa874
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
movdqa xmm1, xmmword [0x14043ca90]
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 0x1400aa8e8
lea rax, [rbp + 0x10]
mov r8, rdi
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x1400aa8d0
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x60]
call fcn.140030940
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 0x1400aa936
sub r14, rsi
nop dword [rax]
movzx ecx, word [rsi]
call fcn.1402d2a24
mov word [r14 + rsi], ax
add rsi, 2
cmp rsi, rbx
jne 0x1400aa920
lea rdx, str.__t_n_r_f_v
lea rcx, [rsp + 0x30]
call fcn.140030cb0
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 0x1400aaa35
mov ebx, 0x100
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0x10]
call fcn.140306610
mov rcx, r14
mov r9, qword [rsp + 0x40]
lea rdx, [r14 + r9*2]
cmp r14, rdx
je 0x1400aa9b1
movzx eax, word [rcx]
cmp ax, bx
jae 0x1400aa9dd
movzx eax, al
mov byte [rbp + rax + 0x10], 1
add rcx, 2
cmp rcx, rdx
jne 0x1400aa998
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 0x1400aaa2c
cmp byte [rbp + rax + 0x10], 0
je 0x1400aaa2c
cmp rcx, rsi
je 0x1400aaa35
sub rcx, 2
jmp 0x1400aa9c3
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 0x1400aaa27
cmp word [r14], dx
je 0x1400aaa17
cmp rax, 1
je 0x1400aaa27
dec rax
add rcx, 2
cmp word [rcx], dx
jne 0x1400aaa05
test rcx, rcx
je 0x1400aaa27
cmp r8, rsi
je 0x1400aaa35
sub r8, 2
jmp 0x1400aa9f0
mov rdi, r8
jmp 0x1400aaa2f
mov rdi, rcx
sub rdi, rsi
sar rdi, 1
inc rdi
cmp r15, rdi
jb 0x1400aad60
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.14009d540
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.140305e90
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.14005ed00
test rax, rax
je 0x1400aaae3
mov byte [r13 + 0x158], 0
lea rcx, [rbp - 0x60]
call fcn.1400166f0
nop
lea rcx, [rbp - 0x18]
call fcn.1400166f0
jmp 0x1400aa6dd
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
movdqa xmm1, xmmword [0x14043ca90]
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 0x1400aab59
lea rax, [rbp + 0x10]
mov r8, rdi
inc r8
cmp word [rax + r8*2], 0
jne 0x1400aab41
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x40]
call fcn.140030940
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 0x1400aaba6
sub r14, rsi
nop word [rax + rax]
movzx ecx, word [rsi]
call fcn.1402d2a24
mov word [rsi + r14], ax
add rsi, 2
cmp rsi, rbx
jne 0x1400aab90
lea rdx, str.__t_n_r_f_v
lea rcx, [rsp + 0x50]
call fcn.140030cb0
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 0x1400aaca5
mov ebx, 0x100
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0x10]
call fcn.140306610
mov rcx, r14
mov r9, qword [rsp + 0x60]
lea rdx, [r14 + r9*2]
cmp r14, rdx
je 0x1400aac21
movzx eax, word [rcx]
cmp ax, bx
jae 0x1400aac4d
movzx eax, al
mov byte [rbp + rax + 0x10], 1
add rcx, 2
cmp rcx, rdx
jne 0x1400aac08
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 0x1400aac9c
cmp byte [rbp + rax + 0x10], 0
je 0x1400aac9c
cmp rcx, rsi
je 0x1400aaca5
sub rcx, 2
jmp 0x1400aac33
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 0x1400aac97
cmp word [r14], dx
je 0x1400aac87
cmp rax, 1
je 0x1400aac97
dec rax
add rcx, 2
cmp word [rcx], dx
jne 0x1400aac75
test rcx, rcx
je 0x1400aac97
cmp r8, rsi
je 0x1400aaca5
sub r8, 2
jmp 0x1400aac60
mov rdi, r8
jmp 0x1400aac9f
mov rdi, rcx
sub rdi, rsi
sar rdi, 1
inc rdi
cmp r15, rdi
jb 0x1400aad5a
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.14009d540
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.140305e90
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, [0x14042149c]
xor r8d, r8d
mov rdx, qword [rbp - 0x30]
call fcn.14005ed00
test rax, rax
je 0x1400aad4c
mov byte [r13 + 0x158], 0
lea rcx, [rbp - 0x40]
call fcn.1400166f0
jmp 0x1400aa6dd
call fcn.140015bd0
nop
call fcn.140015bd0
int3