Function at 0x140020670
Capabilities:
Unmount volume via ioctl

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x298
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x14012dcd0]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov esi, r9d
mov r15, r8
mov r14, rdx
mov rbx, rcx
mov rbp, qword [rsp + 0x300]
mov byte [rcx + 0x50], 1
xor r12d, r12d
mov edi, r12d
add rcx, 0x54
mov r8d, 0x104
lea rdx, [rsp + 0x70]
call fcn.140013af0
test eax, eax
jne 0x14002082f
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r12 + 3]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140020717
mov edi, r12d
jmp 0x14002082f
test rax, rax
je 0x14002082f
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
mov edx, 0x90018
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea r13, section..data
test eax, eax
jne 0x1400207aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
cmp eax, 1
jne 0x140020788
mov rcx, qword [section..data]
cmp rcx, r13
je 0x1400207aa
lea edx, [rax + 9]
lea r8, [0x1400df578]
mov rcx, qword [rcx + 0x10]
call fcn.140012400
jmp 0x1400207aa
test esi, esi
jne 0x1400207aa
mov dword [rsp + 0x40], 0x964
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [rbx + 0x50], r12b
mov eax, dword [rsp + 0x40]
jmp 0x140020a79
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
mov edx, 0x90020
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14002082f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
cmp eax, 1
jne 0x14002080b
mov rcx, qword [section..data]
cmp rcx, r13
je 0x14002082f
lea edx, [rax + 0xa]
lea r8, [0x1400df578]
mov rcx, qword [rcx + 0x10]
call fcn.140012400
jmp 0x14002082f
mov rcx, qword [section..data]
cmp rcx, r13
je 0x14002082f
mov edx, ntohl
mov r9d, eax
lea r8, [0x1400df578]
mov rcx, qword [rcx + 0x10]
call fcn.140013e20
movzx edx, sil
mov rcx, qword [rbx + 0x40]
call fcn.140045130
mov dword [rsp + 0x40], eax
test rdi, rdi
je 0x140020852
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x40]
mov byte [rbx + 0x50], r12b
test eax, eax
jne 0x140020a79
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x140020875
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rbx + 0x48], r12
mov rax, qword [r14]
movzx eax, word [rax]
cmp ax, word [0x1400dd1f0]
jne 0x140020889
mov eax, r12d
jmp 0x14002088e
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1400208ba
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x70]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + SysAllocStringByteLen]
lea rcx, [rbx + 8]
mov rdx, r14
call fcn.14000d2f0
xor eax, eax
jmp 0x140020a79
mov rcx, qword [rbx + reloc.SHELL32.dll_IsUserAnAdmin]
test rcx, rcx
je 0x1400208d3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + reloc.SHELL32.dll_IsUserAnAdmin], r12
mov rcx, qword [rbx + 0x2e8]
test rcx, rcx
je 0x1400208f0
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rbx + 0x2e8], r12
mov rcx, qword [rbx + 0x298]
test rcx, rcx
je 0x140020906
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
lea r8, [rbx + reloc.SHELL32.dll_IsUserAnAdmin]
mov edx, 2
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_DuplicateToken]
lea rdx, [0x1401336e4]
mov ecx, 0x10
call fcn.1400af704
mov qword [rsp + 0x60], rax
test rax, rax
je 0x14002094d
mov rcx, qword [rbx + reloc.SHELL32.dll_IsUserAnAdmin]
lea rdx, vtable.DiscSoftNativeFileSystem.0
mov qword [rax], rdx
mov qword [rax + 8], rcx
jmp 0x140020950
mov rax, r12
mov qword [rbx + 0x298], rax
test rax, rax
jne 0x140020966
mov eax, 8
jmp 0x140020a79
mov rcx, qword [r14]
sub rcx, 0x18
call fcn.14000de20
add rax, 0x18
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x48]
call fcn.14009c750
test al, al
jne 0x140020993
mov edi, 0x6f9
jmp 0x140020a57
mov rcx, qword [r15]
movzx eax, word [rcx]
cmp ax, word [0x1400dd1f0]
jne 0x1400209a7
mov eax, r12d
jmp 0x1400209ac
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1400209b5
mov rdi, r12
jmp 0x1400209c9
cmp dword [rcx - 8], 1
jle 0x1400209c6
mov edx, dword [rcx - 0x10]
mov rcx, r15
call fcn.1400043b0
mov rdi, qword [r15]
mov r8, qword [rsp + 0x48]
cmp dword [r8 - 8], 1
jle 0x1400209e8
mov edx, dword [r8 - 0x10]
lea rcx, [rsp + 0x48]
call fcn.1400043b0
mov r8, qword [rsp + 0x48]
mov r9, rdi
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140020fe0
mov qword [rbx + 0x48], rax
test rax, rax
jne 0x140020a07
mov edi, dword [rsp + 0x40]
jmp 0x140020a57
mov byte [rbx + 0x50], 1
mov byte [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x5dc
mov rdx, rax
mov rcx, qword [rbx + 0x40]
call fcn.140045a00
mov edi, eax
mov dword [rsp + 0x40], eax
mov byte [rbx + 0x50], 0
test eax, eax
jne 0x140020a57
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x70]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + SysAllocStringByteLen]
lea rcx, [rbx + 8]
mov rdx, r14
call fcn.14000d2f0
mov edi, r12d
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140020a77
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.imgengine.dll_Ordinal_8 + 8]
mov eax, edi
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1400af8c0
add rsp, 0x298
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret