Function at 0x140006090
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x308]
sub rsp, 0x408
mov rax, qword [0x140193440]
xor rax, rsp
mov qword [rbp + 0x2f0], rax
xorps xmm0, xmm0
mov qword [rsp + 0x70], rdx
mov ebx, ecx
mov dword [rsp + 0x6c], ecx
xor r12d, r12d
mov dword [rsp + 0x54], r8d
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x60], r12
mov edx, 8
mov qword [rsp + 0x58], rdi
mov ecx, 0x10
mov dword [rsp + 0x48], r12d
mov r13, rdi
mov dword [rsp + 0x50], 1
movups xmmword [rbp + 0x50], xmm0
mov r15d, r9d
mov dword [rsp + 0x4c], 0x10
movups xmmword [rbp + 0x60], xmm0
xor r14d, r14d
movups xmmword [rbp + 0x70], xmm0
movups xmmword [rbp + 0x80], xmm0
movups xmmword [rbp + 0x90], xmm0
movups xmmword [rbp + 0xa0], xmm0
movups xmmword [rbp + 0xb0], xmm0
movups xmmword [rbp + 0xc0], xmm0
call fcn.1400c4f6c
mov qword [rsp + 0x40], rax
mov rsi, rax
test rax, rax
jne 0x140006159
lea rcx, str.Could_not_allocate_string_array
call fcn.14004f2f0
test ebx, ebx
js 0x1400061e0
lea eax, [rbx - 0x80]
cmp eax, 0x40
jbe 0x140006182
mov r8d, 0x107
lea rdx, str.D:_a_rufus_rufus_srcdrive.c
lea rcx, str._DriveIndex___DRIVE_INDEX_MIN____DriveIndex___DRIVE_INDEX_MAX_
call fcn.1400fbe54
lea eax, [rbx - 0x80]
mov dword [rsp + 0x68], eax
cmp eax, 0x40
ja 0x1400061e0
nop
test r12d, r12d
jne 0x140006237
mov edx, 0x104
lea rcx, [rbp + 0xd0]
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
mov qword [rsp + 0x58], rax
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140006255
test r15d, r15d
jne 0x1400061d6
call fcn.14004fba0
mov rdx, rax
lea rcx, str.Could_not_access_first_GUID_volume:__s
call fcn.14004f2f0
mov r12, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x40]
test rsi, rsi
je 0x140006209
test r14d, r14d
je 0x140006209
mov rbx, rsi
mov edi, r14d
mov rcx, qword [rbx]
call fcn.1400e8c70
mov qword [rbx], 0
lea rbx, [rbx + 8]
sub rdi, 1
jne 0x1400061f0
mov rcx, rsi
call fcn.1400e8c70
mov rax, r12
mov rcx, qword [rbp + 0x2f0]
xor rcx, rsp
call fcn.1400b2a30
add rsp, 0x408
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov r8d, 0x104
lea rdx, [rbp + 0xd0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextVolumeA]
test eax, eax
je 0x140006637
lea rax, [rbp + 0xd0]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140006263
cmp rbx, 4
ja 0x14000628b
mov r8d, 0x11b
lea rdx, str.D:_a_rufus_rufus_srcdrive.c
lea rcx, str.len___4
call fcn.1400fbe54
mov r8d, 4
lea rdx, [0x140155d40]
lea rcx, [rbp + 0xd0]
call fcn.1400fe258
test eax, eax
je 0x1400062c1
mov r8d, 0x11c
lea rdx, str.D:_a_rufus_rufus_srcdrive.c
lea rcx, str.safe_strnicmp_volume_name__volume_start__4___0
call fcn.1400fbe54
cmp byte [rbp + rbx + 0xcf], 0x5c
lea rsi, [rbp + rbx + 0xcf]
je 0x1400062ec
mov r8d, 0x11d
lea rdx, str.D:_a_rufus_rufus_srcdrive.c
lea rcx, str.volume_name_len___1___
call fcn.1400fbe54
lea rcx, [rbp + 0xd0]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
add eax, 0xfffffffe
cmp eax, 1
ja 0x1400065ef
dec rbx
cmp rbx, 0x104
jae 0x1400066f2
mov r8d, 0x104
mov byte [rbp + rbx + 0xd0], 0
lea rdx, [rbp + 0x1e0]
lea rcx, [rbp + 0xd4]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
jne 0x140006363
test r15d, r15d
jne 0x14000635b
call fcn.14004fba0
mov r8, rax
lea rdx, [rbp + 0xd0]
lea rcx, str.Failed_to_get_device_path_for_GUID_volume__s:__s
call fcn.14004f2f0
inc r12d
jmp 0x140006190
xor edi, edi
lea rbx, str.DeviceCdRom
nop dword [rax]
mov rdx, qword [rbx]
test rdx, rdx
jne 0x14000637d
xor r8d, r8d
jmp 0x14000638e
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140006384
lea rcx, [rbp + 0x1e0]
call fcn.1400fe258
test eax, eax
je 0x1400063eb
inc edi
add rbx, 8
cmp edi, 2
jb 0x140006370
lea rcx, [rbp + 0xd0]
call fcn.140050890
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x140006415
test r15d, r15d
jne 0x140006408
call fcn.14004fba0
mov r8, rax
lea rdx, [rbp + 0xd0]
lea rcx, str.Could_not_open_GUID_volume__s:__s
call fcn.14004f2f0
mov rdi, qword [rsp + 0x58]
inc r12d
jmp 0x140006190
cmp edi, 2
jae 0x1400063a9
test r15d, r15d
jne 0x140006408
lea rdx, [rbp + 0x1e0]
lea rcx, str.Skipping_GUID_volume_for__s
call fcn.14004f2f0
mov rdi, qword [rsp + 0x58]
inc r12d
jmp 0x140006190
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
xor r9d, r9d
lea rax, [rbp - 0x80]
mov dword [rsp + 0x28], 0xc8
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x560000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1400065b4
cmp dword [rsp + 0x48], 0
je 0x1400065b4
test r13, r13
je 0x140006475
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r13, 0xffffffffffffffff
mov eax, dword [rbp - 0x80]
test eax, eax
jne 0x14000649d
test r15d, r15d
jne 0x1400065ef
lea rdx, [rbp + 0xd0]
lea rcx, str.Ignoring_volume__s_because_it_has_no_extents...
call fcn.14004f2f0
jmp 0x1400065ef
cmp eax, 1
je 0x1400064c3
test r15d, r15d
jne 0x1400065ef
lea rdx, [rbp + 0xd0]
lea rcx, str.Ignoring_volume__s_because_it_has_more_than_one_extent__RAID__...
call fcn.14004f2f0
jmp 0x1400065ef
mov eax, dword [rsp + 0x68]
cmp dword [rbp - 0x78], eax
jne 0x1400065ef
cmp r14d, 0x10
je 0x140006602
cmp dword [rsp + 0x54], 0
je 0x1400064e4
mov byte [rsi], 0x5c
mov rsi, qword [rsp + 0x40]
lea rbx, [r14*8]
mov rax, qword [rbp - 0x70]
mov qword [rbp + rbx + 0x50], rax
test rsi, rsi
je 0x140006568
mov eax, dword [rsp + 0x4c]
cmp r14d, eax
jne 0x140006542
add eax, eax
mov rcx, rsi
mov edx, eax
mov rdi, rsi
shl rdx, 3
mov dword [rsp + 0x4c], eax
call fcn.1400c5b50
mov qword [rsp + 0x40], rax
mov rsi, rax
test rax, rax
jne 0x140006542
mov rcx, rdi
call fcn.1400e8c70
lea rcx, str.Could_not_reallocate_string_array
call fcn.14004f2f0
jmp 0x140006568
lea rcx, [rbp + 0xd0]
call fcn.1400fc834
mov qword [rbx + rsi], rax
test rax, rax
jne 0x140006565
lea rcx, str.Could_not_store_string_in_array
call fcn.14004f2f0
jmp 0x140006568
inc r14d
test r15d, r15d
jne 0x1400065ef
cmp dword [rsp + 0x50], r15d
je 0x140006592
cmp dword [0x1401e87c0], r15d
mov dword [rsp + 0x50], r15d
je 0x1400065ef
lea rcx, str.Windows_volumes_from_this_device:
call fcn.14004f2f0
cmp dword [0x1401e87c0], 0
je 0x1400065ef
mov r8, qword [rbp - 0x70]
lea rdx, [rbp + 0xd0]
lea rcx, str.__s___lld
call fcn.14004f2f0
jmp 0x1400065ef
test r15d, r15d
jne 0x1400065da
test eax, eax
je 0x1400065c6
lea rax, str._empty_data_
jmp 0x1400065cb
call fcn.14004fba0
mov rdx, rax
lea rcx, str.Could_not_get_Disk_Extents:__s
call fcn.14004f2f0
test r13, r13
je 0x1400065ef
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r13, 0xffffffffffffffff
inc r12d
cmp r13, 0xffffffffffffffff
jne 0x14000665b
mov rdi, qword [rsp + 0x58]
jmp 0x140006190
mov edx, 0x10
lea rcx, str.Error:_Trying_to_process_a_disk_with_more_than__d_partitions_
call fcn.14004f2f0
mov r12, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x58]
cmp rcx, 0xffffffffffffffff
je 0x1400061e0
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
jmp 0x1400061e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x14000665b
test r15d, r15d
jne 0x14000665b
call fcn.14004fba0
mov rdx, rax
lea rcx, str.Could_not_access_next_GUID_volume:__s
call fcn.14004f2f0
test r14d, r14d
je 0x140006613
mov rbx, qword [rsp + 0x70]
xor eax, eax
test r14d, r14d
je 0x140006683
nop dword [rax]
test rbx, rbx
je 0x1400066ca
cmp rbx, qword [rbp + rax*8 + 0x50]
je 0x1400066ca
inc eax
cmp eax, r14d
jb 0x140006670
mov r8d, dword [rsp + 0x54]
mov r9d, r15d
mov ecx, dword [rsp + 0x6c]
mov rdx, rbx
call fcn.140006700
mov r12, rax
test rax, rax
je 0x140006618
mov edx, 0x20
mov rcx, rax
call fcn.1400b41b4
test rax, rax
je 0x140006618
lea rcx, str.Warning:_Using_physical_device_to_access_partition_data
call fcn.14004f2f0
jmp 0x140006618
cmp eax, r14d
jae 0x140006683
mov rsi, qword [rsp + 0x40]
mov rcx, qword [rsi + rax*8]
test rcx, rcx
jne 0x1400066e5
xor r12d, r12d
jmp 0x14000661d
call fcn.1400fc834
mov r12, rax
jmp 0x14000661d
call fcn.1400b2b58
int3