Function at 0x140005a00
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 dword [rsp + 0x74], ecx
xor eax, eax
mov dword [rsp + 0x60], r8d
mov r13, rdx
mov qword [rsp + 0x48], rax
mov ebx, ecx
mov dword [rsp + 0x5c], 1
mov rdi, 0xffffffffffffffff
mov dword [rsp + 0x54], eax
lea edx, [rax + 8]
mov qword [rsp + 0x68], rdi
lea ecx, [rax + 0x10]
mov dword [rsp + 0x58], 0x10
mov r15d, r9d
mov r12, rdi
movups xmmword [rbp + 0x50], xmm0
mov r14d, eax
movups xmmword [rbp + 0x60], xmm0
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.1400c537c
mov qword [rsp + 0x40], rax
mov rsi, rax
test rax, rax
jne 0x140005ac1
lea rcx, str.Could_not_allocate_string_array
call fcn.14004f910
test ebx, ebx
js 0x140005ff5
lea eax, [rbx - 0x80]
cmp eax, 0x40
jbe 0x140005aea
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.1400fc264
lea eax, [rbx - 0x80]
mov dword [rsp + 0x70], eax
cmp eax, 0x40
ja 0x140005ff5
xor eax, eax
mov dword [rsp + 0x50], eax
test eax, eax
jne 0x140005b49
mov edx, 0x104
lea rcx, [rbp + 0xd0]
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
mov qword [rsp + 0x68], rax
cmp rax, 0xffffffffffffffff
jne 0x140005b67
test r15d, r15d
jne 0x140005b3a
call fcn.140050120
mov rdx, rax
lea rcx, str.Could_not_access_first_GUID_volume:__s
call fcn.14004f910
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x48]
jmp 0x140005ff8
mov r8d, 0x104
lea rdx, [rbp + 0xd0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextVolumeA]
test eax, eax
je 0x140005f32
lea rax, [rbp + 0xd0]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140005b75
cmp rbx, 4
ja 0x140005b9d
mov r8d, 0x11b
lea rdx, str.D:_a_rufus_rufus_srcdrive.c
lea rcx, str.len___4
call fcn.1400fc264
mov r8d, 4
lea rdx, [0x140155cc0]
lea rcx, [rbp + 0xd0]
call fcn.1400fe668
test eax, eax
je 0x140005bd3
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.1400fc264
cmp byte [rbp + rbx + 0xcf], 0x5c
lea rsi, [rbp + rbx + 0xcf]
je 0x140005bfe
mov r8d, 0x11d
lea rdx, str.D:_a_rufus_rufus_srcdrive.c
lea rcx, str.volume_name_len___1___
call fcn.1400fc264
lea rcx, [rbp + 0xd0]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
add eax, 0xfffffffe
cmp eax, 1
ja 0x140005efd
dec rbx
cmp rbx, 0x104
jae 0x140006053
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 0x140005c76
test r15d, r15d
jne 0x140005efd
call fcn.140050120
mov r8, rax
lea rdx, [rbp + 0xd0]
lea rcx, str.Failed_to_get_device_path_for_GUID_volume__s:__s
call fcn.14004f910
jmp 0x140005efd
xor edi, edi
lea rbx, str.DeviceCdRom
nop
mov rdx, qword [rbx]
test rdx, rdx
jne 0x140005c8d
xor r8d, r8d
jmp 0x140005c9e
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140005c94
lea rcx, [rbp + 0x1e0]
call fcn.1400fe668
test eax, eax
je 0x140005cfe
inc edi
add rbx, 8
cmp edi, 2
jb 0x140005c80
lea rcx, [rbp + 0xd0]
call fcn.140050e40
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x140005d24
test r15d, r15d
jne 0x140005cee
call fcn.140050120
mov r8, rax
lea rdx, [rbp + 0xd0]
lea rcx, str.Could_not_open_GUID_volume__s:__s
call fcn.14004f910
mov eax, dword [rsp + 0x50]
mov rdi, qword [rsp + 0x68]
inc eax
jmp 0x140005afc
cmp edi, 2
jae 0x140005cb9
test r15d, r15d
jne 0x140005efd
lea rdx, [rbp + 0x1e0]
lea rcx, str.Skipping_GUID_volume_for__s
call fcn.14004f910
jmp 0x140005efd
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x54]
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, r12
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140005ec2
cmp dword [rsp + 0x54], 0
je 0x140005ec2
test r12, r12
je 0x140005d84
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r12, 0xffffffffffffffff
mov eax, dword [rbp - 0x80]
test eax, eax
jne 0x140005dac
test r15d, r15d
jne 0x140005efd
lea rdx, [rbp + 0xd0]
lea rcx, str.Ignoring_volume__s_because_it_has_no_extents...
call fcn.14004f910
jmp 0x140005efd
cmp eax, 1
je 0x140005dd2
test r15d, r15d
jne 0x140005efd
lea rdx, [rbp + 0xd0]
lea rcx, str.Ignoring_volume__s_because_it_has_more_than_one_extent__RAID__...
call fcn.14004f910
jmp 0x140005efd
mov eax, dword [rsp + 0x70]
cmp dword [rbp - 0x78], eax
jne 0x140005efd
cmp r14d, 0x10
je 0x140005f17
cmp dword [rsp + 0x60], 0
je 0x140005df3
mov byte [rsi], 0x5c
mov rsi, qword [rsp + 0x40]
mov eax, r14d
lea rbx, [rax*8]
mov rax, qword [rbp - 0x70]
mov qword [rbp + rbx + 0x50], rax
test rsi, rsi
je 0x140005e7a
mov eax, dword [rsp + 0x58]
cmp r14d, eax
jne 0x140005e54
add eax, eax
mov rcx, rsi
mov edx, eax
mov rdi, rsi
shl rdx, 3
mov dword [rsp + 0x58], eax
call fcn.1400c5f60
mov qword [rsp + 0x40], rax
mov rsi, rax
test rax, rax
jne 0x140005e54
mov rcx, rdi
call fcn.1400e9080
lea rcx, str.Could_not_reallocate_string_array
call fcn.14004f910
jmp 0x140005e7a
lea rcx, [rbp + 0xd0]
call fcn.1400fcc44
mov qword [rbx + rsi], rax
test rax, rax
jne 0x140005e77
lea rcx, str.Could_not_store_string_in_array
call fcn.14004f910
jmp 0x140005e7a
inc r14d
test r15d, r15d
jne 0x140005efd
cmp dword [rsp + 0x5c], r15d
je 0x140005ea0
cmp dword [0x1401e8840], r15d
mov dword [rsp + 0x5c], r15d
je 0x140005efd
lea rcx, str.Windows_volumes_from_this_device:
call fcn.14004f910
cmp dword [0x1401e8840], 0
je 0x140005efd
mov r8, qword [rbp - 0x70]
lea rdx, [rbp + 0xd0]
lea rcx, str.__s___lld
call fcn.14004f910
jmp 0x140005efd
test r15d, r15d
jne 0x140005ee8
test eax, eax
je 0x140005ed4
lea rax, str._empty_data_
jmp 0x140005ed9
call fcn.140050120
mov rdx, rax
lea rcx, str.Could_not_get_Disk_Extents:__s
call fcn.14004f910
test r12, r12
je 0x140005efd
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r12, 0xffffffffffffffff
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
cmp r12, 0xffffffffffffffff
jne 0x140005f56
mov rdi, qword [rsp + 0x68]
jmp 0x140005b00
mov edx, 0x10
lea rcx, str.Error:_Trying_to_process_a_disk_with_more_than__d_partitions_
call fcn.14004f910
mov r15, qword [rsp + 0x48]
jmp 0x140005fdd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x140005f56
test r15d, r15d
jne 0x140005f56
call fcn.140050120
mov rdx, rax
lea rcx, str.Could_not_access_next_GUID_volume:__s
call fcn.14004f910
test r14d, r14d
je 0x140005f28
xor eax, eax
test r14d, r14d
je 0x140005f75
test r13, r13
je 0x140005fb8
cmp r13, qword [rbp + rax*8 + 0x50]
je 0x140005fb8
inc eax
cmp eax, r14d
jb 0x140005f62
mov r8d, dword [rsp + 0x60]
mov r9d, r15d
mov ecx, dword [rsp + 0x74]
mov rdx, r13
call fcn.140006060
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140005fda
mov edx, 0x20
mov rcx, rax
call fcn.1400b35d4
test rax, rax
je 0x140005f28
lea rcx, str.Warning:_Using_physical_device_to_access_partition_data
call fcn.14004f910
mov r15, qword [rsp + 0x48]
jmp 0x140005fdd
cmp eax, r14d
jae 0x140005f75
mov rsi, qword [rsp + 0x40]
mov rcx, qword [rsi + rax*8]
test rcx, rcx
jne 0x140005fd0
xor r15d, r15d
jmp 0x140005fe2
call fcn.1400fcc44
mov r15, rax
jmp 0x140005fe2
mov r15, rax
mov rsi, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x68]
cmp rcx, 0xffffffffffffffff
je 0x140005ff8
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
jmp 0x140005ff8
mov r15, r14
test rsi, rsi
je 0x140006025
test r14d, r14d
je 0x140006025
mov edi, r14d
mov rbx, rsi
xor r14d, r14d
nop dword [rax + rax]
mov rcx, qword [rbx]
call fcn.1400e9080
mov qword [rbx], r14
lea rbx, [rbx + 8]
sub rdi, 1
jne 0x140006010
mov rcx, rsi
call fcn.1400e9080
mov rax, r15
mov rcx, qword [rbp + 0x2f0]
xor rcx, rsp
call fcn.1400b1f80
add rsp, 0x408
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1400b20a8
int3