Function at 0x1800af5f0
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 [0x1804ca010]
xor rax, rsp
mov qword [rbp + 7], rax
mov r15, r9
mov r12, r8
mov rdi, rdx
mov r14, rcx
test rdx, rdx
jne 0x1800af63a
mov eax, 0x80004003
jmp 0x1800af890
mov r8, r15
lea rdx, [rbp - 0x39]
call fcn.1800b1380
nop
mov edx, 0x14
lea rcx, [rbp - 0x19]
call fcn.180203e00
mov rcx, rax
mov rax, qword [rax + 0x10]
cmp rax, qword [rbp - 0x29]
je 0x1800af666
xor bl, bl
jmp 0x1800af686
lea rdx, [rbp - 0x39]
cmp qword [rbp - 0x21], 8
cmovae rdx, qword [rbp - 0x39]
cmp qword [rcx + 0x18], 8
jb 0x1800af67e
mov rcx, qword [rcx]
call fcn.180154610
movzx ebx, al
mov rdx, qword [rbp - 1]
cmp rdx, 8
jb 0x1800af6c9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800af6c4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800af6c4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
movdqa xmm0, xmmword [0x1803e6740]
movdqu xmmword [rbp - 9], xmm0
xor r13d, r13d
mov word [rbp - 0x19], r13w
test bl, bl
je 0x1800af6ea
mov ebx, r13d
jmp 0x1800af83a
xor bl, bl
mov esi, 1
cmp qword [rbp - 0x29], 3
jne 0x1800af745
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 0x1800af745
lea rax, [rbp - 0x39]
cmp r8, 8
cmovae rax, rdx
cmp word [rax + 4], 0x5c
jne 0x1800af745
lea rcx, [rbp - 0x39]
cmp r8, 8
cmovae rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x1800af745
movzx ebx, bl
test eax, eax
cmovne ebx, esi
mov qword [rbp - 0x49], r13
test bl, bl
je 0x1800af753
mov rdx, qword [r14 + 8]
jmp 0x1800af756
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 0x1800af82a
cmp qword [rbp - 0x49], 0
je 0x1800af82a
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 0x1800af81a
cmp dword [rbp - 0x51], 1
jne 0x1800af7eb
lea r8, [rbp - 0x59]
mov rdx, rdi
call fcn.1800af3a0
test eax, eax
je 0x1800af7eb
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.1800af9c0
mov rsi, rax
mov rcx, qword [rbp - 0x59]
test rcx, rcx
je 0x1800af7fa
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 0x1800af7a4
mov rcx, qword [rbp - 0x59]
test rcx, rcx
je 0x1800af82a
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
mov rcx, qword [rbp - 0x49]
test rcx, rcx
je 0x1800af83a
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rdx, qword [rbp - 0x21]
cmp rdx, 8
jb 0x1800af87d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800af878
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800af878
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
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.180385c10
add rsp, 0xb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret