Function at 0x14005b530
Capabilities:
Delete file

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rbp
push r14
push r15
lea rbp, [r11 - 0x5f]
sub rsp, 0x90
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rsi, rcx
lea r15, [rcx + 0x10]
test dl, dl
je 0x14005b5c7
mov rcx, qword [r15]
cmp dword [rcx - 0x10], 0
je 0x14005b5c7
and qword [r11 - 0x78], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsi + 0x20], rax
cmp rax, 0xffffffffffffffff
je 0x14005b5ba
mov edx, dword [rsi + 0x18]
cmp edx, 0xffffffff
je 0x14005b5ba
and dword [rbp + 0x27], 0
xor r9d, r9d
lea r8, [rbp + 0x27]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp qword [rsi + 0x20], 0xffffffffffffffff
setne al
jmp 0x14005b820
and qword [rbp + 0x1f], 0
lea rdx, [rbp + 0x1f]
mov rcx, rsi
call fcn.14005b970
nop
mov rcx, qword [rbp + 0x1f]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, rsi
call fcn.14005ba10
mov rcx, qword [rax]
call fcn.14001dde0
test eax, eax
jne 0x14005b5fe
xor bl, bl
jmp 0x14005b7f4
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov ebx, 1
mov dword [rsp + 0x20], ebx
xor r9d, r9d
mov r8d, ebx
mov edx, 0x40000000
mov rcx, qword [rbp + 0x1f]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x14005b79a
lea rax, [rbp + 0x27]
mov qword [rbp + 7], rax
lea rax, [rbp + 0x27]
mov qword [rbp + 0xf], rax
mov rcx, qword [rbp + 0x1f]
add rcx, 0xffffffffffffffe8
call fcn.140002a70
add rax, 0x18
mov qword [rbp + 0x27], rax
lea rdx, [rbp + 0x27]
mov rcx, rsi
call fcn.14005b260
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x14005b79a
mov rcx, qword [rbp + 0x1f]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
and qword [rbp - 9], 0
lea rax, [rbp - 9]
mov qword [rbp + 7], rax
mov rcx, qword [rbp + 0x1f]
add rcx, 0xffffffffffffffe8
call fcn.140002a70
add rax, 0x18
mov qword [rbp - 9], rax
lea rcx, [rbp - 9]
call fcn.14000c880
and qword [rbp + 0x2f], 0
lea r8, str..xml
lea rdx, [rbp - 9]
lea rcx, [rbp + 0x2f]
call fcn.14001ba30
nop
lea rax, [rbp + 0xf]
mov qword [rbp - 1], rax
mov rdx, qword [rbp + 0x2f]
lea rcx, [rbp + 0xf]
call fcn.140002f00
lea rdx, [rbp + 0xf]
mov rcx, rsi
call fcn.14005b3f0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], ebx
xor r9d, r9d
mov r8d, ebx
mov edx, 0x40000000
mov rcx, qword [rbp + 0x1f]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x14005b749
lea rax, [rbp - 1]
mov qword [rbp + 7], rax
lea rax, [rbp - 1]
mov qword [rbp + 0x17], rax
mov rcx, qword [rbp + 0x1f]
add rcx, 0xffffffffffffffe8
call fcn.140002a70
add rax, 0x18
mov qword [rbp - 1], rax
lea rdx, [rbp - 1]
mov rcx, rsi
call fcn.14005b260
mov r14, rax
mov rdx, qword [rbp + 0x2f]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005b76b
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rax, [rbp - 9]
mov qword [rbp + 0x17], rax
mov rdx, qword [rbp - 9]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005b794
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp r14, 0xffffffffffffffff
je 0x14005b7d9
mov rcx, qword [rbp + 0x1f]
add rcx, 0xffffffffffffffe8
call fcn.140002a70
lea rbx, [rax + 0x18]
mov qword [rbp + 7], rbx
lea rdx, [rbp + 7]
mov rcx, r15
call fcn.1400068a0
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005b7d9
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rsi + 0x20], r14
lea rdx, [0x14006fe64]
mov rcx, rsi
call fcn.14005b850
cmp qword [rsi + 0x20], 0xffffffffffffffff
setne bl
lea rax, [rbp + 0x1f]
mov qword [rbp + 0x17], rax
mov rdx, qword [rbp + 0x1f]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14005b81e
lfence
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov al, bl
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140001020
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret