Function at 0x14003cdf0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1700]
mov eax, 0x1800
call fcn.140212420
sub rsp, rax
mov rax, qword [0x14030b918]
xor rax, rsp
mov qword [rbp + 0x16f0], rax
mov rsi, rdx
mov rbx, rcx
xor r14b, r14b
xor r13d, r13d
mov r12d, r13d
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x48], r13d
mov qword [rsp + 0x50], r13
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_
lea rcx, [rsp + 0x58]
call fcn.140009744
nop
mov r9, rbx
cmp qword [rbx + 0x18], 8
jb 0x14003ce63
mov r9, qword [rbx]
mov rdi, qword [rbx + 0x10]
mov r15, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
sub rax, r15
cmp rdi, rax
ja 0x14003ceaf
lea rax, [r15 + rdi]
mov qword [rsp + 0x68], rax
lea rbx, [rsp + 0x58]
cmp rcx, 8
cmovae rbx, qword [rsp + 0x58]
lea rcx, [rbx + r15*2]
lea r8, [rdi + rdi]
mov rdx, r9
call fcn.1402160f0
lea rax, [r15 + rdi]
mov word [rbx + rax*2], r13w
jmp 0x14003cec1
mov qword [rsp + 0x20], rdi
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.140021150
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rdx, qword [rsp + 0x58]
mov qword [rsp + 0x38], r13
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14003cf6b
mov r12, qword [rsp + 0x38]
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x48], r13d
mov dword [rsp + 0x30], 0x7d0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
lea rdx, [0x1402b9b30]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14003cf6b
mov eax, dword [rsp + 0x38]
dec eax
cmp eax, 1
ja 0x14003cf6b
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x14003cffd
test al, 1
jne 0x14003cf6b
shr rax, 1
cmp word [rsp + rax*2 + 0x7e], 0
je 0x14003d002
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x14003cfad
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003cfa8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003d19e
call fcn.14000410c
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r13w
test r12, r12
je 0x14003cfcf
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, r14b
mov rcx, qword [rbp + 0x16f0]
xor rcx, rsp
call fcn.140211970
mov rbx, qword [rsp + 0x1850]
add rsp, 0x1800
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov word [rbp - 0x80], r13w
mov r8d, 0x7d0
lea rdx, [rbp + 0x750]
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rax, [rbp + 0x750]
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14003d030
mov r15, qword [rsi + 0x18]
cmp rbx, r15
ja 0x14003d075
mov rdi, rsi
cmp r15, 8
jb 0x14003d04f
mov rdi, qword [rsi]
mov qword [rsi + 0x10], rbx
add rbx, rbx
mov r8, rbx
lea rdx, [rbp + 0x750]
mov rcx, rdi
call fcn.1402160f0
mov word [rbx + rdi], r13w
mov r14b, 1
jmp 0x14003cf6b
movabs r14, 0x7ffffffffffffffe
cmp rbx, r14
ja 0x14003d1a4
mov rcx, rbx
or rcx, 7
cmp rcx, r14
jbe 0x14003d0a4
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x14003d0f6
mov rdx, r15
shr rdx, 1
mov rax, r14
sub rax, rdx
cmp r15, rax
jbe 0x14003d0c5
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x14003d0f6
lea rax, [rdx + r15]
mov r14, rcx
cmp rcx, rax
cmovb r14, rax
lea rcx, [r14 + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x14003d198
add rcx, rcx
cmp rcx, 0x1000
jb 0x14003d122
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14003d198
mov rcx, rax
call fcn.14007490c
test rax, rax
je 0x14003d1aa
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x14003d134
test rcx, rcx
je 0x14003d131
call fcn.14007490c
mov rdi, rax
jmp 0x14003d134
mov rdi, r13
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], r14
add rbx, rbx
mov r8, rbx
lea rdx, [rbp + 0x750]
mov rcx, rdi
call fcn.1402160f0
mov word [rbx + rdi], r13w
cmp r15, 8
jb 0x14003d18d
mov rcx, qword [rsi]
lea rdx, [r15*2 + 2]
cmp rdx, 0x1000
jb 0x14003d188
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14003d1aa
mov rcx, r8
call fcn.14000410c
mov qword [rsi], rdi
mov r14b, 1
jmp 0x14003cf6b
call fcn.140006194
nop
call fcn.14021a9ac
nop
call fcn.1400069a0
int3
call fcn.14021a9ac
int3