Function at 0x41d1c0
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 0x41d46d
test eax, eax
je 0x41d46d
cmp dword [esi + 0x24c], 0
jne 0x41d208
push 0x230
call fcn.0048a2cb
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.0048ba10
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 0x41d46d
mov eax, dword [esi + 0x24c]
cmp dword [eax], 0x30
jne 0x41d45d
cmp dword [eax + 4], 0x30
jne 0x41d45d
cmp dword [eax + 0xc], 2
lea edi, [eax + 8]
jne 0x41d45d
mov ecx, dword [edi + 0x10]
add ecx, edi
mov eax, dword [ecx + 0x40]
or eax, dword [ecx + 0x44]
jne 0x41d476
mov eax, dword [ecx + 0x50]
or eax, dword [ecx + 0x54]
jne 0x41d476
cmp word [ecx + 1], ax
jne 0x41d476
cmp dword [esi + 0x268], eax
jne 0x41d311
push 2
call fcn.0048a2cb
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 0x41d34b
test eax, eax
je 0x41d34b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x230], ebx
test ebx, ebx
jne 0x41d361
mov dword [esi + 0x230], 0xffffffff
jmp 0x41d36a
cmp ebx, 0xffffffff
jne 0x41d45a
cmp dword [esi + 0x268], 0
jne 0x41d38e
push 2
call fcn.0048a2cb
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 0x41d3cb
test eax, eax
je 0x41d3cb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x230], ebx
test ebx, ebx
jne 0x41d3e1
mov dword [esi + 0x230], 0xffffffff
jmp 0x41d3e6
cmp ebx, 0xffffffff
jne 0x41d45a
cmp dword [esi + 0x268], 0
jne 0x41d40a
push 2
call fcn.0048a2cb
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 0x41d441
test ecx, ecx
je 0x41d441
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x230], ebx
test ebx, ebx
mov ebx, dword [ebp - 4]
jne 0x41d45d
mov dword [esi + 0x230], 0xffffffff
jmp 0x41d45d
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, 5
jl 0x41d220
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