Function at 0x14010f980
Capabilities:
Check if file exists
Get common file path
Get file attributes
Query environment variable
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2648]
mov eax, 0x2748
call fcn.1401df610
sub rsp, rax
mov rax, qword [0x1402e4100]
xor rax, rsp
mov qword [rbp + 0x2630], rax
mov qword [rbp - 0x48], r9
mov r15, r8
mov rsi, rdx
mov qword [rbp - 0x78], rcx
mov rax, qword [rbp + 0x26b8]
mov qword [rbp - 0x50], rax
mov r13, qword [rbp + 0x26c0]
mov qword [rbp - 0x38], r13
xor r14d, r14d
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0x630]
call fcn.140266b40
lea rcx, [rbp - 0x30]
call fcn.1400d9dd0
nop
mov rdx, rsi
lea rcx, [rsp + 0x68]
call fcn.1400d1570
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140106470
mov rdi, rax
cmp rsi, rax
je 0x14010fa48
mov rcx, rsi
call fcn.1400d1e50
mov rcx, rdi
call fcn.1400d1e50
mov rbx, rax
mov rcx, rsi
call fcn.1400d1e70
mov rcx, rbx
call fcn.1400d3040
mov rdx, rdi
mov rcx, rsi
call fcn.1400d1f20
lea rcx, [rsp + 0x40]
call fcn.1400d1500
mov rdx, rsi
lea rcx, [rbp - 8]
call fcn.140105d00
nop
cmp dword [0x1403b3a0c], 9
ja 0x14010fb52
lea rcx, [0x1402a7f50]
call fcn.1400cd170
mov rdi, rax
mov rbx, qword [rbp + 8]
lea rcx, [rbp - 8]
call fcn.1400d20e0
mov r13, rax
cmp rdi, rbx
ja 0x14010fb4e
sub rbx, rdi
test rdi, rdi
je 0x14010fb08
lea r12, [rbx*2]
mov rbx, rax
nop word [rax + rax]
lea rax, [r13 + 2]
add rax, r12
sub rax, rbx
sar rax, 1
mov rcx, r14
je 0x14010fade
cmp word [rbx], 0x65
je 0x14010fadb
cmp rax, 1
je 0x14010fade
dec rax
add rbx, 2
cmp word [rbx], 0x65
jne 0x14010fac8
mov rcx, rbx
mov rbx, rcx
test rcx, rcx
je 0x14010fb4e
mov r8, rdi
lea rdx, [0x1402a7f50]
call fcn.1400d2180
test eax, eax
je 0x14010faff
add rbx, 2
jmp 0x14010fab0
sub rbx, r13
cmp rbx, 2
jae 0x14010fb4e
mov qword [rbp + 0x18], 4
mov rax, qword [rbp + 8]
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x18]
call fcn.1400b0790
mov rbx, qword [rax]
mov rdi, qword [rbp + 8]
lea rcx, [rbp - 8]
call fcn.1400d7e90
sub rdi, rbx
lea r8, [rdi + 1]
lea rdx, [rax + rbx*2]
mov rcx, rax
call fcn.1400e82e0
mov qword [rbp + 8], rdi
mov r13, qword [rbp - 0x38]
mov rdi, qword [rbp - 0x78]
add rdi, 8
mov rax, qword [rdi]
mov qword [rbp - 0x78], rax
mov rdx, rdi
lea rcx, [rbp - 0x78]
call fcn.140072680
mov rbx, qword [rbp - 0x78]
mov rax, qword [rdi]
mov rcx, qword [rax]
mov qword [rbp + 0x18], rcx
mov rdx, rdi
lea rcx, [rbp + 0x18]
call fcn.140072680
mov rax, qword [rbp + 0x18]
mov qword [rbp - 0x10], rax
xor edx, edx
lea rcx, [rbp - 0x10]
call fcn.140072680
mov qword [rbp - 0x38], rbx
xor edx, edx
lea rcx, [rbp - 0x38]
call fcn.140072680
mov rbx, qword [rbp - 0x10]
cmp rbx, qword [rbp - 0x38]
je 0x14010fbdf
lea rcx, [rbx + 0x10]
call fcn.1400d1490
mov rdx, rax
lea rcx, [rbp - 8]
call fcn.1401110f0
mov rbx, qword [rbp - 0x10]
cmp rax, 0xffffffffffffffff
jne 0x14010fbdf
mov rbx, qword [rbx]
mov qword [rbp - 0x10], rbx
cmp rbx, qword [rbp - 0x38]
jne 0x14010fbb3
mov rax, qword [rdi]
mov qword [rsp + 0x60], rax
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.140072680
cmp rbx, qword [rsp + 0x60]
je 0x14010fd23
mov rcx, qword [rbx + 0x30]
cmp rcx, qword [rbx + 0x38]
je 0x14010fc23
mov rdx, r15
call fcn.1400d27a0
test al, al
jne 0x14010fc1b
mov r15, qword [rbx + 0x30]
jmp 0x14010fc23
mov r15, qword [rbx + 0x38]
sub r15, 0x20
mov rcx, rsi
mov rdx, r15
call fcn.1400e7860
mov r9, r13
mov r8, qword [rbp - 0x50]
mov rdx, rsi
call fcn.1401105b0
mov edx, 0x80000000
lea ecx, [rax + rdx]
test edx, ecx
jne 0x140110540
cmp eax, 0xc015001d
je 0x140110540
test byte [rbp + 0x26b0], 2
je 0x140110543
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0x30]
call fcn.140266b40
mov edx, 0xff
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x70]
call fcn.1400d15f0
mov rbx, rax
lea rcx, [0x1402a7f4c]
call fcn.1400cd170
mov rcx, rax
call fcn.1400a90e0
mov r8, rax
lea rdx, [0x1402a7f4c]
mov rcx, rbx
call fcn.140112fb0
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.1400d1570
nop
mov rbx, qword [rsi + 0x10]
mov rcx, rsi
call fcn.1400d20e0
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140112fb0
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400d1570
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400e78c0
lea rcx, [rsp + 0x40]
call fcn.1400d1500
nop
lea rcx, [rsp + 0x68]
call fcn.1400d1500
nop
lea rcx, [rbp - 0x70]
call fcn.1400d1500
jmp 0x140110543
mov r15d, dword [rbp + 0x26b0]
test r15b, 1
jne 0x14010fd63
mov r9, r13
mov r13, qword [rbp - 0x50]
mov r8, r13
mov rdx, rsi
call fcn.1401105b0
mov edx, 0x80000000
lea ecx, [rax + rdx]
test edx, ecx
jne 0x140110540
cmp eax, 0xc015001d
je 0x140110540
test r15b, 4
je 0x14010fd6e
mov r14d, 0xc0000225
jmp 0x140110543
mov rcx, rsi
call fcn.1400d1490
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140110543
mov qword [rbp + 0x20], r14
lea r8, [rbp + 0x20]
lea rdx, str.SYSTEMCurrentControlSetControlSession_ManagerKnownDLLs
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
movsxd rdi, eax
test eax, eax
jne 0x14010fe93
mov ebx, r14d
test rdi, rdi
jne 0x14010fe93
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0x430]
call fcn.140266b40
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0x230]
call fcn.140266b40
mov dword [rbp - 0x38], 0xff
mov dword [rbp - 0x10], r14d
lea rax, [rbp - 0x38]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x230]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x38]
lea r8, [rbp + 0x430]
mov edx, ebx
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
movsxd rdi, eax
lea rcx, [rbp - 8]
call fcn.1400d1490
mov rdx, rax
lea rcx, [rbp + 0x230]
call fcn.140237654
test eax, eax
jne 0x14010fe85
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0x30]
call fcn.140266b40
mov dword [rbp - 0x38], 0xff
mov edx, 0xff
lea rcx, [rbp + 0x30]
test r15b, 8
je 0x14010fe76
call qword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
jmp 0x14010fe7c
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test rdi, rdi
je 0x140110042
inc ebx
cmp ebx, 0x1000
jl 0x14010fdb2
mov rax, qword [rbp - 0x48]
cmp qword [rax + 0x10], 0
je 0x14010ff44
lea r8, [0x1402a7f4c]
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.140112280
mov rdi, rax
mov rbx, qword [rbp + 8]
lea rcx, [rbp - 8]
call fcn.1400d20e0
mov r8, rbx
mov rdx, rax
mov rcx, rdi
call fcn.140112fb0
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400d1570
lea rcx, [rbp - 0x30]
call fcn.1400d1e50
lea rcx, [rsp + 0x40]
call fcn.1400d1e50
mov rbx, rax
lea rcx, [rbp - 0x30]
call fcn.1400d1e70
mov rcx, rbx
call fcn.1400d3040
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x30]
call fcn.1400d1f20
lea rcx, [rsp + 0x40]
call fcn.1400d1500
nop
lea rcx, [rbp - 0x70]
call fcn.1400d1500
lea rcx, [rbp - 0x30]
call fcn.1400d1490
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1401103b2
mov r8d, dword [r13 + 8]
lea rdx, [rbp - 0x70]
call fcn.140110b10
mov rbx, rax
lea rcx, [0x1402a7f4c]
call fcn.1400cd170
mov rcx, rax
call fcn.1400a90e0
mov r8, rax
lea rdx, [0x1402a7f4c]
mov rcx, rbx
call fcn.140112fb0
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.1400d1570
nop
mov rbx, qword [rbp + 8]
lea rcx, [rbp - 8]
call fcn.1400d20e0
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140112fb0
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400d1570
lea rcx, [rbp - 0x30]
call fcn.1400d1e50
lea rcx, [rsp + 0x40]
call fcn.1400d1e50
mov rbx, rax
lea rcx, [rbp - 0x30]
call fcn.1400d1e70
mov rcx, rbx
call fcn.1400d3040
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x30]
call fcn.1400d1f20
lea rcx, [rsp + 0x40]
call fcn.1400d1500
nop
lea rcx, [rsp + 0x68]
call fcn.1400d1500
nop
lea rcx, [rbp - 0x70]
call fcn.1400d1500
lea rcx, [rbp - 0x30]
call fcn.1400d1490
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1401103b2
mov edx, 0x1000
lea rcx, [rbp + 0x630]
test r15b, 8
je 0x1401100ec
call qword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
jmp 0x1401100f2
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x70]
call fcn.1400d15f0
mov rbx, rax
lea rcx, [0x1402a7f4c]
call fcn.1400cd170
mov rcx, rax
call fcn.1400a90e0
mov r8, rax
lea rdx, [0x1402a7f4c]
mov rcx, rbx
call fcn.140112fb0
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400d1570
nop
lea rcx, [rbp + 0x230]
call fcn.1400cd170
mov rcx, rax
call fcn.1400a90e0
mov r8, rax
lea rdx, [rbp + 0x230]
lea rcx, [rsp + 0x40]
call fcn.140112fb0
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.1400d1570
lea rdx, [rsp + 0x68]
mov rcx, rsi
call fcn.1400e78c0
lea rcx, [rsp + 0x68]
call fcn.1400d1500
nop
lea rcx, [rsp + 0x40]
call fcn.1400d1500
nop
lea rcx, [rbp - 0x70]
call fcn.1400d1500
jmp 0x14011052f
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rdx, [rbp + 0x630]
lea rcx, [rbp - 0x70]
call fcn.1400d15f0
mov rbx, rax
lea rcx, [0x1402a7f4c]
call fcn.1400cd170
mov rcx, rax
call fcn.1400a90e0
mov r8, rax
lea rdx, [0x1402a7f4c]
mov rcx, rbx
call fcn.140112fb0
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.1400d1570
nop
mov rbx, qword [rbp + 8]
lea rcx, [rbp - 8]
call fcn.1400d20e0
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140112fb0
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400d1570
lea rcx, [rbp - 0x30]
call fcn.1400d1e50
lea rcx, [rsp + 0x40]
call fcn.1400d1e50
mov rbx, rax
lea rcx, [rbp - 0x30]
call fcn.1400d1e70
mov rcx, rbx
call fcn.1400d3040
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x30]
call fcn.1400d1f20
lea rcx, [rsp + 0x40]
call fcn.1400d1500
nop
lea rcx, [rsp + 0x68]
call fcn.1400d1500
nop
lea rcx, [rbp - 0x70]
call fcn.1400d1500
lea rcx, [rbp - 0x30]
call fcn.1400d1490
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1401103b2
mov edx, 0x1000
lea rcx, [rbp + 0x630]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea rdx, [rbp + 0x630]
lea rcx, [rbp - 0x70]
call fcn.1400d15f0
mov rbx, rax
lea rcx, [0x1402a7f4c]
call fcn.1400cd170
mov rcx, rax
call fcn.1400a90e0
mov r8, rax
lea rdx, [0x1402a7f4c]
mov rcx, rbx
call fcn.140112fb0
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.1400d1570
nop
mov rbx, qword [rbp + 8]
lea rcx, [rbp - 8]
call fcn.1400d20e0
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140112fb0
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400d1570
lea rcx, [rbp - 0x30]
call fcn.1400d1e50
lea rcx, [rsp + 0x40]
call fcn.1400d1e50
mov rbx, rax
lea rcx, [rbp - 0x30]
call fcn.1400d1e70
mov rcx, rbx
call fcn.1400d3040
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x30]
call fcn.1400d1f20
lea rcx, [rsp + 0x40]
call fcn.1400d1500
nop
lea rcx, [rsp + 0x68]
call fcn.1400d1500
nop
lea rcx, [rbp - 0x70]
call fcn.1400d1500
lea rcx, [rbp - 0x30]
call fcn.1400d1490
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1401103b2
lea rdx, [rbp + 0x630]
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rdx, [rbp + 0x630]
lea rcx, [rbp - 0x70]
call fcn.1400d15f0
mov rbx, rax
lea rcx, [0x1402a7f4c]
call fcn.1400cd170
mov rcx, rax
call fcn.1400a90e0
mov r8, rax
lea rdx, [0x1402a7f4c]
mov rcx, rbx
call fcn.140112fb0
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.1400d1570
nop
mov rbx, qword [rbp + 8]
lea rcx, [rbp - 8]
call fcn.1400d20e0
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140112fb0
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400d1570
lea rcx, [rbp - 0x30]
call fcn.1400d1e50
lea rcx, [rsp + 0x40]
call fcn.1400d1e50
mov rbx, rax
lea rcx, [rbp - 0x30]
call fcn.1400d1e70
mov rcx, rbx
call fcn.1400d3040
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x30]
call fcn.1400d1f20
lea rcx, [rsp + 0x40]
call fcn.1400d1500
nop
lea rcx, [rsp + 0x68]
call fcn.1400d1500
nop
lea rcx, [rbp - 0x70]
call fcn.1400d1500
lea rcx, [rbp - 0x30]
call fcn.1400d1490
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401103f0
lea rax, [rbp - 0x30]
cmp rsi, rax
je 0x14011052f
mov rcx, rsi
call fcn.1400d1e50
lea rcx, [rbp - 0x30]
call fcn.1400d1e30
mov rbx, qword [rbp - 0x20]
lea rcx, [rbp - 0x30]
call fcn.1400d20e0
mov r8, rbx
mov rdx, rax
mov rcx, rsi
call fcn.1400e7fd0
jmp 0x14011052f
mov r8d, 0x1000
lea rdx, [rbp + 0x630]
lea rcx, str.PATH
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea r8, [rbp - 0x40]
lea rdx, [0x1402a8000]
lea rcx, [rbp + 0x630]
call fcn.140237970
test rax, rax
je 0x140110529
nop word [rax + rax]
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.1400d15f0
mov rbx, rax
lea rcx, [0x1402a7f4c]
call fcn.1400cd170
mov rcx, rax
call fcn.1400a90e0
mov r8, rax
lea rdx, [0x1402a7f4c]
mov rcx, rbx
call fcn.140112fb0
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.1400d1570
nop
mov rbx, qword [rbp + 8]
lea rcx, [rbp - 8]
call fcn.1400d20e0
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140112fb0
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400d1570
lea rcx, [rbp - 0x30]
call fcn.1400d1e50
lea rcx, [rsp + 0x40]
call fcn.1400d1e50
mov rbx, rax
lea rcx, [rbp - 0x30]
call fcn.1400d1e70
mov rcx, rbx
call fcn.1400d3040
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x30]
call fcn.1400d1f20
lea rcx, [rsp + 0x40]
call fcn.1400d1500
nop
lea rcx, [rsp + 0x68]
call fcn.1400d1500
nop
lea rcx, [rbp - 0x70]
call fcn.1400d1500
lea rcx, [rbp - 0x30]
call fcn.1400d1490
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1401103b2
lea r8, [rbp - 0x40]
lea rdx, [0x1402a8000]
mov rcx, qword [rbp - 0x40]
call fcn.140237970
test rax, rax
jne 0x140110430
mov r14d, 0xc0000225
mov rcx, qword [rbp + 0x20]
test rcx, rcx
jle 0x140110543
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140110543
mov r14d, eax
lea rcx, [rbp - 8]
call fcn.1400d1500
nop
lea rcx, [rbp - 0x30]
call fcn.1400d1500
mov eax, r14d
mov rcx, qword [rbp + 0x2630]
xor rcx, rsp
call fcn.1401de720
add rsp, 0x2748
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret