Function at 0x1400db258
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x1401543b0]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rdi, r8
mov qword [rsp + 0x60], r8
mov r14, rcx
xor ebx, ebx
lea rcx, str.AsrVhd::DiskBuildVhdInfo
lea esi, [rbx + 1]
call fcn.140008368
xor edx, edx
mov qword [rsp + 0x50], rbx
mov r8d, 0x20a
mov qword [rsp + 0x48], rbx
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x40], rbx
mov r15d, ebx
mov r13d, ebx
mov r12d, ebx
call sub.msvcrt.dll_memset
test rdi, rdi
jne 0x1400db31e
lea r9d, [rdi + 0x57]
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x140154180]
lea rdi, [0x140154180]
cmp rcx, rdi
je 0x1400db316
test byte [rcx + 0x1c], 8
je 0x1400db316
lea edx, [r12 + 0x34]
lea rax, str.ppVirtualDiskInfo
mov rcx, qword [rcx + 0x10]
lea r8, [0x14012c540]
mov qword [rsp + 0x20], rax
call fcn.1400cc0d8
mov rdi, rsi
jmp 0x1400db866
mov r8, r14
mov qword [rdi], rbx
mov edx, 0x105
lea rcx, [rsp + 0x70]
call fcn.14001ec98
test eax, eax
jns 0x1400db39d
mov ecx, eax
mov esi, ebx
call fcn.1400de1e4
mov ebx, eax
mov rcx, qword [0x140154180]
lea rdi, [0x140154180]
cmp rcx, rdi
je 0x1400db316
test byte [rcx + 0x1c], 8
je 0x1400db316
mov r8, r14
lea rcx, [rsp + 0x70]
mov edx, 0x105
call fcn.14001ec98
mov rcx, qword [0x140154180]
lea r8, [0x14012c540]
mov r9d, eax
mov edx, 0x35
lea rax, str.::StringCchCopy__STRING_CCH_PARAM__wszVolume____wszDevicePath__
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx + 0x10]
call fcn.1400cc0d8
jmp 0x1400db316
lea rcx, [rsp + 0x70]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bx
jne 0x1400db3a6
test eax, eax
jne 0x1400db3ff
mov esi, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
mov rax, qword [0x140154180]
lea rdi, [0x140154180]
cmp rax, rdi
je 0x1400db316
test byte [rax + 0x1c], 8
je 0x1400db316
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov r9d, eax
mov edx, 0x36
lea rax, str.ulLen___0
mov rcx, qword [0x140154180]
jmp 0x1400db301
lea ecx, [rax - 1]
add rcx, rcx
cmp word [rsp + rcx + 0x70], 0x5c
jne 0x1400db41b
cmp rcx, 0x20a
jae 0x1400db495
mov word [rsp + rcx + 0x70], bx
lea r9, [rsp + 0x48]
mov r8d, 2
mov dl, sil
lea rcx, [rsp + 0x70]
call fcn.1400db8c8
test eax, eax
jne 0x1400db49b
mov esi, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
mov rax, qword [0x140154180]
lea rdi, [0x140154180]
cmp rax, rdi
je 0x1400db48b
test byte [rax + 0x1c], 8
je 0x1400db48b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov rcx, qword [0x140154180]
lea r8, [0x14012c540]
mov r9d, eax
mov edx, 0x37
lea rax, str.GetDeviceDependencyInformation__wszVolume__TRUE__STORAGE_DEPENDENCY_INFO_VERSION_2__pVhdInfo__
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx + 0x10]
call fcn.1400cc0d8
mov r15, qword [rsp + 0x48]
jmp 0x1400db316
call fcn.140020338
int3
mov r15, qword [rsp + 0x48]
test r15, r15
je 0x1400db863
mov ecx, 0x10
call fcn.1400ddeec
mov qword [rsp + 0x50], rax
mov r14, rax
test rax, rax
jne 0x1400db4f9
lea r9d, [rax + 0xe]
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x140154180]
lea rdi, [0x140154180]
cmp rcx, rdi
je 0x1400db316
test byte [rcx + 0x1c], 8
je 0x1400db316
lea edx, [rax + 0x38]
lea rax, str.pVirtualDiskInfo
jmp 0x1400db301
mov dword [rax + 0xc], ebx
mov ecx, dword [r15 + 4]
shl ecx, 5
call fcn.1400ddeec
mov qword [r14], rax
test rax, rax
jne 0x1400db549
lea r9d, [rax + 0xe]
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x140154180]
lea rdi, [0x140154180]
cmp rcx, rdi
je 0x1400db316
test byte [rcx + 0x1c], 8
je 0x1400db316
lea edx, [rax + 0x39]
lea rax, str.pVirtualDiskInfo__m_rgVhdFileInfo
jmp 0x1400db301
mov eax, dword [r15 + 4]
mov edi, ebx
mov dword [r14 + 8], eax
mov dword [rsp + 0x48], ebx
cmp dword [r15 + 4], ebx
jbe 0x1400db835
mov rcx, r13
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoTaskMemFree]
mov rcx, r12
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoTaskMemFree]
mov r12d, edi
shl r12, 6
mov r13d, edi
mov qword [rsp + 0x58], r12
mov rdx, qword [r12 + r15 + 0x30]
mov rdi, qword [r12 + r15 + 0x40]
test rdx, rdx
je 0x1400db5f4
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], bx
jne 0x1400db595
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
je 0x1400db5f4
mov rcx, qword [r12 + r15 + 0x30]
mov rdx, rdi
call fcn.1400dde10
mov r12, rax
test rax, rax
jne 0x1400db672
lea r9d, [rax + 0xe]
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x140154180]
lea rdi, [0x140154180]
cmp rcx, rdi
je 0x1400db316
test byte [rcx + 0x1c], 8
je 0x1400db316
lea edx, [rax + 0x3c]
jmp 0x1400db652
mov r8d, 8
lea rcx, str.Device_
mov rdx, rdi
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x1400db65e
mov rdx, rdi
lea rcx, str._GlobalRoot
call fcn.1400dde10
mov r12, rax
test rax, rax
jne 0x1400db672
lea r9d, [rax + 0xe]
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x140154180]
lea rdi, [0x140154180]
cmp rcx, rdi
je 0x1400db316
test byte [rcx + 0x1c], 8
je 0x1400db316
lea edx, [rax + 0x3a]
lea rax, str.wszVhdFileNameModified
jmp 0x1400db301
mov rcx, rdi
call fcn.1400dd9fc
mov r12, rax
test rax, rax
je 0x1400db800
mov rdx, qword [r14]
mov rcx, r12
shl r13, 5
add rdx, r13
lea r8, [rdx + 8]
call fcn.1400dcf8c
test eax, eax
je 0x1400db780
mov rcx, qword [r14]
lea rdx, [0x1400e84e8]
mov rcx, qword [rcx + r13]
call fcn.1400dde10
mov rcx, rax
mov qword [rsp + 0x40], rax
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetDriveTypeW]
cmp eax, 3
jne 0x1400db70f
mov rax, qword [r14]
mov rdx, qword [rsp + 0x58]
mov edi, dword [rsp + 0x48]
add edi, esi
mov rcx, qword [rax + r13]
mov eax, 0x3f
mov dword [rsp + 0x48], edi
mov word [rcx + 2], ax
mov rax, qword [r14]
mov dword [rax + r13 + 0x14], 0x200000
mov rcx, qword [r14]
mov eax, dword [rdx + r15 + 8]
mov dword [rcx + r13 + 0x10], eax
mov rcx, qword [r14]
mov eax, dword [rdx + r15 + 0x24]
mov dword [rcx + r13 + 0x18], eax
cmp edi, dword [r15 + 4]
jae 0x1400db835
mov r13, qword [rsp + 0x40]
jmp 0x1400db561
mov r9d, 0x32
mov esi, ebx
mov ebx, r9d
mov r10, qword [0x140154180]
lea rdi, [0x140154180]
cmp r10, rdi
je 0x1400db85c
test byte [r10 + 0x1c], 8
mov rdi, qword [rsp + 0x40]
je 0x1400db866
mov rax, qword [r14]
lea edx, [r9 + 0xd]
mov ecx, dword [rsp + 0x48]
lea r8, [0x14012c540]
shl rcx, 5
mov rax, qword [rcx + rax + 8]
mov rcx, qword [r10 + 0x10]
mov qword [rsp + 0x30], rax
lea rax, str.ERROR_NOT_SUPPORTED
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.1400ce908
jmp 0x1400db866
mov rax, qword [0x140154180]
lea rdi, [0x140154180]
cmp rax, rdi
je 0x1400db7c2
test byte [rax + 0x1c], 2
je 0x1400db7c2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov rcx, qword [0x140154180]
lea r8, [0x14012c540]
mov edx, 0x3d
mov dword [rsp + 0x20], eax
mov r9, r12
mov rcx, qword [rcx + 0x10]
call fcn.1400cc29c
mov esi, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
mov rax, qword [0x140154180]
cmp rax, rdi
je 0x1400db316
test byte [rax + 0x1c], 8
je 0x1400db316
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov r9d, eax
mov edx, 0x3e
lea rax, str.GetLastError__
jmp 0x1400db3f3
mov r9d, 0xe
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x140154180]
lea rdi, [0x140154180]
cmp rcx, rdi
je 0x1400db316
test byte [rcx + 0x1c], 8
je 0x1400db316
lea edx, [r9 + 0x2d]
jmp 0x1400db652
mov edx, dword [r14 + 8]
lea r9, [0x140021780]
mov rcx, qword [r14]
mov r8d, 0x20
call qword [sym.imp.msvcrt.dll_qsort]
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x50], rbx
mov qword [rax], r14
mov rdi, qword [rsp + 0x40]
jmp 0x1400db866
mov rdi, rbx
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoTaskMemFree]
lea rcx, [rsp + 0x50]
call fcn.1400db1b0
mov rcx, r15
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoTaskMemFree]
lea rcx, str.AsrVhd::DiskBuildVhdInfo
call fcn.1400084a8
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
mov eax, esi
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.14001ff30
mov rbx, qword [rsp + 0x2d8]
add rsp, 0x290
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret