Function at 0x1000d2de4
Capabilities:
Unmount volume via ioctl

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x40
xor r13d, r13d
mov rdi, rdx
mov rsi, rcx
mov dword [rax + 0x18], r13d
mov rcx, qword [0x1001653b8]
lea r12, [0x1001653b8]
lea r14, [0x100003158]
cmp rcx, r12
je 0x1000d2e6d
test byte [rcx + 0x1c], 4
je 0x1000d2e48
cmp byte [rcx + 0x19], 4
jb 0x1000d2e48
mov rcx, qword [rcx + 0x10]
mov edx, 0x1d0
mov r8, r14
call fcn.10001c854
mov rcx, qword [0x1001653b8]
cmp rcx, r12
je 0x1000d2e6d
test byte [rcx + 0x1c], 4
je 0x1000d2e6d
cmp byte [rcx + 0x19], 5
jb 0x1000d2e6d
mov rcx, qword [rcx + 0x10]
mov edx, 0x1d1
mov r9, rsi
mov r8, r14
call fcn.10001db08
xor r9d, r9d
mov qword [rsp + 0x30], r13
mov edx, 0xc0000000
lea r8d, [r9 + 7]
mov rcx, rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1000d2ee2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
mov rcx, qword [0x1001653b8]
cmp rcx, r12
je 0x1000d2ed8
test byte [rcx + 0x1c], 4
je 0x1000d2ed8
cmp byte [rcx + 0x19], 2
jb 0x1000d2ed8
mov edx, 0x1d2
mov rcx, qword [rcx + 0x10]
mov r9, rsi
mov r8, r14
mov dword [rsp + 0x20], eax
call fcn.10001ddb0
mov eax, 0x12
jmp 0x1000d302e
mov qword [rsp + 0x38], r13
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov edx, 0x90018
mov rcx, rbx
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov qword [rsp + 0x38], r13
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x90020
mov rcx, rbx
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
mov dword [rsp + 0x70], r13d
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, r13d
jne 0x1000d2f87
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
mov dword [rdi], eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1001653b8]
cmp rcx, r12
je 0x1000d2ed8
test byte [rcx + 0x1c], 4
je 0x1000d2ed8
cmp byte [rcx + 0x19], 2
jb 0x1000d2ed8
mov edx, 0x1d3
mov eax, dword [rdi]
jmp 0x1000d2ec5
mov qword [rsp + 0x38], r13
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov edx, 0x42c190
mov rcx, rbx
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x70], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, r13d
jne 0x1000d2ffa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
mov dword [rdi], eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1001653b8]
cmp rcx, r12
je 0x1000d2ed8
test byte [rcx + 0x1c], 4
je 0x1000d2ed8
cmp byte [rcx + 0x19], 2
jb 0x1000d2ed8
mov edx, 0x1d4
jmp 0x1000d2f80
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1001653b8]
cmp rcx, r12
je 0x1000d302c
test byte [rcx + 0x1c], 4
je 0x1000d302c
cmp byte [rcx + 0x19], 4
jb 0x1000d302c
mov rcx, qword [rcx + 0x10]
mov edx, 0x1d5
mov r8, r14
call fcn.10001c854
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
ret