Function at 0x140085a50
Capabilities:
Delete directory

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rsi, r8
mov rdi, rdx
mov rax, qword [0x14022f038]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp byte [rcx + 8], 0
je 0x140085ac5
mov rbx, r9
mov r15, rcx
mov edx, dword [rsp + 0xb0]
mov r14, qword [rcx + 0x30]
test r14, r14
je 0x140085acd
mov eax, 1
lock xadd dword [r14], eax
test eax, eax
jle 0x140085e51
mov rcx, qword [r15 + 0x30]
mov rax, qword [rcx + 8]
mov r8, rbx
call qword [case.0x1401b58f0.0]
mov ebp, eax
lock dec dword [r14]
jne 0x140085ac0
mov rcx, r14
call fcn.14009a130
test bpl, bpl
jne 0x140085aeb
xor r14d, r14d
jmp 0x140085e10
mov rax, qword [reloc.OLEAUT32.dll_VariantClear]
xor r14d, r14d
xor ecx, ecx
mov r8, rbx
call qword [case.0x1401b58f0.0]
test al, al
je 0x140085e10
cmp byte [rdi], 0
je 0x140085c4e
cmp byte [rsi], 0
je 0x140085c7b
lea rdx, [r15 + 0x28]
lea rcx, [rsp + 0x28]
call fcn.1401002f0
cmp byte [r15 + 8], 0
je 0x140085e4f
cmp byte [rsi], 0
je 0x140085e4f
cmp byte [rdi], 0
je 0x140085e4f
mov bpl, byte [r15 + 9]
lea r8, [rdi + 8]
lea r14, [rsp + 0x38]
mov rcx, rbx
mov rdx, r14
call fcn.1400995a0
mov rcx, rbx
mov rdx, r14
call fcn.140097e60
mov rcx, r14
call fcn.1400ff6e0
mov rcx, rbx
call fcn.1400aa960
mov ecx, eax
xor cl, 1
test bpl, bpl
je 0x140085d0a
test al, al
je 0x140085d0a
mov dword [rsp + 0x30], 0xaaaaaaaa
mov r14, qword [0x140240428]
test r14, r14
jne 0x140085b94
call fcn.1400606e0
mov r14, rax
mov qword [0x140240428], rax
mov ecx, 8
call fcn.14014c3b0
lea r15, [rsp + 0x38]
mov qword [r15], rax
lea rcx, [rax + 8]
mov qword [r15 + 0x10], rcx
mov qword [rax], 2
mov qword [r15 + 8], rcx
lea rdx, [rsp + 0x30]
mov rcx, r14
mov r8, rbx
mov r9, r15
call fcn.140061740
mov rcx, qword [r15]
test rcx, rcx
je 0x140085bde
mov qword [rsp + 0x40], rcx
call fcn.14014c3ec
cmp byte [rsp + 0x30], 0
je 0x140085e03
cmp byte [rsp + 0x31], 0
je 0x140085cf5
mov dword [rsp + 0x38], 0xaaaaaaaa
mov rcx, qword [0x140240428]
test rcx, rcx
jne 0x140085c17
call fcn.1400606e0
mov rcx, rax
mov qword [0x140240428], rax
lea r14, [rsp + 0x38]
mov rdx, r14
mov r8, rbx
mov r9d, 1
call fcn.140062110
cmp byte [r14], 0
je 0x140085e03
mov al, byte [rsp + 0x39]
mov ebp, eax
xor bpl, 1
test al, 1
je 0x140085cf8
jmp 0x140085d08
add r15, 0x28
lea rcx, [rsp + 0x20]
mov rdx, r15
call fcn.1401002f0
cmp byte [rsi], 0
je 0x140085e4f
lea rdx, [rsi + 8]
lea r8, [rsp + 0x20]
mov rcx, rbx
call fcn.140085e60
jmp 0x140085ced
lea r8, [rdi + 8]
lea r14, [rsp + 0x38]
mov rcx, rbx
mov rdx, r14
call fcn.1400995a0
mov rcx, rbx
mov rdx, r14
call fcn.140097e60
mov rcx, r14
call fcn.1400ff6e0
mov rcx, rbx
call fcn.1400aa960
test al, al
jne 0x140085cbe
mov rcx, rbx
call fcn.14009a000
test al, al
je 0x140085ac5
mov rcx, qword [0x140240428]
test rcx, rcx
jne 0x140085cd9
call fcn.1400606e0
mov rcx, rax
mov qword [0x140240428], rax
mov rdx, rbx
mov r8d, 1
mov r9d, 0x12019f
call fcn.1400609c0
mov r14d, eax
jmp 0x140085e10
mov bpl, 1
mov rcx, rbx
call fcn.1400aa6d0
test al, al
je 0x140085e03
mov ecx, ebp
test cl, 1
je 0x140085d1f
mov rcx, rbx
call fcn.14009a000
test al, al
je 0x140085e03
test bpl, 1
jne 0x140085d6b
lea r14, [rsi + 8]
lea r15, [rsp + 0x38]
lea rdx, [rsp + 0x28]
mov rcx, r15
call fcn.1401002f0
mov rcx, rbx
mov rdx, r14
mov r8, r15
call fcn.140085e60
mov r14b, 1
test al, al
jne 0x140085e06
cmp byte [rbx + 0x17], 0
jns 0x140085d5d
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x140085e03
mov rcx, qword [0x140240428]
test rcx, rcx
jne 0x140085d86
call fcn.1400606e0
mov rcx, rax
mov qword [0x140240428], rax
mov rdx, rbx
mov r8d, 1
call fcn.140060c40
test al, al
je 0x140085e03
mov r14, qword [0x140240428]
test r14, r14
jne 0x140085db3
call fcn.1400606e0
mov r14, rax
mov qword [0x140240428], rax
mov ecx, 8
call fcn.14014c3b0
lea r15, [rsp + 0x38]
mov qword [r15], rax
lea rcx, [rax + 8]
mov qword [r15 + 0x10], rcx
mov qword [rax], 2
mov qword [r15 + 8], rcx
mov rcx, r14
mov rdx, rbx
mov r8, r15
call fcn.140061b50
mov ebp, eax
mov rcx, qword [r15]
test rcx, rcx
je 0x140085dfa
mov qword [rsp + 0x40], rcx
call fcn.14014c3ec
test bpl, bpl
jne 0x140085d25
xor r14d, r14d
lea rcx, [rsp + 0x28]
call fcn.1401002d0
cmp byte [rdi], 0
je 0x140085e21
lea rcx, [rdi + 8]
call fcn.1400ff6e0
mov byte [rdi], 0
cmp byte [rsi], 0
je 0x140085e32
lea rcx, [rsi + 8]
call fcn.1400ff6e0
mov byte [rsi], 0
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14014ced0
mov eax, r14d
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
ud2
int3