Function at 0x10004a70
Capabilities:
Get disk information

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, 0x70
mov esi, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x30], 0x3a0041
mov dword [ebp - 0x2c], 0x5c
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x38], 0x40000000
mov dword [ebp - 0x34], 0
call dword [sym.imp.kernel32.dll_GetLogicalDrives]
mov ecx, 0x2c
mov edx, 4
mov dword [ebp - 0x48], eax
mov eax, esi
call sym._resize_table
test eax, eax
je 0x10004d00
mov edx, dword [ebp - 0x5c]
xor eax, eax
mov dword [ebp - 0x54], 0
mov edi, 0x41
mov dword [ebp - 0x50], 0
test edx, edx
setne al
xor ebx, ebx
mov dword [ebp - 0x60], eax
jmp 0x10004b04
add edi, 1
cmp edi, 0x5b
je 0x10004cb8
mov ecx, dword [ebp - 0x48]
lea eax, [edi - 0x41]
bt ecx, eax
jae 0x10004af8
lea eax, [ebp - 0x30]
mov word [ebp - 0x30], di
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetDriveTypeW]
mov esi, eax
lea eax, [eax - 2]
sub esp, 4
cmp eax, 1
jbe 0x10004b31
cmp esi, 5
jne 0x10004af8
mov eax, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x4c]
mov ecx, 0x2c
add eax, 1
mov dword [ebp - 0x58], eax
mov edx, eax
mov eax, ebx
call sym._resize_table
test eax, eax
je 0x10004d00
mov edx, dword [ebp - 0x54]
add edx, dword [ebx + 0x14]
mov dword [ebp - 0x4c], ebx
mov ebx, edx
lea edx, [ebp - 0x3e]
mov dword [esp + 0xc], edi
mov dword [esp], edx
mov dword [esp + 8], 0x1002358c
mov dword [esp + 4], 3
call sym._swprintf
lea edx, [ebp - 0x3e]
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll__wcsdup]
lea edx, [ebp - 0x3e]
mov dword [ebx], eax
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov dword [ebx + 8], esi
lea edx, [ebp - 0x30]
lea esi, [ebp - 0x28]
mov dword [ebx + 4], eax
mov eax, edx
call sym._get_filesystem
lea ecx, [ebp - 0x30]
lea edx, [ebp - 0x38]
mov dword [ebx + 0xc], eax
mov eax, ecx
call sym._get_freespace
mov dword [ebx + 0x14], edx
lea edx, [ebp - 0x3e]
mov dword [ebx + 0x10], eax
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov edx, dword [ebp - 0x34]
lea ecx, [ebp - 0x30]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x38]
mov dword [ebx + 0x20], edx
mov dword [ebx + 0x1c], eax
mov eax, ecx
call sym._get_volumename
lea edx, [ebp - 0x44]
mov dword [ebx + 0x24], eax
mov dword [ebp - 0x44], 0
mov dword [esp + 0xc], edx
lea edx, [ebp - 0x30]
mov dword [esp], edx
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 - 0x44]
sub esp, 0x20
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._08X
mov dword [esp + 4], 9
mov dword [esp], esi
call sym._swprintf
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov ecx, dword [ebp - 0x5c]
mov dword [ebx + 0x28], eax
test ecx, ecx
je 0x10004c99
lea edx, [ebp - 0x44]
mov dword [esp + 0xc], esi
mov ebx, 0xffffffff
mov dword [esp + 0x10], edx
mov dword [esp + 8], ecx
mov esi, dword [ebp - 0x50]
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call sym._eval_cond
test eax, eax
jne 0x10004ce0
mov eax, dword [ebp - 0x28]
or eax, dword [ebp - 0x24]
je 0x10004cd8
mov eax, dword [ebp - 0x58]
add edi, 1
add dword [ebp - 0x54], 0x2c
mov ebx, dword [ebp - 0x60]
mov dword [ebp - 0x50], eax
cmp edi, 0x5b
jne 0x10004b04
lea esi, [esi]
test byte [0x1002179c], 8
jne 0x10004d18
mov eax, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x50]
mov dword [eax + 0xc], esi
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov ebx, 1
lea esi, [esi]
mov eax, dword [ebp - 0x50]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call sym._free_row_values
jmp 0x10004af8
lea esp, [ebp - 0x10]
mov ebx, 0xffffffff
pop ecx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov eax, dword [ebp - 0x50]
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], 0x1002179c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10004cc1