Function at 0x41eeb0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2d30
call fcn.0048e7b0
mov eax, dword [0x515584]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2d28], ecx
test ecx, ecx
je 0x41f18e
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 - 0x2d14], ebx
mov dword [ebp - 0x2d20], esi
mov dword [ebp - 0x2d30], edi
mov dword [ebp - 0x2d2c], eax
nop word [eax + eax]
push esi
push str..PhysicalDrive_d
lea eax, [ebp - 0x5ec]
push 0x200
push eax
call fcn.0041e7b0
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 0x41f165
push 0x2710
lea eax, [ebp - 0x2cfc]
mov dword [ebp - 0x2d00], 0
push 0
push eax
mov dword [ebp - 0x2d04], 0
mov dword [ebp - 0x2d0c], 0
mov dword [ebp - 0x2d08], 0
call fcn.00490000
add esp, 0xc
lea eax, [ebp - 0x2d00]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x2cfc]
push eax
push 0xc
lea eax, [ebp - 0x2d0c]
push eax
push 0x2d1400
push edi
call dword [ebp - 0x2d24]
test eax, eax
je 0x41f15a
push 0x3e7
lea eax, [ebp - 0x3eb]
push 0
push eax
call fcn.00490000
mov eax, dword [ebp - 0x2ce4]
add esp, 0xc
mov byte [ebp - 0x3ec], 0
test eax, eax
jle 0x41f10f
lea edi, [ebp - 0x2cfc]
xor bh, bh
xor esi, esi
mov ecx, 1
add edi, eax
mov dword [ebp - 0x2d10], ecx
mov eax, edi
mov dword [ebp - 0x2d18], eax
mov al, byte [eax]
test al, al
je 0x41f0c5
movsx eax, al
push eax
call fcn.0049b4ab
mov bl, al
movsx eax, bl
push eax
call fcn.0049fa97
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 0x41f05c
lea eax, [edx - 0x61]
cmp al, 5
ja 0x41f094
lea eax, [edx - 0x57]
or cl, al
mov byte [ebp + esi - 0x3ec], cl
cmp bh, 2
jne 0x41f088
test cl, cl
je 0x41f07e
movsx eax, cl
push eax
call fcn.0049fa68
add esp, 4
test eax, eax
je 0x41f094
inc esi
xor bh, bh
mov byte [ebp + esi - 0x3ec], bh
mov eax, dword [ebp - 0x2d18]
inc eax
jmp 0x41f004
mov dword [ebp - 0x2d10], 1
xor esi, esi
mov bl, byte [edi]
test bl, bl
je 0x41f0c5
movsx eax, bl
push eax
call fcn.0049fa68
add esp, 4
test eax, eax
je 0x41f0c1
mov byte [ebp + esi - 0x3ec], bl
inc esi
inc edi
jmp 0x41f0a0
xor ecx, ecx
jmp 0x41f0cb
mov ecx, dword [ebp - 0x2d10]
xor edi, edi
test ecx, ecx
cmovne edi, esi
xor edx, edx
mov byte [ebp + edi - 0x3ec], 0
test edi, edi
jle 0x41f103
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 0x41f0e0
mov edi, dword [ebp - 0x2d1c]
mov ebx, dword [ebp - 0x2d14]
mov ecx, dword [ebp - 0x2d28]
lea esi, [ebp - 0x3ec]
mov edx, 0x64
sub esi, ecx
lea eax, [edx + 0x7fffff9a]
test eax, eax
je 0x41f13b
mov al, byte [esi + ecx]
test al, al
je 0x41f13b
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x41f122
mov esi, dword [ebp - 0x2d20]
lea eax, [ecx - 1]
test edx, edx
cmovne eax, ecx
mov byte [eax], 0
mov eax, 1
cmovne ebx, eax
mov dword [ebp - 0x2d14], ebx
push edi
call dword [ebp - 0x2d2c]
test ebx, ebx
jne 0x41f17b
mov edi, dword [ebp - 0x2d30]
inc esi
mov dword [ebp - 0x2d20], esi
cmp esi, 0x10
jl 0x41ef10
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048d7c2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0048d7c2
mov esp, ebp
pop ebp
ret