Function at 0x140022fc8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x328]
sub rsp, 0x410
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140059010]
xor rax, rsp
mov qword [rbp + 0x300], rax
mov rsi, rdx
mov rbx, rcx
xor r14d, r14d
mov qword [rsp + 0x30], r14
mov ecx, 0x102
mov dword [rbp - 0x28], ecx
lea rax, [0x140059cd8]
mov qword [rbp - 0x40], rax
lea rax, [rbp - 0x20]
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x30], ecx
xor eax, eax
mov word [rbp - 0x20], ax
xor edx, edx
lea r8d, [r14 + 0x70]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], 0x780
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x30]
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_587]
mov ebx, eax
test eax, eax
js 0x140023224
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
mov rax, qword [rax + 0x78]
call qword [case.0x14001c390.0]
cmp eax, 3
sete dil
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
mov rax, qword [rax + 0x38]
call qword [case.0x14001c390.0]
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
mov rax, qword [rax + 0x68]
call qword [case.0x14001c390.0]
test rax, rax
je 0x1400230be
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], r14w
jne 0x1400230b2
jmp 0x1400230c1
mov rcx, r14
mov r8d, ecx
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.14001f4a0
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [case.0x14001c390.0]
call qword [sym.imp.Mso98Win32Client.dll_Ordinal_418]
test eax, eax
jne 0x1400230fc
call qword [sym.imp.Mso98Win32Client.dll_Ordinal_1266]
mov ebx, 0x80004005
jmp 0x140023224
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
mov rax, qword [rax + 0x38]
call qword [case.0x14001c390.0]
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
mov rax, qword [rax + 0x68]
call qword [case.0x14001c390.0]
mov rcx, rax
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.Mso30Win32Client.dll_Ordinal_1730]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x40]
call qword [case.0x14001c390.0]
test ebx, ebx
js 0x140023224
mov dword [rsp + 0x40], 0x70
mov dword [rsp + 0x70], 1
mov rcx, qword [rbp - 0x38]
mov qword [rsp + 0x58], rcx
mov dword [rsp + 0x44], 0x500
test dil, dil
je 0x1400231d0
mov dword [rsp + 0x38], 0x104
xor r9d, r9d
lea r8, [rsp + 0x38]
lea rdx, [rbp + 0xf0]
call qword [sym.imp.SHLWAPI.dll_PathCreateFromUrlW]
test eax, eax
js 0x1400231fa
lea rcx, [rbp + 0xf0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400231fa
test al, 0x10
je 0x1400231fa
lea rax, [0x14003f394]
mov qword [rsp + 0x60], rax
lea rax, str.open
mov qword [rsp + 0x50], rax
lea rax, str.Folder
jmp 0x1400231f1
mov rcx, qword [rsp + 0x30]
call fcn.140022e78
test al, al
je 0x1400231fa
lea rax, str.opennew
mov qword [rsp + 0x50], rax
lea rax, str.htmlfile
mov qword [rbp - 0x78], rax
or dword [rsp + 0x44], 1
lea rcx, [rsp + 0x40]
call fcn.140022db8
test eax, eax
jns 0x14002320c
mov ebx, eax
jmp 0x140023224
mov rax, qword [rsp + 0x78]
dec rax
mov ecx, ebx
mov ebx, 0x80004005
cmp rax, 0x1f
cmovbe ecx, ebx
mov ebx, ecx
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rax, [rbp - 0x20]
mov rcx, qword [rbp - 0x38]
cmp rcx, rax
je 0x140023243
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1110]
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14002325a
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14001c390.0]
mov eax, ebx
mov rcx, qword [rbp + 0x300]
xor rcx, rsp
call fcn.140039650
lea r11, [rsp + 0x410]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret