Function at 0x140005740
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 [0x1400395a0]
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 [0x14002ad6a]
test eax, eax
jne 0x1400057a9
mov qword [rsp + 0x88], 0
jmp 0x1400057bd
lea rcx, [0x14002ad6a]
call fcn.140014540
mov qword [rsp + 0x88], rax
mov r8, qword [rsp + 0x88]
lea rdx, [0x14002ad6a]
mov rcx, qword [rsp + 0x470]
call fcn.14000ca60
lea rdx, [0x14002b508]
lea rcx, [rsp + 0x150]
call fcn.140001850
nop
lea r8, [rsp + 0x150]
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x468]
call fcn.14000ab70
mov dword [rsp + 0x34], eax
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x150]
call fcn.14000c230
cmp dword [rsp + 0x34], 0
jne 0x140005853
mov dword [rsp + 0x5c], 0
lea rcx, [rsp + 0x68]
call fcn.14000c3b0
nop
xor r8d, r8d
mov dl, 1
mov rcx, qword [rsp + 0x468]
call fcn.14000c230
mov eax, dword [rsp + 0x5c]
jmp 0x140005f08
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 0x140005891
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 0x14000589b
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.140015364
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 0x140005923
cmp dword [rsp + 0x30], 0x4019
je 0x140005d15
cmp dword [rsp + 0x30], 0xa
je 0x140005960
cmp dword [rsp + 0x30], 0xb
je 0x140005a03
cmp dword [rsp + 0x30], 0xc
je 0x140005a6e
cmp dword [rsp + 0x30], 0x4000
je 0x140005dc5
cmp dword [rsp + 0x30], 0x4017
je 0x140005c6a
jmp 0x140005e72
cmp dword [rsp + 0x30], 0x4023
je 0x140005bbf
cmp dword [rsp + 0x30], 0x4026
je 0x140005b14
cmp dword [rsp + 0x30], 0x4029
je 0x140005a03
cmp dword [rsp + 0x30], 0x402a
je 0x140005b14
jmp 0x140005e72
mov edx, 0x104
lea rcx, [rsp + 0x330]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea rdx, [rsp + 0x330]
lea rcx, [rsp + 0x2d0]
call fcn.140001850
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xb0], rax
lea r8, [0x14002aea0]
mov rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0x250]
call fcn.1400013d0
mov qword [rsp + 0xa0], rax
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x470]
call fcn.140001ed0
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x250]
call fcn.14000c230
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x2d0]
call fcn.14000c230
jmp 0x140005e9d
mov r8d, 0x104
lea rdx, [rsp + 0x330]
mov rcx, qword [rsp + 0x460]
call fcn.1400064e0
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
movsx eax, byte [rax]
test eax, eax
jne 0x140005a3d
mov qword [rsp + 0x80], 0
jmp 0x140005a4f
mov rcx, qword [rsp + 0x50]
call fcn.140014540
mov qword [rsp + 0x80], rax
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x470]
call fcn.14000ca60
jmp 0x140005e9d
mov r8d, 0x104
lea rdx, [rsp + 0x330]
mov rcx, qword [rsp + 0x460]
call fcn.1400064e0
mov rdx, rax
lea rcx, [rsp + 0x290]
call fcn.140001850
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.1400013d0
mov qword [rsp + 0x130], rax
mov rdx, qword [rsp + 0x130]
mov rcx, qword [rsp + 0x470]
call fcn.140001ed0
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x1d0]
call fcn.14000c230
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x290]
call fcn.14000c230
jmp 0x140005e9d
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.140001850
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x100], rax
lea r8, [0x14002aea0]
mov rdx, qword [rsp + 0x100]
lea rcx, [rsp + 0x210]
call fcn.1400013d0
mov qword [rsp + 0xd0], rax
mov rdx, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0x470]
call fcn.140001ed0
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x210]
call fcn.14000c230
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x310]
call fcn.14000c230
jmp 0x140005e9d
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.140001850
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0xe0], rax
lea r8, [0x14002aea0]
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x170]
call fcn.1400013d0
mov qword [rsp + 0x110], rax
mov rdx, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x470]
call fcn.140001ed0
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x170]
call fcn.14000c230
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x190]
call fcn.14000c230
jmp 0x140005e9d
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.140001850
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0xa8], rax
lea r8, [0x14002aea0]
mov rdx, qword [rsp + 0xa8]
lea rcx, [rsp + 0x1b0]
call fcn.1400013d0
mov qword [rsp + 0x90], rax
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x470]
call fcn.140001ed0
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x1b0]
call fcn.14000c230
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x1f0]
call fcn.14000c230
jmp 0x140005e9d
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.140001850
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0xd8], rax
lea r8, [0x14002aea0]
mov rdx, qword [rsp + 0xd8]
lea rcx, [rsp + 0x230]
call fcn.1400013d0
mov qword [rsp + 0xe8], rax
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x470]
call fcn.140001ed0
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x230]
call fcn.14000c230
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x270]
call fcn.14000c230
jmp 0x140005e9d
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.140001850
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x108], rax
lea r8, [0x14002aea0]
mov rdx, qword [rsp + 0x108]
lea rcx, [rsp + 0x2b0]
call fcn.1400013d0
mov qword [rsp + 0x118], rax
mov rdx, qword [rsp + 0x118]
mov rcx, qword [rsp + 0x470]
call fcn.140001ed0
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x2b0]
call fcn.14000c230
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x2f0]
call fcn.14000c230
jmp 0x140005e9d
mov dword [rsp + 0x58], 0
lea rcx, [rsp + 0x68]
call fcn.14000c3b0
nop
xor r8d, r8d
mov dl, 1
mov rcx, qword [rsp + 0x468]
call fcn.14000c230
mov eax, dword [rsp + 0x58]
jmp 0x140005f08
cmp dword [rsp + 0x34], 1
jbe 0x140005edf
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 [0x14002ad60]
xor r8d, r8d
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x470]
call fcn.14000c440
mov dword [rsp + 0x38], 1
lea rcx, [rsp + 0x68]
call fcn.14000c3b0
nop
xor r8d, r8d
mov dl, 1
mov rcx, qword [rsp + 0x468]
call fcn.14000c230
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1400168f0
add rsp, 0x450
pop rdi
ret