Function at 0x1800b1fb0
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 [0x1804e0010]
xor rax, rsp
mov qword [rbp + 7], rax
mov r15, r9
mov r12, r8
mov rdi, rdx
mov r14, rcx
test rdx, rdx
jne 0x1800b1ffa
mov eax, 0x80004003
jmp 0x1800b2250
mov r8, r15
lea rdx, [rbp - 0x39]
call fcn.1800b3d40
nop
mov edx, 0x14
lea rcx, [rbp - 0x19]
call fcn.180205660
mov rcx, rax
mov rax, qword [rax + 0x10]
cmp rax, qword [rbp - 0x29]
je 0x1800b2026
xor bl, bl
jmp 0x1800b2046
lea rdx, [rbp - 0x39]
cmp qword [rbp - 0x21], 8
cmovae rdx, qword [rbp - 0x39]
cmp qword [rcx + 0x18], 8
jb 0x1800b203e
mov rcx, qword [rcx]
call fcn.180159c10
movzx ebx, al
mov rdx, qword [rbp - 1]
cmp rdx, 8
jb 0x1800b2089
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800b2084
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800b2084
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
movdqa xmm0, xmmword [0x1803f7240]
movdqu xmmword [rbp - 9], xmm0
xor r13d, r13d
mov word [rbp - 0x19], r13w
test bl, bl
je 0x1800b20aa
mov ebx, r13d
jmp 0x1800b21fa
xor bl, bl
mov esi, 1
cmp qword [rbp - 0x29], 3
jne 0x1800b2105
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 0x1800b2105
lea rax, [rbp - 0x39]
cmp r8, 8
cmovae rax, rdx
cmp word [rax + 4], 0x5c
jne 0x1800b2105
lea rcx, [rbp - 0x39]
cmp r8, 8
cmovae rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x1800b2105
movzx ebx, bl
test eax, eax
cmovne ebx, esi
mov qword [rbp - 0x49], r13
test bl, bl
je 0x1800b2113
mov rdx, qword [r14 + 8]
jmp 0x1800b2116
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 0x1800b21ea
cmp qword [rbp - 0x49], 0
je 0x1800b21ea
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 0x1800b21da
cmp dword [rbp - 0x51], 1
jne 0x1800b21ab
lea r8, [rbp - 0x59]
mov rdx, rdi
call fcn.1800b1d60
test eax, eax
je 0x1800b21ab
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.1800b2380
mov rsi, rax
mov rcx, qword [rbp - 0x59]
test rcx, rcx
je 0x1800b21ba
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 0x1800b2164
mov rcx, qword [rbp - 0x59]
test rcx, rcx
je 0x1800b21ea
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
mov rcx, qword [rbp - 0x49]
test rcx, rcx
je 0x1800b21fa
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rdx, qword [rbp - 0x21]
cmp rdx, 8
jb 0x1800b223d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800b2238
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800b2238
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
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.180393f50
add rsp, 0xb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret