Function at 0x419794
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor edx, edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4199bc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
add eax, 0x20
push eax
call sub.kernel32.dll_EnterCriticalSection
xor edx, edx
push ebp
push 0x41999a
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
call sub.rtl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_GetDiskFreeSpaceW
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x419843
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
push 0
lea edx, [ebp - 0x2c]
mov eax, ebx
call sub.rtl160.bpl__System_Sysutils_SysErrorMessage_qqrui
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
mov edx, 0x4199d4
call sub.rtl160.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov ecx, dword [ebp - 0x28]
mov eax, dword [0x42a8a0]
mov eax, dword [eax]
mov dl, 1
call fcn.0040a828
call sub.rtl160.bpl__System__TryFinallyExit_qqrv
jmp 0x4199a1
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x64], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
mov dword [eax + 0x68], edx
mov dl, 0x16
mov al, 0xf
call sub.AxComponentsRTL.bpl__Auslogics_System_Win_Osinfo_OSInfo_IsWindows_qqr43Auslogics_System_Win_Osinfo_TWindowsVersiont1
test al, al
je 0x4198dc
push 0
lea eax, [ebp - 0x24]
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x90234
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
push eax
call sub.kernel32.dll_DeviceIoControl
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4198cb
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
push 0
lea edx, [ebp - 0x34]
mov eax, ebx
call sub.rtl160.bpl__System_Sysutils_SysErrorMessage_qqrui
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
mov edx, 0x419a08
call sub.rtl160.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov ecx, dword [ebp - 0x30]
mov eax, dword [0x42a8a0]
mov eax, dword [eax]
mov dl, 1
call fcn.0040a828
call sub.rtl160.bpl__System__TryFinallyExit_qqrv
jmp 0x4199a1
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x58], edx
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x5c], edx
jmp 0x419902
mov eax, dword [ebp - 4]
cmp byte [eax + 0x60], 4
jb 0x4198f8
mov eax, dword [ebp - 4]
mov dword [eax + 0x58], 0
mov dword [eax + 0x5c], 0
jmp 0x419902
call sub.rtl160.bpl__System__TryFinallyExit_qqrv
jmp 0x4199a1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x54]
mov eax, dword [eax + 0x50]
call sub.rtl160.bpl__System___lldiv_qqrv
mov ecx, dword [ebp - 4]
add eax, dword [ecx + 0x58]
adc edx, dword [ecx + 0x5c]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x70], eax
mov dword [ecx + 0x74], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x78], 4
mov dword [eax + 0x7c], 0
push 0
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
call sub.rtl160.bpl__System_Sysutils_ExcludeTrailingPathDelimiter_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x3c]
lea ecx, [ebp - 0x38]
mov eax, dword [0x40d078]
call fcn.0040db74
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x40]
mov dl, 1
mov eax, dword [0x40cd1c]
call fcn.004104d4
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x6c], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4199a1
mov eax, dword [ebp - 4]
add eax, 0x20
push eax
call sub.kernel32.dll_LeaveCriticalSection
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4199c3
lea eax, [ebp - 0x3c]
mov edx, 6
call sub.rtl160.bpl__System__UStrArrayClr_qqrpvi
ret