Function at 0x140031284
Capabilities:
Delete directory
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r13
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140090010]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rcx
xor r13d, r13d
cmp qword [rcx + 0x10], r13
je 0x140031502
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x38], r13
lea rdx, [rbp - 0x48]
call fcn.14000e8dc
mov rdi, qword [rbp - 0x48]
cmp rdi, qword [rbp - 0x40]
je 0x140031359
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], r13
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.1400080a4
nop
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400312fd
mov rdx, qword [rdi]
lea rcx, [rbp - 0x30]
call fcn.140006344
lea rcx, [rbp - 0x30]
call fcn.140031284
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x14003134c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140031347
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140031352
call fcn.140041c70
add rdi, 0x20
jmp 0x1400312d5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], r13
lea rdx, [rbp - 0x60]
mov rcx, rbx
call fcn.14000e824
mov rdi, qword [rbp - 0x60]
cmp rdi, qword [rbp - 0x58]
je 0x140031429
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], r13
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.1400080a4
nop
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400313a1
mov rdx, qword [rdi]
lea rcx, [rbp - 0x30]
call fcn.140006344
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
test eax, eax
jne 0x1400313dd
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rdx, qword [rbp - 0x30]
lea rcx, str.Failed_to_remove_temporary_file___s_.
call fcn.140005db4
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x140031419
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140031414
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140031422
call fcn.140041c70
add rdi, 0x20
jmp 0x140031375
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140031436
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14003145a
cmp qword [rbx + 0x18], 8
jb 0x14003144a
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, str.Failed_to_remove_temporary_directory___s_.
call fcn.140005db4
nop
mov edi, 7
cmp qword [rbp - 0x60], r13
je 0x1400314b1
mov rbx, qword [rbp - 0x60]
jmp 0x140031495
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140031485
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
call fcn.140001ad4
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], rdi
mov word [rbx], r13w
add rbx, 0x20
cmp rbx, qword [rbp - 0x58]
jne 0x14003146b
mov rdx, qword [rbp - 0x50]
sub rdx, qword [rbp - 0x60]
and rdx, 0xffffffffffffffe0
mov rcx, qword [rbp - 0x60]
call fcn.140001ad4
nop
cmp qword [rbp - 0x48], r13
je 0x140031502
mov rbx, qword [rbp - 0x48]
jmp 0x1400314e7
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x1400314d7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
call fcn.140001ad4
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], rdi
mov word [rbx], r13w
add rbx, 0x20
cmp rbx, qword [rbp - 0x40]
jne 0x1400314bd
mov rdx, qword [rbp - 0x38]
sub rdx, qword [rbp - 0x48]
and rdx, 0xffffffffffffffe0
mov rcx, qword [rbp - 0x48]
call fcn.140001ad4
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140041c10
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r13, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret