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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
xor esi, esi
mov rbx, r9
mov dword [rbp + 0x48], esi
mov r12b, r8b
mov qword [rbp - 0x20], rsi
mov r15, rdx
mov r14, rcx
mov rcx, qword [0x14017a048]
lea r13, [0x14017a048]
mov dil, 4
cmp rcx, r13
je 0x1400c9c0e
test byte [rcx + 0x1c], dil
je 0x1400c9c0e
cmp byte [rcx + 0x19], dil
jb 0x1400c9c0e
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401614e8]
mov edx, 0x1b6
call fcn.140006b98
mov rcx, qword [0x14017a048]
mov qword [rbp - 0x10], rbx
mov byte [rbp - 8], sil
cmp rcx, r13
je 0x1400c9c44
test byte [rcx + 0x1c], dil
je 0x1400c9c44
cmp byte [rcx + 0x19], 5
jb 0x1400c9c44
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401614e8]
mov edx, 0x1b7
mov qword [rsp + 0x20], r15
mov r9, r14
call fcn.1400113b0
mov r13, qword [rbp + 0x50]
mov qword [r13], rsi
mov rsi, qword [rbp + 0x58]
and dword [rsi], 0
cmp rbx, 0xffffffffffffffff
je 0x1400c9ccf
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
nop dword [rax + rax]
test eax, eax
jne 0x1400c9ccb
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov dword [rsi], eax
mov rcx, qword [0x14017a048]
lea r9, [0x14017a048]
mov ebx, 0x13
cmp rcx, r9
je 0x1400ca42c
test byte [rcx + 0x1c], dil
je 0x1400ca42c
cmp byte [rcx + 0x19], 2
jb 0x1400ca42c
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401614e8]
mov edx, 0x1b8
mov dword [rsp + 0x20], eax
mov r9d, ebx
call fcn.1400ce6a4
jmp 0x1400ca42c
mov byte [rbp - 8], 1
mov r8, rsi
lea rdx, [rbp - 0x20]
mov rcx, r15
call fcn.1400c7844
mov ebx, eax
test eax, eax
je 0x1400c9d2f
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x1400ca42c
test byte [rcx + 0x1c], dil
je 0x1400ca42c
cmp byte [rcx + 0x19], 2
jb 0x1400ca42c
mov eax, dword [rsi]
mov edx, 0x1b9
mov rcx, qword [rcx + 0x10]
mov r9, r15
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ebx
call fcn.1400ce934
jmp 0x1400ca42c
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x1400c9d67
test byte [rcx + 0x1c], dil
je 0x1400c9d67
cmp byte [rcx + 0x19], dil
jb 0x1400c9d67
mov r9, qword [rbp - 0x20]
lea r8, [0x1401614e8]
mov rcx, qword [rcx + 0x10]
mov edx, 0x1ba
call fcn.14003dd3c
lea rcx, [rbp - 0x10]
call fcn.1400c5b94
mov ebx, 0x218
xor ecx, ecx
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x1400c9da3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov dword [rsi], eax
lea ebx, [rdi + 3]
jmp 0x1400ca42c
mov r8, rbx
xor edx, edx
mov rcx, rdi
call sub.msvcrt.dll_memset
movups xmm0, xmmword [0x1401614f8]
mov byte [rdi + 0x19], r12b
mov r8, rsi
lea r12, [rdi + 0x1f8]
mov rcx, r14
mov rdx, r12
movdqu xmmword [rdi], xmm0
call fcn.1400c3648
mov ebx, eax
test eax, eax
je 0x1400c9e2c
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x1400ca42c
test byte [rcx + 0x1c], 4
je 0x1400ca42c
cmp byte [rcx + 0x19], 2
jb 0x1400ca42c
mov eax, dword [rsi]
lea r8, [0x1401614e8]
mov rcx, qword [rcx + 0x10]
mov edx, 0x1bb
mov dword [rsp + 0x28], eax
mov r9, r14
mov dword [rsp + 0x20], ebx
call fcn.14005fe40
jmp 0x1400ca42c
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x1400c9e6b
test byte [rcx + 0x1c], 4
je 0x1400c9e6b
cmp byte [rcx + 0x19], 4
jb 0x1400c9e6b
mov eax, dword [r12]
lea r8, [0x1401614e8]
mov rcx, qword [rcx + 0x10]
mov edx, 0x1bc
mov r9, r14
mov dword [rsp + 0x20], eax
call fcn.140011330
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]
nop dword [rax + rax]
mov qword [rdi + 0x10], rax
cmp rax, 0xffffffffffffffff
jne 0x1400c9ef8
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, rdi
mov dword [rsi], eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x1400ca3ea
test byte [rcx + 0x1c], 4
je 0x1400ca3ea
cmp byte [rcx + 0x19], 2
jb 0x1400ca3ea
mov edx, 0x1bd
jmp 0x1400ca3d0
mov rcx, qword [0x14017a048]
lea rdx, [0x14017a048]
mov r10, rax
mov r12b, 4
cmp rcx, rdx
je 0x1400c9f3e
test byte [rcx + 0x1c], r12b
je 0x1400c9f3e
cmp byte [rcx + 0x19], r12b
jb 0x1400c9f3e
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401614e8]
mov edx, 0x1be
mov qword [rsp + 0x20], rax
mov r9, r14
call fcn.140059058
mov r10, qword [rdi + 0x10]
and qword [rsp + 0x38], 0
lea rax, [rbp + 0x48]
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]
nop dword [rax + rax]
test eax, eax
jne 0x1400c9fde
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov dword [rsi], eax
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x1400ca3ea
test byte [rcx + 0x1c], r12b
je 0x1400ca3ea
cmp byte [rcx + 0x19], 2
jb 0x1400ca3ea
mov edx, 0x1bf
jmp 0x1400ca3d0
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x20]
cmp rax, rdx
jge 0x1400ca04e
mov rcx, qword [0x14017a048]
lea r9, [0x14017a048]
cmp rcx, r9
je 0x1400ca025
test byte [rcx + 0x1c], r12b
je 0x1400ca025
cmp byte [rcx + 0x19], 2
jb 0x1400ca025
mov rcx, qword [rcx + 0x10]
mov r9, r14
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rax
call fcn.1400ce9cc
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov ebx, 0xe
jmp 0x1400ca42c
mov rcx, qword [rdi + 0x10]
lea rax, [rbp + 0x48]
xor r15d, r15d
xor r9d, r9d
mov qword [rsp + 0x38], r15
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov edx, 0x90018
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
jne 0x1400ca0d5
mov rax, qword [0x14017a048]
lea rcx, [0x14017a048]
cmp rax, rcx
je 0x1400ca0d5
test byte [rax + 0x1c], r12b
je 0x1400ca0d5
cmp byte [rax + 0x19], bl
jb 0x1400ca0d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14017a048]
lea r8, [0x1401614e8]
mov edx, 0x1c1
mov dword [rsp + 0x20], eax
mov r9, r14
mov rcx, qword [rcx + 0x10]
call fcn.140011330
mov qword [rsp + 0x38], r15
lea rax, [rbp + 0x48]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rbp + 0x48], r15d
xor r8d, r8d
mov rcx, qword [rdi + 0x10]
mov edx, 0x90020
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
jne 0x1400ca172
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov dword [rsi], eax
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x1400ca3ea
test byte [rcx + 0x1c], r12b
je 0x1400ca3ea
cmp byte [rcx + 0x19], 2
jb 0x1400ca3ea
mov edx, 0x1c2
jmp 0x1400ca3d0
mov rcx, qword [rdi + 0x10]
mov r8, rsi
xor edx, edx
call fcn.1400c599c
mov rcx, qword [rdi + 0x10]
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test r15d, r15d
je 0x1400ca1f4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x1400ca429
test byte [rcx + 0x1c], r12b
je 0x1400ca429
cmp byte [rcx + 0x19], 2
jb 0x1400ca429
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401614e8]
mov edx, 0x1c3
mov dword [rsp + 0x20], r15d
mov r9, r14
call fcn.14003d060
jmp 0x1400ca429
xor r15d, r15d
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov r8d, ebx
mov dword [rsp + 0x28], 0x40000080
mov edx, 0xc0000000
mov rcx, r14
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov qword [rdi + 0x10], rax
cmp rax, 0xffffffffffffffff
jne 0x1400ca27e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, rdi
mov dword [rsi], eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x1400ca3ea
test byte [rcx + 0x1c], r12b
je 0x1400ca3ea
cmp byte [rcx + 0x19], 2
jb 0x1400ca3ea
mov edx, 0x1c4
jmp 0x1400ca3d0
mov rcx, qword [0x14017a048]
lea rdx, [0x14017a048]
mov r10, rax
cmp rcx, rdx
je 0x1400ca2c1
test byte [rcx + 0x1c], r12b
je 0x1400ca2c1
cmp byte [rcx + 0x19], r12b
jb 0x1400ca2c1
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401614e8]
mov edx, 0x1c5
mov qword [rsp + 0x20], rax
mov r9, r14
call fcn.140059058
mov r10, qword [rdi + 0x10]
mov qword [rsp + 0x38], r15
lea rax, [rbp + 0x48]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], r15d
xor r8d, r8d
mov edx, 0x90018
mov qword [rsp + 0x20], r15
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
jne 0x1400ca344
mov rax, qword [0x14017a048]
lea rcx, [0x14017a048]
cmp rax, rcx
je 0x1400ca344
test byte [rax + 0x1c], r12b
je 0x1400ca344
cmp byte [rax + 0x19], bl
jb 0x1400ca344
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14017a048]
lea r8, [0x1401614e8]
mov edx, 0x1c6
mov dword [rsp + 0x20], eax
mov r9, r14
mov rcx, qword [rcx + 0x10]
call fcn.140011330
mov qword [rsp + 0x38], r15
lea rax, [rbp + 0x48]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rbp + 0x48], r15d
xor r8d, r8d
mov rcx, qword [rdi + 0x10]
mov edx, 0x90020
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
jne 0x1400ca3f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov dword [rsi], eax
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x1400ca3ea
test byte [rcx + 0x1c], r12b
je 0x1400ca3ea
cmp byte [rcx + 0x19], 2
jb 0x1400ca3ea
mov edx, 0x1c7
mov eax, dword [rsi]
mov r9, r14
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 0xd
call fcn.1400ce934
mov ebx, 0xd
jmp 0x1400ca42c
mov qword [r13], rdi
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x1400ca429
test byte [rcx + 0x1c], r12b
je 0x1400ca429
cmp byte [rcx + 0x19], r12b
jb 0x1400ca429
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401614e8]
mov edx, 0x1c8
call fcn.140006b98
mov ebx, r15d
lea rcx, [rbp - 0x10]
call fcn.1400c5b94
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret