Function at 0x140030fa4
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 [0x140067010]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rcx
xor r13d, r13d
cmp qword [rcx + 0x10], r13
je 0x140031222
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 0x140031079
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], r13
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.140008044
nop
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14003101d
mov rdx, qword [rdi]
lea rcx, [rbp - 0x30]
call fcn.1400062e4
lea rcx, [rbp - 0x30]
call fcn.140030fa4
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x14003106c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140031067
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140031072
call fcn.1400419f0
add rdi, 0x20
jmp 0x140030ff5
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 0x140031149
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], r13
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.140008044
nop
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400310c1
mov rdx, qword [rdi]
lea rcx, [rbp - 0x30]
call fcn.1400062e4
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 0x1400310fd
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.140005d54
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x140031139
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140031134
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140031142
call fcn.1400419f0
add rdi, 0x20
jmp 0x140031095
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 0x140031156
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14003117a
cmp qword [rbx + 0x18], 8
jb 0x14003116a
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, str.Failed_to_remove_temporary_directory___s_.
call fcn.140005d54
nop
mov edi, 7
cmp qword [rbp - 0x60], r13
je 0x1400311d1
mov rbx, qword [rbp - 0x60]
jmp 0x1400311b5
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x1400311a5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
call fcn.140001a74
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], rdi
mov word [rbx], r13w
add rbx, 0x20
cmp rbx, qword [rbp - 0x58]
jne 0x14003118b
mov rdx, qword [rbp - 0x50]
sub rdx, qword [rbp - 0x60]
and rdx, 0xffffffffffffffe0
mov rcx, qword [rbp - 0x60]
call fcn.140001a74
nop
cmp qword [rbp - 0x48], r13
je 0x140031222
mov rbx, qword [rbp - 0x48]
jmp 0x140031207
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x1400311f7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
call fcn.140001a74
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], rdi
mov word [rbx], r13w
add rbx, 0x20
cmp rbx, qword [rbp - 0x40]
jne 0x1400311dd
mov rdx, qword [rbp - 0x38]
sub rdx, qword [rbp - 0x48]
and rdx, 0xffffffffffffffe0
mov rcx, qword [rbp - 0x48]
call fcn.140001a74
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140041990
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