Function at 0x486568
Capabilities:
Get disk information
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe6c
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x194], edx
mov dword [ebp - 0x18c], edx
mov dword [ebp - 0x190], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4867d4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00486540
call sub.kernel32.dll_GetLogicalDrives
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov eax, 1
shl eax, cl
and eax, dword [ebp - 0xc]
je 0x4867a1
mov ebx, dword [ebp - 8]
add ebx, 0x41
push 0
push 0x20000000
push 3
push 0
push 3
push 0xc0000000
push 0x4867ec
lea eax, [ebp - 0x190]
mov edx, ebx
call fcn.00403d78
push dword [ebp - 0x190]
push 0x4867fc
lea eax, [ebp - 0x18c]
mov edx, 3
call fcn.00403f2c
mov eax, dword [ebp - 0x18c]
call fcn.00404030
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x4867a1
xor eax, eax
push ebp
push 0x48679a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0x10]
push eax
push 0xc
lea eax, [ebp - 0x28]
push eax
push 0
push 0
push 0x2d1080
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_DeviceIoControl
test eax, eax
je 0x48665c
cmp dword [ebp - 0x10], 0
jne 0x486666
call fcn.00403740
jmp 0x4867a1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
call fcn.00405168
inc eax
push eax
mov eax, dword [ebp - 4]
add eax, 0x80
mov ecx, 1
mov edx, dword [0x485e08]
call fcn.00405324
add esp, 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
call fcn.00405170
imul eax, eax, 0x45
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x80]
lea esi, [edx + eax*8]
mov eax, esi
xor ecx, ecx
mov edx, 0x228
call fcn.00402bcc
mov byte [esi], bl
mov al, byte [ebp - 0x24]
mov byte [esi + 1], al
mov al, byte [ebp - 0x20]
mov byte [esi + 2], al
mov eax, dword [ebp - 0x28]
mov dword [esi + 4], eax
lea eax, [ebp - 0x194]
mov edx, ebx
call fcn.00403d78
mov edx, dword [ebp - 0x194]
lea eax, [ebp - 0x1c]
mov ecx, 0x486808
call fcn.00403eb8
push 0x104
lea eax, [esi + 0x110]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [esi + 0x10c]
push eax
push 0x104
lea eax, [esi + 8]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00404030
mov ebx, eax
push ebx
call sub.kernel32.dll_GetVolumeInformationA
push 0
lea eax, [esi + 0x220]
push eax
lea eax, [esi + 0x218]
push eax
push ebx
mov eax, dword [0x49c08c]
mov eax, dword [eax]
call eax
push 0x101
push 0x160
lea eax, [ebp - 0x188]
push eax
push 0
push ebx
call fcn.00461304
mov eax, dword [ebp - 0x188]
push eax
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x70]
call fcn.0043abac
push eax
call sub.comctl32.dll_ImageList_ReplaceIcon
mov dword [esi + 0x214], eax
mov eax, dword [ebp - 0x188]
push eax
call sub.user32.dll_DestroyIcon
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4867a1
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x1a
jne 0x4865b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4867db
lea eax, [ebp - 0x194]
mov edx, 3
call fcn.00403bf4
lea eax, [ebp - 0x1c]
call fcn.00403bd0
ret