Function at 0x140036410
Capabilities:
Unmount volume via ioctl

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x70
mov ebx, dword [rsp + 0xc8]
mov rdi, rdx
lea rdx, [0x140000000]
mov eax, dword [rdx + 0x1218e8]
mov ebp, ecx
lea rcx, [rsp + 0x50]
mov dword [rcx], eax
movzx eax, word [rdx + 0x1218ec]
xor r12d, r12d
and ebx, 0x10
mov r13d, r8d
mov word [rcx + 4], ax
je 0x140036477
cmp rdi, r12
je 0x140036477
movzx eax, word [rdi]
cmp ax, 0x41
jb 0x140036477
cmp ax, 0x5a
ja 0x140036477
or ax, 0x20
mov word [rdi], ax
mov r14d, dword [rsp + 0xc0]
mov esi, 2
cmp r9d, r12d
je 0x1400364a3
mov edx, ebp
xor ecx, ecx
call qword [0x14013d090]
cmp eax, r12d
jne 0x140036942
mov eax, esi
jmp 0x140036a78
lea rcx, [rsp + 0x58]
mov edx, 0x448
call fcn.140063028
mov r12, qword [rsp + 0x58]
test rdi, rdi
jne 0x140036502
mov edx, 0xc0000000
mov ecx, ebp
call qword [0x14013d0c0]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140036714
mov edx, 0x80000000
mov ecx, ebp
call qword [0x14013d0c0]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140036714
mov edx, 0x80
mov ecx, ebp
call qword [0x14013d0c0]
jmp 0x140036650
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, esi
jne 0x14003651d
xor ecx, ecx
lea ebp, [rcx + 0x3a]
cmp word [rdi + 2], bp
sete cl
jmp 0x14003654b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jne 0x140036544
lea rcx, [rdi + 2]
lea rdx, [0x14011f960]
call fcn.1401030b4
xor ecx, ecx
test eax, eax
sete cl
jmp 0x140036546
xor ecx, ecx
mov ebp, 0x3a
test ecx, ecx
je 0x140036675
lea rdx, [0x140000000]
lea rcx, [rsp + 0x60]
mov rax, qword [rdx + 0x11f950]
mov qword [rcx], rax
mov eax, dword [rdx + 0x11f958]
mov dword [rcx + 8], eax
movzx eax, word [rdx + 0x11f95c]
movzx edx, word [rdi]
mov word [rcx + 0xc], ax
mov word [rsp + 0x68], dx
test ebx, ebx
jne 0x1400365b6
xor ecx, ecx
cmp dx, 0x5a
setbe cl
xor eax, eax
cmp dx, 0x41
setae al
test eax, ecx
je 0x1400365b6
test byte [rsp + 0xc8], 0x11
jne 0x1400365b6
movzx ecx, dx
mov r8d, r14d
xor edx, edx
call fcn.140035c04
and qword [rsp + 0x30], 0
xor r9d, r9d
mov ebp, 0x20000000
lea rcx, [rsp + 0x60]
lea r8d, [r9 + 3]
mov edx, 0xc0000000
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140036714
and qword [rsp + 0x30], 0
lea r8d, [rax + 4]
lea rcx, [rsp + 0x60]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140036714
and qword [rsp + 0x30], 0
lea r8d, [rax + 4]
lea rcx, [rsp + 0x60]
xor r9d, r9d
mov edx, 0x80
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140036714
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jne 0x1400368ec
mov ebx, 1
jmp 0x1400368ee
mov edx, 0xc0000000
mov rcx, rdi
call qword [0x14013d0c8]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140036714
mov edx, 0x80000000
mov rcx, rdi
call qword [0x14013d0c8]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140036714
mov edx, 0x80
mov rcx, rdi
call qword [0x14013d0c8]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140036714
call qword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 1
je 0x140036700
sub eax, 0x56
je 0x140036700
sub eax, ebp
je 0x1400366e8
sub eax, 0x7a
je 0x1400366e8
cmp eax, 0x101b
je 0x1400366e8
mov ebx, 9
jmp 0x1400368ee
call fcn.140102e90
lea rdx, str.Not_a_mount_point:__1_ws__n
mov r8, rdi
lea rcx, [rax + 0x60]
call fcn.14001c878
lea rcx, [rsp + 0x58]
call fcn.14005aef8
mov eax, 9
jmp 0x140036a78
mov rcx, rbx
call fcn.14001c888
mov rcx, rbx
test eax, eax
jne 0x140036733
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 5
jmp 0x1400368ee
and qword [rsp + 0x38], 0
lea rax, [rsp + 0xb8]
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov edx, 0x83722008
mov dword [rsp + 0x28], 0x448
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140036785
call fcn.140102e90
lea rdx, str._1_ws_:_Is_that_drive_really_an_ImDisk_drive_
mov r8, rdi
lea rcx, [rax + 0x60]
call fcn.14001c878
jmp 0x1400368ec
cmp dword [rsp + 0xb8], 0x36
jb 0x140036768
movzx edx, word [r12 + 0x2c]
xor r12d, r12d
cmp dx, r12w
mov ecx, r12d
mov eax, r12d
setne cl
cmp rdi, r12
sete al
test eax, ecx
je 0x1400367b9
mov word [rsp + 0x50], dx
lea rdi, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x30], rax
mov ebp, 0x90018
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
mov edx, ebp
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, r12d
jne 0x14003685f
cmp r13d, r12d
je 0x1400368ec
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0xb8]
lea edx, [rbp + 8]
mov qword [rsp + 0x30], rax
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x30], rax
xor r9d, r9d
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
jmp 0x140036894
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0xb8]
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov edx, 0x90020
mov rcx, rbx
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, r12d
je 0x1400368ec
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0xb8]
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov edx, 0x2d4808
mov rcx, rbx
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, r12d
jne 0x1400368ff
cmp r13d, r12d
je 0x1400368e4
xor edx, edx
mov rcx, rbx
call qword [0x14013d090]
mov ecx, r12d
cmp eax, r12d
sete cl
jmp 0x1400368e7
mov ecx, r12d
cmp ecx, r12d
je 0x1400368ff
mov ebx, esi
lea rcx, [rsp + 0x58]
call fcn.14005aef8
mov eax, ebx
jmp 0x140036a78
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0xb8]
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov edx, 0x9001c
mov rcx, rbx
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x58]
call fcn.14005aef8
cmp rdi, r12
je 0x140036a76
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, esi
jne 0x140036969
mov ebp, 0x3a
mov ecx, r12d
cmp word [rdi + 2], bp
sete cl
jmp 0x14003699a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jne 0x140036992
lea rcx, [rdi + 2]
lea rdx, [0x14011f960]
call fcn.1401030b4
mov ecx, r12d
cmp eax, r12d
sete cl
jmp 0x140036995
mov ecx, r12d
mov ebp, 0x3a
cmp ecx, r12d
je 0x140036a30
lea rcx, [rsp + 0x58]
lea rdx, [0x140000000]
xor r8d, r8d
mov eax, dword [rdx + 0x1218e8]
mov dword [rcx], eax
movzx eax, word [rdx + 0x1218ec]
lea rdx, [rsp + 0x58]
mov word [rcx + 4], ax
movzx eax, word [rdi]
mov ecx, esi
mov word [rsp + 0x58], ax
call qword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
movzx ecx, word [rdi]
call fcn.14005f454
test byte [rsp + 0xc8], 0x11
jne 0x140036a76
mov dword [rsp + 0x40], r12d
lea ecx, [r14 + r14*4]
mov ebx, 1
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rcx
lea rcx, [0x14013d130]
lea r9d, [rbx + 6]
xor edx, edx
mov r8d, 0x219
mov qword [rsp + 0x28], 3
mov qword [rsp + 0x20], r12
call fcn.140027f1c
jmp 0x140036a76
mov rcx, rdi
call qword [0x14013d0d0]
cmp eax, r12d
jne 0x140036a76
call qword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 1
je 0x140036a76
sub eax, 0x56
je 0x140036a76
sub eax, ebp
je 0x140036a5e
sub eax, 0x7a
je 0x140036a5e
cmp eax, 0x101b
jne 0x140036a76
call fcn.140102e90
lea rdx, str.Not_a_mount_point:__1_ws__n
mov r8, rdi
lea rcx, [rax + 0x60]
call fcn.14001c878
xor eax, eax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret