Function at 0x140027340
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, 0x1b8
lea rax, [rsp + 0x80]
lea rcx, str..C:
mov rdi, rax
mov rsi, rcx
mov ecx, 0xe
rep movsb byte [rdi], byte [rsi]
mov byte [rsp + 0x44], 1
mov byte [rsp + 0x46], 0
mov byte [rsp + 0x45], 0
lea rdx, [rsp + 0x90]
movzx ecx, word [rsp + 0x1d0]
call fcn.140028750
test eax, eax
jne 0x1400273bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Get_Volume_Information_failed__d
call fcn.140029f10
xor eax, eax
jmp 0x140027bb7
cmp dword [rsp + 0x94], 1
je 0x1400273d8
lea rcx, str.Volume_is_not_protected
call fcn.140029f10
xor eax, eax
jmp 0x140027bb7
mov eax, 2
imul rax, rax, 4
movzx ecx, word [rsp + 0x1d0]
mov word [rsp + rax + 0x80], cx
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 + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
jne 0x14002744e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Open_Volume_failed__d
call fcn.140029f10
xor eax, eax
jmp 0x140027bb7
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x140055510]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x40]
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 + 0x48]
call qword [rsp + 0x50]
test eax, eax
jne 0x1400275c3
cmp dword [rsp + 0x1e0], 0
je 0x14002756f
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x40]
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 + 0x48]
call qword [rsp + 0x50]
test eax, eax
jne 0x140027530
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
mov edx, dword [rsp + 0x60]
lea rcx, str.Dismount_Volume1_failed__d
call fcn.140029f10
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140027bb7
mov byte [rsp + 0x46], 1
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x40]
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 + 0x48]
call qword [rsp + 0x50]
jmp 0x1400275c3
movzx eax, byte [rsp + 0x44]
test eax, eax
je 0x14002758d
mov byte [rsp + 0x44], 0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400273d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x64], eax
mov edx, dword [rsp + 0x64]
lea rcx, str.Lock_Volume11_failed__d
call fcn.140029f10
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [rsp + 0x64]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140027bb7
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x20], eax
lea r9, str.DpShadow
lea r8, str.._s_x
mov edx, 0x40
lea rcx, [rsp + 0x130]
call fcn.1400026e0
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 + 0x130]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0xffffffffffffffff
jne 0x1400276a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
mov r8d, dword [rsp + 0x68]
lea rdx, [rsp + 0x130]
lea rcx, str.Open_Volume2__s__failed__d
call fcn.140029f10
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x40]
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 + 0x48]
call qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140027bb7
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x40]
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 + 0x58]
call qword [rsp + 0x50]
test eax, eax
jne 0x1400277d9
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x40]
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 + 0x58]
call qword [rsp + 0x50]
test eax, eax
jne 0x14002779c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x6c], eax
mov edx, dword [rsp + 0x6c]
lea rcx, str.Dismount_Volume2_failed__d
call fcn.140029f10
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x40]
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 + 0x48]
call qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [rsp + 0x6c]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140027bb7
mov byte [rsp + 0x45], 1
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x40]
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 + 0x58]
call qword [rsp + 0x50]
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x40]
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 + 0x58]
call qword [rsp + 0x50]
test eax, eax
jne 0x1400278d7
movzx eax, byte [rsp + 0x45]
test eax, eax
jne 0x1400278d7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
mov edx, dword [rsp + 0x70]
lea rcx, str.Dismount_Volume3_failed__d
call fcn.140029f10
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x40]
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 + 0x58]
call qword [rsp + 0x50]
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x40]
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 + 0x48]
call qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140027bb7
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x40]
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 + 0x48]
call qword [rsp + 0x50]
test eax, eax
jne 0x1400279d5
movzx eax, byte [rsp + 0x46]
test eax, eax
jne 0x1400279d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x74], eax
mov edx, dword [rsp + 0x74]
lea rcx, str.Dismount_Volume4_failed__d
call fcn.140029f10
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x40]
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 + 0x58]
call qword [rsp + 0x50]
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x40]
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 + 0x48]
call qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [rsp + 0x74]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140027bb7
jmp 0x1400adecc
add rsp, 0x1b8
pop rdi
pop rsi
ret