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

Disassembly:
push 0x114
mov eax, 0x5a089f
call fcn.0056ce95
mov esi, ecx
lea eax, [ebp - 0x54]
push 0x5c2724
push eax
mov ebx, esi
call fcn.0040cf5b
pop ecx
pop ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [esi + 0x20]
push str.Unknown
push eax
call fcn.0040ad38
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 0x4d8842
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.0040ad38
cmp edi, ebx
jne 0x4d8903
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [ebp - 0x120]
push eax
call fcn.00409ac6
mov esi, eax
mov byte [ebp - 4], 1
push str.GetVolumeInfo_Filessytem_failed_caption
push esi
call fcn.0040fa1f
push esi
lea ecx, [ebp - 0x54]
call fcn.0040fbd3
add esp, 0xc
push str.__ErrorCode
push esi
call fcn.0040fa1f
pop ecx
pop ecx
push edi
push esi
call fcn.0040d432
lea eax, [ebp - 0x70]
push eax
mov eax, esi
call fcn.00409b30
mov byte [ebp - 4], 2
cmp dword [ebp - 0x5c], 8
mov eax, dword [ebp - 0x70]
jae 0x4d88cb
lea eax, [ebp - 0x70]
xor ecx, ecx
push eax
inc ecx
call fcn.0047c666
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.004090d2
mov byte [ebp - 4], bl
lea eax, [ebp - 0x120]
call fcn.004021a3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.004090d2
xor al, al
call fcn.0056cf18
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 0x4d892d
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 0x4d89e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [ebp - 0x120]
push eax
call fcn.00409ac6
mov esi, eax
mov byte [ebp - 4], 3
push str.GetVolumeInfo_Size_failed_caption
push esi
call fcn.0040fa1f
push esi
lea ecx, [ebp - 0x54]
call fcn.0040fbd3
add esp, 0xc
push str.__ErrorCode
push esi
call fcn.0040fa1f
pop ecx
pop ecx
push edi
push esi
call fcn.0040d432
lea eax, [ebp - 0x70]
push eax
mov eax, esi
call fcn.00409b30
mov byte [ebp - 4], 4
cmp dword [ebp - 0x5c], 8
mov eax, dword [ebp - 0x70]
jae 0x4d89ab
lea eax, [ebp - 0x70]
xor ecx, ecx
push eax
inc ecx
call fcn.0047c666
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.004090d2
mov byte [ebp - 4], bl
lea eax, [ebp - 0x120]
call fcn.004021a3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.004090d2
mov al, bl
jmp 0x4d88fd
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 0x4d89cf