Function at 0x180021c30
Capabilities:
Delete file

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x180122010]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x180021c6e
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x180021c7f
mov al, 1
jmp 0x180021f46
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x180021c8c
mov rdx, qword [rbx]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
movdqa xmm1, xmmword [0x1800e7190]
movdqu xmmword [rbp - 0x18], xmm1
xor r15d, r15d
mov word [rbp - 0x28], r15w
mov rdi, 0xffffffffffffffff
mov r8, rdi
inc r8
cmp word [rdx + r8*2], r15w
jne 0x180021cb3
lea rcx, [rbp - 0x28]
call fcn.180007980
nop
lea rcx, [rbp - 0x28]
call fcn.180021b20
mov r14d, eax
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x180021d16
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180021d11
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180021d11
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800c8534
movdqa xmm0, xmmword [0x1800e7190]
movdqu xmmword [rbp - 0x18], xmm0
mov word [rbp - 0x28], r15w
cmp r14d, 0xffffffff
jne 0x180021d35
xor al, al
jmp 0x180021f46
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x180021d42
mov rdx, qword [rbx]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
movdqa xmm1, xmmword [0x1800e7190]
movdqu xmmword [rbp - 0x18], xmm1
mov word [rbp - 0x28], r15w
mov r8, rdi
nop
inc r8
cmp word [rdx + r8*2], 0
jne 0x180021d60
lea rcx, [rbp - 0x28]
call fcn.180007980
nop
xor edx, edx
lea rcx, [rbp - 0x28]
call fcn.180021a00
test al, al
sete sil
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x180021dc9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180021dc4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180021dc4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800c8534
movdqa xmm0, xmmword [0x1800e7190]
movdqu xmmword [rbp - 0x18], xmm0
mov word [rbp - 0x28], r15w
test sil, sil
jne 0x180021d2e
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x180021df1
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180021c78
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
movdqa xmm1, xmmword [0x1800e7190]
movdqu xmmword [rbp - 0x18], xmm1
mov word [rbp - 0x28], r15w
lea rdx, [rbp - 0x28]
mov rcx, rbx
call fcn.1800221e0
test al, al
je 0x180021e48
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x180021e48
mov bl, 1
jmp 0x180021eee
cmp qword [rbx + 0x18], 8
jb 0x180021e52
mov rbx, qword [rbx]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x40], xmm0
movdqa xmm1, xmmword [0x1800e7190]
movdqu xmmword [rbp - 0x40], xmm1
mov word [rbp - 0x50], r15w
nop dword [rax]
inc rdi
cmp word [rbx + rdi*2], 0
jne 0x180021e70
mov r8, rdi
mov rdx, rbx
lea rcx, [rbp - 0x50]
call fcn.180007980
nop
mov edx, r14d
lea rcx, [rbp - 0x50]
call fcn.180021a00
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x180021eda
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180021ed5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180021ed5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800c8534
movdqa xmm0, xmmword [0x1800e7190]
movdqu xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x50], r15w
xor bl, bl
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x180021f31
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180021f2c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180021f2c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800c8534
movdqa xmm0, xmmword [0x1800e7190]
movdqu xmmword [rbp - 0x18], xmm0
mov word [rbp - 0x28], r15w
movzx eax, bl
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1800c8510
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret