Function at 0x140030060
Capabilities:
Delete directory
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140066010]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rcx
cmp qword [rcx + 0x10], 0
je 0x14003030e
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x48], xmm0
and qword [rbp - 0x38], 0
lea rdx, [rbp - 0x48]
call fcn.14000e658
mov rsi, qword [rbp - 0x48]
mov rdi, rsi
cmp rsi, qword [rbp - 0x40]
je 0x140030147
and qword [rbp - 0x30], 0
and qword [rbp - 0x20], 0
and qword [rbp - 0x18], 0
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.140008274
nop
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400300e4
mov rdx, qword [rdi]
lea rcx, [rbp - 0x30]
call fcn.14000657c
lea rcx, [rbp - 0x30]
call fcn.140030060
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x140030133
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003012e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140030140
call fcn.140040c5c
add rdi, 0x20
cmp rdi, qword [rbp - 0x40]
jmp 0x1400300b5
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
and qword [rbp - 0x50], 0
lea rdx, [rbp - 0x60]
mov rcx, rbx
call fcn.14000e59c
mov rdi, qword [rbp - 0x60]
mov r14, rdi
cmp rdi, qword [rbp - 0x58]
je 0x140030226
and qword [rbp - 0x30], 0
and qword [rbp - 0x20], 0
and qword [rbp - 0x18], 0
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.140008274
nop
mov rdx, r14
cmp qword [r14 + 0x18], 8
jb 0x14003019a
mov rdx, qword [r14]
lea rcx, [rbp - 0x30]
call fcn.14000657c
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 0x1400301d6
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.140006028
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x140030212
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003020d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003021f
call fcn.140040c5c
add r14, 0x20
cmp r14, qword [rbp - 0x58]
jmp 0x14003016b
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 0x140030233
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140030257
cmp qword [rbx + 0x18], 8
jb 0x140030247
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, str.Failed_to_remove_temporary_directory___s_.
call fcn.140006028
nop
test rdi, rdi
je 0x1400302b3
mov rbx, rdi
cmp rdi, qword [rbp - 0x58]
je 0x140030277
mov rcx, rbx
call fcn.1400018f8
add rbx, 0x20
cmp rbx, qword [rbp - 0x58]
jne 0x140030265
mov rdx, qword [rbp - 0x50]
sub rdx, rdi
and rdx, 0xffffffffffffffe0
mov rax, rdi
cmp rdx, 0x1000
jb 0x1400302aa
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400302aa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.140040c5c
nop
test rsi, rsi
je 0x14003030e
mov rbx, rsi
cmp rsi, qword [rbp - 0x40]
je 0x1400302d3
mov rcx, rbx
call fcn.1400018f8
add rbx, 0x20
cmp rbx, qword [rbp - 0x40]
jne 0x1400302c1
mov rdx, qword [rbp - 0x38]
sub rdx, rsi
and rdx, 0xffffffffffffffe0
mov rax, rsi
cmp rdx, 0x1000
jb 0x140030306
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140030306
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.140040c5c
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140040c00
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret