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

Disassembly:
push 0x114
mov eax, 0x55872a
call fcn.00523c97
mov esi, ecx
lea eax, [ebp - 0x54]
push 0x584ab8
push eax
mov ebx, esi
call fcn.004100cb
pop ecx
pop ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [esi + 0x20]
push str.Unknown
push eax
call fcn.0040411c
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 0x4fc7c3
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.0040411c
cmp edi, ebx
jne 0x4fc884
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [ebp - 0x120]
push eax
call fcn.004036c8
mov esi, eax
mov byte [ebp - 4], 1
push str.GetVolumeInfo_Filessytem_failed_caption
push esi
call fcn.00405d7d
push esi
lea ecx, [ebp - 0x54]
call fcn.0041193b
add esp, 0xc
push str.__ErrorCode
push esi
call fcn.00405d7d
pop ecx
pop ecx
push edi
push esi
call fcn.0041056c
lea eax, [ebp - 0x70]
push eax
mov eax, esi
call fcn.00403732
mov byte [ebp - 4], 2
cmp dword [ebp - 0x5c], 8
mov eax, dword [ebp - 0x70]
jae 0x4fc84c
lea eax, [ebp - 0x70]
xor ecx, ecx
push eax
inc ecx
call fcn.00492b4d
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.004033b1
mov byte [ebp - 4], bl
lea eax, [ebp - 0x120]
call fcn.00402669
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.004033b1
xor al, al
call fcn.00523d1a
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 0x4fc8ae
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 0x4fc963
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [ebp - 0x120]
push eax
call fcn.004036c8
mov esi, eax
mov byte [ebp - 4], 3
push str.GetVolumeInfo_Size_failed_caption
push esi
call fcn.00405d7d
push esi
lea ecx, [ebp - 0x54]
call fcn.0041193b
add esp, 0xc
push str.__ErrorCode
push esi
call fcn.00405d7d
pop ecx
pop ecx
push edi
push esi
call fcn.0041056c
lea eax, [ebp - 0x70]
push eax
mov eax, esi
call fcn.00403732
mov byte [ebp - 4], 4
cmp dword [ebp - 0x5c], 8
mov eax, dword [ebp - 0x70]
jae 0x4fc92c
lea eax, [ebp - 0x70]
xor ecx, ecx
push eax
inc ecx
call fcn.00492b4d
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.004033b1
mov byte [ebp - 4], bl
lea eax, [ebp - 0x120]
call fcn.00402669
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.004033b1
mov al, bl
jmp 0x4fc87e
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 0x4fc950