Function at 0x140031180
Capabilities:
Unmount volume via ioctl

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov word [rsp + 8], cx
push rsi
push rdi
sub rsp, 0x1d8
lea rdi, [rsp + 0x178]
lea rsi, str..C:
mov ecx, 0xe
rep movsb byte [rdi], byte [rsi]
mov byte [rsp + 0x170], 1
lea rdx, [rsp + 0x160]
movzx ecx, word [rsp + 0x1f0]
call fcn.140032db0
test eax, eax
jne 0x1400311ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Get_Volume_Information_failed__d
call fcn.1400356f0
xor eax, eax
jmp 0x140031b73
cmp dword [rsp + 0x164], 1
je 0x14003120b
lea rcx, str.Volume_is_not_protected
call fcn.1400356f0
xor eax, eax
jmp 0x140031b73
movzx eax, word [rsp + 0x1f0]
mov word [rsp + 0x180], ax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
mov edx, 0xc0000000
lea rcx, [rsp + 0x178]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0xc0], rax
cmp qword [rsp + 0xc0], 0xffffffffffffffff
jne 0x14003127e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Open_Volume_failed__d
call fcn.1400356f0
xor eax, eax
jmp 0x140031b73
lea rcx, [0x1400411a8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x140041198]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x188], rax
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x190]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x90018
mov rcx, qword [rsp + 0xc0]
call qword [rsp + 0x188]
test eax, eax
jne 0x1400314fd
cmp dword [rsp + 0x200], 0
je 0x140031494
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x190]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x90020
mov rcx, qword [rsp + 0xc0]
call qword [rsp + 0x188]
test eax, eax
jne 0x140031381
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x1a0], eax
mov edx, dword [rsp + 0x1a0]
lea rcx, str.Dismount_Volume1_failed__d
call fcn.1400356f0
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [rsp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140031b73
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
mov edx, 0xc0000000
lea rcx, [rsp + 0x178]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0xc0], rax
cmp qword [rsp + 0xc0], 0xffffffffffffffff
jne 0x14003140b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x1a4], eax
mov edx, dword [rsp + 0x1a4]
lea rcx, str.Open_Volume1_failed__d
call fcn.1400356f0
mov ecx, dword [rsp + 0x1a4]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140031b73
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x190]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x90018
mov rcx, qword [rsp + 0xc0]
call qword [rsp + 0x188]
test eax, eax
jne 0x140031492
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x1a8], eax
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [rsp + 0x1a8]
lea rcx, [0x140041230]
call fcn.1400356f0
mov ecx, dword [rsp + 0x1a8]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140031b73
jmp 0x1400314fd
movzx eax, byte [rsp + 0x170]
test eax, eax
je 0x1400314bb
mov byte [rsp + 0x170], 0
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14003120b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x1ac], eax
mov edx, dword [rsp + 0x1ac]
lea rcx, str.Lock_Volume11_failed__d
call fcn.1400356f0
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [rsp + 0x1ac]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140031b73
mov eax, dword [rsp + 0x160]
mov dword [rsp + 0x20], eax
lea r9, str.DpShadow
lea r8, [0x140041290]
mov edx, 0x40
lea rcx, [rsp + 0x40]
call fcn.14001d240
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
mov edx, 0xc0000000
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x198], rax
cmp qword [rsp + 0x198], 0xffffffffffffffff
jne 0x1400315f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x1b0], eax
mov r8d, dword [rsp + 0x1b0]
lea rdx, [rsp + 0x40]
lea rcx, str.Open_Volume2__s__failed__d
call fcn.1400356f0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x190]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x9001c
mov rcx, qword [rsp + 0xc0]
call qword [rsp + 0x188]
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [rsp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140031b73
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x190]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x90018
mov rcx, qword [rsp + 0x198]
call qword [rsp + 0x188]
test eax, eax
jne 0x1400318ce
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x190]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x90020
mov rcx, qword [rsp + 0x198]
call qword [rsp + 0x188]
test eax, eax
jne 0x14003171a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x1b4], eax
mov edx, dword [rsp + 0x1b4]
lea rcx, str.Dismount_Volume2_failed__d
call fcn.1400356f0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x190]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x9001c
mov rcx, qword [rsp + 0xc0]
call qword [rsp + 0x188]
mov rcx, qword [rsp + 0x198]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [rsp + 0x1b4]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140031b73
mov rcx, qword [rsp + 0x198]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
mov edx, 0xc0000000
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x198], rax
cmp qword [rsp + 0x198], 0xffffffffffffffff
jne 0x1400317f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x1b8], eax
mov edx, dword [rsp + 0x1b8]
lea rcx, str.Open_Volume3_failed__d
call fcn.1400356f0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x190]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x9001c
mov rcx, qword [rsp + 0xc0]
call qword [rsp + 0x188]
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [rsp + 0x1b8]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140031b73
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x190]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x90018
mov rcx, qword [rsp + 0x198]
call qword [rsp + 0x188]
test eax, eax
jne 0x1400318ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x1bc], eax
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x190]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x9001c
mov rcx, qword [rsp + 0xc0]
call qword [rsp + 0x188]
mov rcx, qword [rsp + 0x198]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [rsp + 0x1bc]
lea rcx, str.Lock_Volume12_failed__d
call fcn.1400356f0
mov ecx, dword [rsp + 0x1bc]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140031b73
jmp 0x1400bf8e9
add rsp, 0x1d8
pop rdi
pop rsi
ret