Function at 0x10004f50
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, 0x8c
mov ebx, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x58], 0x3a0041
mov dword [ebp - 0x54], 0x5c
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x68], 0x40000000
mov dword [ebp - 0x64], 0
call dword [sym.imp.kernel32.dll_GetLogicalDrives]
mov ecx, 0x2c
mov edx, 4
mov esi, eax
mov eax, ebx
call sym._resize_table
test eax, eax
je 0x1000519d
mov edx, dword [ebp - 0x84]
xor eax, eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x7c], 0
test edx, edx
mov dword [ebp - 0x74], 0
setne al
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x88], eax
jmp 0x10004fec
add edi, 1
cmp edi, 0x1a
je 0x10005130
bt esi, edi
jae 0x10004fe0
lea eax, [edi + 0x41]
mov word [ebp - 0x58], ax
lea eax, [ebp - 0x58]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetDriveTypeW]
sub eax, 2
sub esp, 4
cmp eax, 1
ja 0x10004fe0
mov eax, dword [ebp - 0x74]
mov ebx, dword [ebp - 0x70]
mov ecx, 0x2c
add eax, 1
mov dword [ebp - 0x80], eax
mov edx, eax
mov eax, ebx
call sym._resize_table
test eax, eax
je 0x1000519d
mov ecx, dword [ebp - 0x7c]
xor eax, eax
add ecx, dword [ebx + 0x14]
cmp edi, 2
sete al
lea edx, [ebp - 0x50]
mov dword [ebp - 0x70], ebx
mov ebx, ecx
neg eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x78]
mov dword [esp], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.Disk__u__Partition_0
mov dword [esp + 4], 0x20
call sym._swprintf
lea edx, [ebp - 0x50]
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov dword [ebx + 0x10], 0
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x78]
lea edx, [eax + 1]
mov dword [ebx + 0xc], eax
mov dword [ebp - 0x78], edx
lea edx, [ebp - 0x50]
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll__wcsdup]
lea ecx, [ebp - 0x58]
lea edx, [ebp - 0x68]
mov dword [ebx + 0x14], eax
mov eax, ecx
call sym._get_freespace
mov eax, dword [ebp - 0x68]
mov edx, dword [ebp - 0x64]
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], edx
lea edx, [ebp - 0x58]
mov eax, edx
call sym._get_filesystem
mov edx, dword [ebp - 0x84]
mov dword [ebx + 0x28], eax
test edx, edx
je 0x10005111
lea eax, [ebp - 0x6c]
mov dword [esp + 8], edx
mov ebx, 0xffffffff
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x60]
mov dword [esp + 0xc], eax
mov ecx, dword [ebp - 0x74]
mov dword [esp + 4], ecx
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
call sym._eval_cond
test eax, eax
jne 0x10005158
mov eax, dword [ebp - 0x60]
or eax, dword [ebp - 0x5c]
je 0x10005150
mov eax, dword [ebp - 0x80]
add edi, 1
add dword [ebp - 0x7c], 0x2c
mov ebx, dword [ebp - 0x88]
mov dword [ebp - 0x74], eax
cmp edi, 0x1a
jne 0x10004fec
lea esi, [esi]
test byte [0x1002179c], 8
jne 0x10005170
mov eax, dword [ebp - 0x70]
mov esi, dword [ebp - 0x74]
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 - 0x74]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
call sym._free_row_values
jmp 0x10004fe0
mov eax, dword [ebp - 0x74]
mov dword [esp + 0xc], str.created__u_rows_n
mov dword [esp + 8], str.fill_diskpartition
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x1002179c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10005139
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