Function at 0x100870c0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c530f
mov eax, dword fs:[0]
push eax
sub esp, 0xd9c
mov eax, dword [0x1010e070]
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.1008f060
push dword [ebp - 0xd98]
lea eax, [ebp - 0x510]
push str..PhysicalDrive_d
push 0xffffffffffffffff
push 0xff
push eax
call fcn.10001eb4
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 0x1008786a
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.1008f060
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 0x10087858
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.1008f060
push 0x100
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.1008f060
push 0x100
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.1008f060
mov edx, dword [ebp - 0xd00]
lea eax, [ebp - 0x210]
push eax
push 0
lea ecx, [ebp - 0xd10]
call fcn.1007cb00
mov edx, dword [ebp - 0xcfc]
lea eax, [ebp - 0x310]
push eax
push 0
lea ecx, [ebp - 0xd10]
call fcn.1007cb00
mov edx, dword [ebp - 0xcf8]
lea eax, [ebp - 0x110]
push eax
push 1
lea ecx, [ebp - 0xd10]
call fcn.1007cb00
movsx eax, byte [ebp - 0x110]
push eax
call fcn.1009d191
add esp, 0x40
test eax, eax
jne 0x1008729f
movsx eax, byte [ebp - 0xfd]
push eax
call fcn.1009d191
add esp, 4
test eax, eax
je 0x1008785e
test bl, bl
jne 0x100875da
mov dword [ebp - 0xd14], 0xf
mov dword [ebp - 0xd18], 0
mov byte [ebp - 0xd28], bl
cmp byte [ebp - 0x110], bl
jne 0x100872cd
xor ecx, ecx
jmp 0x100872df
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100872d6
sub ecx, edx
push ecx
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0xd28]
call fcn.10005859
lea eax, [ebp - 0xd28]
mov dword [ebp - 4], 0
cmp esi, eax
je 0x10087373
mov eax, dword [esi + 0x14]
cmp eax, 0x10
jb 0x10087348
mov ecx, dword [esi]
inc eax
cmp eax, 0x1000
jb 0x1008733f
test cl, 0x1f
jne 0x1008789e
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x1008789e
sub ecx, eax
cmp ecx, 4
jb 0x1008789e
cmp ecx, 0x23
ja 0x1008789e
mov ecx, eax
push ecx
call fcn.1008bb42
add esp, 4
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x10087360
mov eax, dword [esi]
jmp 0x10087362
mov eax, esi
mov byte [eax], 0
mov ecx, esi
lea eax, [ebp - 0xd28]
push eax
call fcn.10007941
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xd14]
cmp eax, 0x10
jb 0x100873c6
mov ecx, dword [ebp - 0xd28]
inc eax
cmp eax, 0x1000
jb 0x100873bd
test cl, 0x1f
jne 0x1008789e
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x1008789e
sub ecx, eax
cmp ecx, 4
jb 0x1008789e
cmp ecx, 0x23
ja 0x1008789e
mov ecx, eax
push ecx
call fcn.1008bb42
add esp, 4
cmp byte [ebp - 0x210], 0
mov dword [ebp - 0xd14], 0xf
mov dword [ebp - 0xd18], 0
mov byte [ebp - 0xd28], 0
jne 0x100873ee
xor ecx, ecx
jmp 0x10087400
lea ecx, [ebp - 0x210]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100873f7
sub ecx, edx
push ecx
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0xd28]
call fcn.10005859
lea eax, [ebp - 0xd28]
mov dword [ebp - 4], 1
cmp edi, eax
je 0x10087494
mov eax, dword [edi + 0x14]
cmp eax, 0x10
jb 0x10087469
mov ecx, dword [edi]
inc eax
cmp eax, 0x1000
jb 0x10087460
test cl, 0x1f
jne 0x1008789e
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x1008789e
sub ecx, eax
cmp ecx, 4
jb 0x1008789e
cmp ecx, 0x23
ja 0x1008789e
mov ecx, eax
push ecx
call fcn.1008bb42
add esp, 4
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0
jb 0x10087481
mov eax, dword [edi]
jmp 0x10087483
mov eax, edi
mov byte [eax], 0
mov ecx, edi
lea eax, [ebp - 0xd28]
push eax
call fcn.10007941
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xd14]
cmp eax, 0x10
jb 0x100874e7
mov ecx, dword [ebp - 0xd28]
inc eax
cmp eax, 0x1000
jb 0x100874de
test cl, 0x1f
jne 0x1008789e
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x1008789e
sub ecx, eax
cmp ecx, 4
jb 0x1008789e
cmp ecx, 0x23
ja 0x1008789e
mov ecx, eax
push ecx
call fcn.1008bb42
add esp, 4
cmp byte [ebp - 0x310], 0
mov dword [ebp - 0xd14], 0xf
mov dword [ebp - 0xd18], 0
mov byte [ebp - 0xd28], 0
jne 0x1008750f
xor ecx, ecx
jmp 0x10087521
lea ecx, [ebp - 0x310]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10087518
sub ecx, edx
push ecx
lea eax, [ebp - 0x310]
push eax
lea ecx, [ebp - 0xd28]
call fcn.10005859
mov ebx, dword [ebp - 0xda4]
lea eax, [ebp - 0xd28]
mov dword [ebp - 4], 2
cmp ebx, eax
je 0x100875bb
mov eax, dword [ebx + 0x14]
cmp eax, 0x10
jb 0x10087590
mov ecx, dword [ebx]
inc eax
cmp eax, 0x1000
jb 0x10087587
test cl, 0x1f
jne 0x1008789e
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x1008789e
sub ecx, eax
cmp ecx, 4
jb 0x1008789e
cmp ecx, 0x23
ja 0x1008789e
mov ecx, eax
push ecx
call fcn.1008bb42
add esp, 4
mov dword [ebx + 0x14], 0xf
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], 0
jb 0x100875a8
mov eax, dword [ebx]
jmp 0x100875aa
mov eax, ebx
mov byte [eax], 0
mov ecx, ebx
lea eax, [ebp - 0xd28]
push eax
call fcn.10007941
mov eax, dword [ebp - 0xd14]
cmp eax, 0x10
jb 0x100875d8
inc eax
push 1
push eax
push dword [ebp - 0xd28]
call fcn.10001f08
add esp, 0xc
mov bl, 1
lea ecx, [ebp - 0xd94]
call fcn.10086a80
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 0x10087614
xor ecx, ecx
jmp 0x10087629
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10087620
sub ecx, edx
push ecx
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0xd28]
call fcn.10005859
mov eax, dword [ebp - 0xd80]
cmp eax, 0x10
jb 0x10087659
inc eax
push 1
push eax
push dword [ebp - 0xd94]
call fcn.10001f08
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.10007941
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xd14]
cmp eax, 0x10
jb 0x100876a7
inc eax
push 1
push eax
push dword [ebp - 0xd28]
call fcn.10001f08
add esp, 0xc
cmp byte [ebp - 0x210], 0
mov dword [ebp - 0xd14], 0xf
mov dword [ebp - 0xd18], 0
mov byte [ebp - 0xd28], 0
jne 0x100876cf
xor ecx, ecx
jmp 0x100876e1
lea ecx, [ebp - 0x210]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100876d8
sub ecx, edx
push ecx
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0xd28]
call fcn.10005859
mov eax, dword [ebp - 0xd68]
cmp eax, 0x10
jb 0x10087711
inc eax
push 1
push eax
push dword [ebp - 0xd7c]
call fcn.10001f08
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.10007941
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xd14]
cmp eax, 0x10
jb 0x1008775f
inc eax
push 1
push eax
push dword [ebp - 0xd28]
call fcn.10001f08
add esp, 0xc
cmp byte [ebp - 0x310], 0
mov dword [ebp - 0xd38], 0xf
mov dword [ebp - 0xd3c], 0
mov byte [ebp - 0xd4c], 0
jne 0x10087787
xor ecx, ecx
jmp 0x10087799
lea ecx, [ebp - 0x310]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10087790
sub ecx, edx
push ecx
lea eax, [ebp - 0x310]
push eax
lea ecx, [ebp - 0xd4c]
call fcn.10005859
mov eax, dword [ebp - 0xd50]
cmp eax, 0x10
jb 0x100877c9
inc eax
push 1
push eax
push dword [ebp - 0xd64]
call fcn.10001f08
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.10007941
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xd38]
cmp eax, 0x10
jb 0x10087817
inc eax
push 1
push eax
push dword [ebp - 0xd4c]
call fcn.10001f08
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.10088930
lea ecx, [ebp - 0xd94]
mov dword [ebp - 4], 0xffffffff
call fcn.1007bfd0
jmp 0x1008785e
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 0x10087110
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.1008bb47
mov esp, ebp
pop ebp
ret
call fcn.10091aa1
int3