Function at 0x41f890
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x230]
cmp eax, 0xffffffff
je 0x41fb3d
test eax, eax
je 0x41fb3d
cmp dword [esi + 0x24c], 0
jne 0x41f8d8
push 0x230
call fcn.0046b90c
add esp, 4
mov dword [esi + 0x24c], eax
mov dword [esi + 0x250], 0x230
mov ebx, dword [esi + 0x24c]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], 0
lea edi, [ebx + 8]
nop dword [eax + eax]
push 0x230
push 0
push dword [esi + 0x24c]
call fcn.0046ce00
add esp, 0xc
mov dword [ebx], 0x32
mov dword [ebx + 4], 0
lea eax, [esi + 4]
mov dword [edi], 3
mov dword [edi + 4], 2
push 0
push eax
push 0x230
mov dword [edi + 8], 2
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0x28
mov dword [edi + 0x14], 0x200
push dword [esi + 0x24c]
mov dword [eax], 0
push 0x230
push ebx
push 0x2d1400
push dword [esi + 0x230]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x41fb3d
mov eax, dword [esi + 0x24c]
cmp dword [eax], 0x30
jne 0x41fb2d
cmp dword [eax + 4], 0x30
jne 0x41fb2d
cmp dword [eax + 0xc], 2
lea edi, [eax + 8]
jne 0x41fb2d
mov ecx, dword [edi + 0x10]
add ecx, edi
mov eax, dword [ecx + 0x40]
or eax, dword [ecx + 0x44]
jne 0x41fb46
mov eax, dword [ecx + 0x50]
or eax, dword [ecx + 0x54]
jne 0x41fb46
cmp word [ecx + 1], ax
jne 0x41fb46
cmp dword [esi + 0x268], eax
jne 0x41f9e1
push 2
call fcn.0046b90c
add esp, 4
mov dword [esi + 0x268], eax
xor ecx, ecx
mov word [eax], cx
mov dword [esi + 0x26c], ecx
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push dword [esi + 0x268]
mov byte [esi + 0x270], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov eax, dword [esi + 0x230]
cmp eax, 0xffffffff
je 0x41fa1b
test eax, eax
je 0x41fa1b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x230], ebx
test ebx, ebx
jne 0x41fa31
mov dword [esi + 0x230], 0xffffffff
jmp 0x41fa3a
cmp ebx, 0xffffffff
jne 0x41fb2a
cmp dword [esi + 0x268], 0
jne 0x41fa5e
push 2
call fcn.0046b90c
add esp, 4
mov dword [esi + 0x268], eax
xor ecx, ecx
mov word [eax], cx
mov dword [esi + 0x26c], ecx
push 0
push 0x2000000
push 3
push 0
push 3
push 0xc0000000
push dword [esi + 0x268]
mov byte [esi + 0x270], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov eax, dword [esi + 0x230]
cmp eax, 0xffffffff
je 0x41fa9b
test eax, eax
je 0x41fa9b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x230], ebx
test ebx, ebx
jne 0x41fab1
mov dword [esi + 0x230], 0xffffffff
jmp 0x41fab6
cmp ebx, 0xffffffff
jne 0x41fb2a
cmp dword [esi + 0x268], 0
jne 0x41fada
push 2
call fcn.0046b90c
add esp, 4
mov dword [esi + 0x268], eax
xor ecx, ecx
mov word [eax], cx
mov dword [esi + 0x26c], ecx
push 0
push 0
push 3
push 0
push 3
push 0
push dword [esi + 0x268]
mov byte [esi + 0x270], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [esi + 0x230]
mov ebx, eax
cmp ecx, 0xffffffff
je 0x41fb11
test ecx, ecx
je 0x41fb11
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x230], ebx
test ebx, ebx
mov ebx, dword [ebp - 4]
jne 0x41fb2d
mov dword [esi + 0x230], 0xffffffff
jmp 0x41fb2d
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, 5
jl 0x41f8f0
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret