Function at 0x14000ce24
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov r12, r8
mov rsi, rcx
mov r14d, 1
mov byte [r8], r14b
mov rax, qword [rcx + 0x38]
mov r13, qword [rax]
mov r15d, dword [rcx + 0x128]
xor edi, edi
mov byte [rcx + 0x120], dil
mov dword [rbp - 0x20], edi
mov qword [rbp - 0x18], rdi
mov rax, qword [r13]
lea r9, [rbp - 0x20]
lea r8d, [r14 + 0x34]
mov edx, r15d
mov rcx, r13
call qword [rax + 0x30]
mov ebx, eax
test eax, eax
je 0x14000ce96
lea rcx, [rbp - 0x20]
call fcn.140005ab0
jmp 0x14000cfa4
mov edx, 0x10
cmp word [rbp - 0x20], 0x13
jne 0x14000cf18
mov ecx, dword [rbp - 0x18]
and ecx, 0xf000
lea eax, [rdx + 0x10]
cmp ecx, 0x4000
cmove eax, edx
mov dword [rsi + 0x11c], eax
test byte [rbp - 0x18], 0x92
jne 0x14000cecc
or eax, r14d
mov dword [rsi + 0x11c], eax
cmp ecx, 0xa000
jne 0x14000cedf
or eax, 0xa0000000
mov dword [rsi + 0x11c], eax
mov byte [rsi + 0x120], r14b
lea rcx, [rbp - 0x20]
call fcn.140005ab0
mov dword [rbp - 0x20], edi
mov qword [rbp - 0x18], rdi
mov rax, qword [r13]
lea r9, [rbp - 0x20]
mov r8d, 9
mov edx, r15d
mov rcx, r13
call qword [rax + 0x30]
mov ebx, eax
test eax, eax
je 0x14000cf2e
jmp 0x14000ce88
cmp word [rbp - 0x20], di
je 0x14000cee6
lea rcx, [rbp - 0x20]
call fcn.140005ab0
mov ebx, 0x80004005
jmp 0x14000cfa4
cmp word [rbp - 0x20], 0x13
jne 0x14000cfab
mov eax, dword [rbp - 0x18]
mov dword [rsi + 0x11c], eax
mov byte [rsi + 0x120], r14b
lea rcx, [rbp - 0x20]
call fcn.140005ab0
lea r9, [rsi + 0xf8]
mov r8d, 0xa
mov edx, r15d
mov rcx, rsi
call fcn.14000c470
mov ebx, eax
test eax, eax
jne 0x14000cfa4
lea r9, [rsi + 0x104]
lea r8d, [rax + 0xb]
mov edx, r15d
mov rcx, rsi
call fcn.14000c470
mov ebx, eax
test eax, eax
jne 0x14000cfa4
lea r9, [rsi + 0x110]
lea r8d, [rax + 0xc]
mov edx, r15d
mov rcx, rsi
call fcn.14000c470
mov ebx, eax
test eax, eax
je 0x14000cfb6
mov eax, ebx
jmp 0x14000d3f8
cmp word [rbp - 0x20], di
je 0x14000cf45
jmp 0x14000cf1e
mov byte [rbp + 0x40], dil
mov rcx, qword [rsi + 0x38]
lea r9, [rbp + 0x40]
mov r8d, 0x15
mov edx, dword [rsi + 0x128]
mov rcx, qword [rcx]
call fcn.1400113a4
test eax, eax
jne 0x14000d3f8
lea rbx, [rsi + 0xc0]
cmp dword [rsi + 0xa0], 3
sete cl
mov r9b, byte [rsi + 0xd1]
mov r8, rbx
mov dl, byte [rsi + 0xa8]
call fcn.1400104bc
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.1400107d4
nop
mov r15b, byte [rbp + 0x40]
test r15b, r15b
jne 0x14000d022
mov rcx, rsi
call fcn.14000c904
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x40]
call fcn.140002da8
nop
cmp dword [rsi + 0xa0], 3
jne 0x14000d046
mov rcx, qword [rbp - 0x30]
call fcn.140005374
test al, al
jne 0x14000d071
lea rdx, [rsi + 0x80]
lea r8, [rbp - 0x40]
lea rcx, [rbp - 0x20]
call fcn.14000c7cc
nop
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.140002e78
nop
mov rcx, qword [rbp - 0x20]
call fcn.14003d378
cmp byte [rsi + 0xd0], dil
je 0x14000d0a7
lea rbx, [rsi + 0xd8]
lea rdx, [rbp - 0x40]
mov rcx, rbx
call fcn.140002e78
test r15b, r15b
je 0x14000d09d
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x14000d0ea
mov rcx, rsi
call fcn.14000d9b4
jmp 0x14000d0ea
cmp byte [rsi + 0xf0], dil
jne 0x14000d0d1
mov r8, r12
lea rdx, [rbp - 0x40]
mov rcx, rsi
call fcn.14000ca78
test eax, eax
je 0x14000d0c7
mov edi, eax
jmp 0x14000d0ea
cmp byte [r12], dil
jne 0x14000d0ea
mov byte [r12], r14b
lea rcx, [rsi + 0xd8]
lea rdx, [rbp - 0x40]
call fcn.140002e78
test r15b, r15b
je 0x14000d0f3
mov byte [r12], dil
mov r13, qword [rbp - 0x40]
jmp 0x14000d3e4
mov ecx, 0x28
call fcn.14003d380
mov rbx, rax
mov qword [rbp + 0x40], rax
mov dword [rax + 8], edi
lea rax, [0x140059c10]
mov qword [rbx], rax
or qword [rbx + 0x10], 0xffffffffffffffff
mov byte [rbx + 0x18], dil
mov qword [rsi + 0x148], rbx
mov qword [rbp + 0x50], rbx
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + VariantCopy]
nop
mov al, byte [rsi + 0xf0]
neg al
sbb edx, edx
and edx, 2
add edx, 2
mov rcx, qword [rsi + 0x148]
mov qword [rcx + 0x20], rdi
add rcx, 0x10
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], edx
mov r9d, r14d
mov r8d, 0x40000000
mov r13, qword [rbp - 0x40]
mov rdx, r13
call fcn.140004e24
test al, al
jne 0x14000d18b
lea r8, [rbp - 0x40]
lea rdx, str.Cannot_open_output_file
mov rcx, rsi
call fcn.14000c638
jmp 0x14000d392
mov byte [rsi + 0x125], r14b
mov cl, byte [rsi + 0x138]
test cl, cl
je 0x14000d2c6
mov r15, qword [rsi + 0x130]
lea rax, [r15 - 1]
cmp rax, 0xffe
ja 0x14000d2c6
cmp byte [rsi + 0x120], dil
je 0x14000d2c6
mov eax, dword [rsi + 0x11c]
and eax, 0xf0000000
cmp eax, 0xa0000000
je 0x14000d1e9
test dword [rsi + 0x11c], 0x400
je 0x14000d2c6
mov r14b, dil
mov byte [rsi + 0x124], r14b
lea r14, [rsi + 0x160]
cmp r15, qword [r14]
je 0x14000d22f
mov rcx, qword [rsi + 0x158]
test rcx, rcx
je 0x14000d214
call fcn.14003d378
mov qword [rsi + 0x158], rdi
mov rcx, r14
mov rax, rdi
mov qword [rcx], rax
mov rcx, r15
call fcn.14003d3e8
mov qword [rsi + 0x158], rax
mov qword [r14], r15
mov ecx, 0x28
call fcn.14003d380
mov r14, rax
mov qword [rbp + 0x40], rax
mov dword [rax + 8], edi
lea rax, [0x140059ad0]
mov qword [r14], rax
mov qword [rsi + 0x168], r14
mov rax, qword [r14]
mov rcx, r14
call qword [rax + VariantCopy]
mov rcx, qword [rsi + 0x170]
test rcx, rcx
je 0x14000d26f
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsi + 0x170], r14
mov rdx, qword [rsi + 0x160]
mov rax, qword [rsi + 0x158]
mov rcx, qword [rsi + 0x168]
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x20], rdi
mov qword [rcx + 0x18], rdx
mov r14, qword [rsi + 0x170]
test r14, r14
je 0x14000d2ac
mov rax, qword [r14]
mov rcx, r14
call qword [rax + VariantCopy]
mov r15, qword [rbp + 0x48]
mov rcx, qword [r15]
test rcx, rcx
je 0x14000d2be
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [r15], r14
jmp 0x14000d3b4
cmp byte [rsi + 0x4d], dil
je 0x14000d36b
cmp byte [rsi + 0xf0], dil
jne 0x14000d374
test cl, cl
je 0x14000d36b
mov rdx, qword [rsi + 0x130]
cmp rdx, 0x1000
jbe 0x14000d36b
mov qword [rsi + 0x140], rdx
mov rcx, qword [rsi + 0x148]
add rcx, 0x10
call fcn.140005058
mov byte [rsi + 0x139], al
test al, al
jne 0x14000d32d
lea r8, [rbp - 0x40]
lea rdx, str.Cannot_set_length_for_output_file
mov rcx, rsi
call fcn.14000c638
test eax, eax
jne 0x14000d392
mov rcx, qword [rsi + 0x148]
mov qword [rbp + 0x40], rdi
add rcx, 0x10
lea r9, [rbp + 0x40]
xor r8d, r8d
xor edx, edx
call fcn.140004f54
test al, al
je 0x14000d354
cmp qword [rbp + 0x40], rdi
je 0x14000d36b
lea r8, [rbp - 0x40]
lea rdx, str.Cannot_seek_to_begin_of_file
mov rcx, rsi
call fcn.14000c638
test eax, eax
jne 0x14000d392
cmp byte [rsi + 0xf0], dil
je 0x14000d396
mov rcx, qword [rsi + 0x148]
mov rax, qword [rcx]
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsi + 0xe8]
call qword [rax + 0x20]
test eax, eax
je 0x14000d396
mov edi, eax
jmp 0x14000d3da
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + VariantCopy]
mov r15, qword [rbp + 0x48]
mov rcx, qword [r15]
test rcx, rcx
je 0x14000d3b1
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [r15], rbx
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + VariantCopy]
mov rcx, qword [rsi + 0x150]
test rcx, rcx
je 0x14000d3cf
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsi + 0x150], rbx
mov byte [r12], dil
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x10]
nop
mov rcx, r13
call fcn.14003d378
nop
mov rcx, qword [rbp - 0x30]
call fcn.14003d378
mov eax, edi
mov rbx, qword [rsp + 0xc8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret