Function at 0x140044df0
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x580]
sub rsp, 0x680
mov rax, qword [0x14016f608]
xor rax, rsp
mov qword [rbp + 0x570], rax
mov rsi, rdx
mov r15, rcx
mov rcx, qword [0x14016f048]
lea r13, [0x14016f048]
cmp rcx, r13
je 0x140044e5c
test byte [rcx + 0x1c], 1
je 0x140044e5c
cmp byte [rcx + 0x19], 4
jb 0x140044e5c
mov rcx, qword [rcx + 0x10]
lea r8, [0x140148ac8]
mov edx, 0x14e
call fcn.1400049d8
or dword [rsp + 0x30], 0xffffffff
xor r14d, r14d
and qword [rsp + 0x38], r14
test rsi, rsi
jne 0x140044e78
mov eax, 0x80004003
jmp 0x14004521e
mov r8d, 0x11
lea rdx, str.WsbMountedVolumes
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_wcsncmp]
mov edi, 0x104
test eax, eax
jne 0x140044fad
mov rcx, qword [0x14016f048]
cmp rcx, r13
je 0x140044ec6
test byte [rcx + 0x1c], 1
je 0x140044ec6
cmp byte [rcx + 0x19], 4
jb 0x140044ec6
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x4b]
lea r8, [0x140148ac8]
call fcn.1400049d8
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call sub.msvcrt.dll_memset
lea r8, str.WsbMountedVolumes
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140039dd4
mov ebx, eax
test eax, eax
js 0x14004518b
lea r8, [0x140145788]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.1400506ec
mov ebx, eax
test eax, eax
js 0x14004518b
lea r8, str.WsbMountedVolumeFile_lu
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.1400506ec
mov ebx, eax
test eax, eax
js 0x14004518b
lea r8, [rsp + 0x30]
mov rcx, rsi
lea rdx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll_swscanf_s]
cmp eax, 1
je 0x140044f54
mov ebx, 0x80070057
jmp 0x14004518b
mov ebx, 0x208
lea rcx, [rsp + 0x40]
mov r8d, ebx
xor edx, edx
call sub.msvcrt.dll_memset
mov r8d, ebx
lea rcx, [rbp + 0x360]
xor edx, edx
call sub.msvcrt.dll_memset
mov r9d, dword [rsp + 0x30]
lea r8, str._GlobalrootDeviceHarddiskVolume_lu
mov rdx, rdi
lea rcx, [rbp + 0x360]
call fcn.14000f924
mov ebx, eax
test eax, eax
js 0x14004518b
lea rdi, [rbp + 0x360]
mov r14d, 1
jmp 0x140044fb0
mov rdi, rsi
mov rcx, rdi
call fcn.1401103e8
mov ebx, eax
test eax, eax
jns 0x140044ff2
mov rcx, qword [0x14016f048]
cmp rcx, r13
je 0x140044ff9
test byte [rcx + 0x1c], 1
je 0x140044ff9
cmp byte [rcx + 0x19], 2
jb 0x140044ff9
mov rcx, qword [rcx + 0x10]
lea r8, [0x140148ac8]
mov edx, 0x150
mov dword [rsp + 0x20], eax
mov r9, rdi
call fcn.140005938
mov rcx, qword [0x14016f048]
test r14d, r14d
je 0x140045192
lea rcx, [rsp + 0x38]
call fcn.140089bc4
mov r14, qword [rsp + 0x38]
mov ebx, eax
test eax, eax
jns 0x140045058
mov rcx, qword [0x14016f048]
cmp rcx, r13
je 0x14004517d
test byte [rcx + 0x1c], 1
je 0x14004517d
cmp byte [rcx + 0x19], 2
jb 0x14004517d
mov rcx, qword [rcx + 0x10]
lea r8, [0x140148ac8]
mov edx, 0x151
xor r9d, r9d
call fcn.1400049f8
jmp 0x140045176
xor edx, edx
lea rcx, [rbp + 0x150]
mov r8d, 0x208
call sub.msvcrt.dll_memset
mov r9, r14
mov qword [rsp + 0x20], rsi
lea r8, [0x140148428]
mov edx, 0x104
lea rcx, [rbp + 0x150]
call fcn.14000f924
mov ebx, eax
test eax, eax
js 0x140045176
lea rcx, [rbp + 0x150]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14004513f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rcx, qword [0x14016f048]
cmp rcx, r13
je 0x1400450f6
test byte [rcx + 0x1c], 1
je 0x1400450f6
cmp byte [rcx + 0x19], 2
jb 0x1400450f6
mov rcx, qword [rcx + 0x10]
lea r8, [0x140148ac8]
mov edx, 0x152
mov r9d, edi
call fcn.1400049f8
mov rcx, qword [0x14016f048]
lea eax, [rdi + 0x7ff8fffe]
cmp eax, 1
ja 0x140045137
cmp rcx, r13
je 0x140045135
test byte [rcx + 0x1c], 1
je 0x140045135
cmp byte [rcx + 0x19], 3
jb 0x140045135
mov rcx, qword [rcx + 0x10]
lea r9, [rbp + 0x150]
mov edx, 0x153
lea r8, [0x140148ac8]
call fcn.1400058d8
mov rcx, qword [0x14016f048]
xor edi, edi
test edi, edi
jns 0x14004513f
mov ebx, edi
jmp 0x14004517d
mov eax, dword [r15 + 0x24]
test eax, eax
jne 0x140045163
lea r8, str.m_numNetworkShareVolumes___0
mov edx, 0x1b1e
lea rcx, str.base_stor_blbengine_serviceengine.cpp
call fcn.140082070
mov eax, dword [r15 + 0x24]
sub eax, 1
mov dword [r15 + 0x24], eax
jne 0x140045176
call fcn.1401244a4
test eax, eax
cmovs ebx, eax
mov rcx, qword [0x14016f048]
test r14, r14
je 0x140045192
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14016f048]
cmp rcx, r13
je 0x1400451ef
test byte [rcx + 0x1c], 1
je 0x1400451c2
cmp byte [rcx + 0x19], 4
jb 0x1400451c2
mov rcx, qword [rcx + 0x10]
lea r8, [0x140148ac8]
mov edx, 0x154
mov r9d, ebx
call fcn.1400049f8
mov rcx, qword [0x14016f048]
cmp rcx, r13
je 0x1400451ef
test byte [rcx + 0x1c], 1
je 0x1400451ef
cmp byte [rcx + 0x19], 4
jb 0x1400451ef
mov rcx, qword [rcx + 0x10]
lea r8, [0x140148ac8]
mov edx, 0x155
call fcn.1400049d8
mov rcx, qword [0x14016f048]
test ebx, ebx
jns 0x14004521c
cmp rcx, r13
je 0x14004521c
test byte [rcx + 0x1c], 1
je 0x14004521c
cmp byte [rcx + 0x19], 2
jb 0x14004521c
mov rcx, qword [rcx + 0x10]
lea r8, [0x140148ac8]
mov edx, 0x156
mov r9d, ebx
call fcn.1400049f8
mov eax, ebx
mov rcx, qword [rbp + 0x570]
xor rcx, rsp
call fcn.14013e2a0
lea r11, [rsp + 0x680]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret