Function at 0x41d6c0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2d30
call fcn.004d2490
mov eax, dword [0x53f084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov dword [ebp - 0x2d28], eax
test eax, eax
je 0x41d982
mov eax, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x2d24], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d10], ebx
mov dword [ebp - 0x2d14], esi
mov dword [ebp - 0x2d30], edi
mov dword [ebp - 0x2d2c], eax
nop dword [eax]
push esi
push str..PhysicalDrive_d
lea eax, [ebp - 0x5ec]
push 0x200
push eax
call fcn.0041d250
add esp, 0x10
lea eax, [ebp - 0x5ec]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call edi
mov edi, eax
mov dword [ebp - 0x2d1c], edi
cmp edi, 0xffffffff
je 0x41d959
push 0x2710
lea eax, [ebp - 0x2cfc]
mov dword [ebp - 0x2d20], 0
push 0
push eax
mov dword [ebp - 0x2d00], 0
mov dword [ebp - 0x2d08], 0
mov dword [ebp - 0x2d04], 0
call fcn.004d43f0
add esp, 0xc
lea eax, [ebp - 0x2d20]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x2cfc]
push eax
push 0xc
lea eax, [ebp - 0x2d08]
push eax
push 0x2d1400
push edi
call dword [ebp - 0x2d24]
test eax, eax
je 0x41d94e
push 0x3e7
lea eax, [ebp - 0x3eb]
push 0
push eax
call fcn.004d43f0
mov eax, dword [ebp - 0x2ce4]
add esp, 0xc
mov byte [ebp - 0x3ec], 0
test eax, eax
jle 0x41d925
lea edi, [ebp - 0x2cfc]
xor bh, bh
xor esi, esi
mov ecx, 1
add edi, eax
mov dword [ebp - 0x2d0c], ecx
mov eax, edi
mov dword [ebp - 0x2d18], eax
mov al, byte [eax]
test al, al
je 0x41d8d5
movsx eax, al
push eax
call fcn.004df101
mov bl, al
movsx eax, bl
push eax
call fcn.004db302
mov cl, byte [ebp + esi - 0x3ec]
add esp, 8
test eax, eax
movzx edx, bl
mov eax, 0x30
cmovne edx, eax
shl cl, 4
inc bh
mov byte [ebp + esi - 0x3ec], cl
lea eax, [edx - 0x30]
cmp al, 9
jbe 0x41d86c
lea eax, [edx - 0x61]
cmp al, 5
ja 0x41d8a4
lea eax, [edx - 0x57]
or cl, al
mov byte [ebp + esi - 0x3ec], cl
cmp bh, 2
jne 0x41d898
test cl, cl
je 0x41d88e
movsx eax, cl
push eax
call fcn.004db2ce
add esp, 4
test eax, eax
je 0x41d8a4
inc esi
xor bh, bh
mov byte [ebp + esi - 0x3ec], bh
mov eax, dword [ebp - 0x2d18]
inc eax
jmp 0x41d814
mov dword [ebp - 0x2d0c], 1
xor esi, esi
mov bl, byte [edi]
test bl, bl
je 0x41d8d5
movsx eax, bl
push eax
call fcn.004db2ce
add esp, 4
test eax, eax
je 0x41d8d1
mov byte [ebp + esi - 0x3ec], bl
inc esi
inc edi
jmp 0x41d8b0
xor ecx, ecx
jmp 0x41d8db
mov ecx, dword [ebp - 0x2d0c]
xor edi, edi
test ecx, ecx
cmovne edi, esi
xor edx, edx
mov byte [ebp + edi - 0x3ec], 0
test edi, edi
jle 0x41d913
mov cl, byte [ebp + edx - 0x3ec]
mov al, byte [ebp + edx - 0x3eb]
mov byte [ebp + edx - 0x3ec], al
mov byte [ebp + edx - 0x3eb], cl
add edx, 2
cmp edx, edi
jl 0x41d8f0
mov edi, dword [ebp - 0x2d1c]
mov esi, dword [ebp - 0x2d14]
mov ebx, dword [ebp - 0x2d10]
push ecx
lea eax, [ebp - 0x3ec]
mov edx, 0x64
push eax
push ecx
mov ecx, dword [ebp - 0x2d28]
call fcn.0041d2d0
test eax, eax
mov eax, 1
cmove ebx, eax
mov dword [ebp - 0x2d10], ebx
push edi
call dword [ebp - 0x2d2c]
test ebx, ebx
jne 0x41d96f
mov edi, dword [ebp - 0x2d30]
inc esi
mov dword [ebp - 0x2d14], esi
cmp esi, 0x10
jl 0x41d720
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d170a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004d170a
mov esp, ebp
pop ebp
ret