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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x95c
mov eax, dword [0x5c9040]
xor eax, esp
mov dword [esp + 0x958], eax
push ebx
push esi
push edi
mov esi, edx
lea edx, [esp + 0x30]
push ecx
call fcn.004f83b6
cmp dword [0x5c9c58], 0
pop ecx
jne 0x4f849a
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
jne 0x4f84e7
lea eax, [esp + 0x30]
push eax
push str.GetDiskFreeSpace___s__error:
push str.os_get_vol_info
push 0x83
push str.srcliblibpaloswindowsos_vol.c
push 0x5a9534
push pe_nt_image_headers32
push 0
call fcn.004e8a0a
add esp, 0x20
or eax, 0xffffffff
jmp 0x4f8667
push 0x208
lea edx, [esp + 0x34c]
lea ecx, [esp + 0x34]
call fcn.004ed834
pop ecx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x354]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x4f84e7
lea eax, [esp + 0x30]
push eax
push str.GetDiskFreeSpace___s__error:
push str.os_get_vol_info
push 0x8d
jmp 0x4f8479
cmp dword [0x5c9c58], 0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x18], eax
mov eax, 0x104
mov dword [esi + 0x14], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esi + 0x1c], ecx
push eax
jne 0x4f854d
lea ecx, [esp + 0x244]
push ecx
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x24]
push ecx
push eax
lea eax, [esp + 0x150]
push eax
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
jmp 0x4f857b
lea ecx, [esp + 0x75c]
push ecx
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x24]
push ecx
push eax
lea eax, [esp + 0x568]
push eax
lea eax, [esp + 0x364]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
lea edi, [esi + 0x30]
lea ebx, [esi + 0x20]
test eax, eax
jne 0x4f85ca
lea eax, [esp + 0x30]
push eax
push str.GetVolumeInformation__s__error:
push str.os_get_vol_info
push 0xa9
push str.srcliblibpaloswindowsos_vol.c
push 0x5a9534
push pe_nt_image_headers32
push 0
call fcn.004e8a0a
mov dword [esi + 4], 0xff
add esp, 0x20
mov dword [esi], 0x8000
mov byte [edi], 0x30
mov byte [ebx], 0x30
jmp 0x4f8665
cmp dword [0x5c9c58], 0
mov edx, edi
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
push 0x100
jne 0x4f8600
lea ecx, [esp + 0x13c]
call fcn.004edb31
pop ecx
push 0x10
mov edx, ebx
lea ecx, [esp + 0x244]
call fcn.004edb31
jmp 0x4f861d
lea ecx, [esp + 0x554]
call fcn.004ed73d
pop ecx
push 0x10
mov edx, ebx
lea ecx, [esp + 0x75c]
call fcn.004ed73d
mov eax, dword [esp + 0x14]
pop ecx
test eax, 0x80000
je 0x4f862c
or dword [esi], 1
test al, 4
je 0x4f8633
or dword [esi], 2
test al, 2
je 0x4f863a
or dword [esi], 4
test al, 1
je 0x4f8641
or dword [esi], 8
test eax, 0x40000
je 0x4f864b
or dword [esi], 0x10
test al, 8
je 0x4f8652
or dword [esi], 0x40
test eax, 0x400000
je 0x4f865f
or dword [esi], 0x80
or dword [esi], 0x8000
xor eax, eax
mov ecx, dword [esp + 0x964]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051b034
mov esp, ebp
pop ebp
ret