Function at 0x180059730
Capabilities:
Get storage device properties

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
mov eax, 0x3898
call fcn.180012ac0
sub rsp, rax
mov rax, qword [0x180135070]
xor rax, rsp
mov qword [rsp + 0x3880], rax
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x40], 0
jmp 0x180059779
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x10
jge 0x180059b0f
mov qword [rsp + 0x150], 0
mov rax, qword [rsp + 0x38b0]
mov ecx, dword [rsp + 0x38a8]
cmp dword [rax], ecx
jl 0x1800597a8
jmp 0x180059b0f
mov r8d, dword [rsp + 0x40]
lea rdx, str..PhysicalDrive_d
lea rcx, [rsp + 0x50]
call fcn.1800f9dc0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x150], rax
cmp qword [rsp + 0x150], 0xffffffffffffffff
jne 0x180059805
jmp 0x180059b0a
mov dword [rsp + 0x2880], 0
mov r8d, reloc.WSOCK32.dll_ioctlsocket
xor edx, edx
lea rcx, [rsp + 0x158]
call fcn.18000abd0
mov dword [rsp + 0x158], 0
mov dword [rsp + 0x15c], 0
mov r8d, 0x2710
xor edx, edx
lea rcx, [rsp + 0x170]
call fcn.18000abd0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x2880]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x2710
lea rax, [rsp + 0x170]
mov qword [rsp + 0x20], rax
mov r9d, reloc.WSOCK32.dll_ioctlsocket
lea r8, [rsp + 0x158]
mov edx, 0x2d1400
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x180059aef
lea rax, [rsp + 0x170]
mov qword [rsp + 0x3070], rax
lea r9, [rsp + 0x3080]
xor r8d, r8d
mov rax, qword [rsp + 0x3070]
mov edx, dword [rax + 0xc]
lea rcx, [rsp + 0x170]
call fcn.180059b30
lea r9, [rsp + 0x2c80]
xor r8d, r8d
mov rax, qword [rsp + 0x3070]
mov edx, dword [rax + 0x10]
lea rcx, [rsp + 0x170]
call fcn.180059b30
lea r9, [rsp + 0x2890]
xor r8d, r8d
mov rax, qword [rsp + 0x3070]
mov edx, dword [rax + 0x14]
lea rcx, [rsp + 0x170]
call fcn.180059b30
lea r9, [rsp + 0x3470]
mov r8d, 1
mov rax, qword [rsp + 0x3070]
mov edx, dword [rax + 0x18]
lea rcx, [rsp + 0x170]
call fcn.180059b30
lea rcx, [rsp + 0x3470]
call fcn.18000acf0
mov dword [rsp + 0x168], eax
cmp dword [rsp + 0x168], 0
je 0x1800599be
movsx eax, byte [rsp + 0x3470]
and eax, 0xff
mov ecx, eax
call fcn.180011f8c
test eax, eax
jne 0x1800599be
cmp dword [rsp + 0x168], 0x14
jl 0x180059990
mov dword [rsp + 0x3878], 1
jmp 0x18005999b
mov dword [rsp + 0x3878], 0
movsx eax, byte [rsp + 0x3483]
and eax, 0xff
mov ecx, eax
call fcn.180011f8c
mov ecx, dword [rsp + 0x3878]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x180059a36
mov rax, qword [rsp + 0x38b0]
movsxd rax, dword [rax]
imul rax, rax, 0x80c
mov rcx, qword [rsp + 0x38a0]
add rcx, rax
mov rax, rcx
lea rdx, [rsp + 0x3470]
mov rcx, rax
call fcn.1800f9f10
mov rax, qword [rsp + 0x38b0]
movsxd rax, dword [rax]
imul rax, rax, 0x80c
mov rcx, qword [rsp + 0x38a0]
lea rax, [rcx + rax + 0x401]
lea rdx, [rsp + 0x2c80]
mov rcx, rax
call fcn.1800f9f10
mov rax, qword [rsp + 0x38b0]
mov eax, dword [rax]
inc eax
mov rcx, qword [rsp + 0x38b0]
mov dword [rcx], eax
mov r8d, 0x2710
xor edx, edx
lea rcx, [rsp + 0x170]
call fcn.18000abd0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x2880]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x2710
lea rax, [rsp + 0x170]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x700a0
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x180059a95
jmp 0x180059aed
lea rax, [rsp + 0x170]
mov qword [rsp + 0x3868], rax
mov rax, qword [rsp + 0x3868]
cmp dword [rax + 8], 0xc
jne 0x180059ac0
mov dword [rsp + 0x387c], 1
jmp 0x180059acb
mov dword [rsp + 0x387c], 0
mov eax, dword [rsp + 0x387c]
mov dword [rsp + 0x3870], eax
mov rax, qword [rsp + 0x3868]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x3860], rax
jmp 0x180059afc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3874], eax
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18005976f
mov rcx, qword [rsp + 0x3880]
xor rcx, rsp
call fcn.180005860
add rsp, 0x3898
ret