Function at 0x18004bd90
Capabilities:
Get storage device properties

Disassembly:
push rbp
lea rbp, [rsp - 0x3760]
mov eax, 0x3860
call fcn.1800b8ad0
sub rsp, rax
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x3870], rbx
mov qword [rsp + 0x3878], rsi
mov qword [rsp + 0x3880], rdi
mov qword [rsp + 0x3888], r14
mov rax, qword [0x1801485f0]
xor rax, rsp
mov qword [rbp + 0x3750], rax
xor r14d, r14d
mov esi, r14d
mov ebx, r14d
nop word [rax + rax]
lea rcx, [rsp + 0x60]
call fcn.18004af50
nop
cmp qword [rax + 0x18], 0x10
jb 0x18004be05
mov rax, qword [rax]
mov r8d, ebx
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.18004c720
nop
cmp qword [rsp + 0x78], 0x10
jb 0x18004be27
mov rcx, qword [rsp + 0x60]
call fcn.1800b5700
mov qword [rsp + 0x78], 0xf
mov qword [rsp + 0x70], r14
mov byte [rsp + 0x60], 0
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 3]
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18004c03f
mov dword [rsp + 0x40], r14d
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x54], rax
mov dword [rsp + 0x50], r14d
xor edx, edx
mov r8d, 0x2710
lea rcx, [rbp + 0x1040]
call fcn.1800b6c70
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x2710
lea rax, [rbp + 0x1040]
mov qword [rsp + 0x20], rax
mov r9d, 0xc
lea r8, [rsp + 0x50]
mov edx, 0x2d1400
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x18004c030
mov byte [rbp + 0x860], 0
mov edx, dword [rbp + 0x104c]
test edx, edx
jle 0x18004bf01
lea r9, [rbp + 0x860]
xor r8d, r8d
lea rcx, [rbp + 0x1040]
call fcn.18004bbe0
mov byte [rbp + 0x470], 0
mov edx, dword [rbp + 0x1050]
test edx, edx
jle 0x18004bf28
lea r9, [rbp + 0x470]
xor r8d, r8d
lea rcx, [rbp + 0x1040]
call fcn.18004bbe0
mov byte [rbp + 0xc50], 0
mov edx, dword [rbp + 0x1054]
test edx, edx
jle 0x18004bf4f
lea r9, [rbp + 0xc50]
xor r8d, r8d
lea rcx, [rbp + 0x1040]
call fcn.18004bbe0
xor al, al
mov byte [rbp + 0x80], al
mov edx, dword [rbp + 0x1058]
test edx, edx
jle 0x18004bf81
lea r9, [rbp + 0x80]
mov r8d, 1
lea rcx, [rbp + 0x1040]
call fcn.18004bbe0
movzx eax, byte [rbp + 0x80]
cmp byte [0x18014dae0], 0
jne 0x18004bfe3
test al, al
je 0x18004bfe3
cmp al, 0xa
je 0x18004bfe3
movsx ecx, al
call fcn.1800b72fc
test eax, eax
jne 0x18004bfae
movsx ecx, byte [rbp + 0x93]
call fcn.1800b72fc
test eax, eax
je 0x18004bfe3
lea r8, [rbp + 0x80]
mov edx, 0x400
lea rcx, [0x18014dae0]
call fcn.1800b9838
lea r8, [rbp + 0x470]
mov edx, 0x400
lea rcx, [0x18014dee0]
call fcn.1800b9838
mov esi, 1
xor edx, edx
mov r8d, 0x2710
lea rcx, [rbp + 0x1040]
call fcn.1800b6c70
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x2710
lea rax, [rbp + 0x1040]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x700a0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
jmp 0x18004c036
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, 0x10
jl 0x18004bdf0
mov eax, esi
mov rcx, qword [rbp + 0x3750]
xor rcx, rsp
call fcn.1800b6c40
lea r11, [rsp + 0x3860]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret