Function at 0x140014860
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 [0x140085010]
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 0x140014951
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x140014951
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 0x140014901
lea rcx, [rsp + 0x110]
call fcn.14002e340
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 0x140014976
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, [0x1400861c8]
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x130]
call fcn.140006820
mov rcx, qword [0x1400861d0]
mov rax, qword [rsp + 0x40]
cmp qword [rax + 8], rcx
jne 0x140014a0e
cmp dword [rsp + 0x38], 0
jne 0x140014a0e
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 0x140014a6f
xor al, al
mov byte [rsp + 0x68], al
mov rdx, qword [rsp + 0x148]
cmp rdx, 8
jb 0x140014a64
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x130]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014a5a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140014a5a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002f890
movzx eax, byte [rsp + 0x68]
movdqu xmm1, xmmword [rsp + 0x58]
movups xmm0, xmmword [rsp + 0x48]
mov qword [rsp + 0x190], r14
movdqa xmm2, xmmword [0x140072b50]
test al, al
je 0x140014aa5
movups xmmword [rsp + 0xb0], xmm0
movups xmmword [rsp + 0xc0], xmm1
movdqa xmm0, xmm2
movdqu xmmword [rsp + 0x58], xmm2
mov word [rsp + 0x48], r14w
jmp 0x140014abd
movups xmm0, xmmword [rsp + 0x190]
movups xmmword [rsp + 0xb0], xmm0
movups xmmword [rsp + 0xc0], xmm2
lea rcx, [rsp + 0x48]
call fcn.140015f30
cmp qword [rsp + 0xc0], 0
je 0x140014d10
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, [0x140071f90]
lea rcx, [rsp + 0xd0]
call fcn.14002e340
nop
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0xb0]
call fcn.140005c00
nop
mov rdx, qword [rsp + 0xe8]
cmp rdx, 8
jb 0x140014b74
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xd0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014b6f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140014b6f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002f890
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.140005b00
cmp rax, rdi
je 0x140014bfd
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x140014bb9
cmp cx, 0x2f
jne 0x140014bc0
add rax, 2
jmp 0x140014ba5
lea rdx, [rdi - 2]
movzx ecx, word [rdx]
cmp cx, 0x5c
je 0x140014bdd
cmp cx, 0x2f
je 0x140014bdd
mov rdi, rdx
cmp rax, rdx
je 0x140014bfd
jmp 0x140014bc0
cmp rax, rdi
je 0x140014bfd
lea rdx, [rdi - 2]
movzx ecx, word [rdx]
cmp cx, 0x5c
je 0x140014bf5
cmp cx, 0x2f
jne 0x140014bfd
mov rdi, rdx
cmp rax, rdx
jne 0x140014be2
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.14002e340
nop
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0x170]
call fcn.14002e6b0
mov rdx, qword [rsp + 0xa8]
cmp rdx, 8
jb 0x140014c9c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014c97
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140014c97
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002f890
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 0x140014d10
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xf0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014d0b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014e63
call fcn.14002f890
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.14002f8a0
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 0x140014de5
cmp qword [rsp + 0xa0], 0
je 0x140014dbc
mov r8d, 1
lea rdx, [0x140070d14]
lea rcx, [rsp + 0x90]
call fcn.14002e980
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.14002e980
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 0x140014e6f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014e6a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140014e6a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002f890
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x88], 7
mov word [rsp + 0x70], r14w
mov rdx, qword [rsp + 0xc8]
cmp rdx, 8
jb 0x140014ed4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014ecf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140014ecf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002f890
mov qword [rsp + 0xc0], r14
mov qword [rsp + 0xc8], 7
mov word [rsp + 0xb0], r14w
mov rdx, qword [rsp + 0xa8]
cmp rdx, 8
jb 0x140014f3d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014f37
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140014f37
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002f890
nop
mov rax, rbx
jmp 0x140014f47
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.14002f870
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