Function at 0x1400c5918
Capabilities:
Delete file

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x300
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x14017d140]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov ebx, r8d
mov rsi, rdx
mov rdi, rcx
xor r14d, r14d
mov word [rsp + 0x60], r14w
xor edx, edx
mov r8d, 0x286
lea rcx, [rsp + 0x62]
call sub.msvcrt.dll_memset
lea r11, [0x14000ba60]
mov qword [rsp + 0x30], r11
or r15, 0xffffffffffffffff
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r14
test rsi, rsi
jne 0x1400c599d
lea r8, [0x14000b380]
mov edx, 0x599
lea rcx, [0x14000b1d0]
call fcn.1400a8be8
mov rcx, rdi
call fcn.1400c68e4
nop
mov r8d, ebx
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.1400c6cb0
mov rbx, rax
cmp rax, r15
jne 0x1400c59d6
lea r8, [0x14000ba30]
mov edx, 0x3a5
lea rcx, [0x14000ae78]
call fcn.1400a8be8
mov qword [rsp + 0x38], rbx
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1400bba44
mov ebx, eax
test eax, eax
jns 0x1400c5a36
lea rax, [0x14017d3a8]
mov rcx, qword [0x14017d3a8]
cmp rcx, rax
je 0x1400c5b68
test byte [rcx + 0x1c], 1
je 0x1400c5b68
cmp byte [rcx + 0x19], 2
jb 0x1400c5b68
mov edx, EventEnabled
mov r9d, ebx
lea r8, [0x14000bbb0]
mov rcx, qword [rcx + 0x10]
call fcn.14001de24
jmp 0x1400c5b68
lea rcx, [rsp + 0x30]
call fcn.1400c8130
mov ebx, eax
test eax, eax
jns 0x1400c5a78
lea rax, [0x14017d3a8]
mov rcx, qword [0x14017d3a8]
cmp rcx, rax
je 0x1400c5b68
test byte [rcx + 0x1c], 1
je 0x1400c5b68
cmp byte [rcx + 0x19], 2
jb 0x1400c5b68
mov edx, EventEnabled
jmp 0x1400c5a1e
mov rcx, qword [rsp + 0x38]
cmp rcx, r15
je 0x1400c5aaf
test rcx, rcx
jne 0x1400c5aa4
lea r8, [0x14000ba50]
mov edx, 0x3b1
lea rcx, [0x14000ae78]
call fcn.1400a8be8
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x38], r15
lea r8, [rsp + 0x48]
mov edx, 1
mov rcx, rdi
call fcn.1400c72e0
mov ebx, eax
test eax, eax
jns 0x1400c5b0c
lea rax, [0x14017d3a8]
mov rcx, qword [0x14017d3a8]
cmp rcx, rax
je 0x1400c5b68
test byte [rcx + 0x1c], 1
je 0x1400c5b68
cmp byte [rcx + 0x19], 2
jb 0x1400c5b68
mov edx, reloc.ADVAPI32.dll_UnregisterTraceGuids
mov dword [rsp + 0x20], ebx
mov r9, rdi
lea r8, [0x14000bbb0]
mov rcx, qword [rcx + 0x10]
call fcn.14001ecbc
jmp 0x1400c5b68
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.1400c79b8
mov ebx, eax
test eax, eax
jns 0x1400c5bc1
lea rax, [0x14017d3a8]
mov rcx, qword [0x14017d3a8]
cmp rcx, rax
je 0x1400c5b68
test byte [rcx + 0x1c], 1
je 0x1400c5b68
cmp byte [rcx + 0x19], 2
jb 0x1400c5b68
mov edx, reloc.ADVAPI32.dll_EventRegister
mov dword [rsp + 0x28], ebx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9, rdi
lea r8, [0x14000bbb0]
mov rcx, qword [rcx + 0x10]
call fcn.140028ec8
cmp word [rsp + 0x60], r14w
je 0x1400c5bb3
mov rcx, qword [rsp + 0x38]
cmp rcx, r15
je 0x1400c5ba7
test rcx, rcx
jne 0x1400c5b9c
lea r8, [0x14000ba50]
mov edx, 0x3b1
lea rcx, [0x14000ae78]
call fcn.1400a8be8
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x38], r15
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
lea rcx, [rsp + 0x30]
call fcn.1400c90c0
mov eax, ebx
jmp 0x1400c5bf3
mov word [rsp + 0x60], r14w
cmp dword [rsp + 0x48], r14d
jne 0x1400c5bd7
mov rcx, rdi
call fcn.1400c76b4
nop
lea rcx, [rsp + 0x30]
call fcn.1400c90c0
xor eax, eax
jmp 0x1400c5bf3
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.140168920
add rsp, 0x300
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret