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

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x558]
sub rsp, 0x620
mov qword [rbp + 0x90], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x1401543b0]
xor rax, rsp
mov qword [rbp + 0x510], rax
mov bl, r9b
mov byte [rsp + 0x40], bl
mov qword [rbp - 8], r8
mov r13, rdx
mov rsi, rcx
mov qword [rbp], rcx
lea r14, str.base_stor_vssmoduleswritersdeletewriter.cpp
mov qword [rsp + 0x50], r14
lea r12, str.CVssDeletingWriter::ExpandFilesAllVolumes
mov qword [rsp + 0x58], r12
lea rdi, str.WRTDELET
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x68], 0x332
mov dword [rsp + 0x6c], 4
mov dword [rsp + 0x70], 0xff
xor r15d, r15d
mov dword [rbp - 0x10], 0x1000000
xor edx, edx
lea r8d, [r15 + 0x78]
lea rcx, [rsp + 0x78]
call sub.msvcrt.dll_memset
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x20]
call fcn.140003840
nop
test bl, bl
jne 0x1400c59df
mov r12d, 0x208
mov r8d, r12d
xor edx, edx
lea rcx, [rbp + 0xf0]
call sub.msvcrt.dll_memset
mov r8d, r12d
xor edx, edx
lea rcx, [rbp + 0x300]
call sub.msvcrt.dll_memset
mov r15d, 0x104
mov edx, r15d
lea rcx, [rbp + 0xf0]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_FindFirstVolumeW]
mov rsi, rax
lea rax, [0x1400e6320]
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], rsi
mov r14, qword [rbp + 0x598]
xor ebx, ebx
cmp rsi, 0xffffffffffffffff
jne 0x1400c5818
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
cmp eax, 0x12
je 0x1400c59d1
cmp rsi, rsi
jne 0x1400c5818
lea rax, str.base_stor_vssmoduleswritersdeletewriter.cpp
mov qword [rsp + 0x50], rax
lea rax, str.CVssDeletingWriter::ExpandFilesAllVolumes
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x68], 0x347
mov dword [rsp + 0x6c], 4
mov dword [rsp + 0x70], 0xff
mov dword [rbp - 0x10], 0x1000000
xor edx, edx
lea r8d, [rsi + 0x79]
lea rcx, [rsp + 0x78]
call sub.msvcrt.dll_memset
mov ebx, dword [rbp + 0x28]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9d, ebx
lea r8, str.FindFirstVolumeW_FindNextVolumeW_fails_with_0x_08lx_winerror__d
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x20]
call fcn.1400037d0
xor ebx, ebx
jmp 0x1400c59a8
lea rcx, [rbp + 0xf0]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetDriveTypeW]
cmp eax, 3
jne 0x1400c59a8
lea rcx, [rbp + 0xf0]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bx
jne 0x1400c5839
lea ecx, [rax - 1]
add rcx, rcx
cmp word [rbp + rcx + 0xf0], 0x5c
jne 0x1400c5864
cmp rcx, r12
jae 0x1400c59cb
mov word [rbp + rcx + 0xf0], bx
mov rax, qword [r13 + 0x10]
test rax, rax
je 0x1400c592b
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0xf0]
lea r8, [0x1400e9278]
mov rdx, r15
lea rcx, [rbp + 0x300]
call fcn.140006550
mov edi, eax
mov dword [rbp + 0x28], eax
test eax, eax
jns 0x1400c592b
lea rax, str.base_stor_vssmoduleswritersdeletewriter.cpp
mov qword [rsp + 0x50], rax
lea rax, str.CVssDeletingWriter::ExpandFilesAllVolumes
mov qword [rsp + 0x58], rax
lea rax, str.WRTDELET
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], 0x367
mov dword [rsp + 0x6c], 4
mov dword [rsp + 0x70], 0xff
mov dword [rbp - 0x10], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x78]
call sub.msvcrt.dll_memset
mov rbx, qword [r13 + 0x10]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0xf0]
lea r8, str.StringCchPrintf_fails_for__s_s_with_0x_08lx_winerror__d
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x20]
call fcn.1400037d0
jmp 0x1400c5811
mov rax, qword [r13 + 0x20]
mov rcx, qword [rbp - 8]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x300]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x588]
mov qword [rsp + 0x20], rax
mov dl, byte [r13]
lea rcx, [rbp + 0xa0]
call fcn.1400c4504
nop
mov al, byte [rbp + 0x580]
mov byte [rsp + 0x30], al
mov qword [rsp + 0x28], r14
mov rax, qword [rbp + 0x590]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x5a0]
xor r8d, r8d
lea rdx, [rbp + 0xa0]
mov rcx, qword [rbp]
call fcn.1400c5df4
nop
lea rcx, [rbp + 0xa0]
call fcn.1400c4788
mov r8d, r15d
lea rdx, [rbp + 0xf0]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_FindNextVolumeW]
test eax, eax
je 0x1400c59d1
lea rdi, str.WRTDELET
jmp 0x1400c5782
call fcn.140020338
nop
lea rcx, [rbp + 8]
call fcn.1400c46e8
jmp 0x1400c5d8a
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x1400c5d36
mov rax, qword [rcx]
mov rax, qword [rax + 0x38]
call qword [case.0x140007ddd.0]
mov rdi, rax
test rax, rax
je 0x1400c5d2f
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x1400c5ce1
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x40]
call qword [case.0x140007ddd.0]
mov esi, eax
test eax, eax
je 0x1400c5ce1
mov r12d, 0x208
mov r8d, r12d
xor edx, edx
lea rcx, [rbp + 0xf0]
call sub.msvcrt.dll_memset
mov r14d, r15d
test esi, esi
je 0x1400c5d8a
mov r15d, 0x104
mov r8, qword [rdi]
mov rdx, r15
lea rcx, [rbp + 0xf0]
call fcn.14001ec98
mov ebx, eax
mov dword [rbp + 0x28], eax
xor edx, edx
test eax, eax
jns 0x1400c5ae6
lea rax, str.base_stor_vssmoduleswritersdeletewriter.cpp
mov qword [rsp + 0x50], rax
lea rax, str.CVssDeletingWriter::ExpandFilesAllVolumes
mov qword [rsp + 0x58], rax
lea rax, str.WRTDELET
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], 0x3a8
mov dword [rsp + 0x6c], 4
mov dword [rsp + 0x70], 0xff
mov dword [rbp - 0x10], 0x1000000
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x78]
call sub.msvcrt.dll_memset
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
lea r8, str.StringCchCopy_fails_with_0x_08lx__winerror__d
mov dword [rsp + 0x20], eax
mov r9d, ebx
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x20]
call fcn.1400037d0
jmp 0x1400c5cc6
lea rcx, [rbp + 0xf0]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], dx
jne 0x1400c5af1
cmp qword [r13 + 0x10], rdx
je 0x1400c5c1e
dec eax
cmp word [rbp + rax*2 + 0xf0], 0x5c
je 0x1400c5b99
lea r8, [0x1400e84e8]
mov rdx, r15
lea rcx, [rbp + 0xf0]
call fcn.14004b4c0
mov ebx, eax
mov dword [rbp + 0x28], eax
test eax, eax
jns 0x1400c5b99
lea rax, str.base_stor_vssmoduleswritersdeletewriter.cpp
mov qword [rsp + 0x50], rax
lea rax, str.CVssDeletingWriter::ExpandFilesAllVolumes
mov qword [rsp + 0x58], rax
lea rax, str.WRTDELET
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], 0x3bd
mov dword [rsp + 0x6c], 4
mov dword [rsp + 0x70], 0xff
mov dword [rbp - 0x10], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x78]
call sub.msvcrt.dll_memset
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
lea r8, str.StringCchCat_fails_with_0x_08lx__winerror__d
jmp 0x1400c5acc
mov r8, qword [r13 + 0x10]
mov rdx, r15
lea rcx, [rbp + 0xf0]
call fcn.14004b4c0
mov ebx, eax
mov dword [rbp + 0x28], eax
test eax, eax
jns 0x1400c5c40
lea rax, str.base_stor_vssmoduleswritersdeletewriter.cpp
mov qword [rsp + 0x50], rax
lea rax, str.CVssDeletingWriter::ExpandFilesAllVolumes
mov qword [rsp + 0x58], rax
lea rax, str.WRTDELET
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], 0x3cd
mov dword [rsp + 0x6c], 4
mov dword [rsp + 0x70], 0xff
mov dword [rbp - 0x10], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x78]
call sub.msvcrt.dll_memset
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
lea r8, str.StringCchCat_failed_with_0x_08lx__winerror__d
jmp 0x1400c5acc
lea ecx, [rax - 1]
add rcx, rcx
cmp word [rbp + rcx + 0xf0], 0x5c
jne 0x1400c5c40
cmp rcx, r12
jae 0x1400c5cdb
mov word [rbp + rcx + 0xf0], dx
mov rax, qword [r13 + 0x20]
mov rcx, qword [rbp - 8]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0xf0]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x588]
mov qword [rsp + 0x20], rax
mov dl, byte [r13]
lea rcx, [rbp + 0xa0]
call fcn.1400c4504
nop
mov al, byte [rbp + 0x580]
mov byte [rsp + 0x30], al
mov rax, qword [rbp + 0x598]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x590]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x5a0]
mov r8b, byte [rsp + 0x40]
lea rdx, [rbp + 0xa0]
mov rcx, qword [rbp]
call fcn.1400c5df4
nop
lea rcx, [rbp + 0xa0]
call fcn.1400c4788
inc r14d
add rdi, 8
cmp r14d, esi
jb 0x1400c5a51
jmp 0x1400c5d8a
call fcn.140020338
int3
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r12
lea rax, str.WRTDELET
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], 0x398
mov dword [rsp + 0x6c], 4
mov dword [rsp + 0x70], 0xff
mov dword [rbp - 0x10], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x78]
call sub.msvcrt.dll_memset
lea r8, str.GetCurrentVolumeArray_returns_0
jmp 0x1400c5d7b
lea rdi, str.WRTDELET
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x68], 0x391
mov dword [rsp + 0x6c], 4
mov dword [rsp + 0x70], 0xff
mov dword [rbp - 0x10], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x78]
call sub.msvcrt.dll_memset
lea r8, str.GetCurrentVolumeArray_returns_NULL
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x20]
call fcn.1400037d0
nop
lea rcx, [rbp + 0x20]
call fcn.140003960
mov rcx, qword [rbp + 0x510]
xor rcx, rsp
call fcn.14001ff30
mov rbx, qword [rsp + 0x678]
add rsp, 0x620
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret