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

Disassembly:
push rbp
push r14
push r15
lea rbp, [rsp - 0x25a0]
mov eax, 0x26a0
call fcn.18014e2d0
sub rsp, rax
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x26c8], rbx
mov qword [rsp + 0x26d0], rsi
mov qword [rsp + 0x26d8], rdi
mov rax, qword [0x1802247b8]
xor rax, rsp
mov qword [rbp + 0x2590], rax
mov rbx, rcx
xor r15d, r15d
mov esi, r15d
xor edx, edx
mov r8d, 0x1ffe
lea rcx, [rbp + 0x592]
call fcn.180140c00
mov eax, 0x22
mov word [rbp + 0x590], ax
test rbx, rbx
je 0x18007edd7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jl 0x18007edd7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0xffa
jge 0x18007edd7
mov rdx, rbx
lea rcx, [rbp + 0x590]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [0x1801ab180]
lea rcx, [rbp + 0x590]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], r15
mov word [rsp + 0x30], r15w
lea r8d, [r15 + 0xb]
lea rdx, [0x1801aa748]
lea rcx, [rsp + 0x30]
call fcn.180005920
nop
call fcn.180064a20
mov rcx, rax
lea rdx, [rsp + 0x30]
call fcn.180064a80
mov rbx, rax
cmp qword [rsp + 0x48], 8
jb 0x18007ec44
mov rcx, qword [rsp + 0x30]
call fcn.180139b7c
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], r15
mov word [rsp + 0x30], r15w
test rbx, rbx
je 0x18007edd7
lea rdx, str.ShellExecuteW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test rax, rax
je 0x18007edd7
lea rcx, [rsp + 0x60]
call fcn.18007e6d0
mov ebx, r15d
lea rdi, [rsp + 0x60]
nop
cmp word [rdi], 0
je 0x18007ecce
movsxd rax, ebx
imul rcx, rax, 0x210
lea r8, [rsp + 0x60]
add r8, rcx
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x590]
lea rdx, str.open
xor ecx, ecx
call r14
cmp rax, 0x20
ja 0x18007ecde
inc ebx
add rdi, 0x210
cmp ebx, 2
jge 0x18007ed04
jmp 0x18007ec90
movsxd rax, ebx
imul rcx, rax, 0x210
mov esi, dword [rbp + rcx + 0x16c]
cmp dword [rbp + rcx + 0x168], 0
jne 0x18007ecfc
add esi, 0x10
test esi, esi
jne 0x18007edd3
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r15
xor r9d, r9d
lea r8, [rbp + 0x590]
lea rdx, str.open
xor ecx, ecx
call r14
cmp rax, 0x20
ja 0x18007edce
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, r15
nop dword [rax]
mov word [rbp + 0x380], r15w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x382]
call fcn.180140c00
mov r8d, 0x103
lea rdx, [rbp + 0x380]
mov rcx, qword [rsp + rbx*8 + 0x30]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rcx, [rbp + 0x380]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18007edc3
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x590]
lea r8, [rbp + 0x380]
lea rdx, str.open
xor ecx, ecx
call r14
cmp rax, 0x20
ja 0x18007edce
inc rbx
cmp rbx, 2
jae 0x18007edd3
jmp 0x18007ed50
mov esi, 0x10
mov eax, esi
jmp 0x18007edd9
xor eax, eax
mov rcx, qword [rbp + 0x2590]
xor rcx, rsp
call fcn.180139310
lea r11, [rsp + 0x26a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret