Function at 0x1400418f8
Capabilities:
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
mov r11, rsp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x210
mov qword [rsp + 0x98], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
mov rax, qword [0x14010bfc0]
xor rax, rsp
mov qword [rsp + 0x200], rax
mov rdi, rdx
mov r12, rcx
mov ebp, 1
mov byte [rsp + 0xf0], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [r11 - 0x147]
call fcn.1400988d0
lea r13d, [rbp + 0xf]
cmp qword [rdi + 0x20], r13
jb 0x14004196a
lea rbx, [rdi + 8]
mov rdx, qword [rbx]
jmp 0x140041971
lea rbx, [rdi + 8]
mov rdx, rbx
mov rcx, qword [r12 + 0x750]
call fcn.14002dba4
mov r8d, 0x104
lea rdx, [rsp + 0xf0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov r15d, reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rsp + 0xe8], r15
and qword [rsp + 0xe0], 0
mov byte [rsp + 0xd0], 0
lea rcx, [r12 + 0x3f8]
lea r8, [rsp + 0xc8]
lea rdx, str.dontdelete
call fcn.14005e1b4
mov esi, eax
cmp qword [rsp + 0xe8], r13
jb 0x1400419e8
mov rcx, qword [rsp + 0xd0]
call fcn.14006127c
test esi, esi
je 0x140041a12
cmp qword [rdi + 0x20], r13
jb 0x1400419f5
mov rbx, qword [rbx]
mov r9, rbx
lea r8, str.The_file__s_should_be_deleted
mov edx, ebp
lea rcx, [0x14010f570]
call fcn.140001000
jmp 0x140041d6c
cmp qword [rdi + 0x20], r13
jb 0x140041a1d
mov rcx, qword [rbx]
jmp 0x140041a20
mov rcx, rbx
lea rdx, [rsp + 0xf0]
call fcn.1400994a8
test eax, eax
jne 0x140041a9b
cmp qword [rdi + 0x20], r13
jb 0x140041a3c
mov rdx, qword [rbx]
jmp 0x140041a3f
mov rdx, rbx
mov rcx, r12
call fcn.14003ebfc
test eax, eax
jne 0x140041a74
cmp qword [rdi + 0x20], r13
jb 0x140041a54
mov rbx, qword [rbx]
mov r9, rbx
lea r8, str.The_file__s_will_be_deleted_after_reboot
mov edx, 0x20
lea rcx, [0x14010f570]
call fcn.140001000
jmp 0x140041d6c
cmp qword [rdi + 0x20], r13
jb 0x140041a7d
mov rbx, qword [rbx]
mov r9d, eax
mov r8, rbx
lea rdx, str.DeleteOnNextReboot___s___returned__d_n
lea rcx, [0x14010f570]
call fcn.14004b9f0
jmp 0x140041d6c
cmp qword [rdi + 0x20], r13
jb 0x140041aa6
mov r8, qword [rbx]
jmp 0x140041aa9
mov r8, rbx
lea rdx, str.Trying_to_delete_s_n
lea rcx, [0x14010f570]
call fcn.14004b9f0
cmp qword [rdi + 0x20], r13
jb 0x140041ac7
mov rcx, qword [rbx]
jmp 0x140041aca
mov rcx, rbx
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebp, eax
test eax, eax
je 0x140041ae7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x140041aef
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp qword [rdi + 0x20], r13
jb 0x140041afa
mov r8, qword [rbx]
jmp 0x140041afd
mov r8, rbx
mov r9d, esi
lea rdx, str.SetFileAttributes___s___returned__d_n
lea rcx, [0x14010f570]
call fcn.14004b9f0
cmp esi, 2
je 0x140041d6c
cmp esi, 0xd
je 0x140041d6c
cmp esi, 3
je 0x140041d6c
mov ecx, 2
call fcn.14003ff90
mov qword [rsp + 0xc0], r15
and qword [rsp + 0xb8], 0
mov byte [rsp + 0xa8], 0
test esi, esi
je 0x140041c34
lea rcx, [rsp + 0xa0]
call fcn.14004d614
mov qword [rsp + 0x40], r15
and qword [rsp + 0x38], 0
mov byte [rsp + 0x28], 0
lea rcx, [0x1400c9858]
call fcn.1400980d0
mov r8, rax
lea rdx, [0x1400c9858]
lea rcx, [rsp + 0x20]
call fcn.14000352c
nop
lea r8, [rsp + 0x20]
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.14000d234
nop
lea r8, [rsp + 0xa0]
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14000d234
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0xa0]
call fcn.140002458
nop
cmp qword [rsp + 0x90], r13
jb 0x140041bec
mov rcx, qword [rsp + 0x78]
call fcn.14006127c
mov qword [rsp + 0x90], r15
and qword [rsp + 0x88], 0
mov byte [rsp + 0x78], 0
cmp qword [rsp + 0x68], r13
jb 0x140041c13
mov rcx, qword [rsp + 0x50]
call fcn.14006127c
mov qword [rsp + 0x68], r15
and qword [rsp + 0x60], 0
mov byte [rsp + 0x50], 0
cmp qword [rsp + 0x40], r13
jb 0x140041c34
mov rcx, qword [rsp + 0x28]
call fcn.14006127c
cmp qword [rdi + 0x20], r13
jb 0x140041c3f
mov r8, qword [rbx]
jmp 0x140041c42
mov r8, rbx
lea rdx, str.Deleting__s_n
lea rcx, [0x14010f570]
call fcn.14004b9f0
cmp qword [rdi + 0x20], r13
jb 0x140041c60
mov rcx, qword [rbx]
jmp 0x140041c63
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test r13b, al
je 0x140041cc2
cmp qword [rdi + 0x20], r13
jb 0x140041c79
mov rcx, qword [rbx]
jmp 0x140041c7c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ebp, eax
test eax, eax
je 0x140041c94
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x140041c9c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp qword [rdi + 0x20], r13
jb 0x140041ca7
mov r8, qword [rbx]
jmp 0x140041caa
mov r8, rbx
mov r9d, esi
lea rdx, str.RemoveDirectory___s___returned__d_n
lea rcx, [0x14010f570]
call fcn.14004b9f0
jmp 0x140041d14
cmp qword [rdi + 0x20], r13
jb 0x140041ccd
mov rcx, qword [rbx]
jmp 0x140041cd0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
test eax, eax
je 0x140041ce8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x140041cf0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp qword [rdi + 0x20], r13
jb 0x140041cfb
mov r8, qword [rbx]
jmp 0x140041cfe
mov r8, rbx
mov r9d, esi
lea rdx, str.DeleteFile___s___returned__d_n
lea rcx, [0x14010f570]
call fcn.14004b9f0
test esi, esi
je 0x140041d55
cmp esi, 5
je 0x140041d25
cmp esi, 0x91
jne 0x140041d3d
cmp qword [rdi + 0x20], r13
jb 0x140041d2e
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, r12
call fcn.14003ebfc
test eax, eax
je 0x140041d55
mov ecx, 2
call fcn.14003ff90
lea rcx, [rsp + 0xa0]
call fcn.14004d614
nop
cmp qword [rsp + 0xc0], r13
jb 0x140041d6c
mov rcx, qword [rsp + 0xa8]
call fcn.14006127c
mov eax, ebp
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.140061100
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret