Function at 0x10fb429
Capabilities:
Get storage device properties

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x111027c]
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 [0x111024c]
cmp eax, 0x111024c
je 0x10fb471
test byte [eax + 0x1c], 1
je 0x10fb471
cmp byte [eax + 0x19], 4
jb 0x10fb471
push 0x101320c
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
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 0x10fb4f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x111024c]
mov edi, 0x111024c
cmp eax, edi
je 0x10fb4df
test byte [eax + 0x1c], 1
je 0x10fb4df
cmp byte [eax + 0x19], 2
jb 0x10fb4df
push esi
push dword [ebp - 0x18]
push 0x101320c
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
mov eax, dword [0x111024c]
cmp esi, ebx
jg 0x10fb4eb
mov dword [ebp - 0x14], esi
jmp 0x10fb689
and esi, 0xffff
or esi, 0x80070000
jmp 0x10fb4e3
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 0x10fb57e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10fb566
test byte [eax + 0x1c], 1
je 0x10fb566
cmp byte [eax + 0x19], 2
jb 0x10fb566
push esi
push dword [ebp - 0x18]
push 0x101320c
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
test esi, esi
jle 0x10fb576
and esi, 0xffff
or esi, 0x80070000
mov dword [ebp - 0x14], esi
jmp 0x10fb674
cmp dword [ebp - 0x20], 0x20
je 0x10fb595
push 0x1013270
push 0x4d
push 0x101323c
call fcn.0107b644
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 0x10fb5ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10fb566
test byte [eax + 0x1c], 1
je 0x10fb566
cmp byte [eax + 0x19], 2
jb 0x10fb566
push esi
push dword [ebp - 0x18]
push 0x101320c
push 0xd
jmp 0x10fb55b
cmp dword [ebp - 0x20], edi
je 0x10fb604
push 0x101321c
push 0x61
push 0x101323c
call fcn.0107b644
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 [0x111024c]
cmp eax, 0x111024c
je 0x10fb674
test byte [eax + 0x1c], 1
je 0x10fb674
cmp byte [eax + 0x19], 4
jb 0x10fb674
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 0x101320c
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010fb3a5
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x111024c]
xor ebx, ebx
mov edi, 0x111024c
cmp dword [ebp - 0x14], ebx
jge 0x10fb6bb
cmp eax, edi
je 0x10fb6dd
test byte [eax + 0x1c], 1
je 0x10fb6bb
cmp byte [eax + 0x19], 2
jb 0x10fb6bb
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 0x101320c
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
mov eax, dword [0x111024c]
cmp eax, edi
je 0x10fb6dd
test byte [eax + 0x1c], 1
je 0x10fb6dd
cmp byte [eax + 0x19], 4
jb 0x10fb6dd
push 0x101320c
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0106f798
leave
ret 8