Function at 0x41d250
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 0x41d4fd
test eax, eax
je 0x41d4fd
cmp dword [esi + 0x24c], 0
jne 0x41d298
push 0x230
call fcn.0048a28e
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.0048b9e0
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 0x41d4fd
mov eax, dword [esi + 0x24c]
cmp dword [eax], 0x30
jne 0x41d4ed
cmp dword [eax + 4], 0x30
jne 0x41d4ed
cmp dword [eax + 0xc], 2
lea edi, [eax + 8]
jne 0x41d4ed
mov ecx, dword [edi + 0x10]
add ecx, edi
mov eax, dword [ecx + 0x40]
or eax, dword [ecx + 0x44]
jne 0x41d506
mov eax, dword [ecx + 0x50]
or eax, dword [ecx + 0x54]
jne 0x41d506
cmp word [ecx + 1], ax
jne 0x41d506
cmp dword [esi + 0x268], eax
jne 0x41d3a1
push 2
call fcn.0048a28e
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 0x41d3db
test eax, eax
je 0x41d3db
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x230], ebx
test ebx, ebx
jne 0x41d3f1
mov dword [esi + 0x230], 0xffffffff
jmp 0x41d3fa
cmp ebx, 0xffffffff
jne 0x41d4ea
cmp dword [esi + 0x268], 0
jne 0x41d41e
push 2
call fcn.0048a28e
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 0x41d45b
test eax, eax
je 0x41d45b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x230], ebx
test ebx, ebx
jne 0x41d471
mov dword [esi + 0x230], 0xffffffff
jmp 0x41d476
cmp ebx, 0xffffffff
jne 0x41d4ea
cmp dword [esi + 0x268], 0
jne 0x41d49a
push 2
call fcn.0048a28e
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 0x41d4d1
test ecx, ecx
je 0x41d4d1
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x230], ebx
test ebx, ebx
mov ebx, dword [ebp - 4]
jne 0x41d4ed
mov dword [esi + 0x230], 0xffffffff
jmp 0x41d4ed
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, 5
jl 0x41d2b0
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