Function at 0x140004b08
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x280
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x140018060]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r13, rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
xor r15d, r15d
test eax, eax
js 0x140004db1
lea r12, [r13 + 0x10]
mov qword [rsp + 0x20], r12
lea r9, [0x140002b70]
xor edx, edx
lea r8d, [r15 + 1]
lea rcx, [0x140002b90]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140004dab
mov rdi, qword [r12]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x50]
mov rcx, rbx
call qword [fcn.140004970]
xor edx, edx
mov rcx, rdi
call rbx
mov rax, qword [r13 + 0x18]
mov rcx, qword [rax]
test rcx, rcx
jne 0x140004bb6
mov ebx, r15d
mov qword [rsp + 0x40], rbx
jmp 0x140004bd4
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x140004bd4
mov ecx, 0x8007000e
call fcn.140004fbc
nop
test rbx, rbx
je 0x140004c01
mov rsi, qword [r12]
mov rax, qword [rsi]
mov rdi, qword [rax + 0x20]
mov rcx, rdi
call qword [fcn.140004970]
lea r9, [rsp + 0x50]
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call rdi
mov edi, eax
jmp 0x140004c06
mov edi, 0x8007000e
test edi, edi
js 0x140004da2
mov byte [rsp + 0x30], 1
mov rbp, qword [r13 + 0x28]
test rbp, rbp
je 0x140004c5b
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], r15w
jne 0x140004c20
cmp rax, 5
jb 0x140004da2
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140004c85
test al, 0x10
jne 0x140004c85
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140004c85
mov edi, 0x80004005
jmp 0x140004c85
mov qword [rsp + 0x38], 0x104
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x60]
call fcn.140004de8
mov edi, eax
lea rbp, [rsp + 0x60]
test eax, eax
cmovs rbp, r15
mov byte [rsp + 0x30], r15b
test edi, edi
js 0x140004da2
test rbp, rbp
jne 0x140004c9c
mov rdi, r15
mov qword [rsp + 0x38], r15
jmp 0x140004cbd
mov rcx, rbp
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140004cbd
mov ecx, 0x8007000e
call fcn.140004fbc
nop
mov r14, qword [r12]
mov rax, qword [r14]
mov rsi, qword [rax + 0x48]
mov rcx, rsi
call qword [fcn.140004970]
mov rdx, rdi
mov rcx, r14
call rsi
test eax, eax
js 0x140004d98
mov ecx, 0x20
call fcn.14000ae70
mov r15, rax
test rax, rax
je 0x140004d27
mov dl, byte [r13 + 0x22]
mov cl, byte [r13 + 0x20]
mov rax, qword [r13 + 8]
lea r8, [0x140002ac0]
mov qword [r15], r8
mov dword [r15 + 8], 1
mov qword [r15 + 0x10], rax
mov byte [r15 + 0x18], cl
mov al, byte [rsp + 0x30]
mov byte [r15 + 0x19], al
mov byte [r15 + 0x1a], dl
jmp 0x140004d2a
xor r15d, r15d
test r15, r15
je 0x140004d98
mov r14, qword [r12]
mov rax, qword [r14]
mov rsi, qword [rax + 0x28]
mov rcx, rsi
call qword [fcn.140004970]
mov rdx, r15
mov rcx, r14
call rsi
test eax, eax
js 0x140004d82
mov byte [r13 + 0x21], 1
mov r14, qword [r12]
mov rax, qword [r14]
mov rsi, qword [rax + 0x40]
mov rcx, rsi
call qword [fcn.140004970]
mov rcx, r14
call rsi
mov byte [r13 + 0x21], 0
cmp byte [rsp + 0x30], 0
jne 0x140004d82
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rax, qword [r15]
mov rsi, qword [rax + 0x10]
mov rcx, rsi
call qword [fcn.140004970]
mov rcx, r15
call rsi
nop
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14000b200
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret