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

Disassembly:
push 0x114
mov eax, 0x5a0593
call fcn.0056beab
mov esi, ecx
lea eax, [ebp - 0x54]
push 0x5c8a58
push eax
mov ebx, esi
call fcn.00410581
pop ecx
pop ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [esi + 0x20]
push str.Unknown
push eax
call fcn.00404560
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 0x4dfb41
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.00404560
cmp edi, ebx
jne 0x4dfc02
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [ebp - 0x120]
push eax
call fcn.00403aba
mov esi, eax
mov byte [ebp - 4], 1
push str.GetVolumeInfo_Filessytem_failed_caption
push esi
call fcn.0040635f
push esi
lea ecx, [ebp - 0x54]
call fcn.00411d36
add esp, 0xc
push str.__ErrorCode
push esi
call fcn.0040635f
pop ecx
pop ecx
push edi
push esi
call fcn.004109e7
lea eax, [ebp - 0x70]
push eax
mov eax, esi
call fcn.00403b24
mov byte [ebp - 4], 2
cmp dword [ebp - 0x5c], 8
mov eax, dword [ebp - 0x70]
jae 0x4dfbca
lea eax, [ebp - 0x70]
xor ecx, ecx
push eax
inc ecx
call fcn.0047feaf
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.004037d0
mov byte [ebp - 4], bl
lea eax, [ebp - 0x120]
call fcn.004027ed
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.004037d0
xor al, al
call fcn.0056bf2e
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 0x4dfc2c
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 0x4dfce1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [ebp - 0x120]
push eax
call fcn.00403aba
mov esi, eax
mov byte [ebp - 4], 3
push str.GetVolumeInfo_Size_failed_caption
push esi
call fcn.0040635f
push esi
lea ecx, [ebp - 0x54]
call fcn.00411d36
add esp, 0xc
push str.__ErrorCode
push esi
call fcn.0040635f
pop ecx
pop ecx
push edi
push esi
call fcn.004109e7
lea eax, [ebp - 0x70]
push eax
mov eax, esi
call fcn.00403b24
mov byte [ebp - 4], 4
cmp dword [ebp - 0x5c], 8
mov eax, dword [ebp - 0x70]
jae 0x4dfcaa
lea eax, [ebp - 0x70]
xor ecx, ecx
push eax
inc ecx
call fcn.0047feaf
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.004037d0
mov byte [ebp - 4], bl
lea eax, [ebp - 0x120]
call fcn.004027ed
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.004037d0
mov al, bl
jmp 0x4dfbfc
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 0x4dfcce