Function at 0x7104ae60
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x8c
mov dword [ebp - 0x38], 0x3a0041
mov dword [ebp - 0x34], 0x5c
mov dword [ebp - 0x40], 0x40000000
mov dword [ebp - 0x3c], 0
call dword [sym.imp.kernel32.dll_GetLogicalDrives]
mov ecx, 0x2c
mov edx, 4
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 8]
call sym._resize_table
test eax, eax
je 0x7104b0d0
cmp dword [ebp + 0xc], 1
mov dword [ebp - 0x6c], 0
mov esi, 0x41
sbb eax, eax
mov dword [ebp - 0x64], 0
xor ebx, ebx
inc eax
mov dword [ebp - 0x74], eax
jmp 0x7104aeda
inc esi
cmp esi, 0x5b
je 0x7104b088
lea ecx, [esi - 0x41]
mov eax, 1
shl eax, cl
test dword [ebp - 0x5c], eax
je 0x7104aed0
lea eax, [ebp - 0x38]
mov word [ebp - 0x38], si
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetDriveTypeW]
mov dword [ebp - 0x68], eax
mov edi, eax
lea eax, [eax - 2]
sub esp, 4
cmp eax, 1
jbe 0x7104af0e
cmp edi, 5
jne 0x7104aed0
mov eax, dword [ebp - 0x64]
mov ecx, 0x2c
inc eax
mov dword [ebp - 0x70], eax
mov edx, eax
mov eax, dword [ebp + 8]
call sym._resize_table
test eax, eax
je 0x7104b0d0
mov ecx, dword [ebp + 8]
lea edi, [ebp - 0x46]
mov ebx, dword [ebp - 0x6c]
add ebx, dword [ecx + 0x14]
mov dword [esp], edi
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x71062504
mov dword [esp + 4], 3
call sym._swprintf
mov eax, dword [sym.imp.ucrtbase.dll__wcsdup]
mov dword [esp], edi
mov dword [ebp - 0x60], eax
call eax
mov dword [ebx], eax
mov eax, dword [ebp - 0x60]
mov dword [esp], edi
call eax
mov ecx, dword [ebp - 0x68]
mov dword [ebx + 4], eax
mov dword [ebx + 8], ecx
lea ecx, [ebp - 0x38]
mov eax, ecx
call sym._get_filesystem
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x40]
mov dword [ebx + 0xc], eax
mov eax, ecx
call sym._get_freespace
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x60]
mov dword [ebx + 0x14], edx
mov dword [esp], edi
lea edi, [ebp - 0x38]
call eax
mov edx, dword [ebp - 0x3c]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x40]
mov dword [ebx + 0x20], edx
mov dword [ebx + 0x1c], eax
mov eax, edi
call sym._get_volumename
lea edx, [ebp - 0x4c]
mov dword [ebx + 0x24], eax
mov dword [esp + 0xc], edx
mov dword [esp], edi
lea edi, [ebp - 0x30]
mov dword [ebp - 0x4c], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call dword [sym.imp.kernel32.dll_GetVolumeInformationW]
mov eax, dword [ebp - 0x4c]
sub esp, 0x20
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._08X
mov dword [esp + 4], 9
mov dword [esp], edi
call sym._swprintf
mov dword [esp], edi
mov eax, dword [ebp - 0x60]
call eax
mov dword [ebx + 0x28], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x7104b06b
mov eax, dword [ebp - 0x64]
mov ebx, dword [ebp + 0xc]
lea edx, [ebp - 0x4c]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edx
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], ebx
mov ebx, 0xffffffff
mov dword [esp], eax
call sym._eval_cond
test eax, eax
jne 0x7104b0b0
mov eax, dword [ebp - 0x2c]
or eax, dword [ebp - 0x30]
je 0x7104b0a4
mov eax, dword [ebp - 0x70]
inc esi
add dword [ebp - 0x6c], 0x2c
mov ebx, dword [ebp - 0x74]
mov dword [ebp - 0x64], eax
cmp esi, 0x5b
jne 0x7104aeda
lea esi, [esi]
test byte [0x71060048], 8
jne 0x7104b0e0
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x64]
mov dword [eax + 0xc], esi
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, 1
lea esi, [esi]
mov eax, dword [ebp - 0x64]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._free_row_values
jmp 0x7104aed0
lea esp, [ebp - 0xc]
mov ebx, 0xffffffff
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x64]
mov dword [esp + 0xc], str.created__u_rows_n
mov dword [esp + 8], str.fill_logicaldisk
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x71060048
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x7104b091