Function at 0x140024e60
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 [0x140132088]
xor rax, rsp
mov qword [rbp + 0x9e0], rax
mov rsi, rdx
mov rdi, rcx
test rdx, rdx
je 0x140024ecf
xor r12d, r12d
mov qword [rbp - 0x60], r12
mov rdx, qword [rcx]
lea rcx, [rbp - 0x60]
call fcn.140011c6c
nop
mov rax, qword [rdi]
cmp byte [rax + 0x80], r12b
jne 0x140024ed6
lea rcx, [rbp - 0x60]
call fcn.140011c94
xor al, al
jmp 0x14002518e
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 0x140024f0c
lea rcx, [rbp - 0x58]
call rax
lea rcx, [0x1400f8fc8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, [0x1400f9138]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
test rax, rax
je 0x140024fd6
mov rbx, qword [rdi]
lea rcx, [rbx + 0xa8]
call fcn.140002300
test al, al
jne 0x140024fd6
lea rcx, [rbx + 0x88]
call fcn.140002300
test al, al
jne 0x140024fd6
lea rdx, [rbx + 0xa8]
lea rcx, [rbp - 0x50]
call fcn.140008af0
nop
lea rcx, [0x1400f912c]
call fcn.140002620
mov r8, rax
lea rdx, [0x1400f912c]
lea rcx, [rbp - 0x50]
call fcn.140009030
mov rcx, rsi
call fcn.140002620
mov r8, rax
mov rdx, rsi
lea rcx, [rbp - 0x50]
call fcn.140009030
mov rcx, qword [rdi]
add rcx, 0x88
call fcn.140002310
mov rbx, rax
lea rcx, [rbp - 0x50]
call fcn.140002310
mov rdx, rax
xor r9d, r9d
mov r8, rbx
xor ecx, ecx
call r15
nop
lea rcx, [rbp - 0x50]
call fcn.140002320
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x30]
call fcn.1400a7960
mov rbx, qword [rdi]
lea rcx, [rbx + 0xc8]
call fcn.140002310
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 0x140025032
movzx edx, word [rax + rcx]
test dx, dx
je 0x140025032
mov word [rcx], dx
add rcx, 2
sub r8, 1
jne 0x140025010
lea rax, [rcx - 2]
test r8, r8
cmovne rax, rcx
mov word [rax], r12w
cmp word [rbp - 0x30], 0
je 0x140025183
cmp byte [rbx + 0xe8], 0
je 0x140025068
lea rcx, [rbp - 0x30]
call fcn.14002b290
mov word [rbp - 0x30], r12w
jmp 0x140025183
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x1e0]
call fcn.1400a7960
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 0x1400250b5
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400250b5
test al, 0x10
je 0x1400250fa
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 0x140025183
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140025183
test al, 0x10
jne 0x140025183
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 0x140025183
lea rdx, [0x1400f9148]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140025183
lea rcx, [rsp + 0x30]
call rax
nop
lea rcx, [rbp - 0x60]
call fcn.140011c94
mov al, 1
mov rcx, qword [rbp + 0x9e0]
xor rcx, rsp
call fcn.1400a5660
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