Function at 0x4a9ff0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4cf8ac
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x50f880]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0x128]
push edi
mov dword [esp + 0x30], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x30], 1
mov dword [esp + 0x58], 0
mov eax, dword [esi + 0xd4]
movzx ecx, word [esi + 0xd0]
push eax
push ecx
call fcn.004a76f0
add esp, 8
cmp byte [esi + 0xb8], 0
mov bl, al
je 0x4aa084
cmp byte [ebp + 8], 0
jne 0x4aa084
test bl, bl
jne 0x4aa084
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi + 0xcc]
push edx
push str.Intialization_for_volume__s_started.
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 0x4ee238
mov dword [esp + 0x40], 0xec
mov dword [esp + 0x44], 1
call fcn.00409c10
add esp, 8
call fcn.004a9f30
mov eax, dword [esi + 0xe8]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
jne 0x4aa0f5
mov byte [esi + 0xb8], al
test bl, bl
je 0x4aa0f0
mov ecx, dword [esi + 0x40]
call fcn.0041c3a0
call fcn.0042d560
mov eax, dword [esp + 0x14]
mul dword [esp + 0x18]
mov dword [esi + 0x170], eax
mov dword [esi + 0x174], edx
mov eax, dword [esi + 0x294]
push eax
mov dword [esp + 0x28], esi
call fcn.004bcde0
mov dword [esp + 0x28], eax
lea ebx, [esi + 0x160]
mov edi, eax
mov byte [esp + 0x58], 1
call fcn.0049ef30
mov edi, eax
mov eax, dword [esi + 0xcc]
mov dword [esp + 0x3c], 1
test edi, edi
jns 0x4aa16c
push edi
push eax
push str.GetClustersCount_for_volume__s_failed_with_error_code_0x_08x.
lea eax, [esp + 0x40]
mov dword [esp + 0x40], 0x4ee24c
mov dword [esp + 0x44], 0x109
call fcn.00409c10
add esp, 0xc
push edi
call fcn.0041b5f0
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
push ecx
push edx
push eax
push str.GetClustersCount_for_volume__s_returned__I64d_clusters.
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 0x4ee2ac
mov dword [esp + 0x48], 0x10e
call fcn.00409c10
add esp, 0x10
lea edi, [esi + 0x144]
push edi
mov dword [esp + 0x38], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x38], 1
mov byte [esp + 0x58], 2
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
push 0
add ecx, 7
push 8
adc edx, 0
push edx
push ecx
call fcn.0045a1e0
push 1
mov ecx, esi
mov dword [esp + 0x24], edx
mov dword [esi + 0x178], eax
call fcn.004a9630
mov dword [esp + 0x1c], eax
mov dword [esp + 0x48], 1
test eax, eax
jns 0x4aa21c
push eax
mov eax, dword [esi + 0xcc]
push eax
push str.ReloadMap_for_volume__s_failed_with_error_code_0x_08x.
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], 0x4ee33c
mov dword [esp + 0x50], 0x120
call fcn.00409c10
mov ecx, dword [esp + 0x28]
add esp, 0xc
push ecx
call fcn.0041b5f0
mov edx, dword [esi + 0xcc]
push edx
push 0x4ee458
lea eax, [esp + 0x48]
mov dword [esp + 0x48], 0x4ee430
mov dword [esp + 0x4c], 0x123
call fcn.00409c10
mov eax, dword [ebx]
mov ebx, dword [ebx + 4]
mov ecx, dword [esi + 0x10]
add esp, 8
sub eax, 1
sbb ebx, 0
push ebx
push eax
call fcn.00425660
mov byte [esp + 0x58], 1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call edi
mov eax, dword [esi + 0xcc]
push eax
push str.Intialization_for_volume__s_finished.
lea eax, [esp + 0x48]
mov dword [esp + 0x48], str.CVolume::Initialize
mov dword [esp + 0x4c], 0x127
mov dword [esp + 0x50], 1
call fcn.00409c10
add esp, 8
lea eax, [esp + 0x24]
mov byte [esi + 0xb8], 1
mov byte [esp + 0x58], 0
call fcn.00425160
mov ecx, dword [esp + 0x2c]
push ecx
call edi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4