Function at 0x1003bb80
Capabilities:
Get volume information via ioctl

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x102083b0
push 0x1018b766
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x10221008]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x9c], edx
mov dword [ebp - 0x94], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x90], eax
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0x24], 0
push 0x60
push 0
lea eax, [ebp - 0x8c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xorps xmm0, xmm0
movq qword [ebp - 0x2c], xmm0
xor esi, esi
xor eax, eax
mov dword [ebp - 0xa0], eax
xor edi, edi
mov dword [ebp - 0x98], edi
mov dword [ebp - 4], eax
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
call ebx
mov ecx, dword [ebp - 0x94]
call fcn.1003adb0
test eax, eax
jne 0x1003bdb2
mov ecx, dword [ebp - 0x9c]
call fcn.1003ae80
test eax, eax
jne 0x1003bdb2
push 4
push dword [ebp - 0x90]
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003bdb2
push 4
push dword [ebp - 0x90]
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x1003bdb2
mov eax, dword [ebp - 0x90]
mov dword [eax], edi
mov eax, dword [ebp - 0x94]
cmp dword [eax + 0x40], 1
je 0x1003bc82
push 0x32
jmp 0x1003bdb4
push 0
lea ecx, [ebp - 0x24]
push ecx
push 0x60
lea ecx, [ebp - 0x8c]
push ecx
push 0
push 0
push 0x90064
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1003bdb6
mov eax, dword [ebp - 0x5c]
add eax, 0xf
mov dword [ebp - 0xa8], eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov dword [ebp - 0xac], ecx
test ecx, ecx
jne 0x1003bcd9
push 0xe
jmp 0x1003bdb4
mov edx, dword [ebp - 0x9c]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0x28], eax
push 0
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0xa8]
push ecx
push 8
lea eax, [ebp - 0x2c]
push eax
push 0x90068
mov eax, dword [ebp - 0x94]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1003bdb6
mov eax, dword [ebp - 0xac]
add eax, 0xc
movzx ecx, word [eax + 0x14]
add ecx, eax
mov dword [ebp - 0xb0], ecx
mov edx, dword [eax + 0x18]
add edx, eax
cmp ecx, edx
jae 0x1003bd5b
cmp dword [ecx], 0x80
jne 0x1003bd50
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0xa0], eax
movzx esi, word [ecx + 0x14]
add esi, ecx
jmp 0x1003bd5d
add ecx, dword [ecx + 4]
mov dword [ebp - 0xb0], ecx
jmp 0x1003bd33
xor eax, eax
test esi, esi
je 0x1003bdb6
test eax, eax
je 0x1003bdb6
add eax, 4
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [ebp - 0x98], edi
test edi, edi
je 0x1003bcd2
mov eax, dword [ebp - 0xa0]
mov dword [edi], eax
push eax
push esi
lea eax, [edi + 4]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x90]
mov dword [eax], edi
mov dword [ebp - 0xa4], 1
jmp 0x1003bdb6
push 0x57
call ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.1003bdee
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.1018b6f4
mov esp, ebp
pop ebp
ret 4