Function at 0x1801de0e0
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 0x1801de449
nop dword [rax]
mov byte [rbp + 0x84], r14b
test dil, 1
je 0x1801de43e
lea rcx, [rbp + 0x84]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x1801de19d
cmp eax, 4
jne 0x1801de1a7
jmp 0x1801de43e
cmp r14b, 0x41
je 0x1801de43e
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 0x1801de2e6
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 0x1801de27f
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x1801de2b9
mov edx, 0xc8
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1801de2d7
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 0x1801de2d7
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp byte [rbp - 0x35], 0
jbe 0x1801de2e2
lea r8, [rbp - 0x38]
mov rdx, rbx
mov rcx, rsi
call fcn.1801dda40
test al, al
je 0x1801de2e2
jmp 0x1801de42d
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 0x1801de328
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 0x1801de42d
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 0x1801de3d6
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x1801de410
mov edx, 0xc8
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1801de422
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 0x1801de422
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.1801ddce0
jmp 0x1801de42d
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp - 0x70]
cmp rcx, 0xffffffffffffffff
je 0x1801de43e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
inc r14b
shr edi, 1
jne 0x1801de170
mov rax, rsi
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.1801e68c0
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