Function at 0x140022970
Capabilities:
Unmount volume via ioctl

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1a8]
sub rsp, reloc.SHELL32.dll_IsUserAnAdmin
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x14012dcd0]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov esi, r9d
mov r14, r8
mov r15, rdx
mov rbx, rcx
mov r12, qword [rbp + 0x210]
mov byte [rcx + 0x50], 1
xor r13d, r13d
mov edi, r13d
add rcx, 0x54
mov r8d, 0x104
lea rdx, [rbp - 0x80]
call fcn.140013af0
test eax, eax
jne 0x140022b44
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r13 + 3]
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140022a1a
mov edi, r13d
jmp 0x140022b44
test rax, rax
je 0x140022b44
mov qword [rsp + 0x38], r13
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
mov edx, 0x90018
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140022aaf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
cmp eax, 1
jne 0x140022a8d
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x140022aaf
mov edx, ntohl
lea r8, [0x1400df828]
mov rcx, qword [rcx + 0x10]
call fcn.140012400
jmp 0x140022aaf
test esi, esi
jne 0x140022aaf
mov dword [rsp + 0x40], 0x964
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [rbx + 0x50], r13b
mov eax, dword [rsp + 0x40]
jmp 0x140022e14
mov qword [rsp + 0x38], r13
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
mov edx, 0x90020
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140022b44
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
cmp eax, 1
jne 0x140022b19
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x140022b44
mov edx, ntohl
lea r8, [0x1400df828]
mov rcx, qword [rcx + 0x10]
call fcn.140012400
jmp 0x140022b44
mov rcx, qword [section..data]
lea rdx, section..data
cmp rcx, rdx
je 0x140022b44
mov edx, ntohl
mov r9d, eax
lea r8, [0x1400df828]
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 0x140022b67
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x40]
mov byte [rbx + 0x50], r13b
test eax, eax
jne 0x140022e14
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x140022b8a
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rbx + 0x48], r13
mov rax, qword [r15]
movzx eax, word [rax]
cmp ax, word [0x1400dd1f0]
jne 0x140022b9e
mov eax, r13d
jmp 0x140022ba3
sbb eax, eax
or eax, 1
test eax, eax
jne 0x140022bcf
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, r15
call fcn.14000d2f0
xor eax, eax
jmp 0x140022e14
mov rcx, qword [rbx + reloc.SHELL32.dll_IsUserAnAdmin]
test rcx, rcx
je 0x140022be8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + reloc.SHELL32.dll_IsUserAnAdmin], r13
mov rcx, qword [rbx + 0x2f8]
test rcx, rcx
je 0x140022c05
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rbx + 0x2f8], r13
mov rcx, qword [rbx + 0x298]
test rcx, rcx
je 0x140022c1b
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
lea r8, [rbx + reloc.SHELL32.dll_IsUserAnAdmin]
mov edx, 2
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_DuplicateToken]
lea rdx, [0x1401336e4]
mov ecx, 0x10
call fcn.1400af704
mov qword [rsp + 0x68], rax
test rax, rax
je 0x140022c62
mov rcx, qword [rbx + reloc.SHELL32.dll_IsUserAnAdmin]
lea rdx, vtable.DiscSoftNativeFileSystem.0
mov qword [rax], rdx
mov qword [rax + 8], rcx
jmp 0x140022c65
mov rax, r13
mov qword [rbx + 0x298], rax
test rax, rax
jne 0x140022c7b
mov eax, 8
jmp 0x140022e14
mov rcx, qword [r15]
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 0x140022ca8
mov edi, 0x6f9
jmp 0x140022df2
mov rcx, qword [r14]
movzx eax, word [rcx]
cmp ax, word [0x1400dd1f0]
jne 0x140022cbc
mov eax, r13d
jmp 0x140022cc1
sbb eax, eax
or eax, 1
test eax, eax
jne 0x140022cca
mov rdi, r13
jmp 0x140022cde
cmp dword [rcx - 8], 1
jle 0x140022cdb
mov edx, dword [rcx - 0x10]
mov rcx, r14
call fcn.1400043b0
mov rdi, qword [r14]
mov r8, qword [rsp + 0x48]
cmp dword [r8 - 8], 1
jle 0x140022cfd
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.140023350
mov rcx, rax
mov qword [rbx + 0x48], rax
test rax, rax
jne 0x140022d57
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + SysAllocStringByteLen]
lea rcx, [rbx + 8]
xor r8d, r8d
lea rdx, [0x1400dd1f0]
call fcn.140007830
lea rcx, [rbx + 0x308]
xor r8d, r8d
lea rdx, [0x1400dd1f0]
call fcn.140007830
mov edi, dword [rsp + 0x40]
jmp 0x140022df2
mov dword [rsp + 0x54], r13d
mov rax, qword [rax]
lea rdx, [rbx + 0x300]
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x70]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x54]
lea r8, [rsp + 0x5c]
call qword [rax + reloc.imgengine.dll_Ordinal_8]
mov rdx, qword [rbx + 0x48]
test rdx, rdx
jne 0x140022d96
mov edi, dword [rsp + 0x40]
jmp 0x140022df2
mov byte [rbx + 0x50], 1
mov byte [rsp + 0x20], 1
xor r9d, r9d
mov r8d, 0x5dc
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 0x140022df2
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, r15
call fcn.14000d2f0
lea rcx, [rbx + 0x308]
mov rdx, r14
call fcn.14000d2f0
mov edi, r13d
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140022e12
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.imgengine.dll_Ordinal_8 + 8]
mov eax, edi
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1400af8c0
add rsp, reloc.SHELL32.dll_IsUserAnAdmin
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret