Function at 0x14003634c
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 + 0x121908]
mov ebp, ecx
lea rcx, [rsp + 0x50]
mov dword [rcx], eax
movzx eax, word [rdx + 0x12190c]
xor r12d, r12d
and ebx, 0x10
mov r13d, r8d
mov word [rcx + 4], ax
je 0x1400363b3
cmp rdi, r12
je 0x1400363b3
movzx eax, word [rdi]
cmp ax, 0x41
jb 0x1400363b3
cmp ax, 0x5a
ja 0x1400363b3
or ax, 0x20
mov word [rdi], ax
mov r14d, dword [rsp + 0xc0]
mov esi, 2
cmp r9d, r12d
je 0x1400363df
mov edx, ebp
xor ecx, ecx
call qword [0x14013d090]
cmp eax, r12d
jne 0x14003687e
mov eax, esi
jmp 0x1400369b4
lea rcx, [rsp + 0x58]
mov edx, 0x448
call fcn.1400633a8
mov r12, qword [rsp + 0x58]
test rdi, rdi
jne 0x14003643e
mov edx, 0xc0000000
mov ecx, ebp
call qword [0x14013d0c0]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140036650
mov edx, 0x80000000
mov ecx, ebp
call qword [0x14013d0c0]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140036650
mov edx, 0x80
mov ecx, ebp
call qword [0x14013d0c0]
jmp 0x14003658c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, esi
jne 0x140036459
xor ecx, ecx
lea ebp, [rcx + 0x3a]
cmp word [rdi + 2], bp
sete cl
jmp 0x140036487
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jne 0x140036480
lea rcx, [rdi + 2]
lea rdx, [0x14011f980]
call fcn.140103c44
xor ecx, ecx
test eax, eax
sete cl
jmp 0x140036482
xor ecx, ecx
mov ebp, 0x3a
test ecx, ecx
je 0x1400365b1
lea rdx, [0x140000000]
lea rcx, [rsp + 0x60]
mov rax, qword [rdx + 0x11f970]
mov qword [rcx], rax
mov eax, dword [rdx + 0x11f978]
mov dword [rcx + 8], eax
movzx eax, word [rdx + 0x11f97c]
movzx edx, word [rdi]
mov word [rcx + 0xc], ax
mov word [rsp + 0x68], dx
test ebx, ebx
jne 0x1400364f2
xor ecx, ecx
cmp dx, 0x5a
setbe cl
xor eax, eax
cmp dx, 0x41
setae al
test eax, ecx
je 0x1400364f2
test byte [rsp + 0xc8], 0x11
jne 0x1400364f2
movzx ecx, dx
mov r8d, r14d
xor edx, edx
call fcn.140035b40
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 0x140036650
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 0x140036650
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 0x140036650
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jne 0x140036828
mov ebx, 1
jmp 0x14003682a
mov edx, 0xc0000000
mov rcx, rdi
call qword [0x14013d0c8]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140036650
mov edx, 0x80000000
mov rcx, rdi
call qword [0x14013d0c8]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140036650
mov edx, 0x80
mov rcx, rdi
call qword [0x14013d0c8]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140036650
call qword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 1
je 0x14003663c
sub eax, 0x56
je 0x14003663c
sub eax, ebp
je 0x140036624
sub eax, 0x7a
je 0x140036624
cmp eax, 0x101b
je 0x140036624
mov ebx, 9
jmp 0x14003682a
call fcn.140103a20
lea rdx, str.Not_a_mount_point:__1_ws__n
mov r8, rdi
lea rcx, [rax + 0x60]
call fcn.14001c82c
lea rcx, [rsp + 0x58]
call fcn.14005b104
mov eax, 9
jmp 0x1400369b4
mov rcx, rbx
call fcn.14001c83c
mov rcx, rbx
test eax, eax
jne 0x14003666f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 5
jmp 0x14003682a
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 0x1400366c1
call fcn.140103a20
lea rdx, str._1_ws_:_Is_that_drive_really_an_ImDisk_drive_
mov r8, rdi
lea rcx, [rax + 0x60]
call fcn.14001c82c
jmp 0x140036828
cmp dword [rsp + 0xb8], 0x36
jb 0x1400366a4
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 0x1400366f5
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 0x14003679b
cmp r13d, r12d
je 0x140036828
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 0x1400367d0
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 0x140036828
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 0x14003683b
cmp r13d, r12d
je 0x140036820
xor edx, edx
mov rcx, rbx
call qword [0x14013d090]
mov ecx, r12d
cmp eax, r12d
sete cl
jmp 0x140036823
mov ecx, r12d
cmp ecx, r12d
je 0x14003683b
mov ebx, esi
lea rcx, [rsp + 0x58]
call fcn.14005b104
mov eax, ebx
jmp 0x1400369b4
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.14005b104
cmp rdi, r12
je 0x1400369b2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, esi
jne 0x1400368a5
mov ebp, 0x3a
mov ecx, r12d
cmp word [rdi + 2], bp
sete cl
jmp 0x1400368d6
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jne 0x1400368ce
lea rcx, [rdi + 2]
lea rdx, [0x14011f980]
call fcn.140103c44
mov ecx, r12d
cmp eax, r12d
sete cl
jmp 0x1400368d1
mov ecx, r12d
mov ebp, 0x3a
cmp ecx, r12d
je 0x14003696c
lea rcx, [rsp + 0x58]
lea rdx, [0x140000000]
xor r8d, r8d
mov eax, dword [rdx + 0x121908]
mov dword [rcx], eax
movzx eax, word [rdx + 0x12190c]
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.14005f7ec
test byte [rsp + 0xc8], 0x11
jne 0x1400369b2
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.140027eac
jmp 0x1400369b2
mov rcx, rdi
call qword [0x14013d0d0]
cmp eax, r12d
jne 0x1400369b2
call qword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 1
je 0x1400369b2
sub eax, 0x56
je 0x1400369b2
sub eax, ebp
je 0x14003699a
sub eax, 0x7a
je 0x14003699a
cmp eax, 0x101b
jne 0x1400369b2
call fcn.140103a20
lea rdx, str.Not_a_mount_point:__1_ws__n
mov r8, rdi
lea rcx, [rax + 0x60]
call fcn.14001c82c
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