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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0xa18]
sub rsp, 0xaf0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140133088]
xor rax, rsp
mov qword [rbp + 0x9e0], rax
mov rsi, rdx
mov rdi, rcx
test rdx, rdx
je 0x140024bff
xor r12d, r12d
mov qword [rbp - 0x60], r12
mov rdx, qword [rcx]
lea rcx, [rbp - 0x60]
call fcn.140011d7c
nop
mov rax, qword [rdi]
cmp byte [rax + 0x80], r12b
jne 0x140024c06
lea rcx, [rbp - 0x60]
call fcn.140011da4
xor al, al
jmp 0x140024ebe
mov dword [rbp - 0x58], 8
mov dword [rbp - 0x54], 0xff
lea rcx, str.COMCTL32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.InitCommonControlsEx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140024c3c
lea rcx, [rbp - 0x58]
call rax
lea rcx, [0x1400fa0b0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, [0x1400fa0a0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
test rax, rax
je 0x140024d06
mov rbx, qword [rdi]
lea rcx, [rbx + 0xa8]
call fcn.1400024d0
test al, al
jne 0x140024d06
lea rcx, [rbx + 0x88]
call fcn.1400024d0
test al, al
jne 0x140024d06
lea rdx, [rbx + 0xa8]
lea rcx, [rbp - 0x50]
call fcn.140008c00
nop
lea rcx, [0x1400fa094]
call fcn.1400027f0
mov r8, rax
lea rdx, [0x1400fa094]
lea rcx, [rbp - 0x50]
call fcn.140009140
mov rcx, rsi
call fcn.1400027f0
mov r8, rax
mov rdx, rsi
lea rcx, [rbp - 0x50]
call fcn.140009140
mov rcx, qword [rdi]
add rcx, 0x88
call fcn.1400024e0
mov rbx, rax
lea rcx, [rbp - 0x50]
call fcn.1400024e0
mov rdx, rax
xor r9d, r9d
mov r8, rbx
xor ecx, ecx
call r15
nop
lea rcx, [rbp - 0x50]
call fcn.1400024f0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x30]
call fcn.1400a8b60
mov rbx, qword [rdi]
lea rcx, [rbx + 0xc8]
call fcn.1400024e0
mov r8d, 0x103
lea rcx, [rbp - 0x30]
lea rdx, [rbp - 0x30]
sub rax, rdx
nop word [rax + rax]
lea rdx, [r8 + 0x7ffffefb]
test rdx, rdx
je 0x140024d62
movzx edx, word [rax + rcx]
test dx, dx
je 0x140024d62
mov word [rcx], dx
add rcx, 2
sub r8, 1
jne 0x140024d40
lea rax, [rcx - 2]
test r8, r8
cmovne rax, rcx
mov word [rax], r12w
cmp word [rbp - 0x30], 0
je 0x140024eb3
cmp byte [rbx + 0xe8], 0
je 0x140024d98
lea rcx, [rbp - 0x30]
call fcn.14002afb0
mov word [rbp - 0x30], r12w
jmp 0x140024eb3
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x1e0]
call fcn.1400a8b60
mov r8d, 0x3fe
lea rdx, [rbp + 0x1e0]
lea rcx, str._programfiles_Internet_Exploreriexplore.exe
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x3fd
ja 0x140024de5
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140024de5
test al, 0x10
je 0x140024e2a
mov r8d, 0x3fe
lea rdx, [rbp + 0x1e0]
lea rcx, str._programfiles_x86__Internet_Exploreriexplore.exe
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x3fd
ja 0x140024eb3
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140024eb3
test al, 0x10
jne 0x140024eb3
xor eax, eax
mov qword [rsp + 0x64], rax
mov qword [rsp + 0x6c], rax
mov qword [rsp + 0x74], rax
mov qword [rsp + 0x7c], rax
mov qword [rbp - 0x7c], rax
mov qword [rbp - 0x74], rax
mov dword [rbp - 0x6c], eax
mov qword [rsp + 0x30], 0x70
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r12
lea rax, [rbp + 0x1e0]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], r12
mov dword [rsp + 0x60], 1
mov qword [rbp - 0x68], r12
lea rcx, str.Shell32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x140024eb3
lea rdx, [0x1400fa0d8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140024eb3
lea rcx, [rsp + 0x30]
call rax
nop
lea rcx, [rbp - 0x60]
call fcn.140011da4
mov al, 1
mov rcx, qword [rbp + 0x9e0]
xor rcx, rsp
call fcn.1400a6810
lea r11, [rsp + 0xaf0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret