Function at 0x140006a98
Capabilities:
Enumerate disk volumes
Get disk information via ioctl

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x178
lea rcx, [rax - 0xc0]
mov edx, 0x527c
mov r15, r9
mov rbx, r8
call fcn.140061f7c
mov rax, qword [rsp + 0xf8]
lea rcx, [rax + 0x5a0]
lea r14, [rax + 0xf08]
xor edi, edi
mov qword [rsp + 0x118], rcx
lea rcx, [rax + 0x618]
lea r13, [r14 + 0x320]
mov qword [rsp + 0xd8], rcx
lea rcx, [rax + 0x690]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0xe8], rcx
lea rcx, [rax + 0x708]
lea rbp, [rax + 0x398]
mov qword [rsp + 0xb8], rcx
lea rcx, [rsp + 0x88]
mov qword [rsp + 0xa0], r14
mov r12, rdi
mov qword [rsp + 0x80], r13
call fcn.140061f18
lea rsi, [r14 + 0x334]
xor edx, edx
mov r8d, 0x3b80
mov qword [rsp + 0x68], rsi
lea rsi, [r14 + 0x3f4]
mov qword [rsp + 0x70], 0xffffffffffffff9c
mov rcx, rsi
mov qword [rsp + 0xa8], rdi
mov qword [rsp + 0x100], rsi
call fcn.1400fdc00
mov r14, rbp
lea r11d, [rdi - 2]
mov dword [rsi + 4], r11d
mov dword [rsi], r11d
cmp r15, rdi
cmovne r14, r15
mov rsi, rbx
mov word [rbp], di
shr rsi, 0x10
mov dword [rsp + 0x94], 2
mov word [rsp + 0x1d0], di
mov eax, esi
mov ebp, esi
and esi, 0x20
and eax, 0x10
and ebp, 8
mov qword [rsp + 0x110], r14
mov dword [rsp + 0x98], eax
movsx rax, bx
mov rbx, rdi
mov qword [rsp + 0x120], rdi
mov qword [rsp + 0xe0], rbx
mov qword [rsp + 0x128], rax
cmp r15, rdi
jne 0x140006c20
mov edx, 0x103
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov qword [rsp + 0x120], rax
cmp rax, 0xffffffffffffffff
je 0x140007649
mov eax, esi
neg eax
mov rax, qword [rsp + 0xb8]
sbb ecx, ecx
and ecx, 0x20
mov dword [rax], ecx
cmp r15, rdi
je 0x140006cb7
lea rcx, [0x140118048]
mov r8d, 4
mov rdx, r15
call qword [sym.imp.SHLWAPI.dll_StrCmpNW]
cmp eax, edi
jne 0x140006c7c
lea rax, [r15 + 8]
cmp word [rax], di
je 0x140006c7c
mov ecx, 0x3a
cmp cx, word [r15 + 0xa]
jne 0x140006c7c
mov qword [rsp + 0xe0], rax
movzx eax, word [rax]
mov word [rsp + 0x1d0], ax
jmp 0x140006cb7
lea rcx, [0x140118038]
mov r8d, 0xb
mov rdx, r15
call fcn.14005af04
cmp al, dil
je 0x140006cb7
lea rax, [r15 + 0x16]
cmp word [rax], di
je 0x140006cb7
cmp word [r15 + 0x18], di
je 0x140006cb7
cmp word [r15 + 0x1a], di
cmovne rbx, rax
mov qword [rsp + 0xe0], rbx
movsxd rax, esi
mov esi, 0x5c
mov qword [rsp + 0x138], rax
movsxd rax, ebp
mov qword [rsp + 0x150], rax
mov rcx, r14
mov ebx, 0x80000000
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov qword [rsp + 0x108], r14
sub eax, 1
js 0x140006cfc
movsxd rcx, eax
cmp si, word [r14 + rcx*2]
jne 0x140006cfc
mov word [r14 + rcx*2], di
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp r15, rdi
je 0x140006d28
mov rcx, r14
call fcn.140006a44
cmp eax, edi
je 0x140006d28
mov r8d, 7
mov rdx, rbx
mov rcx, r14
call fcn.14001d964
jmp 0x140006d4f
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov edx, ebx
lea r8d, [r9 + 7]
mov rcx, r14
mov dword [rsp + 0x28], 0x2000080
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400075b6
cmp rax, rdi
je 0x1400075b6
xor edx, edx
mov rcx, r13
lea r8d, [rdx + 0xc]
call fcn.1400fdc00
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [rsp + 0xa0]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rsi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x2d1080
mov rcx, rbx
mov dword [rsp + 0x28], 0xc
mov dword [r13 + 8], 0xffffffaa
mov dword [r13 + 4], 0xffffffaa
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, edi
je 0x140006dc8
cmp dword [r13 + 4], edi
jge 0x140006dd8
mov dword [r13 + 8], 0xffffffaa
mov dword [r13 + 4], 0xffffffaa
mov rbp, qword [rsp + 0x68]
xor edx, edx
mov r8d, 0x90
mov rcx, rbp
call fcn.1400fdc00
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rsi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x70048
mov rcx, rbx
mov dword [rsp + 0x28], 0x90
mov dword [rbp + 0x18], 0xffffffaa
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov esi, edi
mov r13d, edi
cmp eax, edi
je 0x140006e32
mov esi, dword [rbp]
movzx r13d, byte [rbp + 0x20]
jmp 0x140006e41
mov qword [rbp + 0x10], rdi
mov qword [rbp + 8], rdi
mov dword [rbp + 0x18], 0xffffffaa
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rsp + 0xa0]
cmp esi, 1
mov ebp, edi
sete bpl
cmp dword [rdx + 0x324], edi
jl 0x140006e6f
cmp dword [rdx + 0x328], edi
jge 0x1400070c0
mov rsi, qword [rsp + 0xe0]
lea rcx, [rsp + 0xb0]
call fcn.1400621f4
lea rcx, [rsp + 0xd0]
call fcn.1400621f4
mov ax, word [rsp + 0x1d0]
cmp ax, di
je 0x140006f9d
lea rdx, [rsp + 0xb0]
movzx ecx, ax
call fcn.14005e6e8
mov rcx, qword [rsp + 0x60]
mov edx, 0x103
add rcx, 0x398
mov rsi, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140006f9d
mov rcx, qword [rsp + 0x60]
add rcx, 0x398
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8d, 0x5c
dec eax
movsxd rcx, eax
mov rax, qword [rsp + 0x60]
cmp r8w, word [rax + rcx*2 + 0x398]
jne 0x140006f0e
mov word [rax + rcx*2 + 0x398], di
mov ecx, 0x3f
lea r8, [rax + 0x398]
lea rdx, [rsp + 0xd0]
mov word [rax + 0x39a], cx
lea rcx, [rax + 0x398]
call fcn.14008d3d4
mov rdx, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, edi
je 0x140006f7a
mov rcx, qword [rsp + 0x60]
mov r8d, 0x103
lea rdx, [rcx + 0x398]
mov word [rcx + 0x398], di
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
cmp eax, edi
je 0x140006f94
jmp 0x140006ed9
mov rax, qword [rsp + 0x60]
add rax, 0x398
mov r14, rax
mov qword [rsp + 0x110], rax
lea rsi, [rax + 0x16]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov rax, qword [rsp + 0x70]
cmp rax, 0xffffffffffffff9c
jg 0x140006fc5
mov rcx, qword [rsp + 0x1c8]
lea rdx, [rsp + 0x88]
mov r8, rsi
call fcn.14008cef4
mov qword [rsp + 0x70], rax
cmp rax, rdi
jle 0x140007056
mov rbx, qword [rsp + 0x88]
add rbx, 4
cmp rsi, rdi
jne 0x14000707f
lea rcx, [0x140118020]
mov r8d, 0xb
mov rdx, r14
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
cmp eax, edi
jne 0x140007056
lea rax, [r14 + 0x16]
lea rdx, [rsp + 0x158]
lea rcx, [rsp + 0x78]
mov r8d, 1
mov qword [rsp + 0x78], rax
call fcn.140075b04
cmp al, dil
jle 0x140007056
cmp qword [rsp + 0x70], rdi
mov esi, edi
jle 0x140007056
lea rdx, [rsp + 0x158]
mov r8d, 0x10
mov rcx, rbx
call fcn.140059950
cmp eax, edi
je 0x14000707f
inc esi
add rbx, 0x34
movsxd rax, esi
cmp rax, qword [rsp + 0x70]
jl 0x14000702c
mov rsi, qword [rsp + 0x68]
lea rcx, [rsp + 0xd0]
call fcn.140059920
lea rcx, [rsp + 0xb0]
call fcn.140059920
mov rdx, qword [rsp + 0xa0]
jmp 0x1400070c5
mov eax, dword [rbx + 0x10]
mov rsi, qword [rsp + 0xa0]
or ebp, 0x10
mov dword [rsi + 0x324], eax
mov eax, dword [rbx + 0x14]
mov dword [rsi + 0x328], eax
mov eax, dword [rbx + 0x18]
mov dword [rsi + 0x320], eax
mov rax, qword [rbx + 0x20]
mov rsi, qword [rsp + 0x68]
mov r13d, dword [rbx + 0x1c]
mov qword [rsi + 8], rax
mov rax, qword [rbx + 0x28]
mov qword [rsi + 0x10], rax
jmp 0x14000705b
mov rsi, qword [rsp + 0x68]
mov rax, qword [rsp + 0x128]
cmp ax, di
jl 0x1400070df
cwde
cmp eax, dword [rdx + 0x328]
jne 0x1400075a9
mov rcx, qword [rsp + 0x1c8]
cmp rcx, rdi
jl 0x1400070fc
movsxd rax, dword [rdx + 0x324]
cmp rcx, rax
jne 0x1400075a9
movsxd rax, dword [rsp + 0x98]
cmp rax, rdi
jne 0x140007633
mov r12, qword [rsp + 0x118]
mov rdx, qword [rsi + 8]
mov rcx, r12
call fcn.1400e23d0
mov rdx, qword [rsi + 0x10]
mov rcx, qword [rsp + 0xd8]
call fcn.1400e23d0
mov rbx, qword [rsp + 0xe8]
mov rcx, rbx
cmp ebp, 1
jne 0x140007150
lea rdx, [rsi + 0x20]
xor r8d, r8d
call fcn.14005e2c8
jmp 0x140007160
lea rdx, [0x140118018]
mov r8d, r13d
call qword [sym.imp.USER32.dll_wsprintfW]
cmp qword [rsp + 0x138], rdi
je 0x14000718e
mov rdx, qword [rsp + 0xb8]
lea r9, [0x140119840]
mov r8d, 0x13
add rdx, 2
mov rcx, r15
mov word [rdx], di
call fcn.1400747fc
mov r13, qword [rsp + 0x80]
mov rdx, qword [rsp + 0xb8]
mov r8, qword [rsp + 0x108]
mov eax, dword [r13]
mov qword [rsp + 0x50], rdx
mov rdx, qword [rsp + 0xd8]
mov qword [rsp + 0x48], rdx
or ecx, 0xffffffff
cmp dword [r13 + 4], edi
cmovge ecx, dword [r13 + 4]
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], eax
or r15d, 0xffffffff
cmp dword [r13 + 8], edi
cmovge r15d, dword [r13 + 8]
mov dword [rsp + 0x90], ecx
lea r9, [0x1401175e8]
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], ecx
mov rcx, qword [rsp + 0x60]
lea rdx, str._r_n_s_s__d__d__d__s__s__s_s
mov dword [rsp + 0xf0], eax
call qword [sym.imp.USER32.dll_wsprintfW]
mov rcx, qword [rsp + 0x1c0]
or esi, 0xffffffff
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rbp, dword [r13 + 4]
lea r9, [rsp + 0xa8]
xor r8d, r8d
xor edx, edx
mov rcx, r14
mov dword [rsp + 0xc0], eax
mov rbx, r14
call fcn.14001da1c
cmp rax, rdi
je 0x140007263
mov rax, qword [rsp + 0xa8]
cmp rax, rdi
je 0x140007263
cmp word [rax], di
cmovne rbx, rax
cmp qword [rsp + 0x150], rdi
je 0x140007562
mov rsi, qword [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, 0x20
movsxd rcx, eax
lea rax, [rsi + rcx*2]
mov word [rax], dx
add rax, 2
mov rcx, rax
mov word [rax], di
sub rcx, rsi
mov rsi, rax
sar rcx, 1
mov qword [rsp + 0x78], rcx
mov cx, word [rsp + 0x1d0]
cmp cx, di
je 0x1400072c6
mov word [rax], cx
lea ecx, [rdx + 0x1a]
add rax, 4
mov word [rax - 2], cx
mov word [rax], di
jmp 0x1400072ec
movsxd r8, dword [r13 + 8]
mov r9, qword [rsp + 0x100]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rdx
mov rcx, rax
mov rdx, rbp
mov qword [rsp + 0x20], rdi
call fcn.1400753bc
sub rax, rsi
sar rax, 1
cmp eax, edi
ja 0x14000755d
mov rax, qword [rsp + 0x70]
mov word [rsi - 2], di
cmp rax, 0xffffffffffffff9c
jg 0x140007326
mov rcx, qword [rsp + 0x1c8]
lea rdx, [rsp + 0x88]
xor r8d, r8d
call fcn.14008cef4
mov qword [rsp + 0x70], rax
cmp rax, rdi
jle 0x14000755d
mov r13, qword [rsp + 0x88]
lea rcx, [0x140118020]
mov r8d, 0xb
mov rdx, r14
add r13, 4
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
cmp eax, edi
jne 0x140007555
lea rcx, [rsp + 0xc8]
mov dword [rsp + 0x9c], edi
call fcn.140061f18
mov eax, 0x3f
lea r9, [rsp + 0xc8]
mov word [r14 + 2], ax
lea rax, [rsp + 0x9c]
lea rdx, str.SYSTEMMountedDevices
mov r8, r14
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.140067be0
cmp dword [rsp + 0x9c], 0x18
mov rbx, qword [rsp + 0xc8]
jne 0x1400073ed
lea rcx, str.DMIO:ID:
mov r8d, 8
mov rdx, rbx
call fcn.140059950
cmp eax, edi
jne 0x1400073ed
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x140]
mov r8d, 0x10
call fcn.14001d8e0
mov bl, 2
jmp 0x140007417
lea rax, [r14 + 0x16]
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x130]
mov r8d, 1
mov qword [rsp + 0x130], rax
call fcn.140075b04
mov rbx, rax
lea rcx, [rsp + 0xc8]
call fcn.140059920
cmp bl, dil
jle 0x140007555
cmp qword [rsp + 0x70], rdi
mov r12d, edi
jle 0x140007555
mov r14d, dword [rsp + 0xf0]
lea rbx, [r13 + 0x14]
lea rdx, [rsp + 0x140]
mov r8d, 0x10
mov rcx, r13
call fcn.140059950
cmp eax, edi
jne 0x140007534
mov rdx, qword [rsp + 0x100]
lea rcx, [rsp + 0x140]
xor r8d, r8d
xor r9d, r9d
call fcn.14008d644
mov ebp, eax
mov eax, dword [rsp + 0x90]
cmp eax, edi
jl 0x140007499
cmp r15d, edi
jl 0x1400074a8
cmp r14d, edi
jge 0x140007514
jmp 0x1400074a3
mov eax, dword [rbx - 4]
mov dword [rsp + 0x90], eax
cmp r15d, edi
jge 0x1400074ab
mov r15d, dword [rbx]
cmp r14d, edi
jge 0x1400074b4
mov r14d, dword [rbx + 4]
mov rcx, qword [rsp + 0xd8]
mov rsi, qword [rsp + 0x60]
mov r8, qword [rsp + 0x108]
mov qword [rsp + 0x48], rcx
mov rcx, qword [rsp + 0x118]
lea r9, [0x1401175e8]
mov qword [rsp + 0x40], rcx
mov rcx, qword [rsp + 0xe8]
lea rdx, str._r_n_s_s__d__d__d__s__s__s
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], r14d
mov rcx, rsi
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_wsprintfW]
movsxd rcx, eax
lea rsi, [rsi + rcx*2]
cmp ebp, edi
jle 0x140007534
mov word [rsi], bp
mov eax, 0x20
add rsi, 4
mov word [rsi - 6], ax
mov eax, 0x3a
mov word [rsi - 2], ax
mov word [rsi], di
inc r12d
add r13, 0x34
add rbx, 0x34
movsxd rax, r12d
cmp rax, qword [rsp + 0x70]
jl 0x140007447
mov r14, qword [rsp + 0x110]
mov r13, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x60]
movsxd rbp, dword [rsp + 0x94]
mov rbx, qword [rsp + 0x1c0]
lea rdx, [rcx + rbp*2]
mov rcx, rbx
call fcn.140062330
mov eax, dword [rsp + 0xc0]
mov r15, qword [rsp + 0x1d8]
sub eax, ebp
mov dword [rsp + 0x94], edi
add eax, esi
movsxd rcx, eax
mov rax, qword [rbx]
lea r12, [rax + rcx*2]
jmp 0x1400075b1
mov r13, qword [rsp + 0x80]
mov esi, 0x5c
mov rbx, qword [rsp + 0x120]
cmp rbx, rdi
je 0x1400075ea
mov r8d, 0x103
mov rdx, r14
mov rcx, rbx
mov word [r14], di
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
cmp eax, edi
jne 0x140006cd2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
lea rcx, [rsp + 0xa8]
call fcn.140059920
lea rcx, [rsp + 0x88]
call fcn.140059920
lea rcx, [rsp + 0xf8]
call fcn.140059920
cmp dword [rsp + 0x98], edi
cmovne r12, rdi
mov rax, r12
add rsp, 0x178
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rbx, qword [rsp + 0x1c0]
mov rdx, r14
mov rcx, rbx
call fcn.14006e344
mov rdi, qword [rbx]
lea rcx, [rsp + 0xa8]
call fcn.140059920
lea rcx, [rsp + 0x88]
call fcn.140059920
lea rcx, [rsp + 0xf8]
call fcn.140059920
mov rax, rdi
jmp 0x14000761f