Function at 0x140006a80
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 [0x14003f5b0]
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 [0x1400300e2]
test eax, eax
jne 0x140006ae9
mov qword [rsp + 0x88], 0
jmp 0x140006afd
lea rcx, [0x1400300e2]
call fcn.1400176b0
mov qword [rsp + 0x88], rax
mov r8, qword [rsp + 0x88]
lea rdx, [0x1400300e2]
mov rcx, qword [rsp + 0x470]
call fcn.14000e6a0
lea rdx, [0x140030a60]
lea rcx, [rsp + 0x150]
call fcn.140001a70
nop
lea r8, [rsp + 0x150]
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x468]
call fcn.14000c7b0
mov dword [rsp + 0x34], eax
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x150]
call fcn.14000de70
cmp dword [rsp + 0x34], 0
jne 0x140006b93
mov dword [rsp + 0x5c], 0
lea rcx, [rsp + 0x68]
call fcn.14000dff0
nop
xor r8d, r8d
mov dl, 1
mov rcx, qword [rsp + 0x468]
call fcn.14000de70
mov eax, dword [rsp + 0x5c]
jmp 0x140007248
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 0x140006bd1
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 0x140006bdb
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.1400184d4
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 0x140006c63
cmp dword [rsp + 0x30], 0x4019
je 0x140007055
cmp dword [rsp + 0x30], 0xa
je 0x140006ca0
cmp dword [rsp + 0x30], 0xb
je 0x140006d43
cmp dword [rsp + 0x30], 0xc
je 0x140006dae
cmp dword [rsp + 0x30], 0x4000
je 0x140007105
cmp dword [rsp + 0x30], 0x4017
je 0x140006faa
jmp 0x1400071b2
cmp dword [rsp + 0x30], 0x4023
je 0x140006eff
cmp dword [rsp + 0x30], 0x4026
je 0x140006e54
cmp dword [rsp + 0x30], 0x4029
je 0x140006d43
cmp dword [rsp + 0x30], 0x402a
je 0x140006e54
jmp 0x1400071b2
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, [0x140030218]
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.14000de70
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x2d0]
call fcn.14000de70
jmp 0x1400071dd
mov r8d, 0x104
lea rdx, [rsp + 0x330]
mov rcx, qword [rsp + 0x460]
call fcn.140007820
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
movsx eax, byte [rax]
test eax, eax
jne 0x140006d7d
mov qword [rsp + 0x80], 0
jmp 0x140006d8f
mov rcx, qword [rsp + 0x50]
call fcn.1400176b0
mov qword [rsp + 0x80], rax
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x470]
call fcn.14000e6a0
jmp 0x1400071dd
mov r8d, 0x104
lea rdx, [rsp + 0x330]
mov rcx, qword [rsp + 0x460]
call fcn.140007820
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.14000de70
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x290]
call fcn.14000de70
jmp 0x1400071dd
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, [0x140030218]
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.14000de70
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x310]
call fcn.14000de70
jmp 0x1400071dd
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, [0x140030218]
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.14000de70
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x190]
call fcn.14000de70
jmp 0x1400071dd
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, [0x140030218]
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.14000de70
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x1f0]
call fcn.14000de70
jmp 0x1400071dd
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, [0x140030218]
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.14000de70
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x270]
call fcn.14000de70
jmp 0x1400071dd
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, [0x140030218]
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.14000de70
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x2f0]
call fcn.14000de70
jmp 0x1400071dd
mov dword [rsp + 0x58], 0
lea rcx, [rsp + 0x68]
call fcn.14000dff0
nop
xor r8d, r8d
mov dl, 1
mov rcx, qword [rsp + 0x468]
call fcn.14000de70
mov eax, dword [rsp + 0x58]
jmp 0x140007248
cmp dword [rsp + 0x34], 1
jbe 0x14000721f
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 [0x1400300d8]
xor r8d, r8d
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x470]
call fcn.14000e080
mov dword [rsp + 0x38], 1
lea rcx, [rsp + 0x68]
call fcn.14000dff0
nop
xor r8d, r8d
mov dl, 1
mov rcx, qword [rsp + 0x468]
call fcn.14000de70
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140019ef0
add rsp, 0x450
pop rdi
ret