Function at 0x140006aa0
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.1400633a8
mov rax, qword [rsp + 0xf8]
lea rcx, [rax + 0x5a0]
lea rbp, [rax + 0xf08]
lea rsi, [rax + 0x398]
mov qword [rsp + 0x108], rcx
lea rcx, [rax + 0x618]
xor edi, edi
mov qword [rsp + 0xc8], rcx
lea rcx, [rax + 0x690]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xd8], rcx
lea rcx, [rax + 0x708]
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0xa8], rcx
lea rcx, [rbp + 0x320]
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0x60], rcx
lea rcx, [rsp + 0x78]
mov r13, rdi
call fcn.140063344
add rbp, 0x3f4
xor edx, edx
mov r8d, 0x3b80
mov rcx, rbp
mov qword [rsp + 0x68], 0xffffffffffffff9c
mov qword [rsp + 0xa0], rdi
mov qword [rsp + 0x118], rbp
call fcn.140102a90
cmp r15, rdi
mov r14, rsi
lea r11d, [rdi - 2]
cmovne r14, r15
mov dword [rbp + 4], r11d
mov dword [rbp], r11d
mov rax, rbx
mov word [rsi], di
mov r12d, edi
shr rax, 0x10
mov qword [rsp + 0xe8], r14
mov word [rsp + 0x1d0], di
mov ebp, eax
mov ecx, eax
mov esi, eax
and al, 0x48
and ecx, 0x10
and ebp, 8
and esi, 0x20
cmp al, 0x48
movsx rax, bx
mov qword [rsp + 0x128], rax
sete r12b
lea eax, [rdi + 2]
cmp r12d, edi
mov rbx, rdi
mov dword [rsp + 0x90], ecx
cmovne eax, edi
mov qword [rsp + 0xf0], rbx
mov qword [rsp + 0x120], rdi
mov dword [rsp + 0x80], eax
cmp r15, rdi
jne 0x140006c33
mov edx, 0x103
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov qword [rsp + 0x120], rax
cmp rax, 0xffffffffffffffff
je 0x140007647
mov eax, esi
neg eax
mov rax, qword [rsp + 0xa8]
sbb ecx, ecx
and ecx, 0x20
mov dword [rax], ecx
cmp r15, rdi
je 0x140006cca
lea rcx, [0x14011d098]
mov r8d, 4
mov rdx, r15
call qword [sym.imp.SHLWAPI.dll_StrCmpNW]
cmp eax, edi
jne 0x140006c8f
lea rax, [r15 + 8]
cmp word [rax], di
je 0x140006c8f
mov ecx, 0x3a
cmp cx, word [r15 + 0xa]
jne 0x140006c8f
mov qword [rsp + 0xf0], rax
movzx eax, word [rax]
mov word [rsp + 0x1d0], ax
jmp 0x140006cca
lea rcx, [0x14011d088]
mov r8d, 0xb
mov rdx, r15
call fcn.14005c788
cmp al, dil
je 0x140006cca
lea rax, [r15 + 0x16]
cmp word [rax], di
je 0x140006cca
cmp word [r15 + 0x18], di
je 0x140006cca
cmp word [r15 + 0x1a], di
cmovne rbx, rax
mov qword [rsp + 0xf0], rbx
movsxd rax, esi
mov esi, 0x5c
mov qword [rsp + 0x138], rax
movsxd rax, r12d
mov qword [rsp + 0x100], 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 + 0x110], r14
sub eax, 1
js 0x140006d1a
movsxd rcx, eax
cmp si, word [r14 + rcx*2]
jne 0x140006d1a
mov word [r14 + rcx*2], di
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp r15, rdi
je 0x140006d46
mov rcx, r14
call fcn.140006a4c
cmp eax, edi
je 0x140006d46
mov r8d, 7
mov rdx, rbx
mov rcx, r14
call fcn.14001d810
jmp 0x140006d6d
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 0x1400075af
cmp rax, rdi
je 0x1400075af
mov rsi, qword [rsp + 0x60]
xor edx, edx
lea r8d, [rdx + 0xc]
mov rcx, rsi
call fcn.140102a90
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r12, qword [rsp + 0xd0]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], r12
xor r9d, r9d
xor r8d, r8d
mov edx, 0x2d1080
mov rcx, rbx
mov dword [rsp + 0x28], 0xc
mov dword [rsi + 8], 0xffffffaa
mov dword [rsi + 4], 0xffffffaa
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, edi
je 0x140006de8
cmp dword [rsi + 4], edi
jge 0x140006df6
mov dword [rsi + 8], 0xffffffaa
mov dword [rsi + 4], 0xffffffaa
lea rbp, [r12 + 0x334]
xor edx, edx
mov r8d, 0x90
mov rcx, rbp
call fcn.140102a90
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], r12
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 r12d, edi
cmp eax, edi
je 0x140006e53
mov esi, dword [rbp]
movzx r12d, byte [rbp + 0x20]
jmp 0x140006e62
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]
cmp esi, 1
mov rsi, qword [rsp + 0x60]
mov ebp, edi
sete bpl
cmp dword [rsi + 4], edi
jl 0x140006e87
cmp dword [rsi + 8], edi
jge 0x140007061
mov rsi, qword [rsp + 0xf0]
lea rcx, [rsp + 0xe0]
call fcn.140063620
lea rcx, [rsp + 0xc0]
call fcn.140063620
mov ax, word [rsp + 0x1d0]
cmp ax, di
je 0x140006f8b
lea rdx, [rsp + 0xe0]
movzx ecx, ax
call fcn.140060000
mov rcx, qword [rsp + 0x88]
mov edx, 0x103
mov rsi, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140006f8b
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, 0x5c
dec eax
movsxd rcx, eax
mov rax, qword [rsp + 0x88]
cmp dx, word [rax + rcx*2]
jne 0x140006f17
mov word [rax + rcx*2], di
mov ecx, 0x3f
lea rdx, [rsp + 0xc0]
mov r8, rax
mov word [rax + 2], cx
mov rcx, rax
call fcn.14008b820
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, edi
mov rax, qword [rsp + 0x88]
je 0x140006f73
mov r8d, 0x103
mov rdx, rax
mov rcx, rbx
mov word [rax], di
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
cmp eax, edi
je 0x140006f82
jmp 0x140006eed
mov r14, rax
mov qword [rsp + 0xe8], rax
lea rsi, [rax + 0x16]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov rax, qword [rsp + 0x68]
cmp rax, 0xffffffffffffff9c
jg 0x140006fb0
mov rcx, qword [rsp + 0x1c8]
lea rdx, [rsp + 0x78]
mov r8, rsi
call fcn.14008b340
mov qword [rsp + 0x68], rax
cmp rax, rdi
jle 0x140007042
mov rbx, qword [rsp + 0x78]
add rbx, 4
cmp rsi, rdi
jne 0x1400070f7
lea rcx, [0x14011d070]
mov r8d, 0xb
mov rdx, r14
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
cmp eax, edi
jne 0x140007042
lea rax, [r14 + 0x16]
lea rdx, [rsp + 0x158]
lea rcx, [rsp + 0x70]
mov r8d, 1
mov qword [rsp + 0x70], rax
call fcn.1400780fc
cmp al, dil
jle 0x140007042
cmp qword [rsp + 0x68], rdi
mov esi, edi
jle 0x140007042
lea rdx, [rsp + 0x158]
mov r8d, 0x10
mov rcx, rbx
call fcn.14005b184
cmp eax, edi
je 0x1400070f7
inc esi
add rbx, 0x34
movsxd rax, esi
cmp rax, qword [rsp + 0x68]
jl 0x140007014
mov rsi, qword [rsp + 0x60]
lea rcx, [rsp + 0xc0]
call fcn.14005b104
lea rcx, [rsp + 0xe0]
call fcn.14005b104
mov rax, qword [rsp + 0x128]
cmp ax, di
jl 0x140007078
cwde
cmp eax, dword [rsi + 8]
jne 0x1400075aa
mov rcx, qword [rsp + 0x1c8]
cmp rcx, rdi
jl 0x140007092
movsxd rax, dword [rsi + 4]
cmp rcx, rax
jne 0x1400075aa
movsxd rax, dword [rsp + 0x90]
cmp rax, rdi
jne 0x140007631
mov rbx, qword [rsp + 0xd0]
mov r13, qword [rsp + 0x108]
mov rdx, qword [rbx + 0x33c]
mov rcx, r13
call fcn.1400e6d68
mov rdx, qword [rbx + 0x344]
mov rcx, qword [rsp + 0xc8]
call fcn.1400e6d68
cmp ebp, 1
mov rbp, qword [rsp + 0xd8]
mov rcx, rbp
jne 0x140007137
lea rdx, [rbx + 0x354]
xor r8d, r8d
call fcn.14005fc90
jmp 0x140007147
mov eax, dword [rbx + 0x10]
mov rsi, qword [rsp + 0x60]
mov rdx, qword [rsp + 0xd0]
mov dword [rsi + 4], eax
mov eax, dword [rbx + 0x14]
or ebp, 0x10
mov dword [rsi + 8], eax
mov eax, dword [rbx + 0x18]
mov dword [rsi], eax
mov rax, qword [rbx + 0x20]
mov r12d, dword [rbx + 0x1c]
mov qword [rdx + 0x33c], rax
mov rax, qword [rbx + 0x28]
mov qword [rdx + 0x344], rax
jmp 0x140007047
lea rdx, [0x14011d068]
mov r8d, r12d
call qword [sym.imp.USER32.dll_wsprintfW]
mov rbx, qword [rsp + 0xa8]
cmp qword [rsp + 0x138], rdi
je 0x14000717c
lea rdx, [rbx + 2]
cmp r15, rdi
mov rcx, r14
lea r9, [0x14011e890]
mov r8d, 0x13
cmovne rcx, r15
mov word [rdx], di
call fcn.140076554
mov r15d, dword [rsi]
or eax, 0xffffffff
cmp dword [rsi + 4], edi
cmovge eax, dword [rsi + 4]
or r14d, 0xffffffff
cmp dword [rsi + 8], edi
cmovge r14d, dword [rsi + 8]
mov dword [rsp + 0x84], eax
cmp qword [rsp + 0x100], rdi
je 0x1400071b5
mov r13, qword [rsp + 0x98]
mov word [r13], di
jmp 0x140007206
mov rcx, qword [rsp + 0xc8]
mov r8, qword [rsp + 0x110]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], r13
mov r13, qword [rsp + 0x98]
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x30], r15d
lea r9, [0x14011c638]
lea rdx, str._r_n_s_s__d__d__d__s__s__s_s
mov rcx, r13
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_wsprintfW]
mov rcx, qword [rsp + 0x1c0]
or ebp, 0xffffffff
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r12, qword [rsp + 0xe8]
movsxd rsi, dword [rsi + 4]
lea r9, [rsp + 0xa0]
mov rcx, r12
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0xb0], eax
mov rbx, r12
call fcn.14001d8c8
cmp rax, rdi
je 0x14000725e
mov rax, qword [rsp + 0xa0]
cmp rax, rdi
je 0x14000725e
cmp word [rax], di
cmovne rbx, rax
cmp qword [rsp + 0x150], rdi
je 0x140007562
mov rax, r13
cmp qword [rsp + 0x100], rdi
jne 0x140007298
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, 0x20
movsxd rcx, eax
lea rax, [r13 + rcx*2]
mov word [rax], dx
add rax, 2
jmp 0x14000729d
mov edx, 0x20
mov rcx, rax
mov word [rax], di
mov rbp, rax
sub rcx, r13
sar rcx, 1
mov qword [rsp + 0x70], rcx
mov cx, word [rsp + 0x1d0]
cmp cx, di
je 0x1400072d3
mov word [rax], cx
mov ecx, 0x3a
add rax, 4
mov word [rax - 2], cx
mov word [rax], di
jmp 0x1400072fe
mov rcx, qword [rsp + 0x60]
mov r9, qword [rsp + 0x118]
mov qword [rsp + 0x30], rbx
movsxd r8, dword [rcx + 8]
mov qword [rsp + 0x28], rdx
mov rdx, rsi
mov rcx, rax
mov qword [rsp + 0x20], rdi
call fcn.140077190
sub rax, rbp
sar rax, 1
cmp eax, edi
ja 0x14000755d
mov rax, qword [rsp + 0x68]
mov word [rbp - 2], di
cmp rax, 0xffffffffffffff9c
jg 0x140007335
mov rcx, qword [rsp + 0x1c8]
lea rdx, [rsp + 0x78]
xor r8d, r8d
call fcn.14008b340
mov qword [rsp + 0x68], rax
cmp rax, rdi
jle 0x14000755d
mov r13, qword [rsp + 0x78]
lea rcx, [0x14011d070]
mov r8d, 0xb
mov rdx, r12
add r13, 4
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
cmp eax, edi
jne 0x14000755d
lea rcx, [rsp + 0xb8]
mov dword [rsp + 0x94], edi
call fcn.140063344
mov eax, 0x3f
lea r9, [rsp + 0xb8]
mov word [r12 + 2], ax
lea rax, [rsp + 0x94]
lea rdx, str.SYSTEMMountedDevices
mov r8, r12
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.1400690c0
cmp dword [rsp + 0x94], 0x18
mov rbx, qword [rsp + 0xb8]
jne 0x1400073fa
lea rcx, str.DMIO:ID:
mov r8d, 8
mov rdx, rbx
call fcn.14005b184
cmp eax, edi
jne 0x1400073fa
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x140]
mov r8d, 0x10
call fcn.14001d78c
mov bl, 2
jmp 0x140007425
lea rax, [r12 + 0x16]
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x130]
mov r8d, 1
mov qword [rsp + 0x130], rax
call fcn.1400780fc
mov rbx, rax
lea rcx, [rsp + 0xb8]
call fcn.14005b104
cmp bl, dil
jle 0x14000755d
cmp qword [rsp + 0x68], rdi
mov r12d, edi
jle 0x14000755d
lea rbx, [r13 + 0x14]
lea rdx, [rsp + 0x140]
mov r8d, 0x10
mov rcx, r13
call fcn.14005b184
cmp eax, edi
jne 0x140007544
mov rdx, qword [rsp + 0x118]
lea rcx, [rsp + 0x140]
xor r8d, r8d
xor r9d, r9d
call fcn.14008ba90
mov esi, eax
mov eax, dword [rsp + 0x84]
cmp eax, edi
jl 0x1400074a3
cmp r14d, edi
jl 0x1400074b2
cmp r15d, edi
jge 0x140007522
jmp 0x1400074ad
mov eax, dword [rbx - 4]
mov dword [rsp + 0x84], eax
cmp r14d, edi
jge 0x1400074b5
mov r14d, dword [rbx]
cmp r15d, edi
jge 0x1400074be
mov r15d, dword [rbx + 4]
mov rcx, qword [rsp + 0xc8]
mov rbp, qword [rsp + 0x98]
mov r8, qword [rsp + 0x110]
mov qword [rsp + 0x48], rcx
mov rcx, qword [rsp + 0x108]
lea r9, [0x14011c638]
mov qword [rsp + 0x40], rcx
mov rcx, qword [rsp + 0xd8]
lea rdx, str._r_n_s_s__d__d__d__s__s__s
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], r15d
mov rcx, rbp
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_wsprintfW]
movsxd rcx, eax
lea rbp, [rbp + rcx*2]
cmp esi, edi
jle 0x140007544
mov word [rbp], si
mov eax, 0x20
add rbp, 4
mov word [rbp - 6], ax
mov eax, 0x3a
mov word [rbp - 2], ax
mov word [rbp], di
inc r12d
add r13, 0x34
add rbx, 0x34
movsxd rax, r12d
cmp rax, qword [rsp + 0x68]
jl 0x14000744d
mov rbp, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x98]
movsxd rsi, dword [rsp + 0x80]
mov rbx, qword [rsp + 0x1c0]
lea rdx, [rcx + rsi*2]
mov rcx, rbx
call fcn.14006375c
mov eax, dword [rsp + 0xb0]
mov r15, qword [rsp + 0x1d8]
sub eax, esi
mov dword [rsp + 0x80], edi
add eax, ebp
movsxd rcx, eax
mov rax, qword [rbx]
lea r13, [rax + rcx*2]
mov esi, 0x5c
mov rbx, qword [rsp + 0x120]
cmp rbx, rdi
je 0x1400075eb
mov r14, qword [rsp + 0xe8]
mov r8d, 0x103
mov rcx, rbx
mov rdx, r14
mov word [r14], di
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
cmp eax, edi
jne 0x140006cf0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
lea rcx, [rsp + 0xa0]
call fcn.14005b104
lea rcx, [rsp + 0x78]
call fcn.14005b104
lea rcx, [rsp + 0xf8]
call fcn.14005b104
cmp dword [rsp + 0x90], edi
cmovne r13, rdi
mov rax, r13
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.14007034c
mov rdi, qword [rbx]
lea rcx, [rsp + 0xa0]
call fcn.14005b104
lea rcx, [rsp + 0x78]
call fcn.14005b104
lea rcx, [rsp + 0xf8]
call fcn.14005b104
mov rax, rdi
jmp 0x14000761d