Function at 0x1401e5d10
Capabilities:
Check if file exists
Check os version
Get file attributes

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x140
mov qword [rbp + 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov r12, rdx
mov r13, rcx
xor edi, edi
mov r15d, edi
call qword [sym.imp.KERNEL32.dll_GetVersion]
movzx r8d, al
cmp eax, 0x80000000
jae 0x1401e5d5e
mov r15d, eax
shr r15d, 0x10
cmp r8d, 0xa
jae 0x1401e5d6b
xor al, al
jmp 0x1401e62b6
mov edx, 0x1c
lea rcx, [rbp - 0x18]
call fcn.14020a8a0
nop
mov qword [rsp + 0x38], rdi
mov edx, 8
lea rcx, [rsp + 0x30]
call fcn.1401ff260
mov eax, dword [rsp + 0x38]
inc eax
movsxd rdx, eax
mov r9d, 8
lea r8, str.Packages
mov rcx, qword [rsp + 0x30]
call fcn.1402bd21c
mov edx, 8
lea rcx, [rsp + 0x30]
call fcn.140200570
nop
lea r8, [rsp + 0x30]
lea rdx, [rbp - 0x18]
lea rcx, [rbp - 0x28]
call fcn.1400d2bd0
nop
cmp dword [rsp + 0x38], 0
jle 0x1401e5de2
mov rcx, qword [rsp + 0x30]
call fcn.1402b9c20
mov qword [rsp + 0x48], rdi
mov edx, 0x25
lea rcx, [rsp + 0x40]
call fcn.1401ff260
mov eax, dword [rsp + 0x48]
inc eax
movsxd rdx, eax
mov r9d, 0x25
lea r8, str.Microsoft.MicrosoftEdge_8wekyb3d8bbwe
mov rcx, qword [rsp + 0x40]
call fcn.1402bd21c
mov edx, 0x25
lea rcx, [rsp + 0x40]
call fcn.140200570
nop
lea r8, [rsp + 0x40]
lea rdx, [rbp - 0x28]
lea rcx, [rbp + 8]
call fcn.1400d2bd0
nop
cmp dword [rsp + 0x48], 0
jle 0x1401e5e4a
mov rcx, qword [rsp + 0x40]
call fcn.1402b9c20
mov qword [rsp + 0x58], rdi
mov edx, 2
lea rcx, [rsp + 0x50]
call fcn.1401ff260
mov eax, dword [rsp + 0x58]
inc eax
movsxd rdx, eax
mov r9d, 2
lea r8, [0x140367874]
mov rcx, qword [rsp + 0x50]
call fcn.1402bd21c
mov edx, 2
lea rcx, [rsp + 0x50]
call fcn.140200570
nop
lea r8, [rsp + 0x50]
lea rdx, [rbp + 8]
lea rcx, [rbp - 0x50]
call fcn.1400d2bd0
nop
cmp dword [rsp + 0x58], 0
jle 0x1401e5eb2
mov rcx, qword [rsp + 0x50]
call fcn.1402b9c20
lea rax, vtable.Core::Array_class_Core::String_.0
mov qword [rbp - 0x40], rax
mov dword [rbp - 0x38], edi
mov qword [rbp - 0x30], rdi
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x50]
call fcn.1400eca70
test al, al
je 0x1401e6248
mov eax, dword [rbp - 0x38]
test eax, eax
jle 0x1401e6248
mov rsi, qword [rbp - 0x30]
mov r14d, eax
nop dword [rax + rax]
mov r8d, 1
lea rdx, [0x14036786c]
mov rcx, rsi
call fcn.1402019e0
test al, al
je 0x1401e623b
mov r8, rsi
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 8]
call fcn.1400d2bd0
nop
mov qword [rsp + 0x48], 0
mov edx, 0xd
lea rcx, [rsp + 0x40]
call fcn.1401ff260
mov eax, dword [rsp + 0x48]
inc eax
movsxd rdx, eax
mov r9d, 0xd
lea r8, str.MicrosoftEdge
mov rcx, qword [rsp + 0x40]
call fcn.1402bd21c
mov edx, 0xd
lea rcx, [rsp + 0x40]
call fcn.140200570
nop
lea r8, [rsp + 0x40]
lea rdx, [rbp - 8]
lea rcx, [rbp - 0x60]
call fcn.1400d2bd0
nop
cmp dword [rsp + 0x48], 0
jle 0x1401e5f8a
mov rcx, qword [rsp + 0x40]
call fcn.1402b9c20
mov rdi, qword [0x14041a158]
test rdi, rdi
jne 0x1401e5fa1
xor eax, eax
mov ebx, eax
mov qword [rsp + 0x38], rax
jmp 0x1401e5fba
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x1401e5fa5
xor eax, eax
mov qword [rsp + 0x38], rax
test ebx, ebx
jne 0x1401e5fc8
lea rax, [0x140348ca0]
mov qword [rsp + 0x30], rax
jmp 0x1401e5fed
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.1401ff260
movsxd r9, ebx
mov eax, dword [rsp + 0x38]
inc eax
movsxd rdx, eax
mov r8, rdi
mov rcx, qword [rsp + 0x30]
call fcn.1402bd21c
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.140200570
nop
xor edi, edi
cmp r15d, 0x3fab
jb 0x1401e6111
mov qword [rsp + 0x68], rdi
lea edx, [rdi + 0x15]
lea rcx, [rsp + 0x60]
call fcn.1401ff260
mov eax, dword [rsp + 0x68]
inc eax
movsxd rdx, eax
lea r9d, [rdi + 0x15]
lea r8, str.UserDefaultDOMStore
mov rcx, qword [rsp + 0x60]
call fcn.1402bd21c
lea edx, [rdi + 0x15]
lea rcx, [rsp + 0x60]
call fcn.140200570
nop
lea r8, [rsp + 0x60]
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x18]
call fcn.1400d2bd0
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rsp + 0x30]
call fcn.1401ff260
movsxd r9, dword [rbx + 0xc]
mov ecx, dword [rsp + 0x38]
inc ecx
movsxd rdx, ecx
mov r8, qword [rbx]
mov rcx, qword [rsp + 0x30]
call fcn.1402bd21c
mov edx, dword [rbx + 0xc]
lea rcx, [rsp + 0x30]
call fcn.140200570
nop
cmp dword [rbp + 0x20], edi
jle 0x1401e60a0
mov rcx, qword [rbp + 0x18]
call fcn.1402b9c20
nop
cmp dword [rsp + 0x68], 0
jle 0x1401e60b1
mov rcx, qword [rsp + 0x60]
call fcn.1402b9c20
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x30]
call fcn.140201da0
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1401e60e1
cmp dword [rbp - 0x68], 0
jle 0x1401e620a
mov rcx, qword [rbp - 0x70]
jmp 0x1401e6204
test al, 0x10
je 0x1401e60ce
cmp dword [rbp - 0x68], 0
jle 0x1401e60f4
mov rcx, qword [rbp - 0x70]
call fcn.1402b9c20
mov byte [rsp + 0x20], 1
mov r9b, 1
mov r8, r12
lea rdx, [rsp + 0x30]
mov rcx, r13
call fcn.1401e62e0
jmp 0x1401e620a
mov qword [rsp + 0x78], rdi
mov edx, 7
lea rcx, [rsp + 0x70]
call fcn.1401ff260
mov eax, dword [rsp + 0x78]
inc eax
movsxd rdx, eax
mov r9d, 7
lea r8, str.Cookies
mov rcx, qword [rsp + 0x70]
call fcn.1402bd21c
mov edx, 7
lea rcx, [rsp + 0x70]
call fcn.140200570
nop
lea r8, [rsp + 0x70]
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x28]
call fcn.1400d2bd0
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rsp + 0x30]
call fcn.1401ff260
movsxd r9, dword [rbx + 0xc]
mov ecx, dword [rsp + 0x38]
inc ecx
movsxd rdx, ecx
mov r8, qword [rbx]
mov rcx, qword [rsp + 0x30]
call fcn.1402bd21c
mov edx, dword [rbx + 0xc]
lea rcx, [rsp + 0x30]
call fcn.140200570
nop
cmp dword [rbp + 0x30], 0
jle 0x1401e61af
mov rcx, qword [rbp + 0x28]
call fcn.1402b9c20
nop
cmp dword [rsp + 0x78], 0
jle 0x1401e61c0
mov rcx, qword [rsp + 0x70]
call fcn.1402b9c20
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x30]
call fcn.140201da0
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401e61fa
test al, 0x10
je 0x1401e61fa
cmp dword [rbp - 0x78], 0
jle 0x1401e61f0
mov rcx, qword [rbp - 0x80]
call fcn.1402b9c20
mov byte [rsp + 0x20], 0
jmp 0x1401e60f9
cmp dword [rbp - 0x78], 0
jle 0x1401e620a
mov rcx, qword [rbp - 0x80]
call fcn.1402b9c20
nop
cmp dword [rsp + 0x38], 0
jle 0x1401e621c
mov rcx, qword [rsp + 0x30]
call fcn.1402b9c20
nop
cmp dword [rbp - 0x58], 0
jle 0x1401e622c
mov rcx, qword [rbp - 0x60]
call fcn.1402b9c20
nop
cmp dword [rbp], 0
jle 0x1401e623b
mov rcx, qword [rbp - 8]
call fcn.1402b9c20
add rsi, 0x10
dec r14
jne 0x1401e5ef0
mov rax, qword [rbp - 0x30]
test rax, rax
je 0x1401e6275
lea rbx, [rax - 8]
lea r9, [fcn.140005eb0]
mov r8d, dword [rbx]
mov edx, 0x10
mov rcx, rax
call fcn.1402ba5c4
mov rcx, rbx
call fcn.1402b99fc
nop
cmp dword [rbp - 0x48], 0
jle 0x1401e6285
mov rcx, qword [rbp - 0x50]
call fcn.1402b9c20
nop
cmp dword [rbp + 0x10], 0
jle 0x1401e6295
mov rcx, qword [rbp + 8]
call fcn.1402b9c20
nop
cmp dword [rbp - 0x20], 0
jle 0x1401e62a5
mov rcx, qword [rbp - 0x28]
call fcn.1402b9c20
nop
cmp dword [rbp - 0x10], 0
jle 0x1401e62b4
mov rcx, qword [rbp - 0x18]
call fcn.1402b9c20
mov al, 1
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret