Function at 0x100c554
Capabilities:
Get storage device properties

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100f010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ecx
cmp byte [esi + 4], cl
jne 0x100c783
push ebx
push edi
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor eax, eax
push ecx
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
push eax
push 8
pop edi
push edi
lea eax, [ebp - 0x28]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x2d1400
push dword [esi]
mov byte [esi + 4], 1
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], 3
mov dword [ebp - 0xc], ecx
mov byte [ebp - 8], cl
call ebx
test eax, eax
jne 0x100c5f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov eax, dword [0x100f004]
cmp eax, 0x100f004
je 0x100c763
test byte [eax + 0x1c], 1
je 0x100c763
push dword [ebp - 0x14]
push 0x1001e74
push 0xa
jmp 0x100c6ec
cmp dword [ebp - 0x18], edi
je 0x100c638
push 0xd
pop ecx
mov dword [ebp - 0x14], ecx
mov eax, dword [0x100f004]
cmp eax, 0x100f004
je 0x100c781
test byte [eax + 0x1c], 1
je 0x100c781
push ecx
push edi
push dword [ebp - 0x18]
push 0x1001e74
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100c4cf
jmp 0x100c781
mov eax, dword [ebp - 0x24]
push eax
push edi
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x100c688
mov dword [ebp - 0x14], edi
mov eax, dword [0x100f004]
cmp eax, 0x100f004
je 0x100c769
test byte [eax + 0x1c], 1
je 0x100c769
push 0x1001e74
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002205
jmp 0x100c769
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp - 0x20]
and dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push 0xc
push eax
push 0x2d1400
push dword [esi]
mov dword [ebp - 0x10], 3
mov byte [ebp - 8], 0
call ebx
test eax, eax
jne 0x100c6f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov eax, dword [0x100f004]
cmp eax, 0x100f004
je 0x100c763
test byte [eax + 0x1c], 1
je 0x100c763
push dword [ebp - 0x14]
push 0x1001e74
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003f79
jmp 0x100c763
cmp dword [ebp - 0x18], edi
je 0x100c72f
push 0xd
pop ecx
mov dword [ebp - 0x14], ecx
mov eax, dword [0x100f004]
cmp eax, 0x100f004
je 0x100c769
test byte [eax + 0x1c], 1
je 0x100c769
push ecx
push edi
push dword [ebp - 0x18]
push 0x1001e74
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100c4cf
jmp 0x100c769
mov eax, dword [0x100f004]
cmp eax, 0x100f004
je 0x100c757
test byte [eax + 0x1c], 4
je 0x100c757
push edi
push dword [ebp - 0x18]
push 0x1001e74
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010060b6
mov eax, dword [ebp - 0x1c]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0xc], eax
cmp dword [ebp - 0x14], 0
je 0x100c781
cmp dword [ebp - 0x1c], 0
je 0x100c781
push dword [ebp - 0x1c]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
xor ecx, ebp
pop esi
call fcn.01008c45
leave
ret