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

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x1a0
mov rax, qword [0x14017a390]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov rsi, 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 [r11 - 0xd8], r15
mov qword [r11 - 0x70], r15
lea r8, str.PATH
lea rdx, [r11 - 0x70]
lea rcx, [r11 - 0xd8]
call fcn.140106d08
test eax, eax
jne 0x140043f22
mov rdx, qword [rsp + 0xe0]
test rdx, rdx
je 0x140043f22
mov qword [rsp + 0x150], r15
mov qword [rsp + 0x160], r15
mov qword [rsp + 0x168], 7
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rdx + r8*2], r15w
jne 0x140043ed0
lea rcx, [rsp + 0x150]
call fcn.1400021f0
mov rcx, qword [rsp + 0xe0]
call fcn.1400ffcc0
movups xmm0, xmmword [rsp + 0x150]
movups xmmword [rsp + 0x170], xmm0
movups xmm1, xmmword [rsp + 0x160]
movups xmmword [rsp + 0x180], xmm1
mov qword [rsp + 0x168], 7
jmp 0x140043f47
mov qword [rsp + 0x170], r15
mov qword [rsp + 0x180], r15
mov qword [rsp + 0x188], 7
mov word [rsp + 0x170], r15w
mov qword [rsp + 0xe8], r15
mov qword [rsp + 0xf8], r15
mov qword [rsp + 0x100], 7
mov word [rsp + 0xe8], r15w
mov qword [rsp + 0xa0], r15
lea rcx, [rsp + 0xb8]
call fcn.140043d50
mov qword [rsp + 0x98], r15
movdqa xmm1, xmmword [0x140154050]
cmp byte [rax + 0x20], 0
je 0x140043fd8
mov qword [rsp + 0x128], r15
mov qword [rsp + 0x138], r15
mov qword [rsp + 0x140], r15
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x128], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x138], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
jmp 0x140043ff0
movups xmm0, xmmword [rsp + 0x98]
movups xmmword [rsp + 0x128], xmm0
movups xmmword [rsp + 0x138], xmm1
lea rcx, [rsp + 0xb8]
call fcn.14004f0f0
cmp qword [rsp + 0x138], 0
je 0x14004420f
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, [0x140147fbc]
lea rcx, [rsp + 0x38]
call fcn.1400021f0
nop
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x128]
call fcn.140013ee0
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x14004408f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004408a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140044541
call fcn.1400f35f0
lea rbx, [rsp + 0x128]
cmp qword [rsp + 0x140], 8
cmovae rbx, qword [rsp + 0x128]
mov rax, qword [rsp + 0x138]
lea rdi, [rbx + rax*2]
mov rdx, rdi
mov rcx, rbx
call fcn.140014100
cmp rax, rdi
je 0x14004411d
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x1400440d4
cmp cx, 0x2f
jne 0x1400440e0
add rax, 2
jmp 0x1400440c0
lea rdx, [rdi - 2]
movzx ecx, word [rdx]
cmp cx, 0x5c
je 0x1400440fd
cmp cx, 0x2f
je 0x1400440fd
mov rdi, rdx
cmp rax, rdx
je 0x14004411d
jmp 0x1400440e0
cmp rax, rdi
je 0x14004411d
lea rdx, [rdi - 2]
movzx ecx, word [rdx]
cmp cx, 0x5c
je 0x140044115
cmp cx, 0x2f
jne 0x14004411d
mov rdi, rdx
cmp rax, rdx
jne 0x140044102
sub rdi, rbx
sar rdi, 1
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r15w
mov r8, rdi
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.1400021f0
nop
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x78]
call fcn.140002430
mov rdx, qword [rsp + 0x100]
cmp rdx, 8
jb 0x1400441a4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xe8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004419f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140044547
call fcn.1400f35f0
movups xmm0, xmmword [rsp + 0x78]
movups xmmword [rsp + 0xe8], xmm0
movups xmm1, xmmword [rsp + 0x88]
movups xmmword [rsp + 0xf8], xmm1
mov qword [rsp + 0x90], 7
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x14004420f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004420a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004454d
call fcn.1400f35f0
mov qword [rsp + 0x108], r15
mov qword [rsp + 0x118], r15
mov qword [rsp + 0x120], 7
mov word [rsp + 0x108], r15w
mov edx, 0x108
lea rcx, [rsp + 0x108]
call fcn.140002ab0
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 0x1400443bd
mov rbx, qword [rsp + 0xf8]
test rbx, rbx
je 0x14004432c
mov rdx, qword [rsp + 0x100]
mov rax, rdx
sub rax, rbx
cmp rax, 1
jb 0x1400442fd
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 0x140044324
lfence
mov qword [rsp + 0x20], 1
lea r9, [0x140151458]
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [rsp + 0xe8]
call fcn.1400024d0
mov rbx, qword [rsp + 0xf8]
mov r14, 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 r14, rax
ja 0x14004439d
lea rax, [rbx + r14]
mov qword [rsp + 0xf8], rax
lea rdi, [rsp + 0xe8]
cmp rcx, 8
cmovae rdi, qword [rsp + 0xe8]
lea rcx, [rdi + rbx*2]
lea r8, [r14 + r14]
mov rdx, r9
call fcn.1400f5570
lea rax, [rbx + r14]
mov word [rdi + rax*2], r15w
jmp 0x1400443bd
lfence
mov rdx, qword [rsp + 0x118]
mov qword [rsp + 0x20], rdx
xor r8d, r8d
lea rcx, [rsp + 0xe8]
call fcn.1400024d0
lea rdx, [rsp + 0xe8]
cmp qword [rsp + 0x100], 8
cmovae rdx, qword [rsp + 0xe8]
lea rcx, str.PATH
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
movups xmm0, xmmword [rsp + 0x170]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rsp + 0x180]
movups xmmword [rsi + 0x10], xmm1
mov byte [rsi + 0x20], 1
mov rdx, qword [rsp + 0x120]
cmp rdx, 8
jb 0x140044447
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x108]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140044442
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004454d
call fcn.1400f35f0
mov qword [rsp + 0x118], r15
mov qword [rsp + 0x120], 7
mov word [rsp + 0x108], r15w
mov rdx, qword [rsp + 0x140]
cmp rdx, 8
jb 0x1400444ac
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x128]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400444a7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140044553
call fcn.1400f35f0
mov qword [rsp + 0x138], r15
mov qword [rsp + 0x140], 7
mov word [rsp + 0x128], r15w
mov rdx, qword [rsp + 0x100]
cmp rdx, 8
jb 0x14004450e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xe8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140044508
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140044559
call fcn.1400f35f0
nop
mov rax, rsi
jmp 0x140044518
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1400f2e00
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
call fcn.1400f9bf0
nop
call fcn.1400f9bf0
nop
call fcn.1400f9bf0
nop
call fcn.1400f9bf0
nop
call fcn.1400f9bf0
int3