Function at 0x18015e0c0
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27b0]
mov eax, 0x28b0
call fcn.180387970
sub rsp, rax
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x28e8], rbx
mov qword [rsp + 0x28f0], rsi
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rbp + 0x27a0], rax
mov rbx, rcx
xor r12d, r12d
mov esi, r12d
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0x7a0]
call sub.VCRUNTIME140.dll_memset
mov eax, 0x22
mov word [rbp + 0x7a0], ax
test rbx, rbx
je 0x18015e39f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jl 0x18015e39f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0xffa
jge 0x18015e39f
mov rdx, rbx
lea rcx, [rbp + 0x7a0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [0x1803cc3bc]
lea rcx, [rbp + 0x7a0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
movdqa xmm1, xmmword [0x1803e7600]
movdqu xmmword [rsp + 0x40], xmm1
mov word [rsp + 0x30], r12w
lea r8d, [r12 + 0xb]
lea rdx, [0x1803c5c38]
lea rcx, [rsp + 0x30]
call fcn.180004ea0
nop
call fcn.180178b40
mov rcx, rax
lea rdx, [rsp + 0x30]
call fcn.180178c20
mov rbx, rax
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x18015e212
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18015e20d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18015e20d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
movdqa xmm0, xmmword [0x1803e7600]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], r12w
test rbx, rbx
je 0x18015e39f
lea rdx, [0x1803cc3c0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
test rax, rax
je 0x18015e39f
lea rcx, [rsp + 0x60]
call fcn.18015da50
mov ebx, r12d
lea rdi, [rsp + 0x60]
nop dword [rax]
cmp word [rdi], 0
je 0x18015e29e
movsxd r14, ebx
imul rax, r14, 0x210
lea r8, [rsp + 0x60]
add r8, rax
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x7a0]
lea rdx, str.open
xor ecx, ecx
call r15
cmp rax, 0x20
ja 0x18015e2ae
inc ebx
add rdi, 0x210
cmp ebx, 3
jge 0x18015e2d1
jmp 0x18015e260
imul rax, r14, 0x210
mov esi, dword [rbp + rax + 0x16c]
cmp dword [rbp + rax + 0x168], 0
jne 0x18015e2c9
add esi, 0x10
test esi, esi
jne 0x18015e39b
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r12
xor r9d, r9d
lea r8, [rbp + 0x7a0]
lea rdx, str.open
xor ecx, ecx
call r15
cmp rax, 0x20
ja 0x18015e396
lea rax, str._programfiles_x86__Internet_Exploreriexplore.exe
mov qword [rsp + 0x30], rax
lea rax, str._programfiles_Internet_Exploreriexplore.exe
mov qword [rsp + 0x38], rax
mov rbx, r12
nop dword [rax]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x590]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x103
lea rdx, [rbp + 0x590]
mov rcx, qword [rsp + rbx*8 + 0x30]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rcx, [rbp + 0x590]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18015e38b
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x7a0]
lea r8, [rbp + 0x590]
lea rdx, str.open
xor ecx, ecx
call r15
cmp rax, 0x20
ja 0x18015e396
inc rbx
cmp rbx, 2
jae 0x18015e39b
jmp 0x18015e320
mov esi, 0x10
mov eax, esi
jmp 0x18015e3a1
xor eax, eax
mov rcx, qword [rbp + 0x27a0]
xor rcx, rsp
call fcn.1803868f0
lea r11, [rsp + 0x28b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret