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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x190
mov rax, qword [0x14002d010]
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 0x14000b3a6
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x14000b3a6
mov qword [rsp + 0x100], rsi
mov qword [rsp + 0x110], rsi
mov qword [rsp + 0x118], 7
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], si
jne 0x14000b356
lea rcx, [rsp + 0x100]
call fcn.14000f3a0
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
movups xmm0, xmmword [rsp + 0x100]
movups xmmword [rsp + 0x120], xmm0
movups xmm1, xmmword [rsp + 0x110]
movups xmmword [rsp + 0x130], xmm1
mov qword [rsp + 0x118], 7
jmp 0x14000b3ca
mov qword [rsp + 0x120], rsi
mov qword [rsp + 0x130], rsi
mov qword [rsp + 0x138], 7
mov word [rsp + 0x120], si
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0xb8], 7
mov word [rsp + 0xa0], si
mov qword [rsp + 0x168], rsi
lea rcx, [rsp + 0x38]
call fcn.14000b1f0
mov qword [rsp + 0x160], rsi
movdqa xmm1, xmmword [0x140024ef0]
cmp byte [rax + 0x20], 0
je 0x14000b456
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 0x14000b46e
movups xmm0, xmmword [rsp + 0x160]
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm1
lea rcx, [rsp + 0x38]
call fcn.14000d140
cmp qword [rsp + 0x90], 0
je 0x14000b6bf
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, [0x140022c1c]
lea rcx, [rsp + 0xc0]
call fcn.14000f3a0
nop
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x80]
call fcn.1400026d0
nop
mov rdx, qword [rsp + 0xd8]
cmp rdx, 8
jb 0x14000b524
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b51f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000b51f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001ef00
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.1400025d0
cmp rax, rdx
je 0x14000b5ad
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x14000b566
cmp cx, 0x2f
jne 0x14000b570
add rax, 2
jmp 0x14000b552
lea rdi, [rdx - 2]
movzx ecx, word [rdi]
cmp cx, 0x5c
je 0x14000b58d
cmp cx, 0x2f
je 0x14000b58d
mov rdx, rdi
cmp rax, rdi
je 0x14000b5ad
jmp 0x14000b570
cmp rax, rdx
je 0x14000b5ad
lea rdi, [rdx - 2]
movzx ecx, word [rdi]
cmp cx, 0x5c
je 0x14000b5a5
cmp cx, 0x2f
jne 0x14000b5ad
mov rdx, rdi
cmp rax, rdi
jne 0x14000b592
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.14000f3a0
nop
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x140]
call fcn.14000e260
mov rdx, qword [rsp + 0xb8]
cmp rdx, 8
jb 0x14000b64b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b646
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000b646
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001ef00
movups xmm0, xmmword [rsp + 0x140]
movups xmmword [rsp + 0xa0], xmm0
movups xmm1, xmmword [rsp + 0x150]
movups xmmword [rsp + 0xb0], xmm1
mov qword [rsp + 0x158], 7
mov rdx, qword [rsp + 0xf8]
cmp rdx, 8
jb 0x14000b6bf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xe0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b6ba
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000b7f7
call fcn.14001ef00
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], si
lfence
mov ecx, 0x210
call fcn.14001ef3c
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 0x14000b77c
cmp qword [rsp + 0xb0], 0
je 0x14000b759
mov r8d, 1
lea rdx, [0x1400236cc]
lea rcx, [rsp + 0xa0]
call fcn.14000e140
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.14000e140
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 xmm0, xmmword [rsp + 0x120]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x130]
movups xmmword [rbx + 0x10], xmm1
mov byte [rbx + 0x20], 1
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x14000b803
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b7fe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000b7fe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001ef00
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], si
mov rdx, qword [rsp + 0x98]
cmp rdx, 8
jb 0x14000b861
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b85c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000b85c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001ef00
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x98], 7
mov word [rsp + 0x80], si
mov rdx, qword [rsp + 0xb8]
cmp rdx, 8
jb 0x14000b8c9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b8c3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000b8c3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001ef00
nop
mov rax, rbx
jmp 0x14000b8d3
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.14001eee0
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret