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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x1b0
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
mov rax, qword [0x140032050]
xor rax, rsp
mov qword [rsp + 0x180], 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 esi, esi
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], rsi
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 0x14000c394
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x14000c394
mov qword [rsp + 0x120], rsi
mov qword [rsp + 0x130], rsi
mov qword [rsp + 0x138], 7
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rdx + r8*2], si
jne 0x14000c350
lea rcx, [rsp + 0x120]
call fcn.140002170
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
movups xmm6, xmmword [rsp + 0x120]
movups xmmword [rsp + 0x100], xmm6
movups xmm7, xmmword [rsp + 0x130]
movups xmmword [rsp + 0x110], xmm7
jmp 0x14000c3c8
mov qword [rsp + 0x100], rsi
mov qword [rsp + 0x110], rsi
mov qword [rsp + 0x118], 7
mov word [rsp + 0x100], si
movups xmm7, xmmword [rsp + 0x110]
movups xmm6, xmmword [rsp + 0x100]
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0xb8], 7
mov word [rsp + 0xa0], si
mov qword [rsp + 0x148], rsi
lea rcx, [rsp + 0x38]
call fcn.14000c1e0
mov qword [rsp + 0x140], rsi
movdqa xmm1, xmmword [0x1400295c0]
cmp byte [rax + 0x20], 0
je 0x14000c454
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x98], rsi
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x80], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x90], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
jmp 0x14000c46c
movups xmm0, xmmword [rsp + 0x140]
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm1
lea rcx, [rsp + 0x38]
call fcn.14000e220
cmp qword [rsp + 0x90], 0
je 0x14000c6b3
mov qword [rsp + 0xc0], rsi
mov qword [rsp + 0xd0], rsi
mov qword [rsp + 0xd8], 7
mov word [rsp + 0xc0], si
xor r8d, r8d
lea rdx, [0x140026ea8]
lea rcx, [rsp + 0xc0]
call fcn.140002170
nop
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x80]
call fcn.140001300
nop
mov rdx, qword [rsp + 0xd8]
cmp rdx, 8
jb 0x14000c522
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000c51d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000c51d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400227b0
lea r11, [rsp + 0x80]
cmp qword [rsp + 0x98], 8
cmovae r11, qword [rsp + 0x80]
mov rax, qword [rsp + 0x90]
lea rdx, [r11 + rax*2]
mov rcx, r11
call fcn.140001200
cmp rax, rdx
je 0x14000c5ad
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x14000c564
cmp cx, 0x2f
jne 0x14000c570
add rax, 2
jmp 0x14000c550
lea rdi, [rdx - 2]
movzx ecx, word [rdi]
cmp cx, 0x5c
je 0x14000c58d
cmp cx, 0x2f
je 0x14000c58d
mov rdx, rdi
cmp rax, rdi
je 0x14000c5ad
jmp 0x14000c570
cmp rax, rdx
je 0x14000c5ad
lea rdi, [rdx - 2]
movzx ecx, word [rdi]
cmp cx, 0x5c
je 0x14000c5a5
cmp cx, 0x2f
jne 0x14000c5ad
mov rdx, rdi
cmp rax, rdi
jne 0x14000c592
sub rdx, r11
sar rdx, 1
mov qword [rsp + 0xe0], rsi
mov qword [rsp + 0xf0], rsi
mov qword [rsp + 0xf8], 7
mov word [rsp + 0xe0], si
mov r8, rdx
mov rdx, r11
lea rcx, [rsp + 0xe0]
call fcn.140002170
nop
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x160]
call fcn.1400020d0
mov rdx, qword [rsp + 0xb8]
cmp rdx, 8
jb 0x14000c64b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000c646
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000c646
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400227b0
movups xmm0, xmmword [rsp + 0x160]
movups xmmword [rsp + 0xa0], xmm0
movups xmm1, xmmword [rsp + 0x170]
movups xmmword [rsp + 0xb0], xmm1
mov rdx, qword [rsp + 0xf8]
cmp rdx, 8
jb 0x14000c6b3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xe0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000c6ae
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000c7d8
call fcn.1400227b0
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], si
mov edx, 0x108
call fcn.1400022c0
mov rdx, rax
mov qword [rsp + 0x70], 0x104
mov qword [rsp + 0x78], 0x107
movzx eax, si
mov rdi, rdx
mov ecx, 0x104
rep stosw word [rdi], ax
mov word [rdx + 0x208], si
mov qword [rsp + 0x60], rdx
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rcx, rdx
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, 0x104
jae 0x14000c76d
cmp qword [rsp + 0xb0], 0
je 0x14000c74a
mov r8d, 1
lea rdx, [0x14002797c]
lea rcx, [rsp + 0xa0]
call fcn.140001f50
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x70]
lea rcx, [rsp + 0xa0]
call fcn.140001f50
lea rdx, [rsp + 0xa0]
cmp qword [rsp + 0xb8], 8
cmovae rdx, qword [rsp + 0xa0]
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 + 0x78]
cmp rdx, 8
jb 0x14000c7e4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000c7df
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000c7df
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400227b0
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], si
mov rdx, qword [rsp + 0x98]
cmp rdx, 8
jb 0x14000c842
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000c83d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000c83d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400227b0
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x98], 7
mov word [rsp + 0x80], si
mov rdx, qword [rsp + 0xb8]
cmp rdx, 8
jb 0x14000c8aa
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000c8a4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000c8a4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400227b0
nop
mov rax, rbx
jmp 0x14000c8b4
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140022790
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