Function at 0x180045f60
Capabilities:
Get storage device properties

Disassembly:
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37d0]
mov eax, 0x38d0
call fcn.180074590
sub rsp, rax
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x3900], rbx
mov qword [rsp + 0x3908], rsi
mov qword [rsp + 0x3910], rdi
mov rax, qword [0x1800ea550]
xor rax, rsp
mov qword [rbp + 0x37c0], rax
xor r14d, r14d
mov dword [rsp + 0x50], r14d
lea edx, [r14 + 2]
lea r8d, [r14 + 1]
lea rcx, [rbp - 0x10]
call fcn.18000d500
nop
lea rdx, [0x1800bd898]
lea rcx, [rbp - 0x10]
call fcn.180010b40
mov qword [rbp - 0x78], 0xf
mov qword [rbp - 0x80], r14
mov byte [rsp + 0x70], r14b
lea r8d, [r14 + 0x23]
lea rdx, str.ReadPhysicalDriveInNTWithZeroRights
lea rcx, [rsp + 0x70]
call fcn.1800071c0
nop
mov qword [rbp - 0x50], 0xf
mov qword [rbp - 0x58], r14
mov byte [rbp - 0x68], r14b
lea r8d, [r14 + 0xa]
lea rdx, str.DiskID.cpp
lea rcx, [rbp - 0x68]
call fcn.1800071c0
nop
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x10]
call fcn.18000d630
mov rbx, rax
call fcn.18000ddc0
mov rcx, rax
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x209
lea r8, [rbp - 0x68]
lea edx, [r14 + 3]
call fcn.180002e80
nop
cmp qword [rbp - 0x28], 8
jb 0x180046072
mov rcx, qword [rbp - 0x40]
call fcn.18007309c
mov qword [rbp - 0x28], 7
mov qword [rbp - 0x30], r14
mov word [rbp - 0x40], r14w
cmp qword [rbp - 0x50], 0x10
jb 0x180046093
mov rcx, qword [rbp - 0x68]
call fcn.18007309c
mov qword [rbp - 0x50], 0xf
mov qword [rbp - 0x58], r14
mov byte [rbp - 0x68], 0
cmp qword [rbp - 0x78], 0x10
jb 0x1800460b4
mov rcx, qword [rsp + 0x70]
call fcn.18007309c
mov qword [rbp - 0x78], 0xf
mov qword [rbp - 0x80], r14
mov byte [rsp + 0x70], 0
lea rax, [rbp + 0x78]
mov qword [rsp + 0x48], rax
mov rax, qword [rbp - 0x10]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp + rcx - 0x10], rax
lea rcx, [rbp - 8]
call fcn.18000d670
nop
mov rax, qword [rbp - 0x10]
movsxd rcx, dword [rax + 4]
lea r12, vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + rcx - 0x10], r12
lea rax, [rbp + 0x78]
mov qword [rsp + 0x48], rax
lea r15, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + 0x78], r15
lea rsi, vtable.std::ios_base.0
mov qword [rbp + 0x78], rsi
lea rcx, [rbp + 0x78]
call fcn.1800724a4
mov r13d, r14d
mov ebx, r14d
nop
mov r8d, ebx
lea rdx, str..PhysicalDrive_d
lea rcx, [rbp - 0x10]
call fcn.1800479d0
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 - 0x10]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180046340
mov dword [rsp + 0x40], r14d
xor eax, eax
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], eax
mov qword [rsp + 0x60], r14
xor edx, edx
mov r8d, 0x2710
lea rcx, [rbp + 0x10b0]
call fcn.180073cb0
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x2710
lea rax, [rbp + 0x10b0]
mov qword [rsp + 0x20], rax
mov r9d, 0xc
lea r8, [rsp + 0x60]
mov edx, 0x2d1400
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x180046331
mov byte [rbp + 0x8d0], 0
mov edx, dword [rbp + 0x10bc]
test edx, edx
jle 0x180046209
lea r9, [rbp + 0x8d0]
xor r8d, r8d
lea rcx, [rbp + 0x10b0]
call fcn.180045da0
mov byte [rbp + 0x4e0], 0
mov edx, dword [rbp + 0x10c0]
test edx, edx
jle 0x180046230
lea r9, [rbp + 0x4e0]
xor r8d, r8d
lea rcx, [rbp + 0x10b0]
call fcn.180045da0
mov byte [rbp + 0xcc0], 0
mov edx, dword [rbp + 0x10c4]
test edx, edx
jle 0x180046257
lea r9, [rbp + 0xcc0]
xor r8d, r8d
lea rcx, [rbp + 0x10b0]
call fcn.180045da0
xor al, al
mov byte [rbp + 0xf0], al
mov edx, dword [rbp + 0x10c8]
test edx, edx
jle 0x180046289
lea r9, [rbp + 0xf0]
mov r8d, 1
lea rcx, [rbp + 0x10b0]
call fcn.180045da0
movzx eax, byte [rbp + 0xf0]
cmp byte [0x1800eeb40], 0
jne 0x1800462e4
movsx ecx, al
call fcn.180076744
test eax, eax
jne 0x1800462ae
movsx ecx, byte [rbp + 0x103]
call fcn.180076744
test eax, eax
je 0x1800462e4
lea r8, [rbp + 0xf0]
mov edx, 0x400
lea rcx, [0x1800eeb40]
call fcn.18007e438
lea r8, [rbp + 0x4e0]
mov edx, 0x400
lea rcx, [0x1800eef40]
call fcn.18007e438
mov r13d, 1
xor edx, edx
mov r8d, 0x2710
lea rcx, [rbp + 0x10b0]
call fcn.180073cb0
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x2710
lea rax, [rbp + 0x10b0]
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 0x180046337
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, 0x10
jl 0x180046130
lea rax, [0x1800b6eb8]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x78]
mov qword [rsp + 0x48], rax
mov qword [rbp + 0x78], rsi
mov qword [rbp + 0x78], r15
mov dword [rsp + 0x50], 1
mov rax, qword [rbp - 0x10]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x10], r12
mov rax, qword [rbp - 0x10]
movsxd rcx, dword [rax + 4]
lea rdi, [rbp + rcx - 0x10]
mov rcx, rdi
call fcn.180001bc0
lea rax, [rbp - 8]
mov qword [rdi + 0x48], rax
mov qword [rdi + 0x50], r14
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.180001b40
nop
mov rcx, rax
call fcn.180010a10
mov r12, rax
mov rsi, qword [rsp + 0x48]
test rsi, rsi
je 0x18004640a
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.180071d80
nop
mov rax, qword [rsi + 8]
test rax, rax
je 0x1800463e3
cmp rax, 0xffffffffffffffff
jae 0x1800463e3
dec rax
mov qword [rsi + 8], rax
mov rbx, r14
cmp qword [rsi + 8], rbx
cmove rbx, rsi
lea rcx, [rsp + 0x40]
call fcn.180071db0
test rbx, rbx
je 0x18004640a
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
mov rax, qword [r12]
mov dl, 0x20
mov rcx, r12
call qword [rax + 0x50]
mov word [rdi + 0x58], ax
cmp qword [rdi + 0x48], 0
jne 0x180046433
mov edx, dword [rdi + 0x10]
or edx, 4
xor r8d, r8d
mov rcx, rdi
call fcn.1800019c0
nop
mov rax, qword [rbp - 0x10]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp + rcx - 0x10], rdi
lea rax, [rbp - 8]
mov qword [rsp + 0x60], rax
lea rcx, [rbp - 8]
call fcn.18000f400
nop
lea rax, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp - 8], rax
mov qword [rbp + 0x68], r14
mov dword [rbp + 0x70], 4
lea rdx, str.bRet:
lea rcx, [rbp - 0x10]
call fcn.180010b40
mov rcx, rax
mov edx, r13d
call fcn.18001f890
mov qword [rbp - 0x50], 0xf
mov qword [rbp - 0x58], r14
mov byte [rbp - 0x68], 0
mov r8d, 0x23
lea rdx, str.ReadPhysicalDriveInNTWithZeroRights
lea rcx, [rbp - 0x68]
call fcn.1800071c0
nop
mov qword [rbp - 0x78], 0xf
mov qword [rbp - 0x80], r14
mov byte [rsp + 0x70], 0
mov r8d, 0xa
lea rdx, str.DiskID.cpp
lea rcx, [rsp + 0x70]
call fcn.1800071c0
nop
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x10]
call fcn.18000d630
mov rbx, rax
call fcn.18000ddc0
mov rcx, rax
mov qword [rsp + 0x28], rbx
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x26b
lea r8, [rsp + 0x70]
mov edx, 3
call fcn.180002e80
nop
cmp qword [rbp - 0x28], 8
jb 0x180046527
mov rcx, qword [rbp - 0x40]
call fcn.18007309c
mov qword [rbp - 0x28], 7
mov qword [rbp - 0x30], r14
mov word [rbp - 0x40], r14w
cmp qword [rbp - 0x78], 0x10
jb 0x180046549
mov rcx, qword [rsp + 0x70]
call fcn.18007309c
mov qword [rbp - 0x78], 0xf
mov qword [rbp - 0x80], r14
mov byte [rsp + 0x70], 0
cmp qword [rbp - 0x50], 0x10
jb 0x18004656a
mov rcx, qword [rbp - 0x68]
call fcn.18007309c
mov qword [rbp - 0x50], 0xf
mov qword [rbp - 0x58], r14
mov byte [rbp - 0x68], 0
lea rax, [rbp + 0x78]
mov qword [rsp + 0x60], rax
mov rax, qword [rbp - 0x10]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x10], rdi
lea rcx, [rbp - 8]
call fcn.18000d670
nop
mov rcx, qword [rbp - 0x10]
movsxd rdx, dword [rcx + 4]
lea rax, vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + rdx - 0x10], rax
lea rax, [rbp + 0x78]
mov qword [rsp + 0x60], rax
mov qword [rbp + 0x78], r15
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x78], rax
lea rcx, [rbp + 0x78]
call fcn.1800724a4
mov eax, r13d
mov rcx, qword [rbp + 0x37c0]
xor rcx, rsp
call fcn.180073c80
lea r11, [rsp + 0x38d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret