Function at 0x140006690
Capabilities:
Get common file path
Query environment variable

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x450
mov qword [rsp + 0x140], 0xfffffffffffffffe
mov rax, qword [0x1400405b0]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
movsx eax, byte [0x14003114a]
test eax, eax
jne 0x1400066f9
mov qword [rsp + 0x88], 0
jmp 0x14000670d
lea rcx, [0x14003114a]
call fcn.140017e70
mov qword [rsp + 0x88], rax
mov r8, qword [rsp + 0x88]
lea rdx, [0x14003114a]
mov rcx, qword [rsp + 0x470]
call fcn.14000e4a0
lea rdx, [0x140031a90]
lea rcx, [rsp + 0x150]
call fcn.140001a70
nop
lea r8, [rsp + 0x150]
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x468]
call fcn.14000c5b0
mov dword [rsp + 0x34], eax
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x150]
call fcn.14000dc70
cmp dword [rsp + 0x34], 0
jne 0x1400067a3
mov dword [rsp + 0x5c], 0
lea rcx, [rsp + 0x68]
call fcn.14000ddf0
nop
xor r8d, r8d
mov dl, 1
mov rcx, qword [rsp + 0x468]
call fcn.14000dc70
mov eax, dword [rsp + 0x5c]
jmp 0x140006e58
xor eax, eax
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x18], 0x10
jb 0x1400067e1
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
jmp 0x1400067eb
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.140018e90
mov dword [rsp + 0x48], eax
mov byte [rsp + 0x330], 0
lea rax, [rsp + 0x331]
mov rdi, rax
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x4019
jg 0x140006873
cmp dword [rsp + 0x30], 0x4019
je 0x140006c65
cmp dword [rsp + 0x30], 0xa
je 0x1400068b0
cmp dword [rsp + 0x30], 0xb
je 0x140006953
cmp dword [rsp + 0x30], 0xc
je 0x1400069be
cmp dword [rsp + 0x30], 0x4000
je 0x140006d15
cmp dword [rsp + 0x30], 0x4017
je 0x140006bba
jmp 0x140006dc2
cmp dword [rsp + 0x30], 0x4023
je 0x140006b0f
cmp dword [rsp + 0x30], 0x4026
je 0x140006a64
cmp dword [rsp + 0x30], 0x4029
je 0x140006953
cmp dword [rsp + 0x30], 0x402a
je 0x140006a64
jmp 0x140006dc2
mov edx, 0x104
lea rcx, [rsp + 0x330]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea rdx, [rsp + 0x330]
lea rcx, [rsp + 0x2d0]
call fcn.140001a70
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xb0], rax
lea r8, [0x140031280]
mov rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0x250]
call fcn.140001460
mov qword [rsp + 0xa0], rax
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x470]
call fcn.140002340
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x250]
call fcn.14000dc70
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x2d0]
call fcn.14000dc70
jmp 0x140006ded
mov r8d, 0x104
lea rdx, [rsp + 0x330]
mov rcx, qword [rsp + 0x460]
call fcn.140007430
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
movsx eax, byte [rax]
test eax, eax
jne 0x14000698d
mov qword [rsp + 0x80], 0
jmp 0x14000699f
mov rcx, qword [rsp + 0x50]
call fcn.140017e70
mov qword [rsp + 0x80], rax
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x470]
call fcn.14000e4a0
jmp 0x140006ded
mov r8d, 0x104
lea rdx, [rsp + 0x330]
mov rcx, qword [rsp + 0x460]
call fcn.140007430
mov rdx, rax
lea rcx, [rsp + 0x290]
call fcn.140001a70
mov qword [rsp + 0x128], rax
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0x138], rax
lea r8, str.drivers_
mov rdx, qword [rsp + 0x138]
lea rcx, [rsp + 0x1d0]
call fcn.140001460
mov qword [rsp + 0x130], rax
mov rdx, qword [rsp + 0x130]
mov rcx, qword [rsp + 0x470]
call fcn.140002340
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x1d0]
call fcn.14000dc70
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x290]
call fcn.14000dc70
jmp 0x140006ded
mov r8d, 0x104
lea rdx, [rsp + 0x330]
lea rcx, str.ProgramFiles
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea rdx, [rsp + 0x330]
lea rcx, [rsp + 0x310]
call fcn.140001a70
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x100], rax
lea r8, [0x140031280]
mov rdx, qword [rsp + 0x100]
lea rcx, [rsp + 0x210]
call fcn.140001460
mov qword [rsp + 0xd0], rax
mov rdx, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0x470]
call fcn.140002340
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x210]
call fcn.14000dc70
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x310]
call fcn.14000dc70
jmp 0x140006ded
mov r8d, 0x104
lea rdx, [rsp + 0x330]
lea rcx, str.ProgramData
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea rdx, [rsp + 0x330]
lea rcx, [rsp + 0x190]
call fcn.140001a70
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0xe0], rax
lea r8, [0x140031280]
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x170]
call fcn.140001460
mov qword [rsp + 0x110], rax
mov rdx, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x470]
call fcn.140002340
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x170]
call fcn.14000dc70
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x190]
call fcn.14000dc70
jmp 0x140006ded
mov r8d, 0x104
lea rdx, [rsp + 0x330]
lea rcx, str.AllUsersProfile
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea rdx, [rsp + 0x330]
lea rcx, [rsp + 0x1f0]
call fcn.140001a70
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0xa8], rax
lea r8, [0x140031280]
mov rdx, qword [rsp + 0xa8]
lea rcx, [rsp + 0x1b0]
call fcn.140001460
mov qword [rsp + 0x90], rax
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x470]
call fcn.140002340
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x1b0]
call fcn.14000dc70
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x1f0]
call fcn.14000dc70
jmp 0x140006ded
lea rax, [rsp + 0x330]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x19
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea rdx, [rsp + 0x330]
lea rcx, [rsp + 0x270]
call fcn.140001a70
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0xd8], rax
lea r8, [0x140031280]
mov rdx, qword [rsp + 0xd8]
lea rcx, [rsp + 0x230]
call fcn.140001460
mov qword [rsp + 0xe8], rax
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x470]
call fcn.140002340
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x230]
call fcn.14000dc70
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x270]
call fcn.14000dc70
jmp 0x140006ded
lea rax, [rsp + 0x330]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x10
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea rdx, [rsp + 0x330]
lea rcx, [rsp + 0x2f0]
call fcn.140001a70
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x108], rax
lea r8, [0x140031280]
mov rdx, qword [rsp + 0x108]
lea rcx, [rsp + 0x2b0]
call fcn.140001460
mov qword [rsp + 0x118], rax
mov rdx, qword [rsp + 0x118]
mov rcx, qword [rsp + 0x470]
call fcn.140002340
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x2b0]
call fcn.14000dc70
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x2f0]
call fcn.14000dc70
jmp 0x140006ded
mov dword [rsp + 0x58], 0
lea rcx, [rsp + 0x68]
call fcn.14000ddf0
nop
xor r8d, r8d
mov dl, 1
mov rcx, qword [rsp + 0x468]
call fcn.14000dc70
mov eax, dword [rsp + 0x58]
jmp 0x140006e58
cmp dword [rsp + 0x34], 1
jbe 0x140006e2f
mov eax, 1
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x98], rax
mov r9, qword [0x140031140]
xor r8d, r8d
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x470]
call fcn.14000de80
mov dword [rsp + 0x38], 1
lea rcx, [rsp + 0x68]
call fcn.14000ddf0
nop
xor r8d, r8d
mov dl, 1
mov rcx, qword [rsp + 0x468]
call fcn.14000dc70
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.14001a850
add rsp, 0x450
pop rdi
ret