Function at 0x14002944c
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 [0x14016b400]
xor rax, rsp
mov qword [rbp + 0x3f0], rax
mov rdi, r8
mov qword [rbp - 0x68], r8
mov r15, rdx
mov dword [rsp + 0x58], ecx
xor ebx, ebx
lea rcx, str.AsrpGetMorePartitionInfo
lea esi, [rbx + 1]
call fcn.140029428
mov r14d, 0x208
mov qword [rsp + 0x70], 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 r13, 0xffffffffffffffff
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x5c], eax
mov r14d, ebx
mov dword [rsp + 0x60], eax
mov r12, r13
mov qword [rbp - 0x80], rbx
mov qword [rbp - 0x78], rbx
test rdi, rdi
je 0x140029502
mov qword [rdi], rbx
test r15, r15
je 0x140057c62
test rdi, rdi
je 0x140057cd2
cmp dword [r15 + 4], ebx
je 0x140029830
lea rax, [rsp + 0x68]
mov qword [rsp + 0x68], 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 + 0x68]
mov edi, ebx
test eax, eax
sete dil
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
jbe 0x140057d0b
test edi, edi
jne 0x140057d17
call fcn.14002b310
movsxd rdi, eax
test eax, eax
je 0x140057d53
cmp edi, esi
jne 0x140029593
lea rcx, [rsp + 0x78]
call fcn.14002acb8
test eax, eax
je 0x140057d90
lea rcx, [rbp + 0x1e0]
call fcn.14002abf4
test eax, eax
je 0x140057dc0
mov r12d, 3
mov qword [rsp + 0x30], rbx
mov r8d, r12d
mov dword [rsp + 0x28], 0x2000000
xor r9d, r9d
mov dword [rsp + 0x20], r12d
mov edx, 0x80000000
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov qword [rsp + 0x40], rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1400582d4
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.140029ea8
test eax, eax
je 0x140057e05
lea rcx, [rsp + 0x48]
call fcn.14002a490
test eax, eax
je 0x140057e67
mov rcx, qword [rsp + 0x48]
cmp word [rcx], bx
je 0x140029653
mov rax, r13
inc rax
cmp word [rcx + rax*2], bx
jne 0x140029632
cmp word [rcx + rax*2 - 2], 0x5c
jne 0x140029653
inc r13
cmp word [rcx + r13*2], bx
jne 0x140029643
mov word [rcx + r13*2 - 2], bx
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x2000000
mov r8d, r12d
mov edx, 0x80000000
mov dword [rsp + 0x20], r12d
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov r13, rax
mov qword [rsp + 0x50], rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140058287
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, r13
call fcn.140029ea8
test eax, eax
je 0x140057eee
mov eax, dword [r15 + 4]
lea ecx, [rax + rax*2]
shl ecx, 3
call fcn.1400293f0
mov qword [rsp + 0x70], rax
mov rdx, rax
test rax, rax
je 0x140057f1b
mov ecx, ebx
mov dword [rsp + 0x64], ebx
cmp dword [r15 + 4], ebx
jbe 0x14002981a
mov r11, rdi
mov qword [rsp + 0x68], rdi
lea rdi, section..data
mov r12d, 2
mov eax, ecx
lea r14, [rax + rax*8]
lea rax, [rax + rax*2]
add r14, r14
lea r13, [rdx + rax*8]
mov qword [rbp - 0x70], rax
mov dword [r13 + 8], ecx
cmp dword [r15 + r14*8 + 0x48], ebx
je 0x140029805
cmp dword [r15 + r14*8 + 0x30], ebx
jne 0x14002973e
mov al, byte [r15 + r14*8 + 0x50]
cmp al, 0xf
ja 0x14002973e
mov r8d, 0x8021
bt r8d, eax
jb 0x140029805
cmp dword [r15 + r14*8 + 0x30], esi
je 0x140057f4c
mov rax, qword [rbp - 0x80]
mov ecx, ebx
mov r10d, dword [rsp + 0x58]
mov r9d, dword [rax]
test r9d, r9d
je 0x140029784
mov r8, qword [rbp - 0x80]
mov eax, ecx
lea rdx, [rax + rax*2]
cmp dword [r8 + rdx*8 + 8], r10d
jne 0x14002977d
mov rax, qword [r15 + r14*8 + 0x38]
cmp qword [r8 + rdx*8 + 0x10], rax
je 0x1400298bf
add ecx, esi
cmp ecx, r9d
jb 0x14002975c
mov rax, qword [rbp - 0x78]
mov ecx, ebx
mov r9d, dword [rax]
test r9d, r9d
je 0x1400297ba
mov r8, qword [rbp - 0x78]
mov eax, ecx
lea rdx, [rax + rax*2]
cmp dword [r8 + rdx*8 + 8], r10d
jne 0x1400297b3
mov rax, qword [r15 + r14*8 + 0x38]
cmp qword [r8 + rdx*8 + 0x10], rax
je 0x1400298f0
add ecx, esi
cmp ecx, r9d
jb 0x140029792
mov edx, dword [r15 + r14*8 + 0x48]
lea r9, [rbp - 0x30]
mov ecx, r10d
call fcn.140027ae8
test eax, eax
je 0x14005825e
mov rdx, r13
lea rcx, [rbp - 0x30]
call fcn.140027b84
test eax, eax
je 0x140057f87
mov rcx, qword [section..data]
mov r11, qword [rsp + 0x68]
cmp r11, r12
je 0x140057fc0
mov rdx, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x64]
add ecx, esi
mov dword [rsp + 0x64], ecx
cmp ecx, dword [r15 + 4]
jb 0x1400296fa
mov r13, qword [rsp + 0x50]
mov rax, qword [rbp - 0x68]
mov qword [rsp + 0x70], rbx
mov qword [rax], rdx
mov r14, qword [rsp + 0x48]
mov r12, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
lea rax, [r12 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14002986c
mov rcx, r12
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
lea rdx, [r13 - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x14002987f
mov rcx, r13
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
lea rcx, str.AsrpGetMorePartitionInfo
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 + 0x3f0]
xor rcx, rsp
call fcn.1400321c0
mov rbx, qword [rsp + 0x558]
add rsp, 0x500
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
movzx eax, word [r13 + 0xc]
or ax, r12w
mov word [r13 + 0xc], ax
cmp r11, rsi
jne 0x1400298fa
cmp dword [rsp + 0x78], r10d
jne 0x1400298fa
or ax, 4
mov word [r13 + 0xc], ax
cmp r11, r12
jne 0x140029784
jmp 0x140057f74
or word [r13 + 0xc], si
jmp 0x1400297ba
cmp r11, r12
jne 0x140029784
jmp 0x1400298d9
mov r9d, 0x57
mov esi, ebx
mov ebx, r9d
mov rcx, qword [section..data]
lea rdi, section..data
cmp rcx, rdi
je 0x140029830
test byte [rcx + 0x1c], 8
je 0x140029830
lea edx, [r9 - 0x3b]
lea rax, str.pDriveLayoutEx
jmp 0x140057cb7
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r9d, eax
mov edx, 0x20
lea rax, str.GetRdisk0DeviceNumber_dwRDisk0DevNumber_
mov rcx, qword [section..data]
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401053e0]
mov qword [rsp + 0x20], rax
call fcn.1400e4514
nop
jmp 0x140029830
mov r9d, 0x57
mov esi, ebx
mov ebx, r9d
mov rcx, qword [section..data]
lea rdi, section..data
cmp rcx, rdi
je 0x140029830
test byte [rcx + 0x1c], 8
je 0x140029830
lea edx, [r9 - 0x3a]
lea rax, str.ppPartitionTable
jmp 0x140057cb7
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
jmp 0x140029565
mov rcx, qword [section..data]
lea rdi, section..data
cmp rcx, rdi
je 0x140029830
test byte [rcx + 0x1c], 2
je 0x140029830
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401053e0]
mov edx, 0x1e
call fcn.1400e44f4
nop
jmp 0x140029830
mov r9d, 0x65e
mov esi, ebx
mov ebx, r9d
mov rcx, qword [section..data]
lea rdi, section..data
cmp rcx, rdi
je 0x140029830
test byte [rcx + 0x1c], 8
je 0x140029830
mov edx, 0x1f
lea rax, str.ERROR_UNSUPPORTED_TYPE
jmp 0x140057cb7
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 0x140029830
test byte [rax + 0x1c], 8
je 0x140029830
jmp 0x140057c9b
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 0x140029830
test byte [rax + 0x1c], 8
je 0x140029830
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r9d, eax
mov edx, 0x21
lea rax, str.AsrGetSystemVolumeGlobalRootPath__wszSysVolPath__ARRAYSIZE_wszSysVolPath___
jmp 0x140057cb0
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 0x14002982b
test byte [rax + 0x1c], 8
je 0x14002982b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rcx, qword [section..data]
lea r8, [0x1401053e0]
mov r9d, eax
mov edx, 0x23
lea rax, str.DoVolumeIoctlCall_hSystemVolume__IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS__NULL__0___void__pSystemVolExtents__NULL_
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx + 0x10]
call fcn.1400e4514
nop
jmp 0x14002982b
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 0x140029826
test byte [rax + 0x1c], 8
je 0x140029826
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r9d, eax
mov edx, 0x24
lea rax, str.GetBootVolumeGuidName_pwszBootVolGuidName_
jmp 0x140057ebe
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r9d, eax
mov edx, 0x26
lea rax, str.DoVolumeIoctlCall_hBootVolume__IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS__NULL__0___void__pBootVolExtents__NULL_
mov rcx, qword [section..data]
jmp 0x140057ed3
mov edx, 0x27
lea rax, str.pPartitionTable
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401053e0]
mov qword [rsp + 0x20], rax
call fcn.1400e4514
nop
jmp 0x140029826
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 0x140029826
test byte [rax + 0x1c], 8
je 0x140029826
jmp 0x140057ea9
mov r9d, 0xe
mov esi, ebx
mov ebx, r9d
mov rcx, qword [section..data]
lea rdi, section..data
cmp rcx, rdi
je 0x140029826
test byte [rcx + 0x1c], 8
je 0x140029826
jmp 0x140057ec7
mov rax, qword [r15 + r14*8 + 0x50]
sub rax, qword [0x140136fa0]
jne 0x140057f66
mov rax, qword [r15 + r14*8 + 0x58]
sub rax, qword [0x140136fa8]
test rax, rax
je 0x140029805
jmp 0x140029749
mov eax, dword [r15 + r14*8 + 0x48]
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x5c], r10d
jmp 0x140029784
mov rcx, qword [section..data]
cmp rcx, rdi
je 0x1400297ee
test byte [rcx + 0x1c], r12b
je 0x1400297ee
mov rcx, qword [rcx + 0x10]
lea r9, [rbp - 0x30]
mov edx, 0x29
lea r8, [0x1401053e0]
call fcn.1400e4650
nop
jmp 0x1400297e7
cmp dword [r15 + r14*8 + 0x30], esi
jne 0x140057ff5
mov rax, qword [r15 + r14*8 + 0x50]
sub rax, qword [0x140136f70]
jne 0x140057fe1
mov rax, qword [r15 + r14*8 + 0x58]
sub rax, qword [0x140136f78]
test rax, rax
jne 0x140057ff5
mov r13d, dword [rsp + 0x58]
mov eax, dword [rsp + 0x5c]
mov edx, dword [rsp + 0x60]
jmp 0x140058016
mov r13d, dword [rsp + 0x58]
mov eax, dword [rsp + 0x5c]
cmp r13d, eax
jne 0x1400297fc
mov edx, dword [rsp + 0x60]
cmp dword [r15 + r14*8 + 0x48], edx
jne 0x1400297fc
cmp r13d, eax
jne 0x140058022
cmp dword [r15 + r14*8 + 0x48], edx
je 0x14005804e
cmp rcx, rdi
je 0x14005804e
test byte [rcx + 0x1c], 4
je 0x14005804e
mov eax, dword [r15 + r14*8 + 0x48]
lea r8, [0x1401053e0]
mov rcx, qword [rcx + 0x10]
mov edx, 0x2a
mov r9d, r13d
mov dword [rsp + 0x20], eax
call fcn.1400e46dc
mov eax, dword [r15 + r14*8 + 0x48]
lea r9, str._GLOBALROOT
mov dword [rsp + 0x28], eax
lea r8, str._sDeviceHarddisk_dPartition_d_
mov r12d, 0x104
mov dword [rsp + 0x20], r13d
mov edx, r12d
lea rcx, [rbp - 0x30]
call fcn.140027130
test eax, eax
js 0x1400581ec
mov rax, qword [rbp - 0x70]
xor r9d, r9d
mov rcx, qword [rsp + 0x70]
xor r8d, r8d
mov dword [rsp + 0x38], 0x14
xor edx, edx
lea r12, [rcx + rax*8]
lea rax, [rbp - 0x60]
mov byte [r12 + 0xe], bl
mov qword [rsp + 0x30], rax
lea rcx, [rbp - 0x30]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
mov word [rbp - 0x60], bx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetVolumeInformationW]
test eax, eax
jne 0x14005815c
mov rax, qword [section..data]
cmp rax, rdi
je 0x140058107
test byte [rax + 0x1c], 4
je 0x140058107
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rcx, qword [section..data]
mov r9d, r13d
mov dword [rsp + 0x28], eax
mov eax, dword [r15 + r14*8 + 0x48]
mov dword [rsp + 0x20], eax
mov rcx, qword [rcx + 0x10]
call fcn.1400f0618
cmp r13d, dword [rsp + 0x5c]
jne 0x1400581a1
mov eax, dword [rsp + 0x60]
cmp dword [r15 + r14*8 + 0x48], eax
jne 0x1400581a1
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 0x1400581e2
test byte [rax + 0x1c], 8
je 0x1400581e2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r9d, eax
mov edx, 0x2d
lea rax, str.::GetLastError__
jmp 0x1400581c6
lea rdx, [r12 + 0xe]
lea rcx, [rbp - 0x60]
call fcn.1400f70b0
test eax, eax
jne 0x1400581a1
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 0x1400581e2
test byte [rax + 0x1c], 8
je 0x1400581e2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r9d, eax
mov edx, 0x2e
lea rax, str.GetFileSytemType__wszFsName__pPartitionTable_dwIndex_.FileSystemType__
jmp 0x1400581c6
mov r11, qword [rsp + 0x68]
mov r12d, 2
jmp 0x1400297fc
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r9d, eax
mov edx, 0x28
lea rax, str.DiskBuildDevicePartitionPath__dwDeviceNumber__pCurPtnEx__PartitionNumber__FALSE__ARRAY_COUNT_PARAM_wszDevicePath___
mov rcx, qword [section..data]
lea r8, [0x1401053e0]
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx + 0x10]
call fcn.1400e4514
mov r13, qword [rsp + 0x50]
jmp 0x140029826
mov ecx, eax
mov esi, ebx
call fcn.1400f2b1c
mov ebx, eax
mov rax, qword [section..data]
cmp rax, rdi
je 0x1400581e2
test byte [rax + 0x1c], 8
je 0x1400581e2
mov eax, dword [r15 + r14*8 + 0x48]
lea r9, str._GLOBALROOT
mov dword [rsp + 0x28], eax
lea r8, str._sDeviceHarddisk_dPartition_d_
mov rdx, r12
mov dword [rsp + 0x20], r13d
lea rcx, [rbp - 0x30]
call fcn.140027130
mov rcx, qword [section..data]
lea r8, [0x1401053e0]
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.1400e4514
jmp 0x1400581e2
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 0x1400581e2
test byte [rax + 0x1c], 8
je 0x1400581e2
jmp 0x1400581b1
mov esi, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
mov rcx, qword [section..data]
lea rdi, section..data
cmp rcx, rdi
je 0x140029826
test byte [rcx + 0x1c], 8
je 0x140029826
mov rcx, qword [rcx + 0x10]
lea r9, str.hBootVolume
mov edx, 0x25
lea r8, [0x1401053e0]
call fcn.1400e5af8
nop
jmp 0x140029826
mov esi, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
mov rcx, qword [section..data]
lea rdi, section..data
cmp rcx, rdi
je 0x14002982b
test byte [rcx + 0x1c], 8
je 0x14002982b
mov rcx, qword [rcx + 0x10]
lea r9, str.hSystemVolume
mov edx, 0x22
lea r8, [0x1401053e0]
call fcn.1400e5af8
nop
jmp 0x14002982b