Function at 0x1400d832c
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x400]
sub rsp, 0x500
mov rax, qword [0x1401543b0]
xor rax, rsp
mov qword [rbp + 0x3f0], rax
mov rdi, r8
mov qword [rbp - 0x68], r8
mov r15, rdx
mov dword [rsp + 0x50], ecx
xor ebx, ebx
lea rcx, str.AsrpGetMorePartitionInfo
lea esi, [rbx + 1]
call fcn.140008368
mov r14d, 0x208
mov qword [rsp + 0x40], rbx
mov r8d, r14d
lea rcx, [rbp - 0x30]
xor edx, edx
call sub.msvcrt.dll_memset
mov r8d, r14d
lea rcx, [rbp + 0x1e0]
xor edx, edx
call sub.msvcrt.dll_memset
xor edx, edx
lea r8d, [rbx + 0x28]
lea rcx, [rbp - 0x60]
call sub.msvcrt.dll_memset
or eax, 0xffffffff
mov qword [rsp + 0x48], rbx
or r12, 0xffffffffffffffff
mov dword [rsp + 0x78], eax
mov qword [rbp - 0x70], r12
mov r14d, ebx
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x64], eax
mov qword [rbp - 0x80], rbx
mov qword [rbp - 0x78], rbx
test rdi, rdi
je 0x1400d83e3
mov qword [rdi], rbx
test r15, r15
jne 0x1400d8437
lea r9d, [r15 + 0x57]
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x140154180]
lea rdi, [0x140154180]
cmp rcx, rdi
je 0x1400d8d6e
test byte [rcx + 0x1c], 8
je 0x1400d8d6e
lea edx, [r15 + 0x1c]
lea rax, str.pDriveLayoutEx
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400ef890]
mov qword [rsp + 0x20], rax
call fcn.1400cc0d8
jmp 0x1400d8d6e
test rdi, rdi
jne 0x1400d8473
lea r9d, [rdi + 0x57]
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x140154180]
lea rdi, [0x140154180]
cmp rcx, rdi
je 0x1400d8d6e
test byte [rcx + 0x1c], 8
je 0x1400d8d6e
lea edx, [r9 - 0x3a]
lea rax, str.ppPartitionTable
jmp 0x1400d841d
cmp dword [r15 + 4], ebx
jne 0x1400d8481
mov rcx, rbx
jmp 0x1400d8d71
lea rax, [rsp + 0x70]
mov qword [rsp + 0x70], rbx
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlMiniNT
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x70]
mov edi, ebx
test eax, eax
sete dil
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400d84ca
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test edi, edi
je 0x1400d8506
mov rcx, qword [0x140154180]
lea rdi, [0x140154180]
cmp rcx, rdi
je 0x1400d8479
mov r13d, 2
test byte [rcx + 0x1c], r13b
je 0x1400d8479
mov rcx, qword [rcx + 0x10]
lea edx, [r13 + 0x1c]
lea r8, [0x1400ef890]
call fcn.1400cc0b4
jmp 0x1400d8479
call fcn.1400d4688
movsxd rdi, eax
test eax, eax
jne 0x1400d854d
mov r9d, 0x65e
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x140154180]
lea rdi, [0x140154180]
cmp rcx, rdi
je 0x1400d8d6e
test byte [rcx + 0x1c], 8
je 0x1400d8d6e
lea edx, [rax + 0x1f]
lea rax, str.ERROR_UNSUPPORTED_TYPE
jmp 0x1400d841d
cmp edi, esi
jne 0x1400d85ab
lea rcx, [rsp + 0x78]
call fcn.1400dad5c
test eax, eax
jne 0x1400d85ab
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 0x1400d8d6e
test byte [rax + 0x1c], 8
je 0x1400d8d6e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov r9d, eax
mov edx, 0x20
lea rax, str.GetRdisk0DeviceNumber_dwRDisk0DevNumber_
mov rcx, qword [0x140154180]
jmp 0x1400d841d
lea rcx, [rbp + 0x1e0]
call fcn.1400d7acc
test eax, eax
jne 0x1400d85fd
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 0x1400d8d6e
test byte [rax + 0x1c], 8
je 0x1400d8d6e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov r9d, eax
mov edx, 0x21
lea rax, str.AsrGetSystemVolumeGlobalRootPath__wszSysVolPath__ARRAYSIZE_wszSysVolPath___
jmp 0x1400d859f
mov r13d, 3
mov qword [rsp + 0x30], rbx
mov r8d, r13d
mov dword [rsp + 0x28], 0x2000000
xor r9d, r9d
mov dword [rsp + 0x20], r13d
mov edx, 0x80000000
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_CreateFileW]
mov qword [rbp - 0x70], rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1400d8d2f
lea rcx, [rbp - 0x80]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov rcx, rax
xor r8d, r8d
mov edx, 0x560000
call fcn.1400deee0
test eax, eax
jne 0x1400d86a8
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 0x1400d8d6e
test byte [rax + 0x1c], 8
je 0x1400d8d6e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov r9d, eax
lea edx, [r13 + 0x20]
lea rax, str.DoVolumeIoctlCall_hSystemVolume__IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS__NULL__0___void__pSystemVolExtents__NULL_
jmp 0x1400d859f
lea rcx, [rsp + 0x48]
call fcn.1400dcc00
test eax, eax
jne 0x1400d8714
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 0x1400d870a
test byte [rax + 0x1c], 8
je 0x1400d870a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov r9d, eax
mov edx, 0x24
lea rax, str.GetBootVolumeGuidName_pwszBootVolGuidName_
mov rcx, qword [0x140154180]
lea r8, [0x1400ef890]
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx + 0x10]
call fcn.1400cc0d8
mov r14, qword [rsp + 0x48]
jmp 0x1400d8d6e
mov rcx, qword [rsp + 0x48]
cmp word [rcx], bx
je 0x1400d8742
mov rax, r12
inc rax
cmp word [rcx + rax*2], bx
jne 0x1400d8721
cmp word [rcx + rax*2 - 2], 0x5c
jne 0x1400d8742
inc r12
cmp word [rcx + r12*2], bx
jne 0x1400d8732
mov word [rcx + r12*2 - 2], bx
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x2000000
mov r8d, r13d
mov edx, 0x80000000
mov dword [rsp + 0x20], r13d
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_CreateFileW]
mov r12, rax
mov qword [rsp + 0x58], rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1400d8ce3
lea rax, [rbp - 0x78]
mov qword [rsp + 0x28], rbx
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x560000
mov rcx, r12
call fcn.1400deee0
test eax, eax
jne 0x1400d87dd
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 0x1400d883a
test byte [rax + 0x1c], 8
je 0x1400d883a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov r9d, eax
mov edx, 0x26
lea rax, str.DoVolumeIoctlCall_hBootVolume__IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS__NULL__0___void__pBootVolExtents__NULL_
jmp 0x1400d86ee
mov eax, dword [r15 + 4]
lea ecx, [rax + rax*2]
shl ecx, 3
call fcn.1400ddeec
mov qword [rsp + 0x40], rax
mov rdx, rax
test rax, rax
jne 0x1400d8849
lea r9d, [rax + 0xe]
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x140154180]
lea rdi, [0x140154180]
cmp rcx, rdi
je 0x1400d883a
test byte [rcx + 0x1c], 8
je 0x1400d883a
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x27]
lea rax, str.pPartitionTable
lea r8, [0x1400ef890]
mov qword [rsp + 0x20], rax
call fcn.1400cc0d8
mov r14, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
jmp 0x1400d8d71
mov ecx, ebx
mov dword [rsp + 0x68], ebx
cmp dword [r15 + 4], ebx
jbe 0x1400d8bb9
mov r10, rdi
mov qword [rsp + 0x70], rdi
lea rdi, [0x140154180]
mov r13d, 2
mov eax, ecx
lea r14, [rax + rax*8]
add r14, r14
lea rax, [rax + rax*2]
lea r12, [rdx + rax*8]
mov dword [r12 + 8], ecx
cmp dword [r15 + r14*8 + 0x48], ebx
je 0x1400d8ba4
cmp dword [r15 + r14*8 + 0x30], ebx
jne 0x1400d88af
mov al, byte [r15 + r14*8 + 0x50]
cmp al, 0xf
ja 0x1400d88af
mov r8d, 0x8021
bt r8d, eax
jb 0x1400d8ba4
cmp dword [r15 + r14*8 + 0x30], esi
jne 0x1400d88d9
mov rax, qword [r15 + r14*8 + 0x50]
sub rax, qword [0x1401212d8]
jne 0x1400d88d0
mov rax, qword [r15 + r14*8 + 0x58]
sub rax, qword [0x1401212e0]
test rax, rax
je 0x1400d8ba4
mov rax, qword [rbp - 0x80]
mov ecx, ebx
mov r11d, dword [rsp + 0x50]
mov r9d, dword [rax]
test r9d, r9d
je 0x1400d894c
mov r8, qword [rbp - 0x80]
mov eax, ecx
lea rdx, [rax + rax*2]
cmp dword [r8 + rdx*8 + 8], r11d
jne 0x1400d8909
mov rax, qword [r15 + r14*8 + 0x38]
cmp qword [r8 + rdx*8 + 0x10], rax
je 0x1400d8912
add ecx, esi
cmp ecx, r9d
jb 0x1400d88ec
jmp 0x1400d894c
or word [r12 + 0xc], r13w
movzx eax, word [r12 + 0xc]
cmp r10, rsi
jne 0x1400d892a
cmp dword [rsp + 0x78], r11d
je 0x1400d892f
cmp r10, r13
jne 0x1400d894c
or ax, 4
mov word [r12 + 0xc], ax
cmp r10, r13
jne 0x1400d894c
mov eax, dword [r15 + r14*8 + 0x48]
mov dword [rsp + 0x64], eax
mov dword [rsp + 0x60], r11d
mov rax, qword [rbp - 0x78]
mov ecx, ebx
mov r9d, dword [rax]
test r9d, r9d
je 0x1400d8986
mov r8, qword [rbp - 0x78]
mov eax, ecx
lea rdx, [rax + rax*2]
cmp dword [r8 + rdx*8 + 8], r11d
jne 0x1400d8977
mov rax, qword [r15 + r14*8 + 0x38]
cmp qword [r8 + rdx*8 + 0x10], rax
je 0x1400d8980
add ecx, esi
cmp ecx, r9d
jb 0x1400d895a
jmp 0x1400d8986
or word [r12 + 0xc], si
mov edx, dword [r15 + r14*8 + 0x48]
lea r9, [rbp - 0x30]
mov ecx, r11d
call fcn.1400de240
test eax, eax
je 0x1400d8c8c
mov rdx, r12
lea rcx, [rbp - 0x30]
call fcn.1400e0ae8
test eax, eax
jne 0x1400d89d8
mov rcx, qword [0x140154180]
cmp rcx, rdi
je 0x1400d89df
test byte [rcx + 0x1c], r13b
je 0x1400d89df
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x29]
lea r9, [rbp - 0x30]
lea r8, [0x1400ef890]
call fcn.1400cc238
mov rcx, qword [0x140154180]
mov r10, qword [rsp + 0x70]
cmp r10, r13
jne 0x1400d8b9b
cmp dword [r15 + r14*8 + 0x30], esi
jne 0x1400d8a13
mov rax, qword [r15 + r14*8 + 0x50]
sub rax, qword [0x1401212a8]
jne 0x1400d8a0e
mov rax, qword [r15 + r14*8 + 0x58]
sub rax, qword [0x1401212b0]
test rax, rax
je 0x1400d8a36
mov r8d, dword [rsp + 0x50]
mov eax, dword [rsp + 0x60]
cmp r8d, eax
jne 0x1400d8b9b
mov edx, dword [rsp + 0x64]
cmp dword [r15 + r14*8 + 0x48], edx
jne 0x1400d8b9b
jmp 0x1400d8a43
mov r8d, dword [rsp + 0x50]
mov eax, dword [rsp + 0x60]
mov edx, dword [rsp + 0x64]
cmp r8d, eax
jne 0x1400d8a4f
cmp dword [r15 + r14*8 + 0x48], edx
je 0x1400d8a80
cmp rcx, rdi
je 0x1400d8a80
test byte [rcx + 0x1c], 4
je 0x1400d8a80
mov eax, dword [r15 + r14*8 + 0x48]
mov r9d, r8d
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400ef890]
mov edx, 0x2a
mov dword [rsp + 0x20], eax
call fcn.1400cc318
mov r8d, dword [rsp + 0x50]
mov eax, dword [r15 + r14*8 + 0x48]
lea r9, str._GLOBALROOT
mov dword [rsp + 0x28], eax
lea rcx, [rbp - 0x30]
mov dword [rsp + 0x20], r8d
mov edx, 0x104
lea r8, str._sDeviceHarddisk_dPartition_d_
call fcn.140006550
test eax, eax
js 0x1400d8c0b
mov dword [rsp + 0x38], 0x14
lea rax, [rbp - 0x60]
mov qword [rsp + 0x30], rax
lea rcx, [rbp - 0x30]
mov byte [r12 + 0xe], bl
xor r9d, r9d
mov qword [rsp + 0x28], rbx
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rbx
mov word [rbp - 0x60], bx
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetVolumeInformationW]
test eax, eax
jne 0x1400d8b84
mov rax, qword [0x140154180]
cmp rax, rdi
je 0x1400d8b2f
test byte [rax + 0x1c], 4
je 0x1400d8b2f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov rcx, qword [0x140154180]
mov r12d, dword [rsp + 0x50]
mov r9d, r12d
mov dword [rsp + 0x28], eax
mov eax, dword [r15 + r14*8 + 0x48]
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x20], eax
call fcn.1400db0a8
jmp 0x1400d8b34
mov r12d, dword [rsp + 0x50]
cmp r12d, dword [rsp + 0x60]
jne 0x1400d8b96
mov eax, dword [rsp + 0x64]
cmp dword [r15 + r14*8 + 0x48], eax
jne 0x1400d8b96
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 0x1400d8cd9
test byte [rax + 0x1c], 8
je 0x1400d8cd9
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov r9d, eax
mov edx, 0x2d
lea rax, str.::GetLastError__
jmp 0x1400d8cbd
lea rdx, [r12 + 0xe]
lea rcx, [rbp - 0x60]
call fcn.1400e4068
test eax, eax
je 0x1400d8bcd
mov r10, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x68]
add ecx, esi
mov dword [rsp + 0x68], ecx
cmp ecx, dword [r15 + 4]
jb 0x1400d886e
mov r12, qword [rsp + 0x58]
mov rax, qword [rbp - 0x68]
mov rcx, rbx
mov r14, qword [rsp + 0x48]
mov qword [rax], rdx
jmp 0x1400d8d71
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 0x1400d8cd9
test byte [rax + 0x1c], 8
je 0x1400d8cd9
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov r9d, eax
mov edx, 0x2e
lea rax, str.GetFileSytemType__wszFsName__pPartitionTable_dwIndex_.FileSystemType__
jmp 0x1400d8cbd
mov ecx, eax
mov esi, ebx
call fcn.1400de1e4
mov ebx, eax
mov rax, qword [0x140154180]
cmp rax, rdi
je 0x1400d8cd9
test byte [rax + 0x1c], 8
je 0x1400d8cd9
mov eax, dword [r15 + r14*8 + 0x48]
lea r9, str._GLOBALROOT
mov r12d, dword [rsp + 0x50]
lea r8, str._sDeviceHarddisk_dPartition_d_
mov dword [rsp + 0x28], eax
lea rcx, [rbp - 0x30]
mov edx, 0x104
mov dword [rsp + 0x20], r12d
call fcn.140006550
mov rcx, qword [0x140154180]
lea r8, [0x1400ef890]
mov r9d, eax
mov edx, 0x2b
lea rax, str.::StringCchPrintf__wszDevicePath__ARRAYSIZE_wszDevicePath___L__sDeviceHarddisk_dPartition_d___L__GLOBALROOT___dwDeviceNumber__pCurPtnEx__PartitionNumber__
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx + 0x10]
call fcn.1400cc0d8
jmp 0x1400d8cd9
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 0x1400d8cd9
test byte [rax + 0x1c], 8
je 0x1400d8cd9
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov r9d, eax
mov edx, 0x28
lea rax, str.DiskBuildDevicePartitionPath__dwDeviceNumber__pCurPtnEx__PartitionNumber__FALSE__ARRAY_COUNT_PARAM_wszDevicePath___
mov rcx, qword [0x140154180]
lea r8, [0x1400ef890]
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx + 0x10]
call fcn.1400cc0d8
mov r12, qword [rsp + 0x58]
jmp 0x1400d883a
mov esi, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x140154180]
lea rdi, [0x140154180]
cmp rcx, rdi
je 0x1400d870a
test byte [rcx + 0x1c], 8
je 0x1400d870a
mov rcx, qword [rcx + 0x10]
lea r9, str.hBootVolume
mov edx, 0x25
lea r8, [0x1400ef890]
call fcn.1400cdc30
jmp 0x1400d870a
mov esi, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x140154180]
lea rdi, [0x140154180]
cmp rcx, rdi
je 0x1400d8d6e
test byte [rcx + 0x1c], 8
je 0x1400d8d6e
mov rcx, qword [rcx + 0x10]
lea r9, str.hSystemVolume
mov edx, 0x22
lea r8, [0x1400ef890]
call fcn.1400cdc30
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoTaskMemFree]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoTaskMemFree]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoTaskMemFree]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoTaskMemFree]
mov rcx, qword [rbp - 0x70]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400d8da8
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
lea rdx, [r12 - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x1400d8dbc
mov rcx, r12
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
lea rcx, str.AsrpGetMorePartitionInfo
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 + 0x3f0]
xor rcx, rsp
call fcn.14001ff30
mov rbx, qword [rsp + 0x558]
add rsp, 0x500
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret