Function at 0x10008190
Capabilities:
Get storage device properties

Disassembly:
push ebp
lea ebp, [esp - 0x2514]
mov eax, 0x2514
call fcn.10126240
push 0xfffffffffffffffe
push 0x1016ebb0
push 0x10118480
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x1017455c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x2510], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 0x251c]
mov dword [ebp - 0x2c], eax
mov ebx, ecx
mov edi, edx
mov dword [ebp - 0x24], edi
mov esi, dword [ebp + 0x2524]
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp], eax
mov dword [ebp + 4], eax
mov byte [ebp + 0xc], al
mov dword [ebp - 0x30], eax
push 0x2000
push eax
lea ecx, [ebp + 0xc]
push ecx
call fcn.10116880
add esp, 0xc
push 0
lea edx, [ebp - 0x30]
push edx
push 0x2000
lea eax, [ebp + 0xc]
push eax
push 0xc
lea ecx, [ebp]
push ecx
push 0x2d1400
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x100089b2
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp + 0x1c]
cmp eax, ecx
je 0x1000833e
cmp ebx, ecx
je 0x10008364
cmp byte [ebp + 0x16], cl
jne 0x10008364
cmp dword [ebp + 0x28], 7
je 0x10008364
lea eax, [ebp + eax + 0xc]
push eax
push 0x1013fb04
push ebx
call fcn.1010d6a8
push ebx
call fcn.100454f0
add esp, 0x10
test edi, edi
je 0x10008364
cmp byte [edi], 0
je 0x10008364
test esi, esi
je 0x10008364
cmp dword [esi], 0
jne 0x10008364
push str.MegaSR
mov ecx, ebx
call fcn.10047020
add esp, 4
cmp eax, 0xffffffff
jne 0x1000835d
push str.Virtual
mov ecx, ebx
call fcn.10047020
add esp, 4
cmp eax, 0xffffffff
jne 0x1000835d
push str.Raid
mov ecx, ebx
call fcn.10047020
add esp, 4
cmp eax, 0xffffffff
jne 0x1000835d
push str.Logical
mov ecx, ebx
call fcn.10047020
add esp, 4
cmp eax, 0xffffffff
jne 0x1000835d
push str.VBox
mov ecx, ebx
call fcn.10047020
add esp, 4
cmp eax, 0xffffffff
jne 0x1000835d
mov eax, 0x101485a0
mov ecx, ebx
call fcn.10031940
test eax, eax
je 0x1000835d
mov eax, str.PERC
mov ecx, ebx
call fcn.10031940
test eax, eax
je 0x1000835d
cmp byte [ebx], 0
jmp 0x1000835b
cmp ebx, ecx
je 0x10008364
cmp byte [ebp + 0x16], cl
jne 0x10008364
cmp dword [ebp + 0x28], 7
je 0x10008364
cmp edi, ecx
je 0x10008364
cmp byte [edi], cl
je 0x10008364
cmp esi, ecx
je 0x10008364
cmp dword [esi], ecx
jne 0x10008364
mov dword [ebp - 0x28], 1
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x10008411
test ebx, ebx
je 0x100084b3
cmp byte [ebp + 0x16], 0
jne 0x10008411
cmp dword [ebp + 0x28], 7
je 0x10008411
lea ecx, [ebp + eax + 0xc]
push ecx
push 0x1013fb04
lea edx, [ebp + 0x200c]
push edx
call fcn.1010d6a8
add esp, 0xc
cmp byte [ebp + 0x200c], 0
je 0x10008411
lea eax, [ebp + 0x200c]
push eax
call fcn.100454f0
add esp, 4
cmp byte [ebx], 0
je 0x100083df
mov eax, ebx
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x100083c4
mov cx, word [0x101485ac]
mov word [eax], cx
mov dl, byte [0x101485ae]
mov byte [eax + 2], dl
lea eax, [ebp + 0x200c]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100083e7
sub eax, ecx
mov esi, ecx
mov edi, ebx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100083f5
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
test ebx, ebx
je 0x100084b3
cmp byte [ebp + 0x16], 0
jne 0x100084b3
cmp dword [ebp + 0x28], 7
je 0x100084b3
cmp dword [ebp - 0x28], 0
je 0x100084b3
mov dword [esi], 1
cmp byte [ebx], 0
je 0x10008460
mov eax, ebx
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10008445
mov cx, word [0x101485ac]
mov word [eax], cx
mov dl, byte [0x101485ae]
mov byte [eax + 2], dl
mov eax, ebx
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10008463
mov ecx, dword [str.UUID.]
mov dword [eax], ecx
mov dx, word [0x101485b4]
mov word [eax + 4], dx
mov eax, edi
mov ecx, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10008482
sub eax, ecx
mov esi, ecx
mov edi, ebx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10008490
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x1c], 1
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x1000856d
test ebx, ebx
je 0x1000856d
cmp byte [ebp + 0x16], 0
jne 0x100086b1
cmp dword [ebp + 0x28], 7
je 0x1000856d
lea eax, [ebp + eax + 0xc]
push eax
push 0x1013fb04
lea ecx, [ebp + 0x200c]
push ecx
call fcn.1010d6a8
add esp, 0xc
cmp byte [ebp + 0x200c], 0
je 0x1000856d
lea edx, [ebp + 0x200c]
push edx
call fcn.100454f0
add esp, 4
cmp dword [ebp - 0x1c], 0
jne 0x1000856d
mov dword [ebp - 0x1c], 1
cmp byte [ebx], 0
je 0x1000853b
mov eax, ebx
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10008520
mov cx, word [0x101485ac]
mov word [eax], cx
mov dl, byte [0x101485ae]
mov byte [eax + 2], dl
lea eax, [ebp + 0x200c]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10008543
sub eax, ecx
mov esi, ecx
mov edi, ebx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10008551
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
cmp byte [ebp + 0x16], 0
jne 0x100086b1
cmp dword [ebp + 0x28], 7
je 0x100086b1
cmp dword [ebp - 0x1c], 0
jne 0x1000876f
mov byte [ebp + 0x200c], 0
push 0x3ff
push 0
lea eax, [ebp + 0x200d]
push eax
call fcn.10116880
mov byte [ebp + 0x200c], 0
mov ecx, dword [ebp + 0x2520]
push ecx
lea edx, [ebp + 0x200c]
mov ecx, dword [ebp - 0x2c]
call fcn.10007ed0
add esp, 0x10
cmp byte [ebp + 0x200c], 0
je 0x1000862d
mov dword [ebp - 0x1c], 1
cmp byte [ebx], 0
je 0x100085fb
mov eax, ebx
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x100085e0
mov dx, word [0x101485ac]
mov word [eax], dx
mov cl, byte [0x101485ae]
mov byte [eax + 2], cl
lea eax, [ebp + 0x200c]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10008603
sub eax, ecx
mov esi, ecx
mov edi, ebx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10008611
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov byte [ebp + 0x200c], 0
lea ecx, [ebp + 0x200c]
mov edx, dword [ebp - 0x2c]
call fcn.10008050
cmp byte [ebp + 0x200c], 0
je 0x100086b1
cmp dword [ebp - 0x1c], 0
jne 0x1000876f
mov dword [ebp - 0x1c], 1
cmp byte [ebx], 0
je 0x1000867f
mov eax, ebx
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10008664
mov dx, word [0x101485ac]
mov word [eax], dx
mov cl, byte [0x101485ae]
mov byte [eax + 2], cl
lea eax, [ebp + 0x200c]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10008687
sub eax, ecx
mov esi, ecx
mov edi, ebx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10008695
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
cmp dword [ebp - 0x1c], 0
jne 0x1000876f
test ebx, ebx
je 0x1000876f
cmp byte [ebp + 0x16], 0
jne 0x1000876f
cmp dword [ebp + 0x28], 7
je 0x1000876f
test edi, edi
je 0x1000876f
cmp byte [edi], 0
je 0x1000876f
test esi, esi
je 0x1000876f
cmp dword [esi], 0
jne 0x1000876f
mov dword [esi], 1
cmp byte [ebx], 0
je 0x10008722
mov eax, ebx
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10008707
mov dx, word [0x101485ac]
mov word [eax], dx
mov cl, byte [0x101485ae]
mov byte [eax + 2], cl
mov eax, ebx
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10008725
mov edx, dword [str.UUID.]
mov dword [eax], edx
mov cx, word [0x101485b4]
mov word [eax + 4], cx
mov eax, edi
mov ecx, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10008744
sub eax, ecx
mov esi, ecx
dec ebx
mov edi, ebx
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10008752
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x1c], 1
mov byte [ebp + 0x240c], 0
push 0x103
push 0
lea edx, [ebp + 0x240d]
push edx
call fcn.10116880
add esp, 0xc
mov eax, dword [ebp + 0x28]
cmp eax, 0x7f
ja case.0x1000879f.17
movzx ecx, byte [eax + 0x10008a2c]
jmp dword [ecx*4 + 0x100089e0]
push 0
push str.BusTypeUnknown___u_
lea edx, [ebp + 0x240c]
push edx
call fcn.1010d6a8
add esp, 0xc
jmp 0x100089b2
push 1
push str.BusTypeScsi___u_
lea eax, [ebp + 0x240c]
push eax
call fcn.1010d6a8
add esp, 0xc
jmp 0x100089b2
push 2
push str.BusTypeAtapi___u_
lea ecx, [ebp + 0x240c]
push ecx
call fcn.1010d6a8
add esp, 0xc
jmp 0x100089b2
push 3
push str.BusTypeAta___u_
lea edx, [ebp + 0x240c]
push edx
call fcn.1010d6a8
add esp, 0xc
jmp 0x100089b2
push 4
push str.BusType1394___u_
lea eax, [ebp + 0x240c]
push eax
call fcn.1010d6a8
add esp, 0xc
jmp 0x100089b2
push 5
push str.BusTypeSsa___u_
lea ecx, [ebp + 0x240c]
push ecx
call fcn.1010d6a8
add esp, 0xc
jmp 0x100089b2
push 6
push str.BusTypeFibre___u_
lea edx, [ebp + 0x240c]
push edx
call fcn.1010d6a8
add esp, 0xc
jmp 0x100089b2
push 7
push str.BusTypeUsb___u_
lea eax, [ebp + 0x240c]
push eax
call fcn.1010d6a8
add esp, 0xc
jmp 0x100089b2
push 8
push str.BusTypeRAID___u_
lea ecx, [ebp + 0x240c]
push ecx
call fcn.1010d6a8
add esp, 0xc
jmp 0x100089b2
push 9
push str.BusTypeiScsi___u_
lea edx, [ebp + 0x240c]
push edx
call fcn.1010d6a8
add esp, 0xc
jmp 0x100089b2
push 0xa
push str.BusTypeSas___u_
lea eax, [ebp + 0x240c]
push eax
call fcn.1010d6a8
add esp, 0xc
jmp 0x100089b2
push 0xb
push str.BusTypeSata___u_
lea ecx, [ebp + 0x240c]
push ecx
call fcn.1010d6a8
add esp, 0xc
jmp 0x100089b2
push 0xc
push str.BusTypeSd___u_
lea edx, [ebp + 0x240c]
push edx
call fcn.1010d6a8
add esp, 0xc
jmp 0x100089b2
push 0xd
push str.BusTypeMmc___u_
lea eax, [ebp + 0x240c]
push eax
call fcn.1010d6a8
add esp, 0xc
jmp 0x100089b2
push 0xe
push str.BusTypeVirtual___u_
lea ecx, [ebp + 0x240c]
push ecx
call fcn.1010d6a8
add esp, 0xc
jmp 0x100089b2
push 0xf
push str.BusTypeFileBackedVirtual___u_
lea edx, [ebp + 0x240c]
push edx
call fcn.1010d6a8
add esp, 0xc
jmp 0x100089b2
push 0x10
push str.BusTypeMax___u_
lea eax, [ebp + 0x240c]
push eax
call fcn.1010d6a8
add esp, 0xc
jmp 0x100089b2
push 0x7f
push str.BusTypeMaxReserved___u_
lea ecx, [ebp + 0x240c]
push ecx
call fcn.1010d6a8
add esp, 0xc
jmp 0x100089b2
push eax
push str.Unknown___u_
lea edx, [ebp + 0x240c]
push edx
call fcn.1010d6a8
add esp, 0xc
jmp 0x100089b2
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2510]
xor ecx, ebp
call fcn.1010d699
add ebp, 0x2514
mov esp, ebp
pop ebp
ret