Function at 0x18003f080
Capabilities:
Get storage device properties

Disassembly:
push rbp
lea rbp, [rsp - 0x37c0]
mov eax, 0x38c0
call fcn.1800ce0d0
sub rsp, rax
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x38d0], rbx
mov qword [rsp + 0x38d8], rsi
mov qword [rsp + 0x38e0], rdi
mov qword [rsp + 0x38e8], r12
mov rax, qword [0x1801c2938]
xor rax, rsp
mov qword [rbp + 0x37b0], rax
lea rcx, [rbp - 0x20]
call fcn.180014d60
nop
lea rdx, [0x180152dd8]
lea rcx, [rbp - 0x20]
call fcn.180022d00
lea rdx, str.ReadPhysicalDriveInNTWithZeroRights
lea rcx, [rbp - 0x78]
call fcn.180012480
nop
lea rdx, str.DiskID.cpp
lea rcx, [rsp + 0x60]
call fcn.180012480
nop
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x20]
call fcn.180014e40
mov rbx, rax
call fcn.180016d70
mov rcx, rax
mov qword [rsp + 0x28], rbx
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x209
lea r8, [rsp + 0x60]
mov edx, 3
call fcn.180030340
nop
lea rcx, [rbp - 0x50]
call fcn.1800a20a0
nop
lea rcx, [rsp + 0x60]
call fcn.180001850
nop
lea rcx, [rbp - 0x78]
call fcn.180001850
nop
lea rcx, [rbp + 0x68]
call fcn.180014de0
lea rcx, [rbp + 0x68]
call fcn.180013e40
xor r12d, r12d
mov esi, r12d
mov ebx, r12d
nop word [rax + rax]
mov r8d, ebx
lea rdx, str..PhysicalDrive_d
lea rcx, [rbp - 0x20]
call fcn.180040030
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 3]
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18003f39f
mov dword [rsp + 0x40], r12d
xor eax, eax
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], eax
mov qword [rsp + 0x50], r12
xor edx, edx
mov r8d, 0x2710
lea rcx, [rbp + 0x10a0]
call fcn.1800c6a90
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x2710
lea rax, [rbp + 0x10a0]
mov qword [rsp + 0x20], rax
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x50]
mov edx, 0x2d1400
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x18003f390
mov byte [rbp + 0xcb0], r12b
mov edx, dword [rbp + 0x10ac]
test edx, edx
jle 0x18003f269
lea r9, [rbp + 0xcb0]
xor r8d, r8d
lea rcx, [rbp + 0x10a0]
call fcn.18003eec0
mov byte [rbp + 0x4d0], r12b
mov edx, dword [rbp + 0x10b0]
test edx, edx
jle 0x18003f290
lea r9, [rbp + 0x4d0]
xor r8d, r8d
lea rcx, [rbp + 0x10a0]
call fcn.18003eec0
mov byte [rbp + 0x8c0], r12b
mov edx, dword [rbp + 0x10b4]
test edx, edx
jle 0x18003f2b7
lea r9, [rbp + 0x8c0]
xor r8d, r8d
lea rcx, [rbp + 0x10a0]
call fcn.18003eec0
xor al, al
mov byte [rbp + 0xe0], al
mov edx, dword [rbp + 0x10b8]
test edx, edx
jle 0x18003f2e9
lea r9, [rbp + 0xe0]
mov r8d, 1
lea rcx, [rbp + 0x10a0]
call fcn.18003eec0
movzx eax, byte [rbp + 0xe0]
cmp byte [0x1801d99e0], r12b
jne 0x18003f343
movsx ecx, al
call fcn.1800beec4
test eax, eax
jne 0x18003f30e
movsx ecx, byte [rbp + 0xf3]
call fcn.1800beec4
test eax, eax
je 0x18003f343
lea r8, [rbp + 0xe0]
mov edx, 0x400
lea rcx, [0x1801d99e0]
call fcn.1800c0248
lea r8, [rbp + 0x4d0]
mov edx, 0x400
lea rcx, [0x1801d9de0]
call fcn.1800c0248
mov esi, 1
xor edx, edx
mov r8d, 0x2710
lea rcx, [rbp + 0x10a0]
call fcn.1800c6a90
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x2710
lea rax, [rbp + 0x10a0]
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 0x18003f396
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, 0x10
jl 0x18003f190
lea rcx, [rbp - 0x20]
call fcn.180014d60
nop
lea rdx, [0x180148658]
lea rcx, [rbp - 0x20]
call fcn.180022d00
mov rcx, rax
mov edx, esi
call fcn.180013bf0
lea rdx, str.ReadPhysicalDriveInNTWithZeroRights
lea rcx, [rsp + 0x60]
call fcn.180012480
nop
lea rdx, str.DiskID.cpp
lea rcx, [rbp - 0x78]
call fcn.180012480
nop
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x20]
call fcn.180014e40
mov rbx, rax
call fcn.180016d70
mov rcx, rax
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x26b
lea r8, [rbp - 0x78]
mov edx, 3
call fcn.180030340
nop
lea rcx, [rbp - 0x50]
call fcn.1800a20a0
nop
lea rcx, [rbp - 0x78]
call fcn.180001850
nop
lea rcx, [rsp + 0x60]
call fcn.180001850
nop
lea rcx, [rbp + 0x68]
call fcn.180014de0
lea rcx, [rbp + 0x68]
call fcn.180013e40
mov eax, esi
mov rcx, qword [rbp + 0x37b0]
xor rcx, rsp
call fcn.1800bdf20
lea r11, [rsp + 0x38c0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r12, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret