Function at 0x140090640
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x14009068d
test byte [rcx + 0x1c], 1
je 0x14009068d
cmp byte [rcx + 0x19], 5
jb 0x14009068d
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015e3d8]
mov edx, 0xa
call fcn.140006b98
test rbx, rbx
jne 0x1400906aa
lea r8, str.wszPath
mov edx, 0xed
lea rcx, str.base_stor_blbutil_fileutils.cpp
call fcn.14008ac24
and qword [rsp + 0x78], 0
xor ebp, ebp
xor r15b, r15b
mov dword [rsp + 0x70], ebp
test rsi, rsi
je 0x1400906c4
mov ebp, dword [rsi]
mov dword [rsp + 0x70], ebp
test rdi, rdi
je 0x1400906cc
mov byte [rdi], r15b
lea rdx, [rsp + 0x78]
mov rcx, rbx
call fcn.140091744
mov r14, qword [rsp + 0x78]
mov ebx, eax
test eax, eax
js 0x14009091f
test rsi, rsi
je 0x1400906f2
test byte [rsi], 7
je 0x14009075c
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.140091ed4
mov ebx, eax
test eax, eax
jns 0x140090755
test rdi, rdi
je 0x14009070d
mov byte [rdi], 1
mov rcx, qword [0x14017a048]
lea rsi, [0x14017a048]
cmp rcx, rsi
je 0x14009092d
test byte [rcx + 0x1c], 1
je 0x14009092d
cmp byte [rcx + 0x19], 2
jb 0x14009092d
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015e3d8]
mov edx, 0xb
mov r9d, eax
call fcn.140006bc4
jmp 0x140090926
mov ebp, dword [rsp + 0x70]
mov r15b, 1
mov eax, ebp
mov rcx, r14
and eax, 0x410
cmp eax, 0x10
jne 0x1400907f2
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x140090891
test rdi, rdi
je 0x14009078b
mov byte [rdi], 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x1400907a6
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x14017a048]
lea rsi, [0x14017a048]
cmp rcx, rsi
je 0x14009089f
test byte [rcx + 0x1c], 1
je 0x14009089f
cmp byte [rcx + 0x19], 2
jb 0x14009089f
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015e3d8]
mov edx, 0xc
mov dword [rsp + 0x20], ebx
mov r9, r14
call fcn.140011330
jmp 0x140090898
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x6200000
mov edx, 0x10000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
cmp rax, 0xffffffffffffffff
jne 0x140090882
test rdi, rdi
je 0x14009082e
mov byte [rdi], 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140090849
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x14017a048]
lea rsi, [0x14017a048]
cmp rcx, rsi
je 0x14009089f
test byte [rcx + 0x1c], 1
je 0x14009089f
cmp byte [rcx + 0x19], 2
jb 0x14009089f
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015e3d8]
mov edx, 0xd
mov r9d, ebx
call fcn.140006bc4
jmp 0x140090898
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
lea rsi, [0x14017a048]
mov rcx, qword [0x14017a048]
mov edi, ebx
test ebx, ebx
jns 0x14009092d
test r15b, r15b
je 0x14009092d
cmp rcx, rsi
je 0x1400908db
test byte [rcx + 0x1c], 1
je 0x1400908db
cmp byte [rcx + 0x19], 4
jb 0x1400908db
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015e3d8]
mov edx, 0xe
mov dword [rsp + 0x20], ebp
mov r9, r14
call fcn.140011330
mov edx, ebp
mov rcx, r14
call fcn.140092108
test eax, eax
jns 0x140090926
mov rcx, qword [0x14017a048]
cmp rcx, rsi
je 0x14009092d
test byte [rcx + 0x1c], 1
je 0x14009092d
cmp byte [rcx + 0x19], 2
jb 0x14009092d
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015e3d8]
mov edx, 0xf
mov dword [rsp + 0x20], eax
mov r9, r14
call fcn.140011330
jmp 0x140090926
lea rsi, [0x14017a048]
mov rcx, qword [0x14017a048]
test r14, r14
je 0x140090948
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x14017a048]
cmp rcx, rsi
je 0x14009096e
test byte [rcx + 0x1c], 1
je 0x14009096e
cmp byte [rcx + 0x19], 5
jb 0x14009096e
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015e3d8]
mov edx, 0x10
call fcn.140006b98
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret