Function at 0x1000af40
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10051400
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x10069070]
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 esi, dword [ebp + 0xc]
or ebx, 0xffffffff
mov dword [ebp - 0x40], esi
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
lea edx, [eax - 0x10]
mov edi, dword [edx]
je 0x1000afc9
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
jge 0x1000afaa
cmp dword [eax - 8], 0
jge 0x1000af9a
push 0x80070057
call fcn.1000a250
mov dword [eax - 0xc], 0
xor ecx, ecx
mov eax, dword [esi]
mov word [eax], cx
jmp 0x1000afc9
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1000afbd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
call fcn.10001cd0
mov ecx, eax
test ecx, ecx
jne 0x1000afde
push 0x80004005
call fcn.1000a250
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0
xor eax, eax
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x20], 0x5c005c
push eax
mov dword [ebp - 0x1c], 0x5c002e
mov dword [ebp - 0x18], 0x3a0043
call fcn.1000bdc0
mov esi, dword [ebp - 0x34]
add esp, 8
push 0
push 0
push 3
push 0
push 3
push 0
push esi
call dword [0x1007357c]
mov dword [ebp - 0x3c], eax
cmp eax, 0xffffffff
jne 0x1000b046
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1000b12d
push 0
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x24], 0
push ecx
push 8
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x48], 0
push ecx
push 0xc
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x44], 0
push ecx
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
push 0x2d1400
movq qword [ebp - 0x2c], xmm0
push eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
call dword [0x10073578]
test eax, eax
je 0x1000b122
mov edi, dword [ebp - 0x44]
push edi
call fcn.1002aae7
add esp, 4
mov dword [ebp - 0x30], eax
push edi
push 0
push eax
call fcn.1002d810
add esp, 0xc
lea eax, [ebp - 0x38]
push 0
push eax
push edi
mov edi, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push edi
push 0xc
push eax
push 0x2d1400
push dword [ebp - 0x3c]
call dword [0x10073578]
test eax, eax
je 0x1000b119
mov eax, dword [edi + 0x18]
test eax, eax
je 0x1000b119
add eax, edi
lea ecx, [ebp - 0x30]
push eax
call fcn.1000b730
mov ecx, dword [ebp - 0x40]
push eax
mov byte [ebp - 4], 1
call fcn.1000b6a0
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000b119
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push edi
call fcn.1002aaf0
add esp, 4
push dword [ebp - 0x3c]
call dword [0x10073560]
xor edi, edi
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1000b149
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
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.1002a506
mov esp, ebp
pop ebp
ret 8