Function at 0x41e7e0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2cdc
call fcn.004988e0
push ebx
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x5c8]
push edi
push 0x544ee0
push eax
mov ebx, edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x5c8]
push edi
push edi
push 3
push edi
push 3
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 8], esi
cmp esi, 0xffffffff
je 0x41eac4
push 0x2710
xorps xmm0, xmm0
mov dword [ebp - 4], edi
lea eax, [ebp - 0x2cd8]
movq qword [ebp - 0x18], xmm0
push edi
push eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call fcn.004b0ce0
add esp, 0xc
lea eax, [ebp - 4]
push edi
push eax
push 0x2710
lea eax, [ebp - 0x2cd8]
push eax
push 0xc
lea eax, [ebp - 0x18]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x41eabd
push 0x80
lea eax, [ebp - 0x3c8]
push edi
push eax
call fcn.004b0ce0
push 0x80
lea eax, [ebp - 0x2c8]
push edi
push eax
call fcn.004b0ce0
push 0x80
lea eax, [ebp - 0x248]
push edi
push eax
call fcn.004b0ce0
push 0x80
lea eax, [ebp - 0x348]
push edi
push eax
call fcn.004b0ce0
mov edx, dword [ebp - 0x2ccc]
lea eax, [ebp - 0x248]
add esp, 0x30
push eax
push ecx
lea ecx, [ebp - 0x2cd8]
call fcn.0041e5a0
mov edx, dword [ebp - 0x2cc8]
lea eax, [ebp - 0x2c8]
add esp, 8
push eax
push ecx
lea ecx, [ebp - 0x2cd8]
call fcn.0041e5a0
mov edx, dword [ebp - 0x2cc4]
lea eax, [ebp - 0x348]
add esp, 8
push eax
push ecx
lea ecx, [ebp - 0x2cd8]
call fcn.0041e5a0
mov edx, dword [ebp - 0x2cc0]
lea eax, [ebp - 0x3c8]
add esp, 8
push eax
push ecx
lea ecx, [ebp - 0x2cd8]
call fcn.0041e5a0
push 0x1a0
lea eax, [ebp - 0x1c0]
mov dword [ebp - 0x20], edi
xorps xmm0, xmm0
push edi
push eax
movlpd qword [ebp - 0x1c8], xmm0
call fcn.004b0ce0
lea ecx, [ebp - 0x248]
add esp, 0x14
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41e965
sub ecx, edx
je 0x41e987
xor ecx, ecx
mov al, byte [ebp + ecx - 0x248]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x1a1], al
test al, al
jne 0x41e972
lea ecx, [ebp - 0x2c8]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41e990
sub ecx, edx
je 0x41e9ce
lea edx, [ebp - 0x2c8]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x41e9a3
lea edi, [ebp - 0x1a0]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41e9b3
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 8]
xor edi, edi
xor ecx, ecx
mov al, byte [ebp + ecx - 0x348]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0xa1], al
test al, al
jne 0x41e9d0
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x3c8]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x121], al
test al, al
jne 0x41e9f0
lea ecx, [ebp - 0x120]
call fcn.0041e710
lea ecx, [ebp - 0x1a0]
call fcn.0041e710
lea ecx, [ebp - 0xa0]
call fcn.0041e710
push 0x2710
lea eax, [ebp - 0x2cd8]
push 0
push eax
call fcn.004b0ce0
add esp, 0xc
lea eax, [ebp - 4]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x2cd8]
push eax
push 0
push 0
push 0x700a0
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x41eabd
cmp dword [ebp - 0x2cd0], 0xc
mov eax, dword [ebp - 0x2cc0]
mov dword [ebp - 0x1c8], eax
mov eax, dword [ebp - 0x2cbc]
mov dword [ebp - 0x1c4], eax
jne 0x41eabd
lea edx, [ebp - 0x120]
mov dword [ebp - 0x20], 2
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x41ea93
sub edx, ecx
xor ecx, ecx
test edx, edx
jle 0x41eab4
movsx ax, byte [ebp + ecx - 0x120]
mov word [ebx + ecx*2], ax
inc ecx
cmp ecx, edx
jl 0x41eaa2
xor eax, eax
mov word [ebx + edx*2], ax
lea edi, [eax + 1]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret