Function at 0x10fb564
Capabilities:
Get storage device properties

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x111127c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x18], eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10fb5ac
test byte [eax + 0x1c], 1
je 0x10fb5ac
cmp byte [eax + 0x19], 4
jb 0x10fb5ac
push 0x1013284
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
push 7
pop ecx
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push 0xc0000000
push dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x48], ebx
lea edi, [ebp - 0x44]
mov dword [ebp - 0x14], ebx
rep stosd dword es:[edi], eax
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x10fb634
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x111124c]
mov edi, 0x111124c
cmp eax, edi
je 0x10fb61a
test byte [eax + 0x1c], 1
je 0x10fb61a
cmp byte [eax + 0x19], 2
jb 0x10fb61a
push esi
push dword [ebp - 0x18]
push 0x1013284
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
mov eax, dword [0x111124c]
cmp esi, ebx
jg 0x10fb626
mov dword [ebp - 0x14], esi
jmp 0x10fb7c4
and esi, 0xffff
or esi, 0x80070000
jmp 0x10fb61e
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push 0x20
lea eax, [ebp - 0x48]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x2d1400
push dword [ebp - 0x1c]
mov dword [ebp - 0xc], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x10], 1
call ebx
test eax, eax
jne 0x10fb6b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10fb6a1
test byte [eax + 0x1c], 1
je 0x10fb6a1
cmp byte [eax + 0x19], 2
jb 0x10fb6a1
push esi
push dword [ebp - 0x18]
push 0x1013284
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
test esi, esi
jle 0x10fb6b1
and esi, 0xffff
or esi, 0x80070000
mov dword [ebp - 0x14], esi
jmp 0x10fb7af
cmp dword [ebp - 0x20], 0x20
je 0x10fb6d0
push 0x10132e8
push 0x4d
push 0x10132b4
call fcn.0107b4be
push 8
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop edi
xor eax, eax
push eax
lea ecx, [ebp - 0x20]
push ecx
push edi
lea ecx, [ebp - 0x28]
push ecx
push eax
push eax
push 0x2d0c14
push dword [ebp - 0x1c]
mov dword [ebp - 0x28], edi
call ebx
test eax, eax
jne 0x10fb729
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10fb6a1
test byte [eax + 0x1c], 1
je 0x10fb6a1
cmp byte [eax + 0x19], 2
jb 0x10fb6a1
push esi
push dword [ebp - 0x18]
push 0x1013284
push 0xd
jmp 0x10fb696
cmp dword [ebp - 0x20], edi
je 0x10fb73f
push 0x1013294
push 0x61
push 0x10132b4
call fcn.0107b4be
mov cl, byte [ebp - 0x30]
xor eax, eax
cmp cl, 7
setne al
xor edx, edx
dec eax
and eax, 2
cmp cl, 4
setne dl
dec edx
and edx, 4
or eax, edx
xor edx, edx
cmp byte [ebp - 0x22], dl
setne dl
or eax, edx
or dword [esi], eax
mov esi, dword [esi]
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10fb7af
test byte [eax + 0x1c], 1
je 0x10fb7af
cmp byte [eax + 0x19], 4
jb 0x10fb7af
xor edx, edx
cmp cl, 4
sete dl
push esi
push edx
xor edx, edx
cmp cl, 7
movzx ecx, byte [ebp - 0x22]
sete dl
push edx
push ecx
push dword [ebp - 0x18]
push 0x1013284
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010fb4e0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x111124c]
xor ebx, ebx
mov edi, 0x111124c
cmp dword [ebp - 0x14], ebx
jge 0x10fb7f6
cmp eax, edi
je 0x10fb818
test byte [eax + 0x1c], 1
je 0x10fb7f6
cmp byte [eax + 0x19], 2
jb 0x10fb7f6
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 0x1013284
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
mov eax, dword [0x111124c]
cmp eax, edi
je 0x10fb818
test byte [eax + 0x1c], 1
je 0x10fb818
cmp byte [eax + 0x19], 4
jb 0x10fb818
push 0x1013284
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0106f5f8
leave
ret 8