Function at 0x1400f070c
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 [0x14016b400]
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.140029428
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 0x1400f07d2
lea r9d, [rdi + 0x57]
mov esi, ebx
mov ebx, r9d
mov rcx, qword [section..data]
lea rdi, section..data
cmp rcx, rdi
je 0x1400f07ca
test byte [rcx + 0x1c], 8
je 0x1400f07ca
lea edx, [r12 + 0x34]
lea rax, str.ppVirtualDiskInfo
mov rcx, qword [rcx + 0x10]
lea r8, [0x14013fe00]
mov qword [rsp + 0x20], rax
call fcn.1400e4514
mov rdi, rsi
jmp 0x1400f0d16
mov r8, r14
mov qword [rdi], rbx
mov edx, 0x105
lea rcx, [rsp + 0x70]
call fcn.1400109f0
test eax, eax
jns 0x1400f0851
mov ecx, eax
mov esi, ebx
call fcn.1400f2b1c
mov ebx, eax
mov rcx, qword [section..data]
lea rdi, section..data
cmp rcx, rdi
je 0x1400f07ca
test byte [rcx + 0x1c], 8
je 0x1400f07ca
mov r8, r14
lea rcx, [rsp + 0x70]
mov edx, 0x105
call fcn.1400109f0
mov rcx, qword [section..data]
lea r8, [0x14013fe00]
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.1400e4514
jmp 0x1400f07ca
lea rcx, [rsp + 0x70]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bx
jne 0x1400f085a
test eax, eax
jne 0x1400f08b3
mov esi, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
mov rax, qword [section..data]
lea rdi, section..data
cmp rax, rdi
je 0x1400f07ca
test byte [rax + 0x1c], 8
je 0x1400f07ca
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r9d, eax
mov edx, 0x36
lea rax, str.ulLen___0
mov rcx, qword [section..data]
jmp 0x1400f07b5
lea ecx, [rax - 1]
add rcx, rcx
cmp word [rsp + rcx + 0x70], 0x5c
jne 0x1400f08cf
cmp rcx, 0x20a
jae 0x1400f0949
mov word [rsp + rcx + 0x70], bx
lea r9, [rsp + 0x48]
mov r8d, 2
mov dl, sil
lea rcx, [rsp + 0x70]
call fcn.140027e08
test eax, eax
jne 0x1400f094f
mov esi, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
mov rax, qword [section..data]
lea rdi, section..data
cmp rax, rdi
je 0x1400f093f
test byte [rax + 0x1c], 8
je 0x1400f093f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rcx, qword [section..data]
lea r8, [0x14013fe00]
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.1400e4514
mov r15, qword [rsp + 0x48]
jmp 0x1400f07ca
call fcn.1400324a4
int3
mov r15, qword [rsp + 0x48]
test r15, r15
je 0x1400f0d13
mov ecx, 0x10
call fcn.1400293f0
mov qword [rsp + 0x50], rax
mov r14, rax
test rax, rax
jne 0x1400f09ad
lea r9d, [rax + 0xe]
mov esi, ebx
mov ebx, r9d
mov rcx, qword [section..data]
lea rdi, section..data
cmp rcx, rdi
je 0x1400f07ca
test byte [rcx + 0x1c], 8
je 0x1400f07ca
lea edx, [rax + 0x38]
lea rax, str.pVirtualDiskInfo
jmp 0x1400f07b5
mov dword [rax + 0xc], ebx
mov ecx, dword [r15 + 4]
shl ecx, 5
call fcn.1400293f0
mov qword [r14], rax
test rax, rax
jne 0x1400f09fd
lea r9d, [rax + 0xe]
mov esi, ebx
mov ebx, r9d
mov rcx, qword [section..data]
lea rdi, section..data
cmp rcx, rdi
je 0x1400f07ca
test byte [rcx + 0x1c], 8
je 0x1400f07ca
lea edx, [rax + 0x39]
lea rax, str.pVirtualDiskInfo__m_rgVhdFileInfo
jmp 0x1400f07b5
mov eax, dword [r15 + 4]
mov edi, ebx
mov dword [r14 + 8], eax
mov dword [rsp + 0x48], ebx
cmp dword [r15 + 4], ebx
jbe 0x1400f0bc7
mov rcx, r13
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
mov rcx, r12
call qword [sym.imp.api_ms_win_core_com_l1_1_0.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 0x1400f0aa8
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], bx
jne 0x1400f0a49
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
je 0x1400f0aa8
mov rcx, qword [r12 + r15 + 0x30]
mov rdx, rdi
call fcn.1400f27a0
mov r12, rax
test rax, rax
jne 0x1400f0b26
lea r9d, [rax + 0xe]
mov esi, ebx
mov ebx, r9d
mov rcx, qword [section..data]
lea rdi, section..data
cmp rcx, rdi
je 0x1400f07ca
test byte [rcx + 0x1c], 8
je 0x1400f07ca
lea edx, [rax + 0x3c]
jmp 0x1400f0b06
mov r8d, 8
lea rcx, str.Device_
mov rdx, rdi
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x1400f0b12
mov rdx, rdi
lea rcx, str._GlobalRoot
call fcn.1400f27a0
mov r12, rax
test rax, rax
jne 0x1400f0b26
lea r9d, [rax + 0xe]
mov esi, ebx
mov ebx, r9d
mov rcx, qword [section..data]
lea rdi, section..data
cmp rcx, rdi
je 0x1400f07ca
test byte [rcx + 0x1c], 8
je 0x1400f07ca
lea edx, [rax + 0x3a]
lea rax, str.wszVhdFileNameModified
jmp 0x1400f07b5
mov rcx, rdi
call fcn.140028f70
mov r12, rax
test rax, rax
je 0x1400f0cde
mov rdx, qword [r14]
mov rdi, r13
shl rdi, 5
mov rcx, r12
add rdx, rdi
lea r8, [rdx + 8]
call fcn.1400f1d34
test eax, eax
je 0x1400f0c5e
mov rcx, qword [r14]
lea rdx, [0x1400fd76c]
mov rcx, qword [rdi + rcx]
call fcn.1400f27a0
mov rcx, rax
mov qword [rsp + 0x40], rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeW]
cmp eax, 3
jne 0x1400f0bf6
mov rax, qword [r14]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rdi + rax]
mov eax, 0x3f
mov word [rcx + 2], ax
mov rax, qword [r14]
mov dword [rdi + rax + 0x14], 0x200000
mov rcx, qword [r14]
mov eax, dword [rdx + r15 + 8]
mov dword [rdi + rcx + 0x10], eax
mov rcx, qword [r14]
mov eax, dword [rdx + r15 + 0x24]
mov dword [rdi + rcx + 0x18], eax
mov edi, dword [rsp + 0x48]
add edi, esi
mov dword [rsp + 0x48], edi
cmp edi, dword [r15 + 4]
jae 0x1400f0bc3
mov r13, qword [rsp + 0x40]
jmp 0x1400f0a15
mov eax, dword [r14 + 8]
mov rcx, qword [r14]
lea r9, [0x140031840]
mov edx, eax
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 0x1400f0d16
mov r9d, 0x32
mov esi, ebx
mov ebx, r9d
mov rcx, qword [section..data]
lea rdi, section..data
cmp rcx, rdi
je 0x1400f0bec
test byte [rcx + 0x1c], 8
mov rdi, qword [rsp + 0x40]
je 0x1400f0d16
mov rax, qword [r14]
lea edx, [r9 + 0xd]
mov rcx, qword [rcx + 0x10]
lea r8, [0x14013fe00]
shl r13, 5
mov rax, qword [rax + r13 + 8]
mov qword [rsp + 0x30], rax
lea rax, str.ERROR_NOT_SUPPORTED
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.1400e6790
jmp 0x1400f0d16
mov rax, qword [section..data]
lea rdi, section..data
cmp rax, rdi
je 0x1400f0ca0
test byte [rax + 0x1c], 2
je 0x1400f0ca0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rcx, qword [section..data]
lea r8, [0x14013fe00]
mov edx, 0x3d
mov dword [rsp + 0x20], eax
mov r9, r12
mov rcx, qword [rcx + 0x10]
call fcn.1400e5a88
mov esi, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
mov rax, qword [section..data]
cmp rax, rdi
je 0x1400f07ca
test byte [rax + 0x1c], 8
je 0x1400f07ca
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r9d, eax
mov edx, 0x3e
lea rax, str.GetLastError__
jmp 0x1400f08a7
mov r9d, 0xe
mov esi, ebx
mov ebx, r9d
mov rcx, qword [section..data]
lea rdi, section..data
cmp rcx, rdi
je 0x1400f07ca
test byte [rcx + 0x1c], 8
je 0x1400f07ca
lea edx, [r9 + 0x2d]
jmp 0x1400f0b06
mov rdi, rbx
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
lea rcx, [rsp + 0x50]
call fcn.14002b698
mov rcx, r15
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
lea rcx, str.AsrVhd::DiskBuildVhdInfo
call fcn.140027f60
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov eax, esi
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400321c0
mov rbx, qword [rsp + 0x2d8]
add rsp, 0x290
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret