Function at 0x1400098f0
Capabilities:
Get common file path
Set environment variable

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x1b0
movaps xmmword [r11 - 0x18], xmm6
movaps xmmword [r11 - 0x28], xmm7
mov rax, qword [0x140019010]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rbx, rcx
mov qword [rsp + 0x20], rcx
lea rax, str.san_path_env_7D9669CE_347E_435A_BDF7_DBDBA31FEA91
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0xd0], rax
xor esi, esi
mov qword [r11 - 0xe8], rsi
mov qword [r11 - 0xa0], rsi
lea r8, str.PATH
lea rdx, [r11 - 0xa0]
lea rcx, [r11 - 0xe8]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wdupenv_s]
test eax, eax
jne 0x1400099ec
mov rdx, qword [rsp + 0xd0]
test rdx, rdx
je 0x1400099ec
mov qword [rsp + 0x160], rsi
mov qword [rsp + 0x170], rsi
mov qword [rsp + 0x178], 7
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], si
jne 0x1400099a5
lea rcx, [rsp + 0x160]
call fcn.14000bb10
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
movups xmm6, xmmword [rsp + 0x160]
movups xmmword [rsp + 0x140], xmm6
movups xmm7, xmmword [rsp + 0x170]
movups xmmword [rsp + 0x150], xmm7
jmp 0x140009a20
mov qword [rsp + 0x140], rsi
mov qword [rsp + 0x150], rsi
mov qword [rsp + 0x158], 7
mov word [rsp + 0x140], si
movups xmm7, xmmword [rsp + 0x150]
movups xmm6, xmmword [rsp + 0x140]
mov qword [rsp + 0x120], rsi
mov qword [rsp + 0x130], rsi
mov qword [rsp + 0x138], 7
mov word [rsp + 0x120], si
mov qword [rsp + 0x98], rsi
lea rcx, [rsp + 0x68]
call fcn.140009820
mov qword [rsp + 0x90], rsi
movdqa xmm1, xmmword [0x140013610]
cmp byte [rax + 0x20], 0
je 0x140009aac
mov qword [rsp + 0xf8], rsi
mov qword [rsp + 0x108], rsi
mov qword [rsp + 0x110], rsi
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0xf8], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x108], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
jmp 0x140009ac4
movups xmm0, xmmword [rsp + 0x90]
movups xmmword [rsp + 0xf8], xmm0
movups xmmword [rsp + 0x108], xmm1
cmp byte [rsp + 0x88], 0
je 0x140009b29
mov rdx, qword [rsp + 0x80]
cmp rdx, 8
jb 0x140009b16
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009b11
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140009b11
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000f82c
movdqa xmm0, xmmword [0x140013610]
movdqu xmmword [rsp + 0x78], xmm0
mov word [rsp + 0x68], si
cmp qword [rsp + 0x108], 0
je 0x140009d3b
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], si
xor r8d, r8d
lea rdx, [0x1400128ac]
lea rcx, [rsp + 0x28]
call fcn.14000bb10
nop
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0xf8]
call fcn.140002b80
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x140009bbd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009bb8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140009bb8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000f82c
lea r11, [rsp + 0xf8]
cmp qword [rsp + 0x110], 8
cmovae r11, qword [rsp + 0xf8]
mov rax, qword [rsp + 0x108]
lea rdx, [r11 + rax*2]
mov rcx, r11
call fcn.140002a90
cmp rax, rdx
je 0x140009c4d
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x140009bff
cmp cx, 0x2f
jne 0x140009c10
add rax, 2
jmp 0x140009beb
lea rdi, [rdx - 2]
movzx ecx, word [rdi]
cmp cx, 0x5c
je 0x140009c2d
cmp cx, 0x2f
je 0x140009c2d
mov rdx, rdi
cmp rax, rdi
je 0x140009c4d
jmp 0x140009c10
cmp rax, rdx
je 0x140009c4d
lea rdi, [rdx - 2]
movzx ecx, word [rdi]
cmp cx, 0x5c
je 0x140009c45
cmp cx, 0x2f
jne 0x140009c4d
mov rdx, rdi
cmp rax, rdi
jne 0x140009c32
sub rdx, r11
sar rdx, 1
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], si
mov r8, rdx
mov rdx, r11
lea rcx, [rsp + 0x48]
call fcn.14000bb10
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0xb0]
call fcn.14000b400
mov rdx, qword [rsp + 0x138]
cmp rdx, 8
jb 0x140009cd9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x120]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009cd4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140009cd4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000f82c
movups xmm0, xmmword [rsp + 0xb0]
movups xmmword [rsp + 0x120], xmm0
movups xmm1, xmmword [rsp + 0xc0]
movups xmmword [rsp + 0x130], xmm1
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x140009d3b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009d36
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009e8d
call fcn.14000f82c
mov qword [rsp + 0xd8], rsi
mov word [rsp + 0xd8], si
mov qword [rsp + 0xf0], 7
mov qword [rsp + 0xe8], rsi
mov ecx, 0x210
call fcn.14000fdec
mov rdx, rax
mov qword [rsp + 0xe8], 0x104
mov qword [rsp + 0xf0], 0x107
movzx eax, si
mov rdi, rdx
mov ecx, 0x104
rep stosw word [rdi], ax
mov word [rdx + 0x208], si
mov qword [rsp + 0xd8], rdx
lea rcx, [rsp + 0xd8]
cmp qword [rsp + 0xf0], 8
cmovae rcx, rdx
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, 0x104
jae 0x140009e1c
cmp qword [rsp + 0x130], 0
je 0x140009ded
mov r8d, 1
lea rdx, [0x140012e84]
lea rcx, [rsp + 0x120]
call fcn.14000b2e0
lea rdx, [rsp + 0xd8]
cmp qword [rsp + 0xf0], 8
cmovae rdx, qword [rsp + 0xd8]
mov r8, qword [rsp + 0xe8]
lea rcx, [rsp + 0x120]
call fcn.14000b2e0
lea rdx, [rsp + 0x120]
cmp qword [rsp + 0x138], 8
cmovae rdx, qword [rsp + 0x120]
lea rcx, str.PATH
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
movups xmmword [rbx], xmm6
movups xmmword [rbx + 0x10], xmm7
mov byte [rbx + 0x20], 1
mov rdx, qword [rsp + 0xf0]
cmp rdx, 8
jb 0x140009e99
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xd8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009e94
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140009e94
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000f82c
mov qword [rsp + 0xe8], rsi
mov qword [rsp + 0xf0], 7
mov word [rsp + 0xd8], si
mov rdx, qword [rsp + 0x110]
cmp rdx, 8
jb 0x140009f00
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xf8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009efb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140009efb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000f82c
mov qword [rsp + 0x108], rsi
mov qword [rsp + 0x110], 7
mov word [rsp + 0xf8], si
mov rdx, qword [rsp + 0x138]
cmp rdx, 8
jb 0x140009f68
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x120]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009f62
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140009f62
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000f82c
nop
mov rax, rbx
jmp 0x140009f72
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.14000f7e0
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop rdi
ret