Function at 0x1400381e4
Capabilities:
Check if file exists
Delete file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov rdi, rcx
add rcx, 0x18
call fcn.14001def4
mov r12, rax
xor r14d, r14d
mov qword [rbp + 0x50], r14
and dword [rbp + 0x40], r14d
and qword [rbp + 0x48], r14
lea r15, [0x14017d3a8]
mov rcx, qword [0x14017d3a8]
cmp rcx, r15
je 0x140038250
test byte [rcx + 0x1c], 1
je 0x140038250
cmp byte [rcx + 0x19], 4
jb 0x140038250
mov edx, 0x18f
lea r8, [0x140003c28]
mov rcx, qword [rcx + 0x10]
call fcn.14001dd24
cmp qword [rdi + 0x190], r14
jne 0x140038271
lea r8, [0x140004258]
mov edx, 0x23b7
lea rcx, [0x140003c50]
call fcn.1400a8be8
mov rax, qword [r12]
mov rdx, qword [rdi + 0x190]
mov rcx, r12
call qword [rax + 0xc0]
mov ebx, eax
test eax, eax
js 0x14003858b
test byte [rdi + 0x154], 1
jne 0x14003848d
mov rax, qword [r12]
xor r8d, r8d
cmp dword [rdi + reloc.ADVAPI32.dll_TraceEvent], 4
setne r8b
mov rdx, qword [rdi + 0x248]
mov rcx, r12
call qword [rax + 0xd0]
mov ebx, eax
test eax, eax
jns 0x140038305
mov rcx, qword [0x14017d3a8]
cmp rcx, r15
je 0x140038592
test byte [rcx + 0x1c], 1
je 0x140038592
cmp byte [rcx + 0x19], 2
jb 0x140038592
mov edx, 0x190
mov r9d, eax
lea r8, [0x140003c28]
mov rcx, qword [rcx + 0x10]
call fcn.14001de24
jmp 0x14003858b
cmp qword [rdi + 0x1d8], r14
jne 0x140038326
lea r8, [0x140004208]
mov edx, 0x23d0
lea rcx, [0x140003c50]
call fcn.1400a8be8
lea rdx, [rdi + 0x128]
lea r9, [rbp + 0x50]
xor r8d, r8d
mov rcx, qword [rdi + 0x1d8]
call fcn.1401335fc
mov ebx, eax
mov r14, qword [rbp + 0x50]
test eax, eax
js 0x140038576
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400383b6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 2
je 0x1400383b6
mov rcx, qword [0x14017d3a8]
cmp rcx, r15
je 0x1400383a3
test byte [rcx + 0x1c], 1
je 0x1400383a3
cmp byte [rcx + 0x19], 2
jb 0x1400383a3
mov edx, 0x191
mov dword [rsp + 0x20], eax
mov r9, r14
lea r8, [0x140003c28]
mov rcx, qword [rcx + 0x10]
call fcn.14001ecbc
mov rcx, qword [0x14017d3a8]
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x14003857d
test byte [rdi + 0x154], 0x80
je 0x14003848d
cmp byte [rdi + 0x114], 0
je 0x14003848d
lea rcx, [rdi + 0x2d8]
mov rdx, r14
call fcn.14002ab5c
test al, al
jne 0x1400383fb
lea r8, [0x140004328]
mov edx, 0x23e7
lea rcx, [0x140003c50]
call fcn.1400a8be8
mov ecx, 0x20
call qword [sym.imp.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__]
mov rsi, rax
mov qword [rbp + 0x50], rax
test rax, rax
je 0x14003842c
lea rax, [0x140005670]
mov qword [rsi], rax
mov byte [rsi + 8], 1
and qword [rsi + 0x18], 0
and qword [rsi + 0x10], 0
jmp 0x14003842e
xor esi, esi
mov rdx, qword [rdi + 0x248]
mov rcx, rsi
call fcn.14002a734
mov ebx, eax
test eax, eax
js 0x140038576
lea rbx, [rdi + 0x308]
mov r15, qword [rbx + 8]
cmp r15, qword [rbx + 0x10]
jb 0x140038473
lea rdx, [r15 + 1]
mov rcx, rbx
call fcn.14008b270
test al, al
jne 0x140038473
mov ecx, 0x8007000e
call fcn.14001ad98
int3
mov rax, qword [rbx]
lea rcx, [rax + r15*8]
test rcx, rcx
je 0x140038482
mov qword [rcx], rsi
inc qword [rbx + 8]
lea r15, [0x14017d3a8]
movups xmm0, xmmword [0x14000ab48]
movdqu xmmword [rbp - 0x10], xmm0
mov rcx, qword [rdi + 0x50]
mov rax, qword [rcx]
lea rdx, [rbp + 0x48]
mov qword [rsp + 0x38], rdx
lea rdx, [rbp + 0x40]
mov qword [rsp + 0x30], rdx
mov byte [rsp + 0x28], 0
or qword [rsp + 0x20], 0xffffffffffffffff
xor r9d, r9d
lea r8, [rbp - 0x10]
mov rdx, r12
call qword [rax + 0xb0]
mov ebx, eax
test eax, eax
jns 0x140038511
mov rcx, qword [0x14017d3a8]
cmp rcx, r15
je 0x14003857d
test byte [rcx + 0x1c], 1
je 0x14003857d
cmp byte [rcx + 0x19], 2
jb 0x14003857d
mov edx, 0x192
mov r9d, eax
lea r8, [0x140003c28]
mov rcx, qword [rcx + 0x10]
call fcn.14001de24
jmp 0x140038576
lea r8, [rdi + 0x28]
mov rax, qword [rbp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp + 0x40]
mov rdx, qword [rdi + 0x330]
mov rcx, qword [rdi + 0x158]
call fcn.1400979d4
mov ebx, eax
test eax, eax
jns 0x140038576
mov rcx, qword [0x14017d3a8]
cmp rcx, r15
je 0x140038572
test byte [rcx + 0x1c], 1
je 0x140038572
cmp byte [rcx + 0x19], 3
jb 0x140038572
mov edx, 0x193
mov r9d, eax
lea r8, [0x140003c28]
mov rcx, qword [rcx + 0x10]
call fcn.14001de24
mov rcx, qword [0x14017d3a8]
xor ebx, ebx
jmp 0x14003857d
mov rcx, qword [0x14017d3a8]
test r14, r14
je 0x140038592
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14017d3a8]
cmp qword [rbp + 0x48], 0
je 0x1400385ad
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0x48]
call fcn.14015f8e8
mov rcx, qword [0x14017d3a8]
test ebx, ebx
jns 0x1400385e1
cmp rcx, r15
je 0x140038607
test byte [rcx + 0x1c], 1
je 0x1400385e1
cmp byte [rcx + 0x19], 2
jb 0x1400385e1
mov edx, 0x194
mov r9d, ebx
lea r8, [0x140003c28]
mov rcx, qword [rcx + 0x10]
call fcn.14001de24
mov rcx, qword [0x14017d3a8]
cmp rcx, r15
je 0x140038607
test byte [rcx + 0x1c], 1
je 0x140038607
cmp byte [rcx + 0x19], 4
jb 0x140038607
mov edx, 0x195
lea r8, [0x140003c28]
mov rcx, qword [rcx + 0x10]
call fcn.14001dd24
mov eax, ebx
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret