Function at 0x1401ed664
Capabilities:
Check if file exists
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov rax, qword [0x14044e770]
xor rax, rsp
mov qword [rbp + 0x27], rax
cmp qword [rdx + 0x18], 8
mov rsi, rcx
mov rcx, rdx
mov rbx, rdx
jb 0x1401ed69d
mov rcx, qword [rdx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor r15d, r15d
mov r14d, eax
test eax, eax
jne 0x1401ed76b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rbp - 0x59], eax
call fcn.14004acb4
mov rdi, qword [rax + 8]
cmp dword [rdi], 2
jbe 0x1401ed756
cmp qword [rbx + 0x18], 8
lea rax, [rbp - 0x59]
mov qword [rbp - 9], rax
lea rax, str.Failed_to_expand_environment_strings_in_path
mov qword [rbp + 7], rax
mov qword [rbp - 1], 4
mov qword [rbp + 0xf], 0x2d
jb 0x1401ed6fe
mov rbx, qword [rbx]
lea rcx, [0x14030cae0]
mov rax, r15
test rbx, rbx
je 0x1401ed71e
mov rcx, rbx
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], r15w
jne 0x1401ed714
lea eax, [rax*2 + 2]
mov qword [rbp + 0x17], rcx
mov dword [rbp + 0x1f], eax
mov dword [rbp + 0x23], r15d
lea rax, [rbp - 0x29]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x14039dd5f]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, rdi
call fcn.140001158
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], 7
mov word [rsi], r15w
jmp 0x1401ed8b8
movdqa xmm0, xmmword [0x14034f9a0]
dec eax
mov edx, eax
mov word [rbp - 0x51], r15w
movdqu xmmword [rbp - 0x41], xmm0
cmp rdx, 7
ja 0x1401ed7a4
mov qword [rbp - 0x41], rdx
test eax, eax
je 0x1401ed79c
movzx eax, r15w
lea rdi, [rbp - 0x51]
mov ecx, edx
rep stosw word [rdi], ax
mov word [rbp + rdx*2 - 0x51], r15w
jmp 0x1401ed7b0
xor r9d, r9d
lea rcx, [rbp - 0x51]
call fcn.14008ce40
cmp qword [rbp - 0x39], 8
lea rdx, [rbp - 0x51]
mov rcx, rbx
cmovae rdx, qword [rbp - 0x51]
cmp qword [rbx + 0x18], 8
jb 0x1401ed7cb
mov rcx, qword [rbx]
mov r8d, r14d
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x1401ed88e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rbp - 0x59], eax
call fcn.14004acb4
mov rdi, qword [rax + 8]
cmp dword [rdi], 2
jbe 0x1401ed87c
cmp qword [rbx + 0x18], 8
lea rax, [rbp - 0x59]
mov qword [rbp - 9], rax
lea rax, str.Failed_to_expand_environment_strings_in_path_after_increasing_buffer_size
mov qword [rbp + 7], rax
mov qword [rbp - 1], 4
mov qword [rbp + 0xf], VarR8FromUI1
jb 0x1401ed824
mov rbx, qword [rbx]
lea rcx, [0x14030cae0]
mov rax, r15
test rbx, rbx
je 0x1401ed844
mov rcx, rbx
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], r15w
jne 0x1401ed83a
lea eax, [rax*2 + 2]
mov qword [rbp + 0x17], rcx
mov dword [rbp + 0x1f], eax
mov dword [rbp + 0x23], r15d
lea rax, [rbp - 0x29]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x14039dd5f]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, rdi
call fcn.140001158
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], 7
mov word [rsi], r15w
jmp 0x1401ed8af
movups xmm0, xmmword [rbp - 0x51]
mov word [rbp - 0x51], r15w
movups xmm1, xmmword [rbp - 0x41]
movups xmmword [rsi], xmm0
movdqa xmm0, xmmword [0x14034f9a0]
movdqu xmmword [rbp - 0x41], xmm0
movups xmmword [rsi + 0x10], xmm1
lea rcx, [rbp - 0x51]
call fcn.14004b500
mov rax, rsi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1402ae860
mov rbx, qword [rsp + 0x100]
add rsp, 0xc0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret