Function at 0x1800aefb0
Capabilities:
Get disk information

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xb8
mov qword [rbp - 0x41], 0xfffffffffffffffe
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rbp + 7], rax
mov r15, r9
mov r12, r8
mov rdi, rdx
mov r14, rcx
test rdx, rdx
jne 0x1800aeffa
mov eax, 0x80004003
jmp 0x1800af250
mov r8, r15
lea rdx, [rbp - 0x39]
call fcn.1800b0d40
nop
mov edx, 0x14
lea rcx, [rbp - 0x19]
call fcn.180203bf0
mov rcx, rax
mov rax, qword [rax + 0x10]
cmp rax, qword [rbp - 0x29]
je 0x1800af026
xor bl, bl
jmp 0x1800af046
lea rdx, [rbp - 0x39]
cmp qword [rbp - 0x21], 8
cmovae rdx, qword [rbp - 0x39]
cmp qword [rcx + 0x18], 8
jb 0x1800af03e
mov rcx, qword [rcx]
call fcn.180154520
movzx ebx, al
mov rdx, qword [rbp - 1]
cmp rdx, 8
jb 0x1800af089
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800af084
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800af084
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
movdqa xmm0, xmmword [0x1803e7600]
movdqu xmmword [rbp - 9], xmm0
xor r13d, r13d
mov word [rbp - 0x19], r13w
test bl, bl
je 0x1800af0aa
mov ebx, r13d
jmp 0x1800af1fa
xor bl, bl
mov esi, 1
cmp qword [rbp - 0x29], 3
jne 0x1800af105
lea rax, [rbp - 0x39]
mov rdx, qword [rbp - 0x39]
mov r8, qword [rbp - 0x21]
cmp r8, 8
cmovae rax, rdx
cmp word [rax + 2], 0x3a
jne 0x1800af105
lea rax, [rbp - 0x39]
cmp r8, 8
cmovae rax, rdx
cmp word [rax + 4], 0x5c
jne 0x1800af105
lea rcx, [rbp - 0x39]
cmp r8, 8
cmovae rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x1800af105
movzx ebx, bl
test eax, eax
cmovne ebx, esi
mov qword [rbp - 0x49], r13
test bl, bl
je 0x1800af113
mov rdx, qword [r14 + 8]
jmp 0x1800af116
mov rdx, r13
mov rax, qword [rdi]
lea r9, [rbp - 0x49]
mov r8d, 0x20
mov rcx, rdi
call qword [rax + 0x20]
mov ebx, eax
test eax, eax
js 0x1800af1ea
cmp qword [rbp - 0x49], 0
je 0x1800af1ea
mov qword [rbp - 0x59], r13
mov dword [rbp - 0x51], r13d
mov rsi, r13
mov rcx, qword [rbp - 0x49]
mov rax, qword [rcx]
lea r9, [rbp - 0x51]
lea r8, [rbp - 0x59]
mov edx, 1
call qword [rax + 0x18]
test eax, eax
jne 0x1800af1da
cmp dword [rbp - 0x51], 1
jne 0x1800af1ab
lea r8, [rbp - 0x59]
mov rdx, rdi
call fcn.1800aed60
test eax, eax
je 0x1800af1ab
cmp eax, 1
sete al
mov dword [rsp + 0x38], 0xffffffff
mov byte [rsp + 0x30], al
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r15
mov r9, rdi
mov r8, r12
lea rdx, [rbp - 0x59]
mov rcx, r14
call fcn.1800af380
mov rsi, rax
mov rcx, qword [rbp - 0x59]
test rcx, rcx
je 0x1800af1ba
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rbp - 0x59], r13
mov rcx, qword [rbp - 0x49]
mov r10, qword [rcx]
lea r9, [rbp - 0x51]
lea r8, [rbp - 0x59]
mov edx, 1
call qword [r10 + 0x18]
test eax, eax
je 0x1800af164
mov rcx, qword [rbp - 0x59]
test rcx, rcx
je 0x1800af1ea
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
mov rcx, qword [rbp - 0x49]
test rcx, rcx
je 0x1800af1fa
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rdx, qword [rbp - 0x21]
cmp rdx, 8
jb 0x1800af23d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800af238
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800af238
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
mov qword [rbp - 0x29], r13
mov qword [rbp - 0x21], 7
mov word [rbp - 0x39], r13w
mov eax, ebx
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.1803868f0
add rsp, 0xb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret