Function at 0x140047284
Capabilities:
Get disk information

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1e8]
sub rsp, 0x2e8
mov rax, qword [0x1400b8288]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov r15, qword [rbp + 0x250]
mov r14, rdx
mov rsi, qword [rbp + 0x258]
mov rdi, r8
mov r13, qword [rbp + 0x260]
mov r12, rcx
mov qword [rbp - 0x68], rdx
xor edx, edx
mov qword [rbp - 0x40], r9
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x78], rsi
mov qword [rbp - 0x48], r13
mov dword [rsp + 0x70], edx
mov dword [rsp + 0x7c], 0x3e8
mov dword [rsp + 0x78], 1
test r8, r8
je 0x140047318
movzx eax, byte [r8 + 0xf]
movzx ecx, byte [r8 + 0xf]
and eax, 0x10
and ecx, 4
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rcx
jmp 0x140047326
mov rax, rdx
mov qword [rbp - 0x60], rdx
mov rcx, rdx
mov qword [rbp - 0x58], rdx
mov qword [rbp - 0x80], rdx
test r12, r12
je 0x140047a97
test r14, r14
jne 0x140047341
test r9, r9
je 0x140047a97
test rsi, rsi
je 0x140047a97
movabs r10, 0xffffffffffffff
mov ebx, edx
test rax, rax
je 0x1400473b6
mov r9, qword [rdi + 8]
lea rax, [rbp - 0x80]
mov r8, qword [rdi + 0x10]
and r9, r10
mov qword [rsp + 0x40], rax
mov rdx, r14
mov eax, dword [rbp + 0x268]
mov rcx, r12
mov dword [rsp + 0x30], eax
mov rax, qword [r13]
mov qword [rsp + 0x28], rax
mov rax, qword [r13 + 8]
mov qword [rsp + 0x20], rax
call fcn.14003e534
xor edx, edx
mov ebx, eax
test eax, eax
jns 0x140047729
mov dword [rsp + 0x30], 0x1e7
lea r9, str.DecompressChunkedFile_failed
jmp 0x140047707
test rcx, rcx
je 0x14004748f
mov r9, qword [rdi + 8]
lea rax, [rbp - 0x80]
mov r8, qword [rdi + 0x10]
and r9, r10
mov qword [rsp + 0x58], rax
mov rdx, r14
mov eax, dword [rbp + 0x268]
mov rcx, r12
mov dword [rsp + 0x40], eax
mov rax, qword [r13]
mov qword [rsp + 0x38], rax
mov rax, qword [r13 + 8]
mov qword [rsp + 0x30], rax
mov rax, qword [rdi + 0x18]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call fcn.14003a1cc
xor edx, edx
test eax, eax
jne 0x140047a13
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
xor edx, edx
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
test eax, eax
jns 0x140047455
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
xor edx, edx
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x14004747b
jmp 0x14004745a
mov ebx, 0x80004005
mov qword [rsp + 0x20], rdx
lea rcx, str.ResExtract
lea rdx, str.onecore_base_ntsetupopktoolsosimagelibmain_resextract.c
mov r9d, ebx
mov r8d, 0x202
call fcn.140046874
mov dword [rsp + 0x30], 0x204
lea r9, str.UncompressFile_failed
jmp 0x140047707
test r15, r15
je 0x140047611
lea rax, [rbp - 0x80]
mov r8, r15
mov qword [rsp + 0x48], rax
mov rdx, r9
mov eax, dword [rbp + 0x268]
mov rcx, r12
mov dword [rsp + 0x30], eax
mov rax, qword [r13]
mov qword [rsp + 0x28], rax
mov rax, qword [r13 + 8]
mov qword [rsp + 0x20], rax
call fcn.1400335f0
xor edx, edx
test eax, eax
jne 0x140047a13
mov r8d, 0x200
lea rcx, [rbp - 0x30]
call sub.msvcrt.dll_memset
xor ebx, ebx
lea r8, str.failed_to_extract_file_from_reference_extension
lea rax, [rbp - 0x30]
mov qword [rbp - 0x70], rbx
sub r8, rax
lea rcx, [rbp - 0x30]
mov edx, 0x100
lea rax, [rdx + 0x7ffffefe]
test rax, rax
je 0x140047524
movzx eax, word [rcx + r8]
test ax, ax
je 0x140047524
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140047501
test rdx, rdx
lea rax, [rcx - 2]
lea r8, [rbp - 0x70]
mov edx, reloc.Cabinet.dll_FDICreate
cmovne rax, rcx
lea rcx, [r15 + 0x10]
mov word [rax], bx
call fcn.140043b7c
test eax, eax
js 0x140047597
lea r8, str.__hash_
mov edx, 0x100
lea rcx, [rbp - 0x30]
call fcn.1400010f8
mov rbx, qword [rbp - 0x70]
lea rcx, [rbp - 0x30]
mov r8, rbx
mov edx, 0x100
call fcn.1400010f8
test rbx, rbx
je 0x140047597
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
test eax, eax
jns 0x1400475d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
xor edx, edx
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x140047600
jmp 0x1400475df
mov ebx, 0x80004005
xor edx, edx
mov qword [rsp + 0x20], rdx
lea rcx, str.ResExtract
lea rdx, str.onecore_base_ntsetupopktoolsosimagelibmain_resextract.c
mov r9d, ebx
mov r8d, 0x227
call fcn.140046874
mov dword [rsp + 0x30], 0x229
lea r9, [rbp - 0x30]
jmp 0x140047707
mov rcx, r14
mov r8, rdx
call fcn.14002e568
mov rcx, qword [0x1400bac90]
mov qword [rbp - 0x70], rax
test rdi, rdi
je 0x140047639
mov r8, qword [rdi + 8]
mov rax, qword [rdi + 0x10]
and r8, r10
jmp 0x14004763c
mov rax, rcx
lea rdx, [rbp - 0x80]
mov qword [rsp + 0x68], rdx
mov edx, dword [rbp + 0x268]
mov dword [rsp + 0x60], edx
mov rdx, qword [r13 + 8]
mov qword [rsp + 0x58], rdx
lea rdx, [rbp - 0x70]
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x48], rcx
mov rcx, r12
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], 0x4a200000
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r13
call fcn.1400254e4
xor edx, edx
test eax, eax
jne 0x140047a13
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
xor edx, edx
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
test eax, eax
jns 0x1400476d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
xor edx, edx
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x1400476f8
jmp 0x1400476d7
mov ebx, 0x80004005
mov qword [rsp + 0x20], rdx
lea rcx, str.ResExtract
lea rdx, str.onecore_base_ntsetupopktoolsosimagelibmain_resextract.c
mov r9d, ebx
mov r8d, 0x260
call fcn.140046874
mov dword [rsp + 0x30], 0x261
lea r9, str.WIMCopyFileEx_failed
lea rax, str.ResExtract
mov r8, rsi
mov qword [rsp + 0x28], rax
mov rdx, r12
mov ecx, 2
mov dword [rsp + 0x20], ebx
call fcn.14002aaa0
xor edx, edx
test ebx, ebx
jns 0x140047a13
test r14, r14
je 0x140047a93
mov r15d, ebx
mov ecx, ebx
and r15d, 0x10000000
je 0x140047771
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
cmp eax, 0x13d
jne 0x14004775f
mov edx, ebx
jmp 0x140047785
mov ecx, ebx
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
mov edx, eax
jmp 0x140047785
and ecx, 0x1fff0000
movzx eax, bx
cmp ecx, 0x70000
mov edx, ebx
cmove edx, eax
mov ecx, dword [rsp + 0x78]
lea r8, [rsp + 0x7c]
call fcn.14000b7b8
xor ecx, ecx
test eax, eax
je 0x140047a93
mov eax, dword [rsp + 0x70]
lea r13d, [rcx + 1]
test eax, eax
jne 0x14004786e
mov esi, ecx
mov qword [rsp + 0x70], rcx
mov rcx, r14
call fcn.14002e168
mov rcx, rax
call fcn.140030840
mov r14, rax
test rax, rax
je 0x140047813
lea edx, [rsi + 0x5c]
mov rcx, rax
call qword [sym.imp.msvcrt.dll_wcsrchr]
nop dword [rax + rax]
xor ecx, ecx
test rax, rax
je 0x140047813
mov word [rax], cx
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.14002f99c
mov rsi, qword [rsp + 0x70]
test eax, eax
js 0x140047813
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
nop dword [rax + rax]
mov dword [rsp + 0x70], eax
jmp 0x140047818
mov dword [rsp + 0x70], r13d
test rsi, rsi
je 0x14004783d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
test r14, r14
je 0x140047862
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]
mov eax, dword [rsp + 0x70]
mov rsi, qword [rbp - 0x78]
mov r14, qword [rbp - 0x68]
cmp eax, 3
je 0x14004788f
mov rcx, r14
call fcn.14002e568
mov rcx, rax
call fcn.14003191c
or rdx, 0xffffffffffffffff
mov rcx, r14
call fcn.14002e5a8
mov ecx, ebx
test r15d, r15d
je 0x1400478bf
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
cmp eax, 0x13d
jne 0x1400478ad
mov edx, ebx
jmp 0x1400478d3
mov ecx, ebx
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
mov edx, eax
jmp 0x1400478d3
and ecx, 0x1fff0000
movzx eax, bx
cmp ecx, 0x70000
mov edx, ebx
cmove edx, eax
mov r9d, edx
mov r8, rsi
mov edx, 0x9481
mov rcx, r12
call fcn.1400286f0
xor r15d, r15d
cmp dword [rsp + 0x70], 3
mov eax, r15d
je 0x140047928
lea esi, [r15 + 5]
test eax, eax
jne 0x14004799f
mov eax, esi
dec esi
test eax, eax
je 0x14004793b
mov ecx, dword [rsp + 0x7c]
call qword [sym.imp.KERNEL32.dll_Sleep]
nop dword [rax + rax]
mov rdx, qword [0x1400bac90]
mov rcx, r14
call fcn.140026d28
jmp 0x1400478f7
mov rdx, qword [0x1400bac90]
mov rcx, r14
call fcn.140026d28
test eax, eax
jne 0x14004799f
mov r13d, r15d
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 0x140047979
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x14004799f
jmp 0x14004797e
mov ebx, 0x80004005
mov r9d, ebx
mov qword [rsp + 0x20], r15
mov r8d, 0x2b8
lea rdx, str.onecore_base_ntsetupopktoolsosimagelibmain_resextract.c
lea rcx, str.ResExtract
call fcn.140046874
mov esi, 0x9478
xor edx, edx
mov r8d, esi
mov rcx, r12
call fcn.140010fb0
cmp qword [r12 + 0x48], r15
mov rcx, r12
mov rax, qword [rbp - 0x80]
mov r8d, esi
cmovne rcx, qword [r12 + 0x48]
mov edx, 1
add qword [rcx + 0x88], rax
mov rcx, r12
call fcn.140010fb0
inc dword [rsp + 0x78]
xor edx, edx
mov rsi, qword [rbp - 0x78]
test r13d, r13d
mov r13, qword [rbp - 0x48]
movabs r10, 0xffffffffffffff
mov r15, qword [rbp - 0x50]
mov rax, qword [rbp - 0x60]
mov rcx, qword [rbp - 0x58]
mov r9, qword [rbp - 0x40]
jne 0x140047354
test ebx, ebx
js 0x140047a93
test rdi, rdi
jne 0x140047a1d
test r15, r15
je 0x140047a93
cmp qword [r13 + 0x10], rdx
je 0x140047a93
cmp qword [r12 + 0x48], rdx
mov rax, r12
cmovne rax, qword [r12 + 0x48]
test byte [rax + 0x24], 2
je 0x140047a93
test rdi, rdi
je 0x140047a5b
test byte [rdi + 0xf], 0x10
je 0x140047a55
mov r9, qword [rdi + 8]
movabs rax, 0xffffffffffffff
and r9, rax
jmp 0x140047a5f
mov r9, qword [rdi + 0x18]
jmp 0x140047a5f
mov r9, qword [r15 + 8]
test rdi, rdi
lea r10, [rdi + 0x28]
lea r11, [r15 + 0x10]
cmovne r11, r10
movabs r10, 0xf10d9f8c765bf070
mov rdx, qword [r13]
mov r8, rsi
mov rax, qword [r13 + 0x10]
mov rcx, r12
mov qword [rsp + 0x20], r11
call qword [vtable._SH_n.0]
mov ebx, eax
mov eax, ebx
jmp 0x140047a9c
mov eax, 0x80070057
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140096bd0
add rsp, 0x2e8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret