Function at 0x14005731c
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
xor r13d, r13d
mov r12, r9
mov qword [rbp - 8], r13
mov r14d, r8d
mov dword [rbp + 0x30], r13d
mov rsi, rdx
mov dword [rbp - 0x10], r13d
mov rbx, rcx
mov r15d, r13d
mov edi, r13d
test rcx, rcx
je 0x1400578cf
test r9, r9
je 0x1400578cf
test rdx, rdx
je 0x1400578cf
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
lea edx, [r13 + 8]
lea r8d, [r13 + 0x78]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x1400573b5
mov ebx, 0x8007000e
mov r8d, 0x93
mov r9d, ebx
jmp 0x1400578df
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 0x78]
call sub.msvcrt.dll_memset
mov qword [rdi + 8], rdi
mov rax, rbx
mov qword [rdi], rdi
mov rcx, rsi
mov qword [rdi + 0x38], rbx
mov qword [rdi + 0x48], r13
mov dword [rdi + 0x60], r14d
cmp qword [rbx + 0x48], r13
cmovne rax, qword [rbx + 0x48]
mov eax, dword [rax + 0x20]
mov dword [rdi + 0x20], eax
mov rax, rbx
cmp qword [rbx + 0x48], r13
cmovne rax, qword [rbx + 0x48]
xor r8d, r8d
xor edx, edx
movups xmm0, xmmword [rax + 0x10]
movdqu xmmword [rdi + 0x24], xmm0
call fcn.14002f2f8
mov qword [rdi + 0x10], rax
test rax, rax
jne 0x14005745d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
mov esi, 0x80070000
or ecx, esi
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x14005744a
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
jmp 0x14005744f
mov ebx, 0x80004005
mov r9d, ebx
mov r8d, 0xb4
jmp 0x1400578df
mov rcx, rbx
call fcn.14002e168
xor edx, edx
mov rcx, rax
xor r8d, r8d
call fcn.14002f2f8
mov qword [rdi + 0x18], rax
test rax, rax
jne 0x1400574c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
mov esi, 0x80070000
or ecx, esi
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x1400574b2
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
jmp 0x1400574b7
mov ebx, 0x80004005
mov r9d, ebx
mov r8d, 0xba
jmp 0x1400578df
mov rcx, qword [rdi + 0x10]
call fcn.14000c6bc
test rax, rax
jne 0x14005751d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
mov esi, 0x80070000
or ecx, esi
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x14005750a
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
jmp 0x14005750f
mov ebx, 0x80004005
mov r9d, ebx
mov r8d, 0xc3
jmp 0x1400578df
mov rcx, qword [rdi + 0x10]
call fcn.14000c064
test eax, eax
jne 0x14005753d
mov ebx, 0xc1420115
mov r8d, 0xc8
mov r9d, ebx
jmp 0x1400578df
lea rdx, [rbp - 8]
lea rcx, [rdi + 0x24]
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
nop dword [rax + rax]
test eax, eax
je 0x140057571
movzx ebx, ax
mov r8d, 0xcc
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov r9d, ebx
jmp 0x1400578df
mov rax, qword [rdi + 0x10]
lea rdx, str.Mounting_new_image._r_nWim:___________s__r_nImage_Index:___d__r_nMount_Guid:____s__r_nMount_Path:____s_
mov r9d, dword [rdi + 0x20]
mov ecx, 0x20000
mov r8, qword [rdi + 0x18]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp - 8]
mov qword [rsp + 0x20], rax
call fcn.140046708
mov ebx, eax
test eax, eax
jns 0x1400575b0
mov r9d, eax
mov r8d, 0xd8
jmp 0x1400578df
mov dword [rsp + 0x38], r13d
xor r9d, r9d
mov qword [rsp + 0x30], r13
xor r8d, r8d
mov qword [rsp + 0x28], r13
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
nop dword [rax + rax]
test eax, eax
je 0x1400575f3
mov r9d, 0xc1420131
mov r8d, 0xe3
mov ebx, r9d
jmp 0x1400578df
mov rcx, qword [rdi + 0x10]
lea rdx, [rbp + 0x30]
call fcn.1400520b4
mov ebx, eax
cmp eax, 0x80070002
jne 0x14005761d
mov r9d, 0xc1420131
mov r8d, 0xf3
mov ebx, r9d
jmp 0x1400578df
test eax, eax
jns 0x14005762f
mov r9d, eax
mov r8d, 0xf5
jmp 0x1400578df
cmp dword [rbp + 0x30], r13d
jne 0x140057648
mov ebx, 0xc1420114
mov r8d, 0xf9
mov r9d, ebx
jmp 0x1400578df
mov rcx, qword [rdi + 0x10]
mov r14, r13
mov qword [rbp + 0x30], r13
mov esi, 0x80070057
test rcx, rcx
je 0x1400576be
cmp word [rcx], r13w
je 0x1400576be
lea rdx, [rbp + 0x30]
call fcn.14002f99c
mov ebx, eax
test eax, eax
jns 0x140057699
mov r9d, eax
mov qword [rsp + 0x20], r13
mov r8d, 0x460
lea rdx, str.onecore_base_ntsetupopktoolsosimagelibutility_fileio.c
lea rcx, str.FIOGetDriveType
call fcn.140046874
mov r14, qword [rbp + 0x30]
jmp 0x1400576e1
mov r14, qword [rbp + 0x30]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
nop dword [rax + rax]
cmp eax, 1
jne 0x1400576b9
mov r8d, 0x468
jmp 0x1400576c4
mov r15d, eax
jmp 0x1400576e1
mov r8d, 0x45a
mov r9d, esi
mov qword [rsp + 0x20], r13
lea rdx, str.onecore_base_ntsetupopktoolsosimagelibutility_fileio.c
mov ebx, esi
lea rcx, str.FIOGetDriveType
call fcn.140046874
test r14, r14
je 0x140057706
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
test ebx, ebx
jns 0x140057718
mov r9d, ebx
mov r8d, 0x101
jmp 0x1400578df
cmp r15d, 3
je 0x140057731
mov ebx, 0xc1420134
mov r8d, 0x105
mov r9d, ebx
jmp 0x1400578df
mov rcx, qword [rdi + 0x10]
lea rdx, [rdi + 0x50]
call fcn.1400529e8
mov ebx, eax
test eax, eax
jns 0x140057752
mov r9d, eax
mov r8d, 0x10d
jmp 0x1400578df
mov rcx, qword [rdi + 0x10]
mov r14, r13
mov qword [rbp + 0x30], r13
test rcx, rcx
je 0x140057827
cmp word [rcx], r13w
je 0x140057827
lea rdx, [rbp + 0x30]
call fcn.14002f99c
mov ebx, eax
test eax, eax
jns 0x1400577a9
mov r9d, eax
mov qword [rsp + 0x20], r13
mov r8d, 0x437
lea rdx, str.onecore_base_ntsetupopktoolsosimagelibutility_fileio.c
lea rcx, str.FIOGetVolumeFlags
call fcn.140046874
mov r14, qword [rbp + 0x30]
jmp 0x14005784a
mov r14, qword [rbp + 0x30]
lea rax, [rbp - 0x10]
mov dword [rsp + 0x38], r13d
mov rcx, r14
mov qword [rsp + 0x30], r13
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
nop dword [rax + rax]
test eax, eax
jne 0x14005784a
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
mov esi, 0x80070000
or ecx, esi
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x140057817
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
jmp 0x14005781c
mov ebx, 0x80004005
mov r9d, ebx
mov r8d, 0x443
jmp 0x140057832
mov ebx, esi
mov r9d, esi
mov r8d, 0x431
lea rdx, str.onecore_base_ntsetupopktoolsosimagelibutility_fileio.c
mov qword [rsp + 0x20], r13
lea rcx, str.FIOGetVolumeFlags
call fcn.140046874
test r14, r14
je 0x14005786f
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
test ebx, ebx
jns 0x14005787e
mov r9d, ebx
mov r8d, 0x114
jmp 0x1400578df
test byte [rbp - 0x10], 0x80
jne 0x140057894
mov ebx, 0xc142011f
mov r8d, 0x118
mov r9d, ebx
jmp 0x1400578df
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
nop dword [rax + rax]
lea r9, [rdi + 0x58]
mov edx, 0xf01ff
mov rcx, rax
mov r8d, 1
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
nop dword [rax + rax]
test eax, eax
jne 0x1400578c6
mov qword [rdi + 0x58], r13
mov qword [r12], rdi
mov rdi, r13
jmp 0x1400578f7
mov esi, 0x80070057
mov r8d, 0x8f
mov ebx, esi
mov r9d, esi
lea rdx, str.onecore_base_ntsetupopktoolsosimagelibmountmountedimage.c
mov qword [rsp + 0x20], r13
lea rcx, str.ImageCreate
call fcn.140046874
cmp qword [rbp - 8], r13
je 0x14005790d
lea rcx, [rbp - 8]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
nop dword [rax + rax]
mov rcx, rdi
call fcn.140057bb4
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret