Function at 0x140004b68
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 [0x140019060]
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 0x140004ec8
lea r12, [r13 + 0x10]
mov qword [rsp + 0x20], r12
lea r9, [0x140002bd0]
xor edx, edx
lea r8d, [r15 + 1]
lea rcx, [0x140002c00]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140004ec2
mov rdi, qword [r12]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x50]
mov rcx, rbx
call qword [fcn.1400049d0]
xor edx, edx
mov rcx, rdi
call rbx
mov rax, qword [r13 + 0x18]
mov rcx, qword [rax]
test rcx, rcx
jne 0x140004c16
mov edi, r15d
mov qword [rsp + 0x40], r15
jmp 0x140004c34
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rdi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x140004c34
mov ecx, 0x8007000e
call fcn.140005490
nop
test rdi, rdi
je 0x140004c61
mov rsi, qword [r12]
mov rax, qword [rsi]
mov rbx, qword [rax + 0x20]
mov rcx, rbx
call qword [fcn.1400049d0]
lea r9, [rsp + 0x50]
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rbx
mov ebx, eax
jmp 0x140004c66
mov ebx, 0x8007000e
test ebx, ebx
js 0x140004eb9
mov byte [rsp + 0x30], 1
mov rbp, qword [r13 + 0x28]
test rbp, rbp
je 0x140004d1d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], r15w
jne 0x140004c84
cmp rax, 5
jb 0x140004eb9
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140004d47
test al, 0x10
jne 0x140004d47
mov rcx, qword [r13 + 8]
mov rax, qword [rcx + 0x70]
test rax, rax
je 0x140004cc6
mov rax, qword [rax + 0x40]
jmp 0x140004cc9
mov rax, r15
test rax, rax
je 0x140004d47
mov rax, qword [rcx + 0x70]
test rax, rax
je 0x140004cdd
mov rdx, qword [rax + 0x40]
jmp 0x140004ce0
mov rdx, r15
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
jne 0x140004d02
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140004d47
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, 0x80004005
test eax, eax
cmove ebx, ecx
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
jmp 0x140004d47
mov qword [rsp + 0x38], 0x104
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x60]
call fcn.140004f00
mov ebx, eax
lea rbp, [rsp + 0x60]
test eax, eax
cmovs rbp, r15
mov byte [rsp + 0x30], r15b
test ebx, ebx
js 0x140004eb9
test rbp, rbp
jne 0x140004d5e
mov rbx, r15
mov qword [rsp + 0x38], rbx
jmp 0x140004d7f
mov rcx, rbp
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140004d7f
mov ecx, 0x8007000e
call fcn.140005490
nop
mov r14, qword [r12]
mov rax, qword [r14]
mov rsi, qword [rax + 0x48]
mov rcx, rsi
call qword [fcn.1400049d0]
mov rdx, rbx
mov rcx, r14
call rsi
test eax, eax
js 0x140004eaf
mov ecx, 0x20
call fcn.14000b330
mov r15, rax
test rax, rax
je 0x140004de9
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 0x140004dec
xor r15d, r15d
test r15, r15
je 0x140004eaf
mov r14, qword [r12]
mov rax, qword [r14]
mov rsi, qword [rax + 0x28]
mov rcx, rsi
call qword [fcn.1400049d0]
mov rdx, r15
mov rcx, r14
call rsi
test eax, eax
js 0x140004e99
mov byte [r13 + 0x21], 1
mov r14, qword [r12]
mov rax, qword [r14]
mov rsi, qword [rax + 0x40]
mov rcx, rsi
call qword [fcn.1400049d0]
mov rcx, r14
call rsi
mov byte [r13 + 0x21], 0
cmp byte [rsp + 0x30], 0
jne 0x140004e99
mov rdx, rbp
call fcn.140005020
test eax, eax
js 0x140004e99
mov rcx, qword [r13 + 8]
mov rax, qword [rcx + 0x70]
test rax, rax
je 0x140004e60
mov rax, qword [rax + 0x40]
test rax, rax
je 0x140004e99
mov rax, qword [rcx + 0x70]
test rax, rax
je 0x140004e74
mov rdx, qword [rax + 0x40]
jmp 0x140004e76
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
jne 0x140004e8a
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140004e99
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rax, qword [r15]
mov rsi, qword [rax + 0x10]
mov rcx, rsi
call qword [fcn.1400049d0]
mov rcx, r15
call rsi
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14000b710
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