Function at 0x140006acc
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.140063028
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.140062fc4
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.140101f00
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 0x140006c5f
mov edx, 0x103
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov qword [rsp + 0x120], rax
cmp rax, 0xffffffffffffffff
je 0x14000766c
mov eax, esi
neg eax
mov rax, qword [rsp + 0xa8]
sbb ecx, ecx
and ecx, 0x20
mov dword [rax], ecx
cmp r15, rdi
je 0x140006cf6
lea rcx, [0x14011d078]
mov r8d, 4
mov rdx, r15
call qword [sym.imp.SHLWAPI.dll_StrCmpNW]
cmp eax, edi
jne 0x140006cbb
lea rax, [r15 + 8]
cmp word [rax], di
je 0x140006cbb
mov ecx, 0x3a
cmp cx, word [r15 + 0xa]
jne 0x140006cbb
mov qword [rsp + 0xf0], rax
movzx eax, word [rax]
mov word [rsp + 0x1d0], ax
jmp 0x140006cf6
lea rcx, [0x14011d068]
mov r8d, 0xb
mov rdx, r15
call fcn.14005c4dc
cmp al, dil
je 0x140006cf6
lea rax, [r15 + 0x16]
cmp word [rax], di
je 0x140006cf6
cmp word [r15 + 0x18], di
je 0x140006cf6
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 0x140006d46
movsxd rcx, eax
cmp si, word [r14 + rcx*2]
jne 0x140006d46
mov word [r14 + rcx*2], di
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp r15, rdi
je 0x140006d72
mov rcx, r14
call fcn.140006a78
cmp eax, edi
je 0x140006d72
mov r8d, 7
mov rdx, rbx
mov rcx, r14
call fcn.14001d85c
jmp 0x140006d99
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 0x1400075d4
cmp rax, rdi
je 0x1400075d4
mov rsi, qword [rsp + 0x60]
xor edx, edx
lea r8d, [rdx + 0xc]
mov rcx, rsi
call fcn.140101f00
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 0x140006e14
cmp dword [rsi + 4], edi
jge 0x140006e22
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.140101f00
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 0x140006e7f
mov esi, dword [rbp]
movzx r12d, byte [rbp + 0x20]
jmp 0x140006e8e
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 0x140006eb3
cmp dword [rsi + 8], edi
jge 0x14000708d
mov rsi, qword [rsp + 0xf0]
lea rcx, [rsp + 0xe0]
call fcn.1400632a0
lea rcx, [rsp + 0xc0]
call fcn.1400632a0
mov ax, word [rsp + 0x1d0]
cmp ax, di
je 0x140006fb7
lea rdx, [rsp + 0xe0]
movzx ecx, ax
call fcn.14005fc68
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 0x140006fb7
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 0x140006f43
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.14008ba28
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 0x140006f9f
mov r8d, 0x103
mov rdx, rax
mov rcx, rbx
mov word [rax], di
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
cmp eax, edi
je 0x140006fae
jmp 0x140006f19
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 0x140006fdc
mov rcx, qword [rsp + 0x1c8]
lea rdx, [rsp + 0x78]
mov r8, rsi
call fcn.14008b548
mov qword [rsp + 0x68], rax
cmp rax, rdi
jle 0x14000706e
mov rbx, qword [rsp + 0x78]
add rbx, 4
cmp rsi, rdi
jne 0x140007123
lea rcx, [0x14011d050]
mov r8d, 0xb
mov rdx, r14
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
cmp eax, edi
jne 0x14000706e
lea rax, [r14 + 0x16]
lea rdx, [rsp + 0x158]
lea rcx, [rsp + 0x70]
mov r8d, 1
mov qword [rsp + 0x70], rax
call fcn.140077d5c
cmp al, dil
jle 0x14000706e
cmp qword [rsp + 0x68], rdi
mov esi, edi
jle 0x14000706e
lea rdx, [rsp + 0x158]
mov r8d, 0x10
mov rcx, rbx
call fcn.14005af28
cmp eax, edi
je 0x140007123
inc esi
add rbx, 0x34
movsxd rax, esi
cmp rax, qword [rsp + 0x68]
jl 0x140007040
mov rsi, qword [rsp + 0x60]
lea rcx, [rsp + 0xc0]
call fcn.14005aef8
lea rcx, [rsp + 0xe0]
call fcn.14005aef8
mov rax, qword [rsp + 0x128]
cmp ax, di
jl 0x1400070a4
cwde
cmp eax, dword [rsi + 8]
jne 0x1400075cf
mov rcx, qword [rsp + 0x1c8]
cmp rcx, rdi
jl 0x1400070be
movsxd rax, dword [rsi + 4]
cmp rcx, rax
jne 0x1400075cf
movsxd rax, dword [rsp + 0x90]
cmp rax, rdi
jne 0x140007656
mov rbx, qword [rsp + 0xd0]
mov r13, qword [rsp + 0x108]
mov rdx, qword [rbx + 0x33c]
mov rcx, r13
call fcn.1400e62a0
mov rdx, qword [rbx + 0x344]
mov rcx, qword [rsp + 0xc8]
call fcn.1400e62a0
cmp ebp, 1
mov rbp, qword [rsp + 0xd8]
mov rcx, rbp
jne 0x140007163
lea rdx, [rbx + 0x354]
xor r8d, r8d
call fcn.14005f8f8
jmp 0x140007173
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 0x140007073
lea rdx, [0x14011d048]
mov r8d, r12d
call qword [sym.imp.USER32.dll_wsprintfW]
mov rbx, qword [rsp + 0xa8]
cmp qword [rsp + 0x138], rdi
je 0x1400071a1
lea rdx, [rbx + 2]
lea r9, [0x14011e870]
mov r8d, 0x13
mov rcx, r15
mov word [rdx], di
call fcn.1400761b4
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 0x1400071da
mov r13, qword [rsp + 0x98]
mov word [r13], di
jmp 0x14000722b
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, [0x14011c618]
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.14001d914
cmp rax, rdi
je 0x140007283
mov rax, qword [rsp + 0xa0]
cmp rax, rdi
je 0x140007283
cmp word [rax], di
cmovne rbx, rax
cmp qword [rsp + 0x150], rdi
je 0x140007587
mov rax, r13
cmp qword [rsp + 0x100], rdi
jne 0x1400072bd
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 0x1400072c2
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 0x1400072f8
mov word [rax], cx
mov ecx, 0x3a
add rax, 4
mov word [rax - 2], cx
mov word [rax], di
jmp 0x140007323
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.140076df0
sub rax, rbp
sar rax, 1
cmp eax, edi
ja 0x140007582
mov rax, qword [rsp + 0x68]
mov word [rbp - 2], di
cmp rax, 0xffffffffffffff9c
jg 0x14000735a
mov rcx, qword [rsp + 0x1c8]
lea rdx, [rsp + 0x78]
xor r8d, r8d
call fcn.14008b548
mov qword [rsp + 0x68], rax
cmp rax, rdi
jle 0x140007582
mov r13, qword [rsp + 0x78]
lea rcx, [0x14011d050]
mov r8d, 0xb
mov rdx, r12
add r13, 4
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
cmp eax, edi
jne 0x140007582
lea rcx, [rsp + 0xb8]
mov dword [rsp + 0x94], edi
call fcn.140062fc4
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.140068d6c
cmp dword [rsp + 0x94], 0x18
mov rbx, qword [rsp + 0xb8]
jne 0x14000741f
lea rcx, str.DMIO:ID:
mov r8d, 8
mov rdx, rbx
call fcn.14005af28
cmp eax, edi
jne 0x14000741f
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x140]
mov r8d, 0x10
call fcn.14001d7d8
mov bl, 2
jmp 0x14000744a
lea rax, [r12 + 0x16]
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x130]
mov r8d, 1
mov qword [rsp + 0x130], rax
call fcn.140077d5c
mov rbx, rax
lea rcx, [rsp + 0xb8]
call fcn.14005aef8
cmp bl, dil
jle 0x140007582
cmp qword [rsp + 0x68], rdi
mov r12d, edi
jle 0x140007582
lea rbx, [r13 + 0x14]
lea rdx, [rsp + 0x140]
mov r8d, 0x10
mov rcx, r13
call fcn.14005af28
cmp eax, edi
jne 0x140007569
mov rdx, qword [rsp + 0x118]
lea rcx, [rsp + 0x140]
xor r8d, r8d
xor r9d, r9d
call fcn.14008bc98
mov esi, eax
mov eax, dword [rsp + 0x84]
cmp eax, edi
jl 0x1400074c8
cmp r14d, edi
jl 0x1400074d7
cmp r15d, edi
jge 0x140007547
jmp 0x1400074d2
mov eax, dword [rbx - 4]
mov dword [rsp + 0x84], eax
cmp r14d, edi
jge 0x1400074da
mov r14d, dword [rbx]
cmp r15d, edi
jge 0x1400074e3
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, [0x14011c618]
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 0x140007569
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 0x140007472
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.1400633dc
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 0x140007610
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 0x140006d1c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
lea rcx, [rsp + 0xa0]
call fcn.14005aef8
lea rcx, [rsp + 0x78]
call fcn.14005aef8
lea rcx, [rsp + 0xf8]
call fcn.14005aef8
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.14006ffb0
mov rdi, qword [rbx]
lea rcx, [rsp + 0xa0]
call fcn.14005aef8
lea rcx, [rsp + 0x78]
call fcn.14005aef8
lea rcx, [rsp + 0xf8]
call fcn.14005aef8
mov rax, rdi
jmp 0x140007642