Function at 0x140006e30
Capabilities:
Enumerate disk volumes
Get disk information via ioctl
Unmount volume via ioctl

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
mov dword [rax + 8], ecx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xe58
mov r14, qword [rsp + 0xec0]
mov rbx, qword [0x14012ca98]
xor esi, esi
cmp rdx, rsi
lea r13, [rdx + r8]
lea rbp, [rax - 0xa78]
setge byte [rsp + 0xeb0]
cmp r13, rdx
mov word [rax - 0xa78], si
movabs rax, 0x7fffffffffffffff
mov rdi, r9
mov r15, rsi
cmovb r13, rax
and edi, 1
cmp r14, rsi
setne r15b
mov r12, rdx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r13
cmp rdx, 0xffffffffffffffff
jne 0x140006f33
cmp rbx, rsi
jne 0x140006f20
xor eax, eax
jmp 0x140007322
dec qword [rbx]
mov rax, qword [rbx]
mov rdi, qword [rbx + rax*8 + 8]
mov qword [rbx + rax*8 + 8], rsi
mov dword [rsp + 0xea8], esi
cmp rdi, rsi
je 0x140006f20
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0xea8]
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov edx, 0x9001c
mov rcx, rdi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0xea8], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.DLL_DeviceIoControl]
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp qword [rbx], rsi
jg 0x140006ebf
lea rcx, [0x14012ca98]
call fcn.1400576e8
jmp 0x140006eb8
cmp r14, rsi
jne 0x140006f65
lea rcx, [rsp + 0x420]
mov edx, 0x514
call qword [sym.imp.KERNEL32.DLL_FindFirstVolumeW]
mov qword [rsp + 0x50], rax
cmp rax, 0xffffffffffffffff
jne 0x140006f65
movabs rax, 1
jmp 0x140007322
cmp rbx, rsi
jne 0x140006f8a
lea rcx, [0x14012ca98]
mov edx, 0xfa8
call fcn.14005f81c
mov rbx, qword [0x14012ca98]
cmp rbx, rsi
je 0x140006f56
mov qword [rbx], rsi
cmp r14, rsi
movsxd rax, edi
cmovne rbp, r14
mov qword [rsp + 0xeb8], rax
mov qword [rsp + 0x68], rbp
jmp 0x140006fa5
xor esi, esi
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
dec eax
cmp eax, esi
jle 0x1400072de
movsxd rcx, eax
cmp word [rbp + rcx*2], 0x5c
jne 0x140006fc8
mov word [rbp + rcx*2], si
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_SetLastError]
xor r9d, r9d
mov qword [rsp + 0x30], rsi
lea r8d, [r9 + 7]
mov edx, 0x80000000
mov rcx, rbp
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400072dc
xor ecx, ecx
mov edi, 0xffffff9c
call qword [sym.imp.KERNEL32.DLL_SetLastError]
xor eax, eax
cmp r14, rax
jne 0x14000711d
lea rcx, [rsp + 0x104]
xor edx, edx
mov r8d, 0x31c
mov dword [rsp + 0x100], eax
call fcn.1400f3900
xor eax, eax
mov qword [rsp + 0x38], rax
xor r11d, r11d
lea rax, [rsp + 0x100]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov dword [rsp + 0x44], r11d
or dword [rsp + 0x44], 0xffffffff
xor r9d, r9d
xor r8d, r8d
mov edx, 0x2d1080
mov rcx, rsi
mov dword [rsp + 0x28], 0xc
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x48], r11d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.DLL_DeviceIoControl]
xor ecx, ecx
cmp eax, ecx
je 0x140007097
movsx edi, word [rsp + 0x44]
cmp dword [rsp + 0xea0], edi
jne 0x1400072cc
lea rcx, [rsp + 0x70]
xor edx, edx
mov r8d, 0x90
call fcn.1400f3900
lea rcx, [rsp + 0x70]
xor edx, edx
mov r8d, 0x90
call fcn.1400f3900
or dword [rsp + 0x88], 0xffffffff
xor eax, eax
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x100]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x70]
xor r8d, r8d
mov edx, 0x70048
mov rcx, rsi
mov dword [rsp + 0x28], 0x90
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.DLL_DeviceIoControl]
cmp dword [rsp + 0x88], 0xffffffff
jne 0x140007225
or edi, 0xffffffff
xor eax, eax
cmp dword [rsp + 0xea0], edi
je 0x14000712f
cmp r14, rax
je 0x1400072ce
xor ebp, ebp
mov rcx, rsi
mov dword [rsp + 0xec0], ebp
mov r12d, ebp
call qword [sym.imp.KERNEL32.DLL_FlushFileBuffers]
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_FlushFileBuffers]
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_FlushFileBuffers]
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_FlushFileBuffers]
mov edi, ebp
mov qword [rsp + 0x38], rbp
lea rax, [rsp + 0xec0]
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov edx, 0x90018
mov rcx, rsi
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0xec0], ebp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.DLL_DeviceIoControl]
mov r13d, eax
cmp eax, ebp
jne 0x1400071b4
mov ecx, 0xa
call qword [sym.imp.KERNEL32.DLL_Sleep]
sub edi, 1
jns 0x140007161
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, r13d
cmp qword [rsp + 0xeb8], rbp
je 0x140007216
mov ebp, 4
xor ecx, ecx
lea rax, [rsp + 0xec0]
xor r9d, r9d
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rcx
mov dword [rsp + 0xec0], ecx
xor r8d, r8d
mov rcx, rsi
mov edx, 0x90020
call qword [sym.imp.KERNEL32.DLL_DeviceIoControl]
mov edi, eax
xor eax, eax
cmp edi, eax
jne 0x14000725c
lea ecx, [rax + 0xa]
call qword [sym.imp.KERNEL32.DLL_Sleep]
sub ebp, 1
jns 0x1400071c6
xor ebp, ebp
cmp edi, ebp
jne 0x14000725e
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov r12d, eax
jmp 0x14000725e
xor eax, eax
cmp byte [rsp + 0xeb0], al
je 0x14000711d
mov rcx, qword [rsp + 0x78]
cmp rcx, r13
jae 0x140007254
mov rax, qword [rsp + 0x80]
add rcx, rax
cmp rcx, r12
jge 0x14000711b
xor eax, eax
or edi, 0xffffffff
jmp 0x14000711d
xor ebp, ebp
cmp r14, rbp
je 0x14000727d
cmp qword [rsp + 0xeb8], rbp
je 0x140007272
cmp edi, 1
je 0x140007278
cmp r13d, 1
jne 0x140007292
mov r15, rbp
jmp 0x1400072a1
cmp qword [rsp + 0xeb8], rbp
je 0x14000728c
cmp edi, 1
je 0x1400072a1
cmp r13d, 1
je 0x1400072a1
mov eax, 1
cmp r12d, ebp
cmovne eax, r12d
movsxd r15, eax
mov rax, qword [rbx]
mov r12, rbx
cmp rax, 0x1f4
jge 0x1400072b7
mov qword [rbx + rax*8 + 8], rsi
inc qword [rbx]
mov r12, qword [rsp + 0xea8]
mov r13, qword [rsp + 0x58]
mov rsi, rbp
mov rbp, qword [rsp + 0x68]
xor eax, eax
cmp rsi, rax
je 0x1400072dc
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
xor esi, esi
cmp r14, rsi
jne 0x14000730a
mov word [rbp], si
mov rsi, qword [rsp + 0x50]
mov r8d, 0x514
mov rcx, rsi
mov rdx, rbp
call qword [sym.imp.KERNEL32.DLL_FindNextVolumeW]
xor ecx, ecx
cmp eax, ecx
jne 0x140006fa3
jmp 0x14000730f
mov rsi, qword [rsp + 0x50]
xor eax, eax
cmp rsi, rax
je 0x14000731f
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_FindVolumeClose]
mov rax, r15
add rsp, 0xe58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret