Function at 0x1400102d0
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 [0x140068010]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov r14, rcx
mov qword [rsp + 0x40], rcx
lea rax, str.san_path_env_7D9669CE_347E_435A_BDF7_DBDBA31FEA91
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x30], rax
xor r15d, r15d
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], r15
lea r8, str.PATH
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wdupenv_s]
test eax, eax
jne 0x1400103c0
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x1400103c0
mov qword [rsp + 0x120], r15
mov qword [rsp + 0x130], r15
mov qword [rsp + 0x138], 7
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rdx + r8*2], r15w
jne 0x140010370
lea rcx, [rsp + 0x120]
call fcn.140002660
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
movups xmm0, xmmword [rsp + 0x120]
movups xmmword [rsp + 0x160], xmm0
movups xmm1, xmmword [rsp + 0x130]
movups xmmword [rsp + 0x170], xmm1
mov qword [rsp + 0x138], 7
jmp 0x1400103e5
mov qword [rsp + 0x160], r15
mov qword [rsp + 0x170], r15
mov qword [rsp + 0x178], 7
mov word [rsp + 0x160], r15w
mov qword [rsp + 0x80], r15
mov qword [rsp + 0x90], r15
mov qword [rsp + 0x98], 7
mov word [rsp + 0x80], r15w
mov qword [rsp + 0x1a8], r15
mov dword [rsp + 0x48], r15d
lea rax, [0x140068058]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x140]
call fcn.140003cc0
mov rcx, qword [0x140068060]
mov rax, qword [rsp + 0x50]
cmp qword [rax + 8], rcx
jne 0x14001047d
cmp dword [rsp + 0x48], 0
jne 0x14001047d
movups xmm0, xmmword [rsp + 0x140]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [rsp + 0x150]
movdqu xmmword [rsp + 0x68], xmm1
mov qword [rsp + 0x158], 7
mov al, 1
mov byte [rsp + 0x78], al
jmp 0x1400104de
xor al, al
mov byte [rsp + 0x78], al
mov rdx, qword [rsp + 0x158]
cmp rdx, 8
jb 0x1400104d3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x140]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400104c9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400104c9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004846c
movzx eax, byte [rsp + 0x78]
movdqu xmm1, xmmword [rsp + 0x68]
movups xmm0, xmmword [rsp + 0x58]
mov qword [rsp + 0x1a0], r15
movdqa xmm2, xmmword [0x140059020]
test al, al
je 0x140010514
movups xmmword [rsp + 0xc0], xmm0
movups xmmword [rsp + 0xd0], xmm1
movdqa xmm0, xmm2
movdqu xmmword [rsp + 0x68], xmm2
mov word [rsp + 0x58], r15w
jmp 0x14001052c
movups xmm0, xmmword [rsp + 0x1a0]
movups xmmword [rsp + 0xc0], xmm0
movups xmmword [rsp + 0xd0], xmm2
lea rcx, [rsp + 0x58]
call fcn.140014be0
cmp qword [rsp + 0xd0], 0
je 0x140010780
mov qword [rsp + 0xe0], r15
mov qword [rsp + 0xf0], r15
mov qword [rsp + 0xf8], 7
mov word [rsp + 0xe0], r15w
xor r8d, r8d
lea rdx, [0x140052438]
lea rcx, [rsp + 0xe0]
call fcn.140002660
nop
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0xc0]
call fcn.140029050
nop
mov rdx, qword [rsp + 0xf8]
cmp rdx, 8
jb 0x1400105e3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xe0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400105de
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400105de
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004846c
lea r11, [rsp + 0xc0]
cmp qword [rsp + 0xd8], 8
cmovae r11, qword [rsp + 0xc0]
mov rax, qword [rsp + 0xd0]
lea rdx, [r11 + rax*2]
mov rcx, r11
call fcn.140028f50
cmp rax, rdx
je 0x14001066d
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x140010625
cmp cx, 0x2f
jne 0x140010630
add rax, 2
jmp 0x140010611
lea rdi, [rdx - 2]
movzx ecx, word [rdi]
cmp cx, 0x5c
je 0x14001064d
cmp cx, 0x2f
je 0x14001064d
mov rdx, rdi
cmp rax, rdi
je 0x14001066d
jmp 0x140010630
cmp rax, rdx
je 0x14001066d
lea rdi, [rdx - 2]
movzx ecx, word [rdi]
cmp cx, 0x5c
je 0x140010665
cmp cx, 0x2f
jne 0x14001066d
mov rdx, rdi
cmp rax, rdi
jne 0x140010652
sub rdx, r11
sar rdx, 1
mov qword [rsp + 0x100], r15
mov qword [rsp + 0x110], r15
mov qword [rsp + 0x118], 7
mov word [rsp + 0x100], r15w
mov r8, rdx
mov rdx, r11
lea rcx, [rsp + 0x100]
call fcn.140002660
nop
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x180]
call fcn.1400027b0
mov rdx, qword [rsp + 0x98]
cmp rdx, 8
jb 0x14001070c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010707
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140010707
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004846c
movups xmm0, xmmword [rsp + 0x180]
movups xmmword [rsp + 0x80], xmm0
movups xmm1, xmmword [rsp + 0x190]
movups xmmword [rsp + 0x90], xmm1
mov qword [rsp + 0x198], 7
mov rdx, qword [rsp + 0x118]
cmp rdx, 8
jb 0x140010780
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x100]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001077b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400109a8
call fcn.14004846c
mov qword [rsp + 0xa0], r15
mov qword [rsp + 0xb0], r15
mov qword [rsp + 0xb8], 7
mov word [rsp + 0xa0], r15w
lfence
mov ecx, 0x210
call fcn.140002c30
mov rdx, rax
mov qword [rsp + 0xb0], operator
mov qword [rsp + 0xb8], operator
movzx eax, r15w
mov rdi, rdx
mov ecx, 0x104
rep stosw word [rdi], ax
mov word [rdx + 0x208], r15w
mov qword [rsp + 0xa0], rdx
lea rcx, [rsp + 0xa0]
cmp qword [rsp + 0xb8], 8
cmovae rcx, rdx
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, 0x104
jae 0x140010924
mov rbx, qword [rsp + 0x90]
test rbx, rbx
je 0x140010896
mov rdx, qword [rsp + 0x98]
mov rax, rdx
sub rax, rbx
cmp rax, 1
jb 0x140010869
lea rcx, [rbx + 1]
mov qword [rsp + 0x90], rcx
lea rax, [rsp + 0x80]
cmp rdx, 8
cmovae rax, qword [rsp + 0x80]
mov edx, 0x3b
mov word [rax + rbx*2], dx
mov word [rax + rcx*2], r15w
jmp 0x14001088e
lfence
mov qword [rsp + 0x20], 1
lea r9, [0x140053d44]
mov edx, 1
lea rcx, [rsp + 0x80]
call fcn.140002870
mov rbx, qword [rsp + 0x90]
mov rsi, qword [rsp + 0xb0]
lea r9, [rsp + 0xa0]
cmp qword [rsp + 0xb8], 8
cmovae r9, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x98]
mov rax, rcx
sub rax, rbx
cmp rsi, rax
ja 0x140010907
lea rax, [rbx + rsi]
mov qword [rsp + 0x90], rax
lea rdi, [rsp + 0x80]
cmp rcx, 8
cmovae rdi, qword [rsp + 0x80]
lea rcx, [rdi + rbx*2]
lea r8, [rsi + rsi]
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
lea rax, [rsi + rbx]
mov word [rdi + rax*2], r15w
jmp 0x140010924
lfence
mov rdx, qword [rsp + 0xb0]
mov qword [rsp + 0x20], rdx
lea rcx, [rsp + 0x80]
call fcn.140002870
lea rdx, [rsp + 0x80]
cmp qword [rsp + 0x98], 8
cmovae rdx, qword [rsp + 0x80]
lea rcx, str.PATH
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
movups xmm0, xmmword [rsp + 0x160]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rsp + 0x170]
movups xmmword [r14 + 0x10], xmm1
mov byte [r14 + 0x20], 1
mov rdx, qword [rsp + 0xb8]
cmp rdx, 8
jb 0x1400109b4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400109af
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400109af
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004846c
mov qword [rsp + 0xb0], r15
mov qword [rsp + 0xb8], 7
mov word [rsp + 0xa0], r15w
mov rdx, qword [rsp + 0xd8]
cmp rdx, 8
jb 0x140010a1c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010a17
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140010a17
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004846c
mov qword [rsp + 0xd0], r15
mov qword [rsp + 0xd8], 7
mov word [rsp + 0xc0], r15w
mov rdx, qword [rsp + 0x98]
cmp rdx, 8
jb 0x140010a85
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010a7f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140010a7f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004846c
nop
mov rax, r14
jmp 0x140010a8f
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140047f60
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret