Function at 0x4fc672
Capabilities:
Get disk information
Get disk size

Disassembly:
push 0x114
mov eax, 0x5583cb
call fcn.005239fe
mov esi, ecx
lea eax, [ebp - 0x54]
push 0x584ab8
push eax
mov ebx, esi
call fcn.004100e9
pop ecx
pop ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [esi + 0x20]
push str.Unknown
push eax
call fcn.00404104
xor eax, eax
cmp dword [ebp - 0x40], 8
push 9
mov word [ebp - 0x38], ax
pop ecx
lea edi, [ebp - 0x36]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp - 0x54]
jae 0x4fc6c4
lea eax, [ebp - 0x54]
push 0x14
lea ecx, [ebp - 0x38]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov edi, eax
lea eax, [ebp - 0x38]
push eax
lea eax, [esi + 0x20]
push eax
call fcn.00404104
cmp edi, ebx
jne 0x4fc785
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [ebp - 0x120]
push eax
call fcn.00403689
mov esi, eax
mov byte [ebp - 4], 1
push str.GetVolumeInfo_Filessytem_failed_caption
push esi
call fcn.00405d65
push esi
lea ecx, [ebp - 0x54]
call fcn.00411926
add esp, 0xc
push str.__ErrorCode
push esi
call fcn.00405d65
pop ecx
pop ecx
push edi
push esi
call fcn.0041058a
lea eax, [ebp - 0x70]
push eax
mov eax, esi
call fcn.004036f3
mov byte [ebp - 4], 2
cmp dword [ebp - 0x5c], 8
mov eax, dword [ebp - 0x70]
jae 0x4fc74d
lea eax, [ebp - 0x70]
xor ecx, ecx
push eax
inc ecx
call fcn.00492cc7
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.00403372
mov byte [ebp - 4], bl
lea eax, [ebp - 0x120]
call fcn.0040262a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00403372
xor al, al
call fcn.00523a81
ret
cmp dword [ebp - 0x40], 8
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x88], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
jae 0x4fc7af
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x88]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
cmp eax, ebx
jne 0x4fc864
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [ebp - 0x120]
push eax
call fcn.00403689
mov esi, eax
mov byte [ebp - 4], 3
push str.GetVolumeInfo_Size_failed_caption
push esi
call fcn.00405d65
push esi
lea ecx, [ebp - 0x54]
call fcn.00411926
add esp, 0xc
push str.__ErrorCode
push esi
call fcn.00405d65
pop ecx
pop ecx
push edi
push esi
call fcn.0041058a
lea eax, [ebp - 0x70]
push eax
mov eax, esi
call fcn.004036f3
mov byte [ebp - 4], 4
cmp dword [ebp - 0x5c], 8
mov eax, dword [ebp - 0x70]
jae 0x4fc82d
lea eax, [ebp - 0x70]
xor ecx, ecx
push eax
inc ecx
call fcn.00492cc7
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.00403372
mov byte [ebp - 4], bl
lea eax, [ebp - 0x120]
call fcn.0040262a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00403372
mov al, bl
jmp 0x4fc77f
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x7c]
shrd eax, ecx, 0x14
shr ecx, 0x14
mov ecx, dword [ebp - 0x74]
mov dword [esi + 0x40], eax
mov eax, dword [ebp - 0x78]
shrd eax, ecx, 0x14
shr ecx, 0x14
mov dword [esi + 0x3c], eax
mov bl, 1
jmp 0x4fc851