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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x1d0
mov rax, qword [0x140063010]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov r14, rcx
mov qword [rsp + 0x30], rcx
lea rax, str.san_path_env_7D9669CE_347E_435A_BDF7_DBDBA31FEA91
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0xe0], rax
xor r15d, r15d
mov qword [rsp + 0xe0], r15
mov qword [rsp + 0x128], r15
lea r8, [0x1400520e8]
lea rdx, [rsp + 0x128]
lea rcx, [rsp + 0xe0]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wdupenv_s]
test eax, eax
jne 0x14002f4c3
mov rdx, qword [rsp + 0xe0]
test rdx, rdx
je 0x14002f4c3
mov qword [rsp + 0x160], r15
mov qword [rsp + 0x170], r15
mov qword [rsp + 0x178], 7
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], r15w
jne 0x14002f470
lea rcx, [rsp + 0x160]
call fcn.140001860
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
movups xmm0, xmmword [rsp + 0x160]
movups xmmword [rsp + 0x1a0], xmm0
movups xmm1, xmmword [rsp + 0x170]
movups xmmword [rsp + 0x1b0], xmm1
mov qword [rsp + 0x178], 7
jmp 0x14002f4e8
mov qword [rsp + 0x1a0], r15
mov qword [rsp + 0x1b0], r15
mov qword [rsp + 0x1b8], 7
mov word [rsp + 0x1a0], r15w
mov qword [rsp + 0xe8], r15
mov qword [rsp + 0xf8], r15
mov qword [rsp + 0x100], 7
mov word [rsp + 0xe8], r15w
mov qword [rsp + 0xc8], r15
mov qword [rsp + 0x150], r15
lea rax, [0x140063068]
mov qword [rsp + 0x158], rax
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0x180]
call fcn.1400305f0
mov rcx, qword [0x140063070]
mov rax, qword [rsp + 0x158]
cmp qword [rax + 8], rcx
jne 0x14002f595
cmp dword [rsp + 0x150], 0
jne 0x14002f595
movups xmm0, xmmword [rsp + 0x180]
movups xmmword [rsp + 0x78], xmm0
movups xmm1, xmmword [rsp + 0x190]
movdqu xmmword [rsp + 0x88], xmm1
mov qword [rsp + 0x198], 7
mov al, 1
mov byte [rsp + 0x98], al
jmp 0x14002f5ff
xor al, al
mov byte [rsp + 0x98], al
mov rdx, qword [rsp + 0x198]
cmp rdx, 8
jb 0x14002f5f1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x180]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002f5e4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002f5e4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400462d0
movzx eax, byte [rsp + 0x98]
movdqu xmm1, xmmword [rsp + 0x88]
movups xmm0, xmmword [rsp + 0x78]
mov qword [rsp + 0xc0], r15
movdqa xmm2, xmmword [0x140054d90]
test al, al
je 0x14002f638
movups xmmword [rsp + 0x130], xmm0
movups xmmword [rsp + 0x140], xmm1
movdqa xmm0, xmm2
movdqu xmmword [rsp + 0x88], xmm2
mov word [rsp + 0x78], r15w
jmp 0x14002f650
movups xmm0, xmmword [rsp + 0xc0]
movups xmmword [rsp + 0x130], xmm0
movups xmmword [rsp + 0x140], xmm2
lea rcx, [rsp + 0x78]
call fcn.14002fbb0
cmp qword [rsp + 0x140], 0
je 0x14002f878
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], r15w
xor r8d, r8d
lea rdx, [0x14004dce0]
lea rcx, [rsp + 0x38]
call fcn.140001860
nop
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x130]
call fcn.14002f190
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x14002f6ef
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002f6ea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002f6ea
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400462d0
lea r11, [rsp + 0x130]
cmp qword [rsp + 0x148], 8
cmovae r11, qword [rsp + 0x130]
mov rax, qword [rsp + 0x140]
lea rdx, [r11 + rax*2]
mov rcx, r11
call fcn.14002fee0
cmp rax, rdx
je 0x14002f77d
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x14002f731
cmp cx, 0x2f
jne 0x14002f740
add rax, 2
jmp 0x14002f71d
lea rdi, [rdx - 2]
movzx ecx, word [rdi]
cmp cx, 0x5c
je 0x14002f75d
cmp cx, 0x2f
je 0x14002f75d
mov rdx, rdi
cmp rax, rdi
je 0x14002f77d
jmp 0x14002f740
cmp rax, rdx
je 0x14002f77d
lea rdi, [rdx - 2]
movzx ecx, word [rdi]
cmp cx, 0x5c
je 0x14002f775
cmp cx, 0x2f
jne 0x14002f77d
mov rdx, rdi
cmp rax, rdi
jne 0x14002f762
sub rdx, r11
sar rdx, 1
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r15w
mov r8, rdx
mov rdx, r11
lea rcx, [rsp + 0x58]
call fcn.140001860
nop
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0xa0]
call fcn.140028d50
mov rdx, qword [rsp + 0x100]
cmp rdx, 8
jb 0x14002f80a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xe8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002f805
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002f805
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400462d0
movups xmm0, xmmword [rsp + 0xa0]
movups xmmword [rsp + 0xe8], xmm0
movups xmm1, xmmword [rsp + 0xb0]
movups xmmword [rsp + 0xf8], xmm1
mov qword [rsp + 0xb8], 7
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x14002f878
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002f873
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002fa9d
call fcn.1400462d0
mov qword [rsp + 0x108], r15
mov qword [rsp + 0x118], r15
mov qword [rsp + 0x120], 7
mov word [rsp + 0x108], r15w
mov edx, 0x108
call fcn.140001e10
mov rdx, rax
mov qword [rsp + 0x118], 0x104
mov qword [rsp + 0x120], 0x107
movzx eax, r15w
mov rdi, rdx
mov ecx, 0x104
rep stosw word [rdi], ax
mov word [rdx + 0x208], r15w
mov qword [rsp + 0x108], rdx
lea rcx, [rsp + 0x108]
cmp qword [rsp + 0x120], 8
cmovae rcx, rdx
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, 0x104
jae 0x14002fa19
mov rbx, qword [rsp + 0xf8]
test rbx, rbx
je 0x14002f98b
mov rdx, qword [rsp + 0x100]
mov rax, rdx
sub rax, rbx
cmp rax, 1
jb 0x14002f95e
lea rcx, [rbx + 1]
mov qword [rsp + 0xf8], rcx
lea rax, [rsp + 0xe8]
cmp rdx, 8
cmovae rax, qword [rsp + 0xe8]
mov edx, 0x3b
mov word [rax + rbx*2], dx
mov word [rax + rcx*2], r15w
jmp 0x14002f983
lfence
mov qword [rsp + 0x20], 1
lea r9, [0x1400520e4]
mov edx, 1
lea rcx, [rsp + 0xe8]
call fcn.140001990
mov rbx, qword [rsp + 0xf8]
mov rsi, qword [rsp + 0x118]
lea r9, [rsp + 0x108]
cmp qword [rsp + 0x120], 8
cmovae r9, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x100]
mov rax, rcx
sub rax, rbx
cmp rsi, rax
ja 0x14002f9fc
lea rax, [rsi + rbx]
mov qword [rsp + 0xf8], rax
lea rdi, [rsp + 0xe8]
cmp rcx, 8
cmovae rdi, qword [rsp + 0xe8]
lea rcx, [rdi + rbx*2]
lea r8, [rsi + rsi]
mov rdx, r9
call fcn.140046cd2
lea rax, [rbx + rsi]
mov word [rdi + rax*2], r15w
jmp 0x14002fa19
lfence
mov rdx, qword [rsp + 0x118]
mov qword [rsp + 0x20], rdx
lea rcx, [rsp + 0xe8]
call fcn.140001990
lea rdx, [rsp + 0xe8]
cmp qword [rsp + 0x100], 8
cmovae rdx, qword [rsp + 0xe8]
lea rcx, [0x1400520e8]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
movups xmm0, xmmword [rsp + 0x1a0]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rsp + 0x1b0]
movups xmmword [r14 + 0x10], xmm1
mov byte [r14 + 0x20], 1
mov rdx, qword [rsp + 0x120]
cmp rdx, 8
jb 0x14002faa9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x108]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002faa4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002faa4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400462d0
mov qword [rsp + 0x118], r15
mov qword [rsp + 0x120], 7
mov word [rsp + 0x108], r15w
mov rdx, qword [rsp + 0x148]
cmp rdx, 8
jb 0x14002fb11
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x130]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002fb0c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002fb0c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400462d0
mov qword [rsp + 0x140], r15
mov qword [rsp + 0x148], 7
mov word [rsp + 0x130], r15w
mov rdx, qword [rsp + 0x100]
cmp rdx, 8
jb 0x14002fb7a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xe8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002fb74
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002fb74
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400462d0
nop
mov rax, r14
jmp 0x14002fb84
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140045c20
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret