Function at 0x477b72
Capabilities:
Get common file path
Get disk information
Get disk size
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e26f6
mov eax, dword fs:[0]
push eax
sub esp, 0xe88
mov eax, dword [0x57b750]
xor eax, esp
mov dword [esp + 0xe80], eax
push ebx
push esi
push edi
mov eax, dword [0x57b750]
xor eax, esp
push eax
lea eax, [esp + 0xe98]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x38], esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x34], eax
call fcn.00499991
push eax
lea ecx, [esp + 0x1c]
call fcn.004727f7
and dword [esp + 0xea0], 0
lea ecx, [esp + 0x18]
call fcn.004025dd
xor eax, eax
push 0x206
push eax
mov word [esp + 0x8c], ax
lea eax, [esp + 0x8e]
push eax
call fcn.004be850
add esp, 0xc
push 0x104
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [esp + 0x28c]
push eax
lea eax, [esp + 0x490]
push eax
lea eax, [esp + 0x694]
push eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x94]
push eax
call fcn.004bb578
add esp, 0x14
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x1c]
call fcn.004026bd
push 1
push dword [esp + 0x1c]
push str.system_driver
push esi
call fcn.00475362
mov dword [esp + 0x14], 0x41
mov ebx, str._llu
mov ecx, dword [esp + 0x14]
xor eax, eax
add ecx, 0xffffffbf
inc eax
shl eax, cl
mov ecx, dword [esp + 0x34]
test ecx, eax
je 0x477ea0
mov eax, dword [0x550a48]
mov dword [esp + 0x64], eax
mov eax, dword [0x550a4c]
movzx ecx, word [esp + 0x14]
mov dword [esp + 0x68], eax
xor eax, eax
lea edi, [esp + 0x6c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, 0x550a50
lea edi, [esp + 0x74]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
lea edi, [esp + 0x7a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x64]
push eax
mov word [esp + 0x68], cx
mov word [esp + 0x78], cx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x477cde
cmp eax, 2
jne 0x477ea0
mov eax, 0x100
push eax
lea ecx, [esp + 0x490]
push ecx
xor esi, esi
push esi
push esi
push esi
push eax
lea eax, [esp + 0x2a4]
push eax
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
cmp eax, esi
je 0x477ea0
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x58]
push eax
push esi
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x58]
mov esi, eax
sub eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x30]
mov edi, ecx
sbb ecx, edx
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x64]
mov dword [esp + 0x50], ecx
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], edx
call fcn.004024df
mov byte [esp + 0xea0], 1
call fcn.00499991
push eax
lea ecx, [esp + 0x4c]
call fcn.004727f7
mov byte [esp + 0xea0], 2
call fcn.00499991
push eax
lea ecx, [esp + 0x24]
call fcn.004727f7
push edi
push esi
lea eax, [esp + 0x28]
push ebx
push eax
mov byte [esp + 0xeb0], 3
call fcn.00402967
add esp, 0x10
call fcn.00499991
push eax
lea ecx, [esp + 0x20]
call fcn.004727f7
push dword [esp + 0x40]
lea eax, [esp + 0x20]
push dword [esp + 0x40]
mov byte [esp + 0xea8], 4
push ebx
push eax
call fcn.00402967
add esp, 0x10
call fcn.00499991
push eax
lea ecx, [esp + 0x28]
call fcn.004727f7
push dword [esp + 0x50]
lea eax, [esp + 0x28]
push dword [esp + 0x50]
mov byte [esp + 0xea8], 5
push ebx
push eax
call fcn.00402967
mov esi, dword [esp + 0x48]
add esp, 0x10
xor edi, edi
inc edi
push edi
push 0
push str.drive_info
push esi
call fcn.00475362
mov eax, esi
call fcn.00474813
push edi
push dword [esp + 0x2c]
push str.drive_name
push esi
call fcn.00475362
push edi
push dword [esp + 0x24]
push str.total_size_in_bytes
push esi
call fcn.00475362
push edi
push dword [esp + 0x20]
push str.free_space_in_bytes
push esi
call fcn.00475362
push edi
mov edi, dword [esp + 0x28]
push edi
push str.used_space_in_bytes
push esi
call fcn.00475362
call fcn.0047483d
lea ecx, [edi - 0x10]
call fcn.004027b0
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [esp + 0x48]
add ecx, 0xfffffff0
call fcn.004027b0
mov byte [esp + 0xea0], 0
mov ecx, dword [esp + 0x28]
add ecx, 0xfffffff0
call fcn.004027b0
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 0x5a
jbe 0x477c6e
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [esp + 0xe98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe80]
xor ecx, esp
call fcn.004b96ff
mov esp, ebp
pop ebp
ret