Function at 0x14000ccf8
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rdi, rdx
mov r12, rcx
mov rcx, qword [0x140015038]
lea rax, [0x140015038]
cmp rcx, rax
je 0x14000cd49
test dword [rcx + 0x1c], 0x20000000
je 0x14000cd49
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400122a8]
mov edx, 0x16
call fcn.140001800
mov r9d, 1
lea rdx, str.SxGetVolumeDescription
mov r8d, 0x23c
lea rcx, [rbp - 0x38]
call fcn.14000ab2c
xor r13d, r13d
mov dword [rbp + 0x48], r13d
mov esi, r13d
mov dword [rbp + 0x58], r13d
mov r14d, r13d
mov dword [rbp - 0x40], r13d
mov dword [rbp + 0x50], r13d
test rdi, rdi
je 0x14000cd94
cmp dword [rdi + 8], r13d
je 0x14000cd94
mov rax, qword [rdi]
mov dword [rdi + 8], r13d
mov word [rax], r13w
lea rdx, [rbp + 0x50]
mov ecx, 0x10
call qword [sym.imp.ntdll.dll_RtlSetThreadErrorMode]
nop dword [rax + rax]
mov ecx, eax
call fcn.14000c074
mov dword [rbp - 0x38], eax
test eax, eax
mov eax, 0x24c
js 0x14000d12f
mov word [rbp - 0x34], ax
mov eax, 0x24e
test rdi, rdi
jne 0x14000cdda
mov dword [rbp - 0x38], 0x80070057
jmp 0x14000d12f
mov ebx, 0x20
mov word [rbp - 0x34], ax
mov dword [rbp - 0x38], r13d
cmp ebx, 0x40
ja 0x14000cdf3
mov ebx, 0x40
jmp 0x14000ce41
cmp ebx, 0x100
ja 0x14000ce02
mov ebx, 0x100
jmp 0x14000ce41
cmp ebx, 0x400
ja 0x14000ce11
mov ebx, 0x400
jmp 0x14000ce41
cmp ebx, 0x1000
ja 0x14000ce20
mov ebx, 0x1000
jmp 0x14000ce41
cmp ebx, 0x4000
ja 0x14000ce2f
mov ebx, 0x4000
jmp 0x14000ce41
lea eax, [rbx + 0xffff]
and eax, 0xffff0000
cmp eax, ebx
cmovb eax, ebx
mov ebx, eax
mov rcx, r14
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
lea eax, [rbx*2 + 2]
mov ecx, eax
mov r15d, eax
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov r14, rax
test rax, rax
mov eax, 0x257
je 0x14000d128
mov r8d, r15d
mov dword [rbp - 0x38], r13d
xor edx, edx
mov word [rbp - 0x34], ax
mov rcx, r14
call sub.msvcrt.dll_memset
mov dword [rsp + 0x38], r13d
lea rax, [rbp + 0x58]
mov qword [rsp + 0x30], r13
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov r8d, ebx
lea rax, [rbp - 0x40]
mov rdx, r14
mov rcx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetVolumeInformationW]
nop dword [rax + rax]
test eax, eax
jne 0x14000cf01
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x15
je 0x14000cf01
cmp eax, 0xea
jne 0x14000cee8
mov eax, 0x266
jmp 0x14000cddf
call fcn.14000c0f8
mov dword [rbp - 0x38], eax
mov eax, 0x266
mov dword [rbp - 0x30], 1
jmp 0x14000d12f
mov eax, ebx
mov word [r14 + rax*2], r13w
cmp word [r14], r13w
je 0x14000cf2d
mov rdx, r14
mov rcx, rdi
call fcn.14000dee8
mov dword [rbp - 0x38], eax
test eax, eax
mov eax, 0x26c
js 0x14000d12f
mov word [rbp - 0x34], ax
mov r15d, 0x40
mov eax, r15d
mov dword [rbp + 0x48], eax
cmp eax, r15d
ja 0x14000cf43
mov ebx, r15d
jmp 0x14000cf7c
mov ecx, 0x100
cmp eax, ecx
jbe 0x14000cf67
mov ecx, 0x400
cmp eax, ecx
jbe 0x14000cf67
mov ecx, 0x1000
cmp eax, ecx
jbe 0x14000cf67
mov ecx, 0x4000
cmp eax, ecx
ja 0x14000cf6b
mov ebx, ecx
jmp 0x14000cf7c
lea ebx, [rax + 0xffff]
and ebx, 0xffff0000
cmp ebx, eax
cmovb ebx, eax
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
mov ecx, ebx
add rcx, rcx
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
mov eax, 0x276
je 0x14000d128
lea r9, [rbp + 0x48]
mov dword [rbp - 0x38], r13d
mov r8d, ebx
mov word [rbp - 0x34], ax
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.api_ms_win_core_file_l1_2_0.dll_GetVolumePathNamesForVolumeNameW]
nop dword [rax + rax]
test eax, eax
jne 0x14000d00c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xea
jne 0x14000cffa
mov eax, 0x27c
mov dword [rbp - 0x38], r13d
mov word [rbp - 0x34], ax
mov eax, dword [rbp + 0x48]
jmp 0x14000cf39
call fcn.14000c0f8
mov dword [rbp - 0x38], eax
mov eax, 0x27c
jmp 0x14000d12f
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r13w
jne 0x14000d010
test rax, rax
je 0x14000d0fe
cmp word [r14], r13w
je 0x14000d04c
lea rdx, [0x140011d54]
mov rcx, rdi
call fcn.14000dee8
mov dword [rbp - 0x38], eax
test eax, eax
mov eax, 0x28c
js 0x14000d12f
mov word [rbp - 0x34], ax
lea rdx, [0x140012250]
mov rcx, rdi
call fcn.14000dee8
mov dword [rbp - 0x38], eax
test eax, eax
mov eax, 0x28e
js 0x14000d12f
mov word [rbp - 0x34], ax
mov rbx, rsi
cmp word [rsi], r13w
je 0x14000d0df
lea r15d, [rax + 6]
cmp rbx, rsi
je 0x14000d0a0
lea rdx, [0x140012254]
mov rcx, rdi
call fcn.14000dee8
mov dword [rbp - 0x38], eax
test eax, eax
js 0x14000d121
mov word [rbp - 0x34], r15w
mov rdx, rbx
mov rcx, rdi
call fcn.14000dee8
mov dword [rbp - 0x38], eax
test eax, eax
mov eax, 0x296
js 0x14000d12f
mov rcx, rdi
mov word [rbp - 0x34], ax
call fcn.14000e0dc
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], r13w
jne 0x14000d0c7
lea rbx, [rbx + rax*2]
add rbx, 2
cmp word [rbx], r13w
jne 0x14000d07c
lea rdx, [0x14001225c]
mov rcx, rdi
call fcn.14000dee8
mov dword [rbp - 0x38], eax
test eax, eax
mov eax, 0x299
js 0x14000d12f
mov word [rbp - 0x34], ax
cmp dword [rdi + 8], r13d
jne 0x14000d133
mov rdx, r12
mov rcx, rdi
call fcn.14000dee8
mov dword [rbp - 0x38], eax
test eax, eax
mov eax, 0x29e
js 0x14000d12f
mov word [rbp - 0x34], ax
jmp 0x14000d133
mov word [rbp - 0x32], r15w
jmp 0x14000d133
mov dword [rbp - 0x38], 0x8007000e
mov word [rbp - 0x32], ax
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
mov ecx, dword [rbp + 0x50]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlSetThreadErrorMode]
nop dword [rax + rax]
mov ebx, dword [rbp - 0x38]
lea rcx, [rbp - 0x38]
call fcn.14000ac34
mov eax, ebx
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret