Function at 0x1800429c0
Capabilities:
Get storage device properties

Disassembly:
push rbp
lea rbp, [rsp - 0x37c0]
mov eax, 0x38c0
call fcn.1800cd460
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 [0x1801c3938]
xor rax, rsp
mov qword [rbp + 0x37b0], rax
lea rcx, [rbp - 0x20]
call fcn.180012fc0
nop
lea rdx, str.START.
lea rcx, [rbp - 0x20]
call fcn.18001da90
lea rdx, str.ReadPhysicalDriveInNTWithZeroRights
lea rcx, [rbp - 0x78]
call fcn.1800104c0
nop
lea rdx, str.DiskID.cpp
lea rcx, [rsp + 0x60]
call fcn.1800104c0
nop
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x20]
call fcn.1800130a0
mov rbx, rax
call fcn.180014440
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.1800326a0
nop
lea rcx, [rbp - 0x50]
call fcn.1800126d0
nop
lea rcx, [rsp + 0x60]
call fcn.18008f070
nop
lea rcx, [rbp - 0x78]
call fcn.18008f070
nop
lea rcx, [rbp + 0x68]
call fcn.180013040
lea rcx, [rbp + 0x68]
call fcn.180012100
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.180043970
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 0x180042cdf
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.1800c7520
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 0x180042cd0
mov byte [rbp + 0xcb0], r12b
mov edx, dword [rbp + 0x10ac]
test edx, edx
jle 0x180042ba9
lea r9, [rbp + 0xcb0]
xor r8d, r8d
lea rcx, [rbp + 0x10a0]
call fcn.180042800
mov byte [rbp + 0x4d0], r12b
mov edx, dword [rbp + 0x10b0]
test edx, edx
jle 0x180042bd0
lea r9, [rbp + 0x4d0]
xor r8d, r8d
lea rcx, [rbp + 0x10a0]
call fcn.180042800
mov byte [rbp + 0x8c0], r12b
mov edx, dword [rbp + 0x10b4]
test edx, edx
jle 0x180042bf7
lea r9, [rbp + 0x8c0]
xor r8d, r8d
lea rcx, [rbp + 0x10a0]
call fcn.180042800
xor al, al
mov byte [rbp + 0xe0], al
mov edx, dword [rbp + 0x10b8]
test edx, edx
jle 0x180042c29
lea r9, [rbp + 0xe0]
mov r8d, 1
lea rcx, [rbp + 0x10a0]
call fcn.180042800
movzx eax, byte [rbp + 0xe0]
cmp byte [0x1801daa10], r12b
jne 0x180042c83
movsx ecx, al
call fcn.1800c0a50
test eax, eax
jne 0x180042c4e
movsx ecx, byte [rbp + 0xf3]
call fcn.1800c0a50
test eax, eax
je 0x180042c83
lea r8, [rbp + 0xe0]
mov edx, 0x400
lea rcx, [0x1801daa10]
call fcn.1800c191c
lea r8, [rbp + 0x4d0]
mov edx, 0x400
lea rcx, [0x1801dae10]
call fcn.1800c191c
mov esi, 1
xor edx, edx
mov r8d, 0x2710
lea rcx, [rbp + 0x10a0]
call fcn.1800c7520
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 0x180042cd6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, 0x10
jl 0x180042ad0
lea rcx, [rbp - 0x20]
call fcn.180012fc0
nop
lea rdx, str.bRet:
lea rcx, [rbp - 0x20]
call fcn.18001da90
mov rcx, rax
mov edx, esi
call fcn.180011b60
lea rdx, str.ReadPhysicalDriveInNTWithZeroRights
lea rcx, [rsp + 0x60]
call fcn.1800104c0
nop
lea rdx, str.DiskID.cpp
lea rcx, [rbp - 0x78]
call fcn.1800104c0
nop
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x20]
call fcn.1800130a0
mov rbx, rax
call fcn.180014440
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.1800326a0
nop
lea rcx, [rbp - 0x50]
call fcn.1800126d0
nop
lea rcx, [rbp - 0x78]
call fcn.18008f070
nop
lea rcx, [rsp + 0x60]
call fcn.18008f070
nop
lea rcx, [rbp + 0x68]
call fcn.180013040
lea rcx, [rbp + 0x68]
call fcn.180012100
mov eax, esi
mov rcx, qword [rbp + 0x37b0]
xor rcx, rsp
call fcn.1800be9b0
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