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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x1c0
mov rax, qword [0x140087010]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rbx, rcx
mov qword [rsp + 0x30], rcx
lea rax, str.san_path_env_7D9669CE_347E_435A_BDF7_DBDBA31FEA91
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x20], rax
xor r14d, r14d
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x28], r14
lea r8, str.PATH
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wdupenv_s]
test eax, eax
jne 0x14000cc11
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x14000cc11
mov qword [rsp + 0x110], r14
mov qword [rsp + 0x120], r14
mov qword [rsp + 0x128], 7
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], r14w
jne 0x14000cbc1
lea rcx, [rsp + 0x110]
call fcn.14001a610
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
movups xmm0, xmmword [rsp + 0x110]
movups xmmword [rsp + 0x150], xmm0
movups xmm1, xmmword [rsp + 0x120]
movups xmmword [rsp + 0x160], xmm1
mov qword [rsp + 0x128], 7
jmp 0x14000cc36
mov qword [rsp + 0x150], r14
mov qword [rsp + 0x160], r14
mov qword [rsp + 0x168], 7
mov word [rsp + 0x150], r14w
mov qword [rsp + 0x90], r14
mov qword [rsp + 0xa0], r14
mov qword [rsp + 0xa8], 7
mov word [rsp + 0x90], r14w
mov qword [rsp + 0x198], r14
mov dword [rsp + 0x38], r14d
lea rax, [0x1400881b8]
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x130]
call fcn.140003580
mov rcx, qword [0x1400881c0]
mov rax, qword [rsp + 0x40]
cmp qword [rax + 8], rcx
jne 0x14000ccce
cmp dword [rsp + 0x38], 0
jne 0x14000ccce
movups xmm0, xmmword [rsp + 0x130]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rsp + 0x140]
movdqu xmmword [rsp + 0x58], xmm1
mov qword [rsp + 0x148], 7
mov al, 1
mov byte [rsp + 0x68], al
jmp 0x14000cd2f
xor al, al
mov byte [rsp + 0x68], al
mov rdx, qword [rsp + 0x148]
cmp rdx, 8
jb 0x14000cd24
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x130]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000cd1a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000cd1a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400302a0
movzx eax, byte [rsp + 0x68]
movdqu xmm1, xmmword [rsp + 0x58]
movups xmm0, xmmword [rsp + 0x48]
mov qword [rsp + 0x190], r14
movdqa xmm2, xmmword [0x140074e30]
test al, al
je 0x14000cd65
movups xmmword [rsp + 0xb0], xmm0
movups xmmword [rsp + 0xc0], xmm1
movdqa xmm0, xmm2
movdqu xmmword [rsp + 0x58], xmm2
mov word [rsp + 0x48], r14w
jmp 0x14000cd7d
movups xmm0, xmmword [rsp + 0x190]
movups xmmword [rsp + 0xb0], xmm0
movups xmmword [rsp + 0xc0], xmm2
lea rcx, [rsp + 0x48]
call fcn.140017d90
cmp qword [rsp + 0xc0], 0
je 0x14000cfd0
mov qword [rsp + 0xd0], r14
mov qword [rsp + 0xe0], r14
mov qword [rsp + 0xe8], 7
mov word [rsp + 0xd0], r14w
xor r8d, r8d
lea rdx, [0x140071674]
lea rcx, [rsp + 0xd0]
call fcn.14001a610
nop
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0xb0]
call fcn.140002770
nop
mov rdx, qword [rsp + 0xe8]
cmp rdx, 8
jb 0x14000ce34
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xd0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ce2f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000ce2f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400302a0
lea rsi, [rsp + 0xb0]
cmp qword [rsp + 0xc8], 8
cmovae rsi, qword [rsp + 0xb0]
mov rax, qword [rsp + 0xc0]
lea rdi, [rsi + rax*2]
mov rdx, rdi
mov rcx, rsi
call fcn.140002670
cmp rax, rdi
je 0x14000cebd
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x14000ce79
cmp cx, 0x2f
jne 0x14000ce80
add rax, 2
jmp 0x14000ce65
lea rdx, [rdi - 2]
movzx ecx, word [rdx]
cmp cx, 0x5c
je 0x14000ce9d
cmp cx, 0x2f
je 0x14000ce9d
mov rdi, rdx
cmp rax, rdx
je 0x14000cebd
jmp 0x14000ce80
cmp rax, rdi
je 0x14000cebd
lea rdx, [rdi - 2]
movzx ecx, word [rdx]
cmp cx, 0x5c
je 0x14000ceb5
cmp cx, 0x2f
jne 0x14000cebd
mov rdi, rdx
cmp rax, rdx
jne 0x14000cea2
sub rdi, rsi
sar rdi, 1
mov qword [rsp + 0xf0], r14
mov qword [rsp + 0x100], r14
mov qword [rsp + 0x108], 7
mov word [rsp + 0xf0], r14w
mov r8, rdi
mov rdx, rsi
lea rcx, [rsp + 0xf0]
call fcn.14001a610
nop
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0x170]
call fcn.140018b50
mov rdx, qword [rsp + 0xa8]
cmp rdx, 8
jb 0x14000cf5c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000cf57
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000cf57
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400302a0
movups xmm0, xmmword [rsp + 0x170]
movups xmmword [rsp + 0x90], xmm0
movups xmm1, xmmword [rsp + 0x180]
movups xmmword [rsp + 0xa0], xmm1
mov qword [rsp + 0x188], 7
mov rdx, qword [rsp + 0x108]
cmp rdx, 8
jb 0x14000cfd0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xf0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000cfcb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d123
call fcn.1400302a0
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x88], 7
mov word [rsp + 0x70], r14w
lfence
mov ecx, 0x210
call fcn.140030550
mov rdx, rax
mov qword [rsp + 0x80], 0x104
mov qword [rsp + 0x88], 0x107
movzx eax, r14w
mov rdi, rdx
mov ecx, 0x104
rep stosw word [rdi], ax
mov word [rdx + 0x208], r14w
mov qword [rsp + 0x70], rdx
lea rcx, [rsp + 0x70]
cmp qword [rsp + 0x88], 8
cmovae rcx, rdx
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, 0x104
jae 0x14000d0a5
cmp qword [rsp + 0xa0], 0
je 0x14000d07c
mov r8d, 1
lea rdx, [0x14007231c]
lea rcx, [rsp + 0x90]
call fcn.1400189e0
lea rdx, [rsp + 0x70]
cmp qword [rsp + 0x88], 8
cmovae rdx, qword [rsp + 0x70]
mov r8, qword [rsp + 0x80]
lea rcx, [rsp + 0x90]
call fcn.1400189e0
lea rdx, [rsp + 0x90]
cmp qword [rsp + 0xa8], 8
cmovae rdx, qword [rsp + 0x90]
lea rcx, str.PATH
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
movups xmm0, xmmword [rsp + 0x150]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x160]
movups xmmword [rbx + 0x10], xmm1
mov byte [rbx + 0x20], 1
mov rdx, qword [rsp + 0x88]
cmp rdx, 8
jb 0x14000d12f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d12a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d12a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400302a0
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x88], 7
mov word [rsp + 0x70], r14w
mov rdx, qword [rsp + 0xc8]
cmp rdx, 8
jb 0x14000d194
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d18f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d18f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400302a0
mov qword [rsp + 0xc0], r14
mov qword [rsp + 0xc8], 7
mov word [rsp + 0xb0], r14w
mov rdx, qword [rsp + 0xa8]
cmp rdx, 8
jb 0x14000d1fd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d1f7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d1f7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400302a0
nop
mov rax, rbx
jmp 0x14000d207
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140030280
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret