Function at 0x140006a40
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.140061420
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.1400613bc
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.1400fae60
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 0x140006bc8
mov edx, 0x103
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov qword [rsp + 0x120], rax
cmp rax, 0xffffffffffffffff
je 0x1400075f1
mov eax, esi
neg eax
mov rax, qword [rsp + 0xb8]
sbb ecx, ecx
and ecx, 0x20
mov dword [rax], ecx
cmp r15, rdi
je 0x140006c5f
lea rcx, [0x140116038]
mov r8d, 4
mov rdx, r15
call qword [sym.imp.SHLWAPI.dll_StrCmpNW]
cmp eax, edi
jne 0x140006c24
lea rax, [r15 + 8]
cmp word [rax], di
je 0x140006c24
mov ecx, 0x3a
cmp cx, word [r15 + 0xa]
jne 0x140006c24
mov qword [rsp + 0xe0], rax
movzx eax, word [rax]
mov word [rsp + 0x1d0], ax
jmp 0x140006c5f
lea rcx, [0x140116028]
mov r8d, 0xb
mov rdx, r15
call fcn.14005a82c
cmp al, dil
je 0x140006c5f
lea rax, [r15 + 0x16]
cmp word [rax], di
je 0x140006c5f
cmp word [r15 + 0x18], di
je 0x140006c5f
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 0x140006ca4
movsxd rcx, eax
cmp si, word [r14 + rcx*2]
jne 0x140006ca4
mov word [r14 + rcx*2], di
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp r15, rdi
je 0x140006cd0
mov rcx, r14
call fcn.1400069ec
cmp eax, edi
je 0x140006cd0
mov r8d, 7
mov rdx, rbx
mov rcx, r14
call fcn.14001d698
jmp 0x140006cf7
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 0x14000755e
cmp rax, rdi
je 0x14000755e
xor edx, edx
mov rcx, r13
lea r8d, [rdx + 0xc]
call fcn.1400fae60
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 0x140006d70
cmp dword [r13 + 4], edi
jge 0x140006d80
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.1400fae60
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 0x140006dda
mov esi, dword [rbp]
movzx r13d, byte [rbp + 0x20]
jmp 0x140006de9
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 0x140006e17
cmp dword [rdx + 0x328], edi
jge 0x140007068
mov rsi, qword [rsp + 0xe0]
lea rcx, [rsp + 0xb0]
call fcn.140061698
lea rcx, [rsp + 0xd0]
call fcn.140061698
mov ax, word [rsp + 0x1d0]
cmp ax, di
je 0x140006f45
lea rdx, [rsp + 0xb0]
movzx ecx, ax
call fcn.14005e014
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 0x140006f45
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 0x140006eb6
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.14008ad04
mov rdx, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, edi
je 0x140006f22
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 0x140006f3c
jmp 0x140006e81
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 0x140006f6d
mov rcx, qword [rsp + 0x1c8]
lea rdx, [rsp + 0x88]
mov r8, rsi
call fcn.14008a824
mov qword [rsp + 0x70], rax
cmp rax, rdi
jle 0x140006ffe
mov rbx, qword [rsp + 0x88]
add rbx, 4
cmp rsi, rdi
jne 0x140007027
lea rcx, [0x140116010]
mov r8d, 0xb
mov rdx, r14
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
cmp eax, edi
jne 0x140006ffe
lea rax, [r14 + 0x16]
lea rdx, [rsp + 0x158]
lea rcx, [rsp + 0x78]
mov r8d, 1
mov qword [rsp + 0x78], rax
call fcn.140074e1c
cmp al, dil
jle 0x140006ffe
cmp qword [rsp + 0x70], rdi
mov esi, edi
jle 0x140006ffe
lea rdx, [rsp + 0x158]
mov r8d, 0x10
mov rcx, rbx
call fcn.140059228
cmp eax, edi
je 0x140007027
inc esi
add rbx, 0x34
movsxd rax, esi
cmp rax, qword [rsp + 0x70]
jl 0x140006fd4
mov rsi, qword [rsp + 0x68]
lea rcx, [rsp + 0xd0]
call fcn.1400591f8
lea rcx, [rsp + 0xb0]
call fcn.1400591f8
mov rdx, qword [rsp + 0xa0]
jmp 0x14000706d
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 0x140007003
mov rsi, qword [rsp + 0x68]
mov rax, qword [rsp + 0x128]
cmp ax, di
jl 0x140007087
cwde
cmp eax, dword [rdx + 0x328]
jne 0x140007551
mov rcx, qword [rsp + 0x1c8]
cmp rcx, rdi
jl 0x1400070a4
movsxd rax, dword [rdx + 0x324]
cmp rcx, rax
jne 0x140007551
movsxd rax, dword [rsp + 0x98]
cmp rax, rdi
jne 0x1400075db
mov r12, qword [rsp + 0x118]
mov rdx, qword [rsi + 8]
mov rcx, r12
call fcn.1400dfd2c
mov rdx, qword [rsi + 0x10]
mov rcx, qword [rsp + 0xd8]
call fcn.1400dfd2c
mov rbx, qword [rsp + 0xe8]
mov rcx, rbx
cmp ebp, 1
jne 0x1400070f8
lea rdx, [rsi + 0x20]
xor r8d, r8d
call fcn.14005dbf4
jmp 0x140007108
lea rdx, [0x140116008]
mov r8d, r13d
call qword [sym.imp.USER32.dll_wsprintfW]
cmp qword [rsp + 0x138], rdi
je 0x140007136
mov rdx, qword [rsp + 0xb8]
lea r9, [0x140117830]
mov r8d, 0x13
add rdx, 2
mov rcx, r15
mov word [rdx], di
call fcn.140073b14
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, [0x1401155d8]
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.14001d750
cmp rax, rdi
je 0x14000720b
mov rax, qword [rsp + 0xa8]
cmp rax, rdi
je 0x14000720b
cmp word [rax], di
cmovne rbx, rax
cmp qword [rsp + 0x150], rdi
je 0x14000750a
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 0x14000726e
mov word [rax], cx
lea ecx, [rdx + 0x1a]
add rax, 4
mov word [rax - 2], cx
mov word [rax], di
jmp 0x140007294
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.1400746d4
sub rax, rsi
sar rax, 1
cmp eax, edi
ja 0x140007505
mov rax, qword [rsp + 0x70]
mov word [rsi - 2], di
cmp rax, 0xffffffffffffff9c
jg 0x1400072ce
mov rcx, qword [rsp + 0x1c8]
lea rdx, [rsp + 0x88]
xor r8d, r8d
call fcn.14008a824
mov qword [rsp + 0x70], rax
cmp rax, rdi
jle 0x140007505
mov r13, qword [rsp + 0x88]
lea rcx, [0x140116010]
mov r8d, 0xb
mov rdx, r14
add r13, 4
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
cmp eax, edi
jne 0x1400074fd
lea rcx, [rsp + 0xc8]
mov dword [rsp + 0x9c], edi
call fcn.1400613bc
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.140066f4c
cmp dword [rsp + 0x9c], 0x18
mov rbx, qword [rsp + 0xc8]
jne 0x140007395
lea rcx, str.DMIO:ID:
mov r8d, 8
mov rdx, rbx
call fcn.140059228
cmp eax, edi
jne 0x140007395
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x140]
mov r8d, 0x10
call fcn.14001d614
mov bl, 2
jmp 0x1400073bf
lea rax, [r14 + 0x16]
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x130]
mov r8d, 1
mov qword [rsp + 0x130], rax
call fcn.140074e1c
mov rbx, rax
lea rcx, [rsp + 0xc8]
call fcn.1400591f8
cmp bl, dil
jle 0x1400074fd
cmp qword [rsp + 0x70], rdi
mov r12d, edi
jle 0x1400074fd
mov r14d, dword [rsp + 0xf0]
lea rbx, [r13 + 0x14]
lea rdx, [rsp + 0x140]
mov r8d, 0x10
mov rcx, r13
call fcn.140059228
cmp eax, edi
jne 0x1400074dc
mov rdx, qword [rsp + 0x100]
lea rcx, [rsp + 0x140]
xor r8d, r8d
xor r9d, r9d
call fcn.14008af74
mov ebp, eax
mov eax, dword [rsp + 0x90]
cmp eax, edi
jl 0x140007441
cmp r15d, edi
jl 0x140007450
cmp r14d, edi
jge 0x1400074bc
jmp 0x14000744b
mov eax, dword [rbx - 4]
mov dword [rsp + 0x90], eax
cmp r15d, edi
jge 0x140007453
mov r15d, dword [rbx]
cmp r14d, edi
jge 0x14000745c
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, [0x1401155d8]
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 0x1400074dc
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 0x1400073ef
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.1400617d4
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 0x140007559
mov r13, qword [rsp + 0x80]
mov esi, 0x5c
mov rbx, qword [rsp + 0x120]
cmp rbx, rdi
je 0x140007592
mov r8d, 0x103
mov rdx, r14
mov rcx, rbx
mov word [r14], di
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
cmp eax, edi
jne 0x140006c7a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
lea rcx, [rsp + 0xa8]
call fcn.1400591f8
lea rcx, [rsp + 0x88]
call fcn.1400591f8
lea rcx, [rsp + 0xf8]
call fcn.1400591f8
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.14006d65c
mov rdi, qword [rbx]
lea rcx, [rsp + 0xa8]
call fcn.1400591f8
lea rcx, [rsp + 0x88]
call fcn.1400591f8
lea rcx, [rsp + 0xf8]
call fcn.1400591f8
mov rax, rdi
jmp 0x1400075c7