Function at 0x10085f70
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c3faf
mov eax, dword fs:[0]
push eax
sub esp, 0xd9c
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov eax, dword [ebp + 8]
xor bl, bl
mov dword [ebp - 0xda4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xda8], eax
mov dword [ebp - 0xd98], 0
push 0x200
lea eax, [ebp - 0x510]
push 0
push eax
call fcn.1008df10
push dword [ebp - 0xd98]
lea eax, [ebp - 0x510]
push str..PhysicalDrive_d
push 0xffffffffffffffff
push 0xff
push eax
call fcn.10001ea4
add esp, 0x20
lea eax, [ebp - 0x510]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xd9c], eax
cmp eax, 0xffffffff
je 0x1008671a
push 0x800
xorps xmm0, xmm0
mov dword [ebp - 0xda0], 0
lea eax, [ebp - 0xd10]
movq qword [ebp - 0xd34], xmm0
push 0
push eax
mov dword [ebp - 0xd2c], 0
mov dword [ebp - 0xd34], 0
mov dword [ebp - 0xd30], 0
call fcn.1008df10
add esp, 0xc
lea eax, [ebp - 0xda0]
push 0
push eax
push 0x800
lea eax, [ebp - 0xd10]
push eax
push 0xc
lea eax, [ebp - 0xd34]
push eax
push 0x2d1400
push dword [ebp - 0xd9c]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x10086708
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.1008df10
push 0x100
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.1008df10
push 0x100
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.1008df10
mov edx, dword [ebp - 0xd00]
lea eax, [ebp - 0x210]
push eax
push 0
lea ecx, [ebp - 0xd10]
call fcn.1007b9b0
mov edx, dword [ebp - 0xcfc]
lea eax, [ebp - 0x310]
push eax
push 0
lea ecx, [ebp - 0xd10]
call fcn.1007b9b0
mov edx, dword [ebp - 0xcf8]
lea eax, [ebp - 0x110]
push eax
push 1
lea ecx, [ebp - 0xd10]
call fcn.1007b9b0
movsx eax, byte [ebp - 0x110]
push eax
call fcn.1009c041
add esp, 0x40
test eax, eax
jne 0x1008614f
movsx eax, byte [ebp - 0xfd]
push eax
call fcn.1009c041
add esp, 4
test eax, eax
je 0x1008670e
test bl, bl
jne 0x1008648a
mov dword [ebp - 0xd14], 0xf
mov dword [ebp - 0xd18], 0
mov byte [ebp - 0xd28], bl
cmp byte [ebp - 0x110], bl
jne 0x1008617d
xor ecx, ecx
jmp 0x1008618f
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10086186
sub ecx, edx
push ecx
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0xd28]
call fcn.100057f3
lea eax, [ebp - 0xd28]
mov dword [ebp - 4], 0
cmp esi, eax
je 0x10086223
mov eax, dword [esi + 0x14]
cmp eax, 0x10
jb 0x100861f8
mov ecx, dword [esi]
inc eax
cmp eax, 0x1000
jb 0x100861ef
test cl, 0x1f
jne 0x1008674e
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x1008674e
sub ecx, eax
cmp ecx, 4
jb 0x1008674e
cmp ecx, 0x23
ja 0x1008674e
mov ecx, eax
push ecx
call fcn.1008a9f2
add esp, 4
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x10086210
mov eax, dword [esi]
jmp 0x10086212
mov eax, esi
mov byte [eax], 0
mov ecx, esi
lea eax, [ebp - 0xd28]
push eax
call fcn.100078d1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xd14]
cmp eax, 0x10
jb 0x10086276
mov ecx, dword [ebp - 0xd28]
inc eax
cmp eax, 0x1000
jb 0x1008626d
test cl, 0x1f
jne 0x1008674e
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x1008674e
sub ecx, eax
cmp ecx, 4
jb 0x1008674e
cmp ecx, 0x23
ja 0x1008674e
mov ecx, eax
push ecx
call fcn.1008a9f2
add esp, 4
cmp byte [ebp - 0x210], 0
mov dword [ebp - 0xd14], 0xf
mov dword [ebp - 0xd18], 0
mov byte [ebp - 0xd28], 0
jne 0x1008629e
xor ecx, ecx
jmp 0x100862b0
lea ecx, [ebp - 0x210]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100862a7
sub ecx, edx
push ecx
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0xd28]
call fcn.100057f3
lea eax, [ebp - 0xd28]
mov dword [ebp - 4], 1
cmp edi, eax
je 0x10086344
mov eax, dword [edi + 0x14]
cmp eax, 0x10
jb 0x10086319
mov ecx, dword [edi]
inc eax
cmp eax, 0x1000
jb 0x10086310
test cl, 0x1f
jne 0x1008674e
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x1008674e
sub ecx, eax
cmp ecx, 4
jb 0x1008674e
cmp ecx, 0x23
ja 0x1008674e
mov ecx, eax
push ecx
call fcn.1008a9f2
add esp, 4
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0
jb 0x10086331
mov eax, dword [edi]
jmp 0x10086333
mov eax, edi
mov byte [eax], 0
mov ecx, edi
lea eax, [ebp - 0xd28]
push eax
call fcn.100078d1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xd14]
cmp eax, 0x10
jb 0x10086397
mov ecx, dword [ebp - 0xd28]
inc eax
cmp eax, 0x1000
jb 0x1008638e
test cl, 0x1f
jne 0x1008674e
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x1008674e
sub ecx, eax
cmp ecx, 4
jb 0x1008674e
cmp ecx, 0x23
ja 0x1008674e
mov ecx, eax
push ecx
call fcn.1008a9f2
add esp, 4
cmp byte [ebp - 0x310], 0
mov dword [ebp - 0xd14], 0xf
mov dword [ebp - 0xd18], 0
mov byte [ebp - 0xd28], 0
jne 0x100863bf
xor ecx, ecx
jmp 0x100863d1
lea ecx, [ebp - 0x310]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100863c8
sub ecx, edx
push ecx
lea eax, [ebp - 0x310]
push eax
lea ecx, [ebp - 0xd28]
call fcn.100057f3
mov ebx, dword [ebp - 0xda4]
lea eax, [ebp - 0xd28]
mov dword [ebp - 4], 2
cmp ebx, eax
je 0x1008646b
mov eax, dword [ebx + 0x14]
cmp eax, 0x10
jb 0x10086440
mov ecx, dword [ebx]
inc eax
cmp eax, 0x1000
jb 0x10086437
test cl, 0x1f
jne 0x1008674e
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x1008674e
sub ecx, eax
cmp ecx, 4
jb 0x1008674e
cmp ecx, 0x23
ja 0x1008674e
mov ecx, eax
push ecx
call fcn.1008a9f2
add esp, 4
mov dword [ebx + 0x14], 0xf
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], 0
jb 0x10086458
mov eax, dword [ebx]
jmp 0x1008645a
mov eax, ebx
mov byte [eax], 0
mov ecx, ebx
lea eax, [ebp - 0xd28]
push eax
call fcn.100078d1
mov eax, dword [ebp - 0xd14]
cmp eax, 0x10
jb 0x10086488
inc eax
push 1
push eax
push dword [ebp - 0xd28]
call fcn.10001ef8
add esp, 0xc
mov bl, 1
lea ecx, [ebp - 0xd94]
call fcn.10085930
mov dword [ebp - 4], 3
cmp byte [ebp - 0x110], 0
mov dword [ebp - 0xd14], 0xf
mov dword [ebp - 0xd18], 0
mov byte [ebp - 0xd28], 0
jne 0x100864c4
xor ecx, ecx
jmp 0x100864d9
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100864d0
sub ecx, edx
push ecx
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0xd28]
call fcn.100057f3
mov eax, dword [ebp - 0xd80]
cmp eax, 0x10
jb 0x10086509
inc eax
push 1
push eax
push dword [ebp - 0xd94]
call fcn.10001ef8
add esp, 0xc
lea eax, [ebp - 0xd28]
mov dword [ebp - 0xd80], 0xf
push eax
lea ecx, [ebp - 0xd94]
mov dword [ebp - 0xd84], 0
mov byte [ebp - 0xd94], 0
call fcn.100078d1
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xd14]
cmp eax, 0x10
jb 0x10086557
inc eax
push 1
push eax
push dword [ebp - 0xd28]
call fcn.10001ef8
add esp, 0xc
cmp byte [ebp - 0x210], 0
mov dword [ebp - 0xd14], 0xf
mov dword [ebp - 0xd18], 0
mov byte [ebp - 0xd28], 0
jne 0x1008657f
xor ecx, ecx
jmp 0x10086591
lea ecx, [ebp - 0x210]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10086588
sub ecx, edx
push ecx
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0xd28]
call fcn.100057f3
mov eax, dword [ebp - 0xd68]
cmp eax, 0x10
jb 0x100865c1
inc eax
push 1
push eax
push dword [ebp - 0xd7c]
call fcn.10001ef8
add esp, 0xc
lea eax, [ebp - 0xd28]
mov dword [ebp - 0xd68], 0xf
push eax
lea ecx, [ebp - 0xd7c]
mov dword [ebp - 0xd6c], 0
mov byte [ebp - 0xd7c], 0
call fcn.100078d1
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xd14]
cmp eax, 0x10
jb 0x1008660f
inc eax
push 1
push eax
push dword [ebp - 0xd28]
call fcn.10001ef8
add esp, 0xc
cmp byte [ebp - 0x310], 0
mov dword [ebp - 0xd38], 0xf
mov dword [ebp - 0xd3c], 0
mov byte [ebp - 0xd4c], 0
jne 0x10086637
xor ecx, ecx
jmp 0x10086649
lea ecx, [ebp - 0x310]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10086640
sub ecx, edx
push ecx
lea eax, [ebp - 0x310]
push eax
lea ecx, [ebp - 0xd4c]
call fcn.100057f3
mov eax, dword [ebp - 0xd50]
cmp eax, 0x10
jb 0x10086679
inc eax
push 1
push eax
push dword [ebp - 0xd64]
call fcn.10001ef8
add esp, 0xc
lea eax, [ebp - 0xd4c]
mov dword [ebp - 0xd50], 0xf
push eax
lea ecx, [ebp - 0xd64]
mov dword [ebp - 0xd54], 0
mov byte [ebp - 0xd64], 0
call fcn.100078d1
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xd38]
cmp eax, 0x10
jb 0x100866c7
inc eax
push 1
push eax
push dword [ebp - 0xd4c]
call fcn.10001ef8
add esp, 0xc
mov ecx, dword [ebp - 0xda8]
lea eax, [ebp - 0xd94]
push eax
mov dword [ebp - 0xd38], 0xf
mov dword [ebp - 0xd3c], 0
mov byte [ebp - 0xd4c], 0
call fcn.100877e0
lea ecx, [ebp - 0xd94]
mov dword [ebp - 4], 0xffffffff
call fcn.1007ae80
jmp 0x1008670e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0xd9c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xd98]
inc eax
mov dword [ebp - 0xd98], eax
cmp eax, 0x10
jl 0x10085fc0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008a9f7
mov esp, ebp
pop ebp
ret
call fcn.10090951
int3