Function at 0x1400b9524
Capabilities:
Get disk size
Unmount volume via ioctl

Disassembly:
mov qword [rsp + 8], rbx
mov byte [rsp + 0x18], r8b
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
xor ebx, ebx
mov r15, r9
mov dword [rbp + 0x58], ebx
mov r12, rdx
mov qword [rbp - 0x20], rbx
mov r14, rcx
mov rcx, qword [0x140170048]
lea rsi, [0x140170048]
mov r13b, 4
cmp rcx, rsi
je 0x1400b9590
test byte [rcx + 0x1c], r13b
je 0x1400b9590
cmp byte [rcx + 0x19], r13b
jb 0x1400b9590
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401521b8]
mov edx, 0x1b6
call fcn.140004c54
mov rcx, qword [0x140170048]
mov qword [rbp - 0x10], r15
mov dil, bl
mov byte [rbp - 8], bl
cmp rcx, rsi
je 0x1400b95c8
test byte [rcx + 0x1c], r13b
je 0x1400b95c8
cmp byte [rcx + 0x19], 5
jb 0x1400b95c8
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401521b8]
mov edx, 0x1b7
mov qword [rsp + 0x20], r12
mov r9, r14
call fcn.140005cc0
mov rax, qword [rbp + 0x60]
mov rsi, qword [rbp + 0x68]
mov qword [rax], rbx
mov dword [rsi], ebx
cmp r15, 0xffffffffffffffff
je 0x1400b9648
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x1400b9641
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
mov ebx, 0x13
mov rcx, qword [0x140170048]
lea rdx, [0x140170048]
cmp rcx, rdx
je 0x1400b9d14
test byte [rcx + 0x1c], r13b
je 0x1400b9d14
cmp byte [rcx + 0x19], 2
jb 0x1400b9d14
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401521b8]
mov edx, 0x1b8
mov dword [rsp + 0x20], eax
mov r9d, ebx
call fcn.1400adaf8
jmp 0x1400b9d14
mov dil, 1
mov byte [rbp - 8], dil
mov r8, rsi
lea rdx, [rbp - 0x20]
mov rcx, r12
call fcn.1400b940c
mov ebx, eax
test eax, eax
je 0x1400b9695
mov rcx, qword [0x140170048]
lea rdx, [0x140170048]
cmp rcx, rdx
je 0x1400b9d14
test byte [rcx + 0x1c], r13b
je 0x1400b9d14
cmp byte [rcx + 0x19], 2
jb 0x1400b9d14
mov edx, 0x1b9
mov r9, r12
jmp 0x1400b9cc8
mov rcx, qword [0x140170048]
lea rdx, [0x140170048]
mov r13, qword [rbp - 0x20]
cmp rcx, rdx
je 0x1400b96d0
test byte [rcx + 0x1c], 4
je 0x1400b96d0
cmp byte [rcx + 0x19], 4
jb 0x1400b96d0
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401521b8]
mov edx, 0x1ba
mov r9, r13
call fcn.140010084
test dil, dil
je 0x1400b9728
cmp r15, 0xffffffffffffffff
jne 0x1400b96f2
lea r8, str._hImpersonationToken___INVALID_HANDLE_VALUE
lea edx, [r15 + 0x5b]
lea rcx, str.base_stor_blb_blbimg_blbimg.cxx
call fcn.14008388c
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
jne 0x1400b9724
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x1400b9724
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov byte [rbp - 8], 0
mov ebx, 0x218
xor ecx, ecx
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
jne 0x1400b974f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
lea ebx, [rdi + 3]
jmp 0x1400b9d14
mov r8, rbx
xor edx, edx
mov rcx, rdi
call sub.msvcrt.dll_memset
movups xmm0, xmmword [0x1401521a8]
mov al, byte [rbp + 0x50]
lea r15, [rdi + 0x1f8]
mov r8, rsi
mov byte [rdi + 0x19], al
mov rdx, r15
mov rcx, r14
movdqu xmmword [rdi], xmm0
call fcn.1400aef04
mov ebx, eax
test eax, eax
je 0x1400b97da
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
cmp rcx, rax
je 0x1400b9d14
test byte [rcx + 0x1c], 4
je 0x1400b9d14
cmp byte [rcx + 0x19], 2
jb 0x1400b9d14
mov eax, dword [rsi]
lea r8, [0x1401521b8]
mov rcx, qword [rcx + 0x10]
mov edx, 0x1bb
mov dword [rsp + 0x28], eax
mov r9, r14
mov dword [rsp + 0x20], ebx
call fcn.14001056c
jmp 0x1400b9d14
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
cmp rcx, rax
je 0x1400b9818
test byte [rcx + 0x1c], 4
je 0x1400b9818
cmp byte [rcx + 0x19], 4
jb 0x1400b9818
mov eax, dword [r15]
lea r8, [0x1401521b8]
mov rcx, qword [rcx + 0x10]
mov edx, 0x1bc
mov r9, r14
mov dword [rsp + 0x20], eax
call fcn.140005c44
and qword [rsp + 0x30], 0
mov ebx, 3
mov r8d, ebx
mov dword [rsp + 0x28], 0x40000080
xor r9d, r9d
mov dword [rsp + 0x20], ebx
mov edx, 0xc0000000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 0x10], rax
cmp rax, 0xffffffffffffffff
jne 0x1400b9898
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov dword [rsi], eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
mov ebx, 0xd
cmp rcx, rax
je 0x1400b9d14
test byte [rcx + 0x1c], 4
je 0x1400b9d14
cmp byte [rcx + 0x19], 2
jb 0x1400b9d14
mov edx, 0x1bd
jmp 0x1400b9cc5
mov rcx, qword [0x140170048]
lea r15, [0x140170048]
mov r10, rax
cmp rcx, r15
je 0x1400b98db
test byte [rcx + 0x1c], 4
je 0x1400b98db
cmp byte [rcx + 0x19], 4
jb 0x1400b98db
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401521b8]
mov edx, 0x1be
mov qword [rsp + 0x20], rax
mov r9, r14
call fcn.1400103bc
mov r10, qword [rdi + 0x10]
and qword [rsp + 0x38], 0
lea rax, [rbp + 0x58]
mov qword [rsp + 0x30], rax
xor r9d, r9d
lea rax, [rbp - 0x18]
mov dword [rsp + 0x28], 8
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x7405c
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400b9961
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rdi + 0x10]
mov dword [rsi], eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [0x140170048]
mov ebx, 0xd
cmp rcx, r15
je 0x1400b9d14
test byte [rcx + 0x1c], 4
je 0x1400b9d14
cmp byte [rcx + 0x19], 2
jb 0x1400b9d14
mov edx, 0x1bf
jmp 0x1400b9cc5
mov rax, qword [rbp - 0x18]
cmp rax, r13
jge 0x1400b99ba
mov rcx, qword [0x140170048]
cmp rcx, r15
je 0x1400b999d
test byte [rcx + 0x1c], 4
je 0x1400b999d
cmp byte [rcx + 0x19], 2
jb 0x1400b999d
mov rcx, qword [rcx + 0x10]
mov r9, r14
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
call fcn.1400adda8
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, 0xe
jmp 0x1400b9d14
mov rcx, qword [rdi + 0x10]
lea rax, [rbp + 0x58]
xor r13d, r13d
xor r9d, r9d
mov qword [rsp + 0x38], r13
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov edx, 0x90018
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400b9a33
mov rax, qword [0x140170048]
mov r12b, 4
cmp rax, r15
je 0x1400b9a36
test byte [rax + 0x1c], r12b
je 0x1400b9a36
cmp byte [rax + 0x19], bl
jb 0x1400b9a36
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140170048]
lea r8, [0x1401521b8]
mov edx, 0x1c1
mov dword [rsp + 0x20], eax
mov r9, r14
mov rcx, qword [rcx + 0x10]
call fcn.140005c44
jmp 0x1400b9a36
mov r12b, 4
mov qword [rsp + 0x38], r13
lea rax, [rbp + 0x58]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rbp + 0x58], r13d
xor r8d, r8d
mov rcx, qword [rdi + 0x10]
mov edx, 0x90020
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400b9ab9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rdi + 0x10]
mov dword [rsi], eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [0x140170048]
mov ebx, 0xd
cmp rcx, r15
je 0x1400b9d14
test byte [rcx + 0x1c], r12b
je 0x1400b9d14
cmp byte [rcx + 0x19], 2
jb 0x1400b9d14
mov edx, 0x1c2
jmp 0x1400b9cc5
mov rcx, qword [rdi + 0x10]
mov r8, rsi
xor edx, edx
call fcn.1400b8f08
mov rcx, qword [rdi + 0x10]
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r15d, r15d
je 0x1400b9b26
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
cmp rcx, rax
je 0x1400b9b1e
test byte [rcx + 0x1c], r12b
je 0x1400b9b1e
cmp byte [rcx + 0x19], 2
jb 0x1400b9b1e
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401521b8]
mov edx, 0x1c3
mov dword [rsp + 0x20], r15d
mov r9, r14
call fcn.140005c44
mov ebx, r15d
jmp 0x1400b9d14
mov qword [rsp + 0x30], r13
xor r9d, r9d
mov dword [rsp + 0x28], 0x40000080
mov r8d, ebx
mov edx, 0xc0000000
mov dword [rsp + 0x20], ebx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 0x10], rax
cmp rax, 0xffffffffffffffff
jne 0x1400b9ba0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov dword [rsi], eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
mov ebx, 0xd
cmp rcx, rax
je 0x1400b9d14
test byte [rcx + 0x1c], r12b
je 0x1400b9d14
cmp byte [rcx + 0x19], 2
jb 0x1400b9d14
mov edx, 0x1c4
jmp 0x1400b9cc5
mov rcx, qword [0x140170048]
lea r15, [0x140170048]
mov r10, rax
cmp rcx, r15
je 0x1400b9be3
test byte [rcx + 0x1c], r12b
je 0x1400b9be3
cmp byte [rcx + 0x19], r12b
jb 0x1400b9be3
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401521b8]
mov edx, 0x1c5
mov qword [rsp + 0x20], rax
mov r9, r14
call fcn.1400103bc
mov r10, qword [rdi + 0x10]
mov qword [rsp + 0x38], r13
lea rax, [rbp + 0x58]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], r13d
xor r8d, r8d
mov edx, 0x90018
mov qword [rsp + 0x20], r13
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400b9c53
mov rax, qword [0x140170048]
cmp rax, r15
je 0x1400b9c53
test byte [rax + 0x1c], r12b
je 0x1400b9c53
cmp byte [rax + 0x19], bl
jb 0x1400b9c53
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140170048]
lea r8, [0x1401521b8]
mov edx, 0x1c6
mov dword [rsp + 0x20], eax
mov r9, r14
mov rcx, qword [rcx + 0x10]
call fcn.140005c44
mov qword [rsp + 0x38], r13
lea rax, [rbp + 0x58]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rbp + 0x58], r13d
xor r8d, r8d
mov rcx, qword [rdi + 0x10]
mov edx, 0x90020
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400b9cdd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rdi + 0x10]
mov dword [rsi], eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [0x140170048]
mov ebx, 0xd
cmp rcx, r15
je 0x1400b9d14
test byte [rcx + 0x1c], r12b
je 0x1400b9d14
cmp byte [rcx + 0x19], 2
jb 0x1400b9d14
mov edx, 0x1c7
mov r9, r14
mov eax, dword [rsi]
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ebx
call fcn.1400add10
jmp 0x1400b9d14
mov rax, qword [rbp + 0x60]
mov qword [rax], rdi
mov rcx, qword [0x140170048]
cmp rcx, r15
je 0x1400b9d11
test byte [rcx + 0x1c], r12b
je 0x1400b9d11
cmp byte [rcx + 0x19], r12b
jb 0x1400b9d11
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401521b8]
mov edx, 0x1c8
call fcn.140004c54
mov ebx, r13d
lea rcx, [rbp - 0x10]
call fcn.1400ae2d0
mov eax, ebx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret