Function at 0x40dec0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov edi, ecx
lea eax, [esp + 0x18]
push eax
push 0
push 0
push ecx
call dword [sym.imp.kernel32.dll_GetDiskFreeSpaceExW]
test byte [0x41d020], 8
je 0x40df21
mov esi, eax
mov ecx, edi
call sym._wine_dbgstr_w
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x34]
sub esp, 0x1c
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Writing_trailer_for__s_gave__d__ld__n
mov dword [esp + 8], str.WCMD_dir_trailer
call sym._wine_dbg_log_2
add esp, 0x1c
mov eax, dword [0x4162c0]
mov eax, dword [eax]
or eax, dword [0x42109c]
jne 0x40e234
cmp dword [0x421094], 0
je 0x40e14d
mov eax, dword [0x42108c]
mov dword [esp + 0x14], eax
mov edi, dword [0x421084]
mov edx, dword [0x421080]
mov ebx, 0x421354
mov dword [esp + 4], 0xfffffffd
mov eax, dword [0x4210b0]
mov dword [esp + 8], eax
jmp 0x40dff6
mov ecx, edi
shld ecx, edx, 0x1f
mov dword [esp + 0x10], edi
shr edi, 1
mov esi, ecx
add esi, edi
adc esi, 0
mov eax, esi
mov dword [esp + 0xc], edx
mov edx, 0xcccccccd
mul edx
shr edx, 2
lea eax, [edx + edx*4]
sub esi, eax
sub ecx, esi
sbb edi, 0
mov eax, ecx
mov edx, 0xcccccccd
mul edx
imul esi, ecx, 0xcccccccc
add esi, edx
imul ecx, edi, 0xcccccccd
add ecx, esi
imul edx, eax, 0xfff6
mov esi, 9
mov edi, dword [esp + 0xc]
cmp esi, edi
mov esi, 0
sbb esi, dword [esp + 0x10]
lea edx, [edx + edi + 0x30]
mov word [ebx], dx
mov word [ebx + 2], 0
lea ebx, [ebx + 2]
mov edx, eax
mov edi, ecx
jae 0x40e024
cmp dword [esp + 8], 0
je 0x40df80
mov ecx, dword [esp + 4]
imul eax, ecx, 0xaaaaaaab
inc ecx
mov dword [esp + 4], ecx
cmp eax, 0x55555554
ja 0x40df80
mov word [ebx], 0x2c
add ebx, 2
jmp 0x40df80
push 0x421354
call dword [sym.imp.ucrtbase.dll__wcsrev]
add esp, 4
mov ebx, 0x421354
push 0x421354
push dword [esp + 0x18]
push str._n_____Total_files_listed:_n_1_8d__files_2_25s__bytes_n
call dbg.WCMD_output
add esp, 0xc
mov eax, dword [0x421088]
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov dword [esp + 4], 0xfffffffd
mov eax, dword [0x4210b0]
mov dword [esp + 8], eax
jmp 0x40e0f6
mov ecx, edi
shld ecx, edx, 0x1f
mov dword [esp + 0x10], edi
shr edi, 1
mov esi, ecx
add esi, edi
adc esi, 0
mov eax, esi
mov dword [esp + 0xc], edx
mov edx, 0xcccccccd
mul edx
shr edx, 2
lea eax, [edx + edx*4]
sub esi, eax
sub ecx, esi
sbb edi, 0
mov eax, ecx
mov edx, 0xcccccccd
mul edx
imul esi, ecx, 0xcccccccc
add esi, edx
imul ecx, edi, 0xcccccccd
add ecx, esi
imul edx, eax, 0xfff6
mov esi, 9
mov edi, dword [esp + 0xc]
cmp esi, edi
mov esi, 0
sbb esi, dword [esp + 0x10]
lea edx, [edx + edi + 0x30]
mov word [ebx], dx
mov word [ebx + 2], 0
lea ebx, [ebx + 2]
mov edx, eax
mov edi, ecx
jae 0x40e124
cmp dword [esp + 8], 0
je 0x40e080
mov ecx, dword [esp + 4]
imul eax, ecx, 0xaaaaaaab
inc ecx
mov dword [esp + 4], ecx
cmp eax, 0x55555554
ja 0x40e080
mov word [ebx], 0x2c
add ebx, 2
jmp 0x40e080
push 0x421354
call dword [sym.imp.ucrtbase.dll__wcsrev]
add esp, 4
push 0x421354
push dword [esp + 0x18]
push str._1_8d__directories__2_18s__bytes_free_n_n
call dbg.WCMD_output
add esp, 0xc
jmp 0x40e234
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov edi, 0x421354
mov dword [esp + 4], 0xfffffffd
mov eax, dword [0x4210b0]
mov dword [esp + 8], eax
jmp 0x40e1e6
mov ecx, ebx
shld ecx, edx, 0x1f
mov dword [esp + 0x10], ebx
shr ebx, 1
mov esi, ecx
add esi, ebx
adc esi, 0
mov eax, esi
mov dword [esp + 0xc], edx
mov edx, 0xcccccccd
mul edx
shr edx, 2
lea eax, [edx + edx*4]
sub esi, eax
sub ecx, esi
sbb ebx, 0
mov eax, ecx
mov edx, 0xcccccccd
mul edx
imul esi, ecx, 0xcccccccc
add esi, edx
imul ecx, ebx, 0xcccccccd
add ecx, esi
imul edx, eax, 0xfff6
mov esi, 9
mov ebx, dword [esp + 0xc]
cmp esi, ebx
mov esi, 0
sbb esi, dword [esp + 0x10]
lea edx, [edx + ebx + 0x30]
mov word [edi], dx
mov word [edi + 2], 0
lea edi, [edi + 2]
mov edx, eax
mov ebx, ecx
jae 0x40e214
cmp dword [esp + 8], 0
je 0x40e170
mov ecx, dword [esp + 4]
imul eax, ecx, 0xaaaaaaab
inc ecx
mov dword [esp + 4], ecx
cmp eax, 0x55555554
ja 0x40e170
mov word [edi], 0x2c
add edi, 2
jmp 0x40e170
push 0x421354
call dword [sym.imp.ucrtbase.dll__wcsrev]
add esp, 4
push 0x421354
push str.__1_18s__bytes_free_n_n
call dbg.WCMD_output
add esp, 8
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret