Function at 0x10006b20
Capabilities:
Get disk information
Get storage device properties

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0xc8
mov esi, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x74], 0x3a0041
mov dword [ebp - 0x70], 0x5c
mov dword [ebp - 0x88], esi
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x80], 0x40000000
mov dword [ebp - 0x7c], 0
call dword [sym.imp.kernel32.dll_GetLogicalDrives]
mov ecx, 0x28
mov edx, 2
mov dword [ebp - 0x84], eax
mov eax, esi
call sym._resize_table
test eax, eax
je 0x10007044
mov edx, dword [ebp - 0xa4]
xor eax, eax
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
test edx, edx
setne al
xor esi, esi
xor edi, edi
mov dword [ebp - 0xac], eax
jmp 0x10006bcc
add edi, 1
cmp edi, 0x1a
je 0x10006ec8
mov eax, dword [ebp - 0x84]
bt eax, edi
jae 0x10006bc0
lea eax, [edi + 0x41]
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x74]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetDriveTypeW]
mov ebx, eax
lea eax, [eax - 2]
sub esp, 4
cmp eax, 1
ja 0x10006bc0
mov eax, dword [ebp - 0x8c]
mov ecx, 0x28
add eax, 1
mov dword [ebp - 0x9c], eax
mov edx, eax
mov eax, dword [ebp - 0x88]
call sym._resize_table
test eax, eax
je 0x10007044
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x90]
lea edx, [ebp - 0x52]
add ecx, dword [eax + 0x14]
mov dword [ebp - 0x94], ecx
mov dword [esp + 0xc], esi
mov dword [esp], edx
mov dword [esp + 8], str..PHYSICALDRIVE_u
mov dword [esp + 4], 0x21
call sym._swprintf
mov eax, dword [sym.imp.ucrtbase.dll__wcsdup]
lea edx, [ebp - 0x52]
mov dword [esp], edx
mov dword [ebp - 0xb0], eax
call eax
mov ecx, dword [ebp - 0x94]
cmp ebx, 3
mov edx, str.Fixed_hard_disk
mov dword [ecx], eax
lea eax, [esi + 1]
mov dword [ebp - 0x98], eax
mov eax, str.Removable_media
cmove eax, edx
mov dword [ecx + 4], esi
mov dword [ecx + 8], 0x10023844
mov dword [ecx + 0x10], eax
movzx eax, word [ebp - 0x74]
mov dword [ecx + 0xc], str._Standard_disk_drives_
mov dword [ecx + 0x14], str.Wine_Disk_Drive
mov dword [ecx + 0x18], str.IDEDiskVEN_WINE
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x60]
mov dword [esp + 8], str.._c:
mov dword [esp + 4], 7
mov dword [esp], eax
call sym._swprintf
lea eax, [ebp - 0x60]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileW]
mov ecx, dword [ebp - 0x94]
sub esp, 0x1c
cmp eax, 0xffffffff
mov dword [ebp - 0xa0], eax
mov esi, eax
je 0x10006e09
mov dword [ebp - 0x6c], 0
mov ebx, 0x128
mov dword [ebp - 0x68], 0
mov dword [ebp - 0xa8], edi
jmp 0x10006d77
mov ebx, dword [edi + 4]
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0xea
jne 0x10006f00
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_malloc]
mov edi, eax
test eax, eax
je 0x10006f00
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x6c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0x2d1400
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_DeviceIoControl]
sub esp, 0x20
test eax, eax
je 0x10006d58
mov esi, edi
mov ecx, dword [ebp - 0x94]
mov edi, dword [ebp - 0xa8]
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x10006f40
mov dword [ebp - 0x94], ecx
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0xa0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, dword [ebp - 0x94]
sub esp, 4
mov dword [ebp - 0x94], ecx
mov dword [esp], str.WINEHDISK
mov eax, dword [ebp - 0xb0]
call eax
mov ecx, dword [ebp - 0x94]
mov ebx, eax
mov dword [ecx + 0x1c], ebx
lea edx, [ebp - 0x80]
lea eax, [ebp - 0x74]
mov dword [ebp - 0x94], ecx
call sym._get_freespace
mov edx, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x80]
mov dword [ecx + 0x24], edx
mov edx, dword [ebp - 0xa4]
mov dword [ecx + 0x20], eax
test edx, edx
je 0x10006e94
lea eax, [ebp - 0x6c]
mov dword [esp + 8], edx
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x60]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x8c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x88]
mov dword [esp], eax
call sym._eval_cond
test eax, eax
jne 0x10006f10
mov eax, dword [ebp - 0x60]
or eax, dword [ebp - 0x5c]
je 0x10007053
mov eax, dword [ebp - 0xac]
add edi, 1
add dword [ebp - 0x90], 0x28
mov esi, dword [ebp - 0x98]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x8c], eax
cmp edi, 0x1a
jne 0x10006bcc
lea esi, [esi]
test byte [0x1002179c], 8
jne 0x10007011
mov eax, dword [ebp - 0x88]
mov edx, dword [ebp - 0x8c]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x94]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov edi, dword [ebp - 0xa8]
jmp 0x10006df1
mov dword [ebp - 0x94], 0xffffffff
mov eax, dword [ebp - 0x8c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x88]
mov dword [esp], eax
call sym._free_row_values
mov esi, dword [ebp - 0x98]
jmp 0x10006bc0
mov edx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
add eax, esi
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0xb4], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x94], edx
call edx
mov dword [ebp - 0xb8], eax
sub esp, 0x18
add eax, eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov ecx, dword [ebp - 0xa8]
mov edx, dword [ebp - 0x94]
test eax, eax
mov ebx, eax
mov dword [ebp - 0x94], ecx
je 0x10006de8
mov eax, dword [ebp - 0xb8]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0xb4]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], 0
call edx
sub esp, 0x18
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0xa0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, dword [ebp - 0x94]
sub esp, 4
jmp 0x10006e26
mov eax, dword [ebp - 0x8c]
mov dword [esp + 0xc], str.created__u_rows_n
mov dword [esp + 8], str.fill_diskdrive
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x1002179c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10006ed5
mov dword [ebp - 0x94], 0xffffffff
jmp 0x10006ee4
mov dword [ebp - 0x94], 1
jmp 0x10006f1a