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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x310]
sub rsp, 0x410
mov rax, qword [0x140106438]
xor rax, rsp
mov qword [rbp + 0x2f0], rax
xorps xmm0, xmm0
mov qword [rsp + 0x70], rdx
mov rdi, 0xffffffffffffffff
mov dword [rsp + 0x6c], ecx
xor r14d, r14d
mov dword [rsp + 0x4c], r8d
mov esi, ecx
mov dword [rsp + 0x48], 1
mov r12d, r9d
mov qword [rsp + 0x60], rdi
lea edx, [rdi + 9]
mov dword [rsp + 0x44], r14d
lea ecx, [rdi + 0x11]
mov dword [rsp + 0x5c], 0x10
mov r13, rdi
mov dword [rsp + 0x58], r14d
movups xmmword [rbp + 0x50], xmm0
mov r15d, r14d
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.1400966e0
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x140004061
lea rcx, str.Could_not_allocate_string_array
call fcn.140041aa0
mov qword [rsp + 0x408], rbx
test esi, esi
js 0x140004578
lea eax, [rsi - 0x80]
cmp eax, 0x40
jbe 0x140004092
mov r8d, 0x109
lea rdx, str.C:_src_r3dusb_srcdrive.c
lea rcx, str._DriveIndex___DRIVE_INDEX_MIN____DriveIndex___DRIVE_INDEX_MAX_
call fcn.1400a15c4
lea eax, [rsi - 0x80]
mov dword [rsp + 0x68], eax
cmp eax, 0x40
ja 0x140004578
mov eax, r14d
mov dword [rsp + 0x40], eax
nop dword [rax]
test eax, eax
jne 0x1400040f3
mov edx, 0x104
lea rcx, [rbp + 0xd0]
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
mov qword [rsp + 0x60], rax
cmp rax, 0xffffffffffffffff
jne 0x140004111
test r12d, r12d
jne 0x140004578
call fcn.140041e50
mov rdx, rax
lea rcx, str.Could_not_access_first_GUID_volume:__s
call fcn.140041aa0
jmp 0x140004578
mov r8d, 0x104
lea rdx, [rbp + 0xd0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextVolumeA]
test eax, eax
je 0x1400044dd
lea rax, [rbp + 0xd0]
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rax + rbx], r14b
jne 0x140004120
cmp rbx, 4
ja 0x140004148
mov r8d, 0x11d
lea rdx, str.C:_src_r3dusb_srcdrive.c
lea rcx, str.len___4
call fcn.1400a15c4
mov r8d, 4
lea rdx, [0x1400d6f30]
lea rcx, [rbp + 0xd0]
call fcn.1400a1ed4
test eax, eax
je 0x14000417e
mov r8d, 0x11e
lea rdx, str.C:_src_r3dusb_srcdrive.c
lea rcx, str.safe_strnicmp_volume_name__volume_start__4___0
call fcn.1400a15c4
cmp byte [rbp + rbx + 0xcf], 0x5c
lea rsi, [rbp + rbx + 0xcf]
je 0x1400041a9
mov r8d, 0x11f
lea rdx, str.C:_src_r3dusb_srcdrive.c
lea rcx, str.volume_name_len___1___
call fcn.1400a15c4
lea rcx, [rbp + 0xd0]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
add eax, 0xfffffffe
cmp eax, 1
ja 0x1400044ad
dec rbx
cmp rbx, 0x104
jae 0x1400045da
mov r8d, 0x104
mov byte [rbp + rbx + 0xd0], r14b
lea rdx, [rbp + 0x1e0]
lea rcx, [rbp + 0xd4]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
jne 0x140004221
test r12d, r12d
jne 0x1400044ad
call fcn.140041e50
mov r8, rax
lea rdx, [rbp + 0xd0]
lea rcx, str.Failed_to_get_device_path_for_GUID_volume__s:__s
call fcn.140041aa0
jmp 0x1400044ad
mov edi, r14d
lea rbx, str.DeviceCdRom
nop dword [rax + rax]
mov rdx, qword [rbx]
test rdx, rdx
jne 0x14000423d
mov r8, r14
jmp 0x14000424d
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], r14b
jne 0x140004244
lea rcx, [rbp + 0x1e0]
call fcn.1400a1ed4
test eax, eax
je 0x1400042ad
inc edi
add rbx, 8
cmp edi, 2
jb 0x140004230
lea rcx, [rbp + 0xd0]
call fcn.140042a20
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x1400042d3
test r12d, r12d
jne 0x14000429d
call fcn.140041e50
mov r8, rax
lea rdx, [rbp + 0xd0]
lea rcx, str.Could_not_open_GUID_volume__s:__s
call fcn.140041aa0
mov eax, dword [rsp + 0x40]
mov rdi, qword [rsp + 0x60]
inc eax
jmp 0x1400040a5
cmp edi, 2
jae 0x140004268
test r12d, r12d
jne 0x1400044ad
lea rdx, [rbp + 0x1e0]
lea rcx, str.Skipping_GUID_volume_for__s
call fcn.140041aa0
jmp 0x1400044ad
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x44]
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 0x140004472
cmp dword [rsp + 0x44], r14d
je 0x140004472
test r13, r13
je 0x14000432f
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r13, 0xffffffffffffffff
mov eax, dword [rbp - 0x80]
test eax, eax
jne 0x140004357
test r12d, r12d
jne 0x1400044ad
lea rdx, [rbp + 0xd0]
lea rcx, str.Ignoring_volume__s_because_it_has_no_extents...
call fcn.140041aa0
jmp 0x1400044ad
cmp eax, 1
je 0x14000437d
test r12d, r12d
jne 0x1400044ad
lea rdx, [rbp + 0xd0]
lea rcx, str.Ignoring_volume__s_because_it_has_more_than_one_extent__RAID__...
call fcn.140041aa0
jmp 0x1400044ad
mov eax, dword [rsp + 0x68]
cmp dword [rbp - 0x78], eax
jne 0x1400044ad
cmp r15d, 0x10
je 0x1400044c7
cmp dword [rsp + 0x4c], r14d
je 0x14000439e
mov byte [rsi], 0x5c
mov rsi, qword [rsp + 0x50]
mov eax, r15d
lea rbx, [rax*8]
mov rax, qword [rbp - 0x70]
mov qword [rbp + rbx + 0x50], rax
test rsi, rsi
je 0x14000442a
mov eax, dword [rsp + 0x5c]
cmp r15d, eax
jne 0x1400043ff
add eax, eax
mov rcx, rsi
mov edx, eax
mov rdi, rsi
shl rdx, 3
mov dword [rsp + 0x5c], eax
call fcn.140096c28
mov qword [rsp + 0x50], rax
mov rsi, rax
test rax, rax
jne 0x1400043ff
mov rcx, rdi
call fcn.14009b5a0
lea rcx, str.Could_not_reallocate_string_array
call fcn.140041aa0
jmp 0x14000442a
lea rcx, [rbp + 0xd0]
call fcn.1400a1b50
mov qword [rbx + rsi], rax
test rax, rax
jne 0x140004422
lea rcx, str.Could_not_store_string_in_array
call fcn.140041aa0
jmp 0x14000442a
inc r15d
mov dword [rsp + 0x58], r15d
test r12d, r12d
jne 0x1400044ad
cmp dword [rsp + 0x48], r14d
je 0x140004450
cmp dword [0x14015a340], r14d
mov dword [rsp + 0x48], r14d
je 0x1400044ad
lea rcx, str.Windows_volumes_from_this_device:
call fcn.140041aa0
cmp dword [0x14015a340], r14d
je 0x1400044ad
mov r8, qword [rbp - 0x70]
lea rdx, [rbp + 0xd0]
lea rcx, str.__s___lld
call fcn.140041aa0
jmp 0x1400044ad
test r12d, r12d
jne 0x140004498
test eax, eax
je 0x140004484
lea rax, str._empty_data_
jmp 0x140004489
call fcn.140041e50
mov rdx, rax
lea rcx, str.Could_not_get_Disk_Extents:__s
call fcn.140041aa0
test r13, r13
je 0x1400044ad
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r13, 0xffffffffffffffff
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
cmp r13, 0xffffffffffffffff
jne 0x140004501
mov rdi, qword [rsp + 0x60]
jmp 0x1400040b0
mov edx, 0x10
lea rcx, str.Error:_Trying_to_process_a_disk_with_more_than__d_partitions_
call fcn.140041aa0
jmp 0x140004567
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x140004501
test r12d, r12d
jne 0x140004501
call fcn.140041e50
mov rdx, rax
lea rcx, str.Could_not_access_next_GUID_volume:__s
call fcn.140041aa0
test r15d, r15d
je 0x140004567
mov rbx, qword [rsp + 0x70]
mov eax, r14d
nop
mov ecx, eax
test rbx, rbx
je 0x1400045b9
cmp rbx, qword [rbp + rcx*8 + 0x50]
je 0x1400045b9
inc eax
cmp eax, r15d
jb 0x140004510
mov r8d, dword [rsp + 0x4c]
mov r9d, r12d
mov ecx, dword [rsp + 0x6c]
mov rdx, rbx
call fcn.1400045e0
mov r14, rax
test rax, rax
je 0x140004567
mov edx, 0x20
mov rcx, rax
call fcn.140093068
test rax, rax
je 0x140004567
lea rcx, str.Warning:_Using_physical_device_to_access_partition_data
call fcn.140041aa0
mov rcx, qword [rsp + 0x60]
cmp rcx, 0xffffffffffffffff
je 0x140004578
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
lea rcx, [rsp + 0x50]
call fcn.14003ff20
mov rcx, qword [rsp + 0x50]
call fcn.14009b5a0
mov rbx, qword [rsp + 0x408]
mov rax, r14
mov rcx, qword [rbp + 0x2f0]
xor rcx, rsp
call fcn.140092060
add rsp, 0x410
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
cmp eax, r15d
jae 0x14000452d
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + rcx*8]
test rcx, rcx
je 0x140004567
call fcn.1400a1b50
mov r14, rax
jmp 0x140004567
call fcn.140092188
int3