Function at 0x140054480
Capabilities:
Delete file

Disassembly:
push rbp
push rbx
push rsi
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rsi, rcx
lea r15, [rcx + 0x10]
test dl, dl
je 0x1400544fe
mov rcx, qword [r15]
cmp dword [rcx - 0x10], 0
je 0x1400544fe
and qword [rsp + 0x30], 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 0x1400544f1
mov edx, dword [rsi + 0x18]
cmp edx, 0xffffffff
je 0x1400544f1
and dword [rbp + 0x38], 0
xor r9d, r9d
lea r8, [rbp + 0x38]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp qword [rsi + 0x20], 0xffffffffffffffff
setne al
jmp 0x14005473d
lea rdx, [rbp + 0x40]
mov rcx, rsi
call fcn.140054834
nop
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, rsi
call fcn.1400548c8
mov rcx, qword [rax]
call fcn.14005dfdc
test eax, eax
jne 0x140054530
xor bl, bl
jmp 0x140054714
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 + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1400546bd
lea rax, [rbp - 0x30]
mov qword [rbp + 0x48], rax
lea rax, [rbp - 0x30]
mov qword [rbp - 0x10], rax
mov rcx, qword [rbp + 0x40]
add rcx, 0xffffffffffffffe8
call fcn.14000a2b4
add rax, 0x18
mov qword [rbp - 0x30], rax
lea rdx, [rbp - 0x30]
mov rcx, rsi
call fcn.1400541c0
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1400546bd
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rax, [rbp + 0x48]
mov qword [rbp - 0x10], rax
mov rcx, qword [rbp + 0x40]
add rcx, 0xffffffffffffffe8
call fcn.14000a2b4
add rax, 0x18
mov qword [rbp + 0x48], rax
lea rcx, [rbp + 0x48]
call fcn.14001e63c
lea r8, str..xml
lea rdx, [rbp + 0x48]
lea rcx, [rbp - 0x18]
call fcn.1400315dc
nop
lea rax, [rbp - 0x20]
mov qword [rbp - 0x28], rax
mov rdx, qword [rbp - 0x18]
lea rcx, [rbp - 0x20]
call fcn.140009580
nop
lea rdx, [rbp - 0x20]
mov rcx, rsi
call fcn.140054300
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 + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140054672
lea rax, [rbp - 0x28]
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x28]
mov qword [rbp - 8], rax
mov rcx, qword [rbp + 0x40]
add rcx, 0xffffffffffffffe8
call fcn.14000a2b4
add rax, 0x18
mov qword [rbp - 0x28], rax
lea rdx, [rbp - 0x28]
mov rcx, rsi
call fcn.1400541c0
mov r14, rax
mov rdx, qword [rbp - 0x18]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140054691
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rax, [rbp + 0x48]
mov qword [rbp - 8], rax
mov rdx, qword [rbp + 0x48]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400546b7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp r14, 0xffffffffffffffff
je 0x1400546f9
mov rcx, qword [rbp + 0x40]
add rcx, 0xffffffffffffffe8
call fcn.14000a2b4
lea rbx, [rax + 0x18]
mov qword [rbp - 0x10], rbx
lea rdx, [rbp - 0x10]
mov rcx, r15
call fcn.140009900
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400546f9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rsi + 0x20], r14
lea rdx, [0x14006670c]
mov rcx, rsi
call fcn.14005474c
cmp qword [rsi + 0x20], 0xffffffffffffffff
setne bl
lea rax, [rbp + 0x40]
mov qword [rbp + 0x48], rax
mov rdx, qword [rbp + 0x40]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14005473b
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov al, bl
add rsp, 0x70
pop r15
pop r14
pop rsi
pop rbx
pop rbp
ret