Function at 0x408579
Capabilities:
Get disk size
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x418c83
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x42d028]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x42d028]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov esi, 0x42dce0
cmp byte [0x42de8a], bl
jne 0x4085d5
push ebx
push esi
call fcn.004025cc
cmp eax, ebx
je 0x40897e
mov eax, dword [0x420a7c]
mov dword [esp + 0x58], eax
mov eax, dword [0x420a80]
mov dword [esp + 0x5c], eax
xor eax, eax
lea edi, [esp + 0x60]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [esp + 0x1c]
mov ecx, edi
call fcn.0040755a
mov word [esp + 0x58], ax
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x24]
call dword [0x41a924]
push ecx
mov dword [esp + 0x7c], ebx
lea eax, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
call fcn.00407d09
cmp al, bl
je 0x40866c
push 0x420dc0
lea eax, [esp + 0x1c]
push str.IDS_SSD_DRIVE_CHECK
push eax
call dword [sym.imp.ASOHelper.dll_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_STLoadStringFromMainINI_wchar_t_const___wchar_t_const__]
add esp, 0xc
push 1
push ebx
push ebx
mov byte [esp + 0x84], 1
push ebx
push dword [eax]
call dword [sym.imp.ASOHelper.dll_public:_static_int___cdecl_CSystweakApp::AfxMessageBox_wchar_t_const___unsigned_int__class_CDialog___class_CRect___bool_]
lea ecx, [esp + 0x2c]
add esp, 0x14
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
jmp 0x408974
push ebx
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
push ebx
push 0x64
push dword [esp + 0x30]
push dword [esp + 0x30]
call fcn.00415b70
push dword [esp + 0x30]
push dword [esp + 0x30]
push edx
push eax
call fcn.00415c90
cmp edx, ebx
ja 0x408753
jb 0x4086b4
cmp eax, 8
jae 0x408753
cmp dword [esp + 0x28], ebx
ja 0x408753
jb 0x4086ce
cmp dword [esp + 0x24], 0x40000000
jae 0x408753
lea ecx, [esp + 0x1c]
call dword [0x41a85c]
push 0x4209a0
push str.IDS_WARNING_LOW_FREESPACE
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
mov byte [esp + 0x84], 2
call dword [sym.imp.ASOHelper.dll_public:_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______thiscall_CSystweakApp::LoadStringW_wchar_t_const___wchar_t_const__]
push eax
lea eax, [esp + 0x1c]
lea ecx, [edi + 0x45c]
push eax
mov byte [esp + 0x80], 3
call fcn.00408a2d
pop ecx
pop ecx
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x7c], 4
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x14]
mov byte [esp + 0x78], 2
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push 1
push ebx
push ebx
push ebx
push dword [esp + 0x2c]
call dword [sym.imp.ASOHelper.dll_public:_static_int___cdecl_CSystweakApp::AfxMessageBox_wchar_t_const___unsigned_int__class_CDialog___class_CRect___bool_]
lea ecx, [esp + 0x30]
jmp 0x40865e
movzx eax, word [0x42de48]
push ebx
push eax
mov eax, dword [0x42de4c]
mov eax, dword [eax + 0x14e4]
push 5
call fcn.0040c875
cmp eax, ebx
jne 0x408904
call fcn.0040844d
cmp al, bl
jne 0x408904
cmp byte [0x42de8a], bl
jne 0x408793
cmp byte [0x42de89], bl
je 0x408801
push ebx
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
mov edi, 0x4209a0
push edi
push str.IDS_SERVICE_ERR_MSG_SPC
push eax
mov ecx, esi
call dword [sym.imp.ASOHelper.dll_public:_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______thiscall_CSystweakApp::LoadStringW_wchar_t_const___wchar_t_const__]
push 1
push 1
push 1
push ebx
push 1
push ebx
push ecx
mov eax, esp
mov byte [esp + 0x9c], 5
mov dword [esp + 0x3c], esp
push edi
push str.IDS_SERVICE_MSG_SPC
push eax
mov ecx, esi
call dword [sym.imp.ASOHelper.dll_public:_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______thiscall_CSystweakApp::LoadStringW_wchar_t_const___wchar_t_const__]
mov eax, dword [0x42de4c]
mov eax, dword [eax + 0x1540]
push 0xb
push eax
mov byte [esp + 0xa4], bl
call fcn.0041319c
mov esi, dword [0x42de4c]
call fcn.00405577
jmp 0x408974
lea ecx, [esp + 0x34]
call sub.mfc90u.dll_CStringArray::CStringArray
push str.IDS_RESTART
lea eax, [esp + 0x18]
push eax
mov ecx, esi
mov byte [esp + 0x80], 6
call dword [sym.imp.ASOHelper.dll_public:_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______thiscall_CSystweakApp::LoadStringW_char_const__]
push eax
mov byte [esp + 0x7c], 7
push dword [esp + 0x40]
lea ecx, [esp + 0x3c]
call sub.mfc90u.dll_CStringArray::SetAtGrow_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x78], 6
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov edi, 0x4209a0
push edi
push str.IDS_CAN
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call dword [sym.imp.ASOHelper.dll_public:_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______thiscall_CSystweakApp::LoadStringW_wchar_t_const___wchar_t_const__]
push eax
mov byte [esp + 0x7c], 8
push dword [esp + 0x40]
lea ecx, [esp + 0x3c]
call sub.mfc90u.dll_CStringArray::SetAtGrow_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x78], 6
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push 0xc8
push 0x17e
push ebx
push ebx
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.USER32.dll_SetRect]
push edi
push str.IDS_SERVICE_MSG
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call dword [sym.imp.ASOHelper.dll_public:_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______thiscall_CSystweakApp::LoadStringW_wchar_t_const___wchar_t_const__]
push 1
mov byte [esp + 0x7c], 9
push dword [esp + 0x20]
lea ecx, [esp + 0x50]
push 1
push ebx
sub esp, 0x10
mov dword [esp + 0x34], esp
mov eax, esp
push ecx
push eax
call dword [sym.imp.USER32.dll_CopyRect]
lea eax, [esp + 0x54]
push eax
push 2
push 0x10
push dword [esp + 0x44]
mov ecx, esi
call dword [sym.imp.ASOHelper.dll_public:_int___thiscall_CSystweakApp::ManualMessageBox_wchar_t_const___int__int__class_CStringArray___class_CRect__int__int__class_CDialog___bool_]
cmp eax, ebx
jne 0x4088eb
call fcn.00407ac3
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x34]
mov byte [esp + 0x78], bl
call fcn.004147c8
jmp 0x408974
movzx eax, word [0x42de48]
push ebx
push eax
mov eax, dword [0x42de4c]
mov eax, dword [eax + 0x14e4]
push 5
call fcn.0040c875
push ecx
lea eax, [edi + 0x45c]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
mov ecx, edi
mov byte [esp + 0x7c], 0xa
call fcn.0040755a
movzx eax, ax
push eax
mov byte [esp + 0x80], bl
mov eax, dword [0x42de4c]
mov ecx, dword [eax + 0x14e4]
push 1
call fcn.00409bec
mov ecx, edi
cmp eax, ebx
je 0x408969
push 0x4b2
jmp 0x40896e
push 0x4af
call dword [sym.imp.ASOHelper.dll_public:_void___thiscall_CDlgLeftSideChild::ChangeTheRightSideStep_enum_DLG_BTN_STEPS_]
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00414f74
mov esp, ebp
pop ebp
ret 4