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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xcc
mov dword [ebp - 0x7c], 0x3a0041
mov dword [ebp - 0x78], 0x5c
mov dword [ebp - 0x88], 0x40000000
mov dword [ebp - 0x84], 0
call dword [sym.imp.kernel32.dll_GetLogicalDrives]
mov ecx, 0x28
mov edx, 2
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 8]
call sym._resize_table
test eax, eax
je 0x7104a52d
mov dword [ebp - 0x94], 0
cmp dword [ebp + 0xc], 1
mov dword [ebp - 0x98], 0
sbb eax, eax
xor esi, esi
xor edi, edi
mov dword [ebp - 0x90], 0
inc eax
mov dword [ebp - 0xac], eax
jmp 0x7104a102
inc edi
cmp edi, 0x1a
je 0x7104a3d0
mov eax, dword [ebp - 0x8c]
bt eax, edi
jae 0x7104a0f8
lea eax, [edi + 0x41]
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7c]
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 0x7104a0f8
mov eax, dword [ebp - 0x90]
mov ecx, 0x28
inc eax
mov dword [ebp - 0xa0], eax
mov edx, eax
mov eax, dword [ebp + 8]
call sym._resize_table
test eax, eax
je 0x7104a52d
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x5a]
mov ecx, dword [ebp - 0x98]
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 - 0x94], ecx
call sym._swprintf
mov eax, dword [sym.imp.ucrtbase.dll__wcsdup]
lea edx, [ebp - 0x5a]
mov dword [esp], edx
mov dword [ebp - 0xb0], eax
call eax
mov ecx, dword [ebp - 0x94]
cmp ebx, 3
mov edx, str.Removable_media
mov dword [ecx], eax
lea eax, [esi + 1]
mov dword [ebp - 0x9c], eax
mov eax, str.Fixed_hard_disk
cmovne eax, edx
mov dword [ecx + 4], esi
mov dword [ecx + 8], 0x71062708
mov dword [ecx + 0x10], eax
movzx eax, word [ebp - 0x7c]
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 - 0x68]
mov dword [esp + 8], str.._c:
mov dword [esp + 4], 7
mov dword [esp], eax
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
call sym._swprintf
lea eax, [ebp - 0x68]
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 - 0xa4], eax
sub esp, 0x1c
mov esi, eax
cmp eax, 0xffffffff
je 0x7104a31f
mov dword [ebp - 0x74], 0
mov ebx, 0x128
mov dword [ebp - 0x70], 0
mov dword [ebp - 0xa8], edi
jmp 0x7104a29f
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 0x7104a400
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_malloc]
mov edi, eax
test eax, eax
je 0x7104a400
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x74]
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 0x7104a280
mov esi, edi
mov edi, dword [ebp - 0xa8]
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x7104a440
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0xa4]
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 - 0x94]
lea edx, [ebp - 0x88]
lea eax, [ebp - 0x7c]
mov dword [esi + 0x1c], ebx
call sym._get_freespace
mov eax, dword [ebp - 0x88]
mov edx, dword [ebp - 0x84]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x24], edx
test eax, eax
je 0x7104a39e
lea eax, [ebp - 0x74]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x68]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x90]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._eval_cond
test eax, eax
jne 0x7104a410
mov eax, dword [ebp - 0x64]
or eax, dword [ebp - 0x68]
je 0x7104a545
mov eax, dword [ebp - 0xac]
inc edi
add dword [ebp - 0x98], 0x28
mov esi, dword [ebp - 0x9c]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x90], eax
cmp edi, 0x1a
jne 0x7104a102
lea esi, [esi]
test byte [0x71060048], 8
jne 0x7104a4fa
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x90]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x94]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [ebp - 0xa8]
jmp 0x7104a30d
mov dword [ebp - 0x94], 0xffffffff
mov eax, dword [ebp - 0x90]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._free_row_values
mov esi, dword [ebp - 0x9c]
jmp 0x7104a0f8
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 0x7104a304
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 - 0xa4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
jmp 0x7104a330
mov eax, dword [ebp - 0x90]
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], 0x71060048
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x7104a3dd
mov dword [ebp - 0x94], 0xffffffff
mov eax, dword [ebp - 0x94]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x94], 1
jmp 0x7104a41a