Function at 0x1400d8e54
Capabilities:
Unmount volume via ioctl

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
xor ebx, ebx
mov r14, rcx
mov rdi, rdx
and dword [rbp + 0x40], ebx
lea r15d, [rbx + 0x20]
lea r13d, [rbx + 1]
lea rcx, [rbp - 0x40]
mov r8d, r15d
xor edx, edx
mov esi, r13d
call sub.msvcrt.dll_memset
lea rcx, [rbp - 0x20]
mov r8d, r15d
xor edx, edx
call sub.msvcrt.dll_memset
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp - 0x28], rax
test rax, rax
je 0x1400d8fe5
lea rax, [rbp - 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], rbx
and dword [rsp + 0x28], ebx
and qword [rsp + 0x20], rbx
mov edx, 0x90018
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea r13, [0x14017d3a8]
mov r15b, 4
test eax, eax
jne 0x1400d8f6f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
cmp eax, 0x3e5
jne 0x1400d8f37
mov rcx, qword [0x14017d3a8]
cmp rcx, r13
je 0x1400d8f69
test byte [rcx + 0x1c], r15b
je 0x1400d8f69
cmp byte [rcx + 0x19], r15b
jb 0x1400d8f69
mov rcx, qword [rcx + 0x10]
lea r8, [0x14000d0d8]
mov edx, 0xf9
call fcn.14001dd24
jmp 0x1400d8f69
mov rcx, qword [0x14017d3a8]
cmp rcx, r13
je 0x1400d8f67
test byte [rcx + 0x1c], r15b
je 0x1400d8f67
cmp byte [rcx + 0x19], 3
jb 0x1400d8f67
mov rcx, qword [rcx + 0x10]
lea r8, [0x14000d0d8]
mov edx, 0xfa
mov r9d, eax
call fcn.14001de24
xor esi, esi
and dword [rdi], ebx
test esi, esi
je 0x1400d8fca
and dword [rbp + 0x40], ebx
lea r8, [rbp + 0x40]
lea rdx, [rbp - 0x40]
mov r9d, 1
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1400d8fca
mov rax, qword [0x14017d3a8]
cmp rax, r13
je 0x1400d8fca
test byte [rax + 0x1c], r15b
je 0x1400d8fca
cmp byte [rax + 0x19], 3
jb 0x1400d8fca
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x14017d3a8]
lea r8, [0x14000d0d8]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0xfb
call fcn.14001de24
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp - 8], rax
test rax, rax
jne 0x1400d8ff7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 3
mov dword [rdi], eax
jmp 0x1400d90c3
lea rax, [rbp - 0x20]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], rbx
and dword [rsp + 0x28], ebx
and qword [rsp + 0x20], rbx
mov edx, 0x90020
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400d9068
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
cmp eax, 0x3e5
jne 0x1400d910b
and dword [rdi], ebx
mov rcx, qword [0x14017d3a8]
cmp rcx, r13
je 0x1400d9068
test byte [rcx + 0x1c], r15b
je 0x1400d9068
cmp byte [rcx + 0x19], r15b
jb 0x1400d9068
mov rcx, qword [rcx + 0x10]
lea r8, [0x14000d0d8]
mov edx, 0xfc
call fcn.14001dd24
and dword [rbp + 0x40], ebx
lea r8, [rbp + 0x40]
lea rdx, [rbp - 0x20]
mov r9d, 1
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1400d90c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
mov rcx, qword [0x14017d3a8]
cmp rcx, r13
je 0x1400d90be
test byte [rcx + 0x1c], r15b
je 0x1400d90be
cmp byte [rcx + 0x19], 2
jb 0x1400d90be
mov edx, 0xfe
mov rcx, qword [rcx + 0x10]
lea r8, [0x14000d0d8]
mov r9d, eax
call fcn.14001de24
mov ebx, 0x1c
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x1400d90d8
cmp rcx, 0xffffffffffffffff
je 0x1400d90d8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x1400d90ed
cmp rcx, 0xffffffffffffffff
je 0x1400d90ed
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x80]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
mov rcx, qword [0x14017d3a8]
cmp rcx, r13
je 0x1400d90be
test byte [rcx + 0x1c], r15b
je 0x1400d90be
cmp byte [rcx + 0x19], 2
jb 0x1400d90be
mov edx, 0xfd
jmp 0x1400d90ab