Function at 0x1801de000
Capabilities:
Get disk information
Get storage device properties

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x18029e198]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov rsi, rcx
mov qword [rsp + 0x48], rcx
xor r15d, r15d
mov dword [rsp + 0x40], r15d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx], r15
mov qword [rcx + 8], r15
mov qword [rcx + 0x10], r15
mov dword [rsp + 0x40], 1
movsd xmm0, qword [0x1800758e8]
movsd qword [rbp + 0x80], xmm0
mov eax, dword [0x1800758f0]
mov dword [rbp + 0x88], eax
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov r14b, 0x41
test eax, eax
je 0x1801de369
nop dword [rax]
mov byte [rbp + 0x84], r14b
test dil, 1
je 0x1801de35e
lea rcx, [rbp + 0x84]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x1801de0bd
cmp eax, 4
jne 0x1801de0c7
jmp 0x1801de35e
cmp r14b, 0x41
je 0x1801de35e
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x40000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 3]
lea rcx, [rbp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
mov qword [rbp - 0x70], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x50], rax
mov byte [rsp + 0x58], 1
cmp rbx, 0xffffffffffffffff
je 0x1801de206
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x48], r15d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp - 0x80], rax
lea rcx, [rbp - 0x80]
mov qword [rsp + 0x60], rcx
mov byte [rsp + 0x68], 1
mov qword [rbp - 0x68], r15
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x48]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x18
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x74080
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1801de19f
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x1801de1d9
mov edx, 0xc8
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1801de1f7
mov dword [rbp - 0x44], r15d
xor r9d, r9d
lea r8, [rbp - 0x44]
lea rdx, [rbp - 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x1801de1f7
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp byte [rbp - 0x35], 0
jbe 0x1801de202
lea r8, [rbp - 0x38]
mov rdx, rbx
mov rcx, rsi
call fcn.1801dd960
test al, al
je 0x1801de202
jmp 0x1801de34d
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rbx, qword [rbp - 0x70]
mov dword [rbp - 0x48], r15d
cmp rbx, 0xffffffffffffffff
jne 0x1801de248
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x40000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor edx, edx
lea r8d, [rbx + 4]
lea rcx, [rbp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1801de34d
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x40], xmm0
movups xmmword [rbp + 0x50], xmm0
movups xmmword [rbp + 0x60], xmm0
mov dword [rbp + 0x70], eax
mov word [rbp + 0x74], ax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp - 0x78], rax
lea rcx, [rbp - 0x78]
mov qword [rsp + 0x70], rcx
mov byte [rsp + 0x78], 1
mov qword [rbp - 0x68], r15
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x48]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], __WSAFDIsSet
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov r9d, __WSAFDIsSet
lea r8, [rbp - 0x20]
mov edx, 0x2d1400
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1801de2f6
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x1801de330
mov edx, 0xc8
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1801de342
mov dword [rbp - 0x40], r15d
xor r9d, r9d
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x1801de342
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea r8, [rbp - 0x20]
lea rdx, [rbp - 0x20]
mov rcx, rsi
call fcn.1801ddc00
jmp 0x1801de34d
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp - 0x70]
cmp rcx, 0xffffffffffffffff
je 0x1801de35e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
inc r14b
shr edi, 1
jne 0x1801de090
mov rax, rsi
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.1801e67e0
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret