Function at 0x1000a040
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 0x1000a51d
cmp dword [ebp - 0xa4], 1
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x94], 0
sbb eax, eax
xor esi, esi
xor edi, edi
mov dword [ebp - 0x8c], 0
inc eax
mov dword [ebp - 0xac], eax
jmp 0x1000a0ea
inc edi
cmp edi, 0x1a
je 0x1000a3c0
mov eax, dword [ebp - 0x84]
bt eax, edi
jae 0x1000a0e0
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 0x1000a0e0
mov eax, dword [ebp - 0x8c]
mov ecx, 0x28
inc eax
mov dword [ebp - 0x9c], eax
mov edx, eax
mov eax, dword [ebp - 0x88]
call sym._resize_table
test eax, eax
je 0x1000a51d
mov eax, dword [ebp - 0x88]
lea edx, [ebp - 0x52]
mov ecx, dword [ebp - 0x94]
add ecx, dword [eax + 0x14]
mov dword [esp + 0xc], esi
mov dword [esp], edx
mov dword [esp + 8], str..PHYSICALDRIVE_u
mov dword [esp + 4], 0x21
mov dword [ebp - 0x90], ecx
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 - 0x90]
cmp ebx, 3
mov edx, str.Removable_media
mov dword [ecx], eax
lea eax, [esi + 1]
mov dword [ebp - 0x98], eax
mov eax, str.Fixed_hard_disk
cmovne eax, edx
mov dword [ecx + 4], esi
mov dword [ecx + 8], 0x1002375c
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 [esp + 0xc], eax
lea eax, [ebp - 0x60]
mov dword [esp + 8], str.._c:
mov dword [esp + 4], 7
mov dword [esp], eax
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
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 dword [ebp - 0xa0], eax
sub esp, 0x1c
mov esi, eax
cmp eax, 0xffffffff
je 0x1000a30f
mov dword [ebp - 0x6c], 0
mov ebx, 0x128
mov dword [ebp - 0x68], 0
mov dword [ebp - 0xa8], edi
jmp 0x1000a28f
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 0x1000a3f0
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_malloc]
mov edi, eax
test eax, eax
je 0x1000a3f0
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 0x1000a270
mov esi, edi
mov edi, dword [ebp - 0xa8]
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x1000a430
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]
sub esp, 4
mov dword [esp], str.WINEHDISK
mov eax, dword [ebp - 0xb0]
call eax
mov ebx, eax
mov esi, dword [ebp - 0x90]
lea edx, [ebp - 0x80]
lea eax, [ebp - 0x74]
mov dword [esi + 0x1c], ebx
call sym._get_freespace
mov eax, dword [ebp - 0x80]
mov edx, dword [ebp - 0x7c]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0xa4]
mov dword [esi + 0x24], edx
test eax, eax
je 0x1000a388
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x8c]
lea edx, [ebp - 0x6c]
mov dword [esp + 0x10], edx
lea edx, [ebp - 0x60]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x88]
mov dword [esp + 0xc], edx
mov dword [esp], eax
call sym._eval_cond
test eax, eax
jne 0x1000a400
mov eax, dword [ebp - 0x5c]
or eax, dword [ebp - 0x60]
je 0x1000a52c
mov eax, dword [ebp - 0xac]
inc edi
add dword [ebp - 0x94], 0x28
mov esi, dword [ebp - 0x98]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x8c], eax
cmp edi, 0x1a
jne 0x1000a0ea
lea esi, cs:[esi]
nop
test byte [0x10021048], 8
jne 0x1000a4ea
mov eax, dword [ebp - 0x88]
mov edx, dword [ebp - 0x8c]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x90]
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 0x1000a2fd
mov dword [ebp - 0x90], 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 0x1000a0e0
mov ecx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
lea edx, [esi + eax]
mov dword [esp + 0x14], 0
mov dword [esp + 8], edx
mov dword [ebp - 0xb8], edx
mov dword [ebp - 0xb4], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
call ecx
mov dword [ebp - 0xa8], eax
sub esp, 0x18
add eax, eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov ebx, eax
test eax, eax
je 0x1000a2f4
mov edx, dword [ebp - 0xb8]
mov eax, dword [ebp - 0xa8]
mov dword [esp + 0x10], ebx
mov ecx, dword [ebp - 0xb4]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], edx
mov dword [esp + 0x14], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call ecx
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]
sub esp, 4
jmp 0x1000a320
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], 0x10021048
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x1000a3cd
mov dword [ebp - 0x90], 0xffffffff
jmp 0x1000a3dc
mov dword [ebp - 0x90], 1
jmp 0x1000a40a