Function at 0x41f590
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 0x41f834
test eax, eax
je 0x41f834
cmp dword [esi + 0x24c], 0
jne 0x41f5d8
push 0x230
call fcn.0046a22b
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.0046b980
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 0x41f834
mov eax, dword [esi + 0x24c]
cmp dword [eax], 0x30
jne 0x41f824
cmp dword [eax + 4], 0x30
jne 0x41f824
cmp dword [eax + 0xc], 2
lea edi, [eax + 8]
jne 0x41f824
mov ecx, dword [edi + 0x10]
add ecx, edi
mov eax, dword [ecx + 0x40]
or eax, dword [ecx + 0x44]
jne 0x41f83d
mov eax, dword [ecx + 0x50]
or eax, dword [ecx + 0x54]
jne 0x41f83d
cmp word [ecx + 1], ax
jne 0x41f83d
cmp dword [esi + 0x268], eax
jne 0x41f6e1
push 2
call fcn.0046a22b
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 0x41f71b
test eax, eax
je 0x41f71b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x230], ebx
test ebx, ebx
jne 0x41f731
mov dword [esi + 0x230], 0xffffffff
jmp 0x41f73a
cmp ebx, 0xffffffff
jne 0x41f821
cmp dword [esi + 0x268], 0
jne 0x41f75e
push 2
call fcn.0046a22b
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 0x41f79b
test eax, eax
je 0x41f79b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x230], ebx
test ebx, ebx
jne 0x41f7b1
mov dword [esi + 0x230], 0xffffffff
jmp 0x41f7b6
cmp ebx, 0xffffffff
jne 0x41f821
cmp dword [esi + 0x268], 0
jne 0x41f7da
push 2
call fcn.0046a22b
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 ebx, eax
mov eax, dword [esi + 0x230]
cmp eax, 0xffffffff
je 0x41f811
test eax, eax
je 0x41f811
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
mov eax, 0xffffffff
cmove ebx, eax
mov dword [esi + 0x230], ebx
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, 5
jl 0x41f5f0
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