Function at 0x417b50
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4265d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov eax, dword [0x4309b0]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor ebx, ebx
mov ecx, esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x21], bl
call fcn.00401bd0
mov ecx, esi
call fcn.00401bd0
lea ecx, [esi + 4]
mov dword [ebp - 0x30], ecx
call fcn.00401bd0
lea ecx, [esi + 8]
mov dword [ebp - 0x3c], ecx
call fcn.00401bd0
lea ecx, [esi + 0xc]
mov dword [ebp - 0x40], ecx
call fcn.00401bd0
lea ecx, [esi + 0x10]
mov dword [ebp - 0x38], ecx
call fcn.00401bd0
mov edi, dword [ebp + 8]
cmp edi, ebx
mov dword [esi + 0x14], ebx
jne 0x417bc9
xor eax, eax
jmp 0x417bd2
push edi
call fcn.004195c1
add esp, 4
push eax
push edi
mov ecx, esi
call fcn.004021e0
mov eax, dword [esi]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x2c], edi
jne 0x417bfd
xor al, al
jmp 0x417d8a
push ebx
lea ecx, [ebp - 0x34]
push ecx
push 0x18
xor eax, eax
lea edx, [ebp - 0x58]
push edx
mov dword [ebp - 0x54], eax
push ebx
mov dword [ebp - 0x50], eax
push ebx
mov dword [ebp - 0x4c], eax
push 0x70000
mov dword [ebp - 0x48], eax
push edi
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x34], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, ebx
je 0x417d80
mov eax, dword [ebp - 0x50]
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
push 0xa000
mov dword [esi + 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
call fcn.00419d94
add esp, 4
push ebx
mov edi, eax
xor eax, eax
lea edx, [ebp + 0xc]
push edx
mov edx, dword [ebp - 0x2c]
push 0x9fff
mov dword [ebp - 0x28], edi
mov ecx, 0x2800
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x28]
push eax
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 0x2d1400
push edx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x417d26
mov eax, dword [ebp - 0x28]
mov byte [eax + 0x9fff], bl
mov edi, dword [ebp - 0x28]
mov eax, dword [edi + 0x10]
cmp eax, ebx
mov esi, edi
je 0x417ccc
cmp eax, 0xa000
jae 0x417ccc
mov ecx, dword [ebp - 0x3c]
add eax, edi
push eax
call fcn.004135b0
mov edi, dword [ebp - 0x28]
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x417ce8
cmp eax, 0xa000
jae 0x417ce8
mov ecx, dword [ebp - 0x30]
add eax, edi
push eax
call fcn.004135b0
mov edi, dword [ebp - 0x28]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x417d04
cmp eax, 0xa000
jae 0x417d04
mov ecx, dword [ebp - 0x40]
add eax, edi
push eax
call fcn.004135b0
mov edi, dword [ebp - 0x28]
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x417d20
cmp eax, 0xa000
jae 0x417d20
mov ecx, dword [ebp - 0x38]
add eax, edi
push eax
call fcn.004135b0
mov edi, dword [ebp - 0x28]
mov byte [ebp - 0x21], 1
jmp 0x417d29
mov edi, dword [ebp - 0x28]
push ebx
xor eax, eax
mov ecx, 0x2800
rep stosd dword es:[edi], eax
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp + 0xc]
push ecx
push 0x9fff
push edx
push ebx
push ebx
push 0x2d0c10
push eax
mov dword [ebp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x417d71
mov ecx, dword [ebp - 0x28]
lea edx, [ebp - 0x18]
mov byte [ecx + 0x9fff], bl
mov ecx, dword [ebp - 0x30]
push edx
call fcn.004135b0
mov byte [ebp - 0x21], 1
mov eax, dword [ebp - 0x28]
push eax
call fcn.00419d8f
add esp, 4
mov edi, dword [ebp - 0x2c]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x21]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0041931e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret