Function at 0x40d182
Capabilities:
Get common file path
Get disk size
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41a530
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x433028]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push esi
push edi
mov eax, dword [0x433028]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0x30], edi
mov dword [esp + 0x38], ebx
call dword [0x424328]
mov eax, 0x104
push eax
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0xc8], ebx
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer_1]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0xffffffffffffffff
lea ecx, [esp + 0x28]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::MakeUpper]
push ecx
mov eax, esp
mov dword [esp + 0x38], esp
push str.WINDIR_t
push eax
lea ecx, [esp + 0x30]
call fcn.0040373e
pop ecx
pop ecx
call dword [sym.imp.pcoshelper.dll_Ordinal_257]
pop ecx
push ebx
push ebx
mov esi, 0x1009
push esi
push dword [edi + 0x1bc]
call dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push ebx
push esi
push dword [edi + 0x2b0]
call dword [sym.imp.USER32.dll_SendMessageW]
call fcn.00412f4c
mov dword [esp + 0x28], eax
cmp eax, ebx
je 0x40d64a
mov ecx, dword [eax + 8]
cmp ecx, ebx
mov dword [esp + 0x18], ebx
jle 0x40d64a
mov edx, dword [esp + 0x18]
cmp edx, ebx
jl 0x40d66e
cmp edx, ecx
jge 0x40d66e
mov eax, dword [eax + 4]
lea eax, [eax + edx*4]
mov esi, dword [eax]
push esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x38], esi
call dword [0x42433c]
lea ecx, [esp + 0x1c]
call dword [0x424328]
push 0x3a
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0xc8], 2
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Insert]
push 1
push ebx
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetAt]
movzx eax, ax
push eax
lea ecx, [esp + 0x60]
call dword [0x4246b0]
mov byte [esp + 0xc0], 3
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x14], ecx
add edi, 0x19c
push ebx
mov ecx, eax
mov dword [esp + 0x40], edi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::MakeUpper]
mov ecx, eax
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetAt]
push ebx
lea ecx, [esp + 0x28]
mov di, ax
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetAt]
mov ecx, dword [esp + 0x3c]
sub di, ax
movzx eax, di
neg eax
sbb eax, eax
and eax, 0xfffffffe
inc eax
inc eax
push eax
push dword [esp + 0x18]
push dword [esp + 0x40]
call fcn.0040a8fd
inc dword [esp + 0x38]
lea ecx, [esp + 0x58]
mov dword [esp + 0x14], eax
mov byte [esp + 0xc0], 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]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x20]
call dword [0x424334]
push dword [esi + 4]
mov ecx, dword [esp + 0x40]
push dword [esp + 0x18]
call sub.mfc90u.dll_CListCtrl::SetCheck
lea ecx, [esp + 0x1c]
cmp dword [esi + 4], ebx
je 0x40d376
push str._tChecked
jmp 0x40d37b
push str._tNotchecked
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
xor eax, eax
mov word [esp + 0xa8], ax
lea edi, [esp + 0xaa]
stosd dword es:[edi], eax
push 0x30
stosw word es:[edi], ax
lea eax, [esp + 0x7c]
push ebx
push eax
mov dword [esp + 0x80], ebx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 1
push ebx
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetAt]
movzx eax, ax
push eax
lea ecx, [esp + 0x68]
call dword [0x4246b0]
push ebx
mov ecx, eax
mov byte [esp + 0xc4], 4
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::MakeUpper]
mov ecx, eax
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetAt]
lea ecx, [esp + 0x60]
movzx esi, ax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
xor eax, eax
mov dword [esp + 0x44], ebx
lea edi, [esp + 0x48]
stosd dword es:[edi], eax
mov dword [esp + 0x4c], ebx
lea edi, [esp + 0x50]
stosd dword es:[edi], eax
mov dword [esp + 0x6c], ebx
lea edi, [esp + 0x70]
lea ecx, [esp + 0x20]
stosd dword es:[edi], eax
call dword [0x424328]
push 0x34
lea eax, [esp + 0x78]
push ebx
push eax
mov byte [esp + 0xcc], 5
call sub.MSVCR90.dll_memset
add esp, 0xc
push ebx
lea ecx, [esp + 0x28]
mov dword [esp + 0x78], 3
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetAt]
cmp si, ax
jne 0x40d44d
mov dword [esp + 0x90], 2
push 0x3a
pop eax
mov word [esp + 0xaa], ax
push 0x5c
pop eax
mov word [esp + 0xac], ax
xor eax, eax
mov word [esp + 0xae], ax
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0xb4]
push eax
mov word [esp + 0xb8], si
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
push dword [esp + 0x50]
mov edi, dword [sym.imp.pcoshelper.dll_Ordinal_558]
push dword [esp + 0x50]
mov dl, 1
lea ecx, [esp + 0x28]
call edi
lea eax, [esp + 0x5c]
push 9
push eax
lea esi, [esp + 0x28]
call fcn.004035c7
lea ecx, [esp + 0x70]
push 9
push ecx
mov esi, eax
mov byte [esp + 0xd0], 6
call fcn.00403573
add esp, 0x10
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0xc4], 7
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
lea ecx, [esp + 0x68]
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 + 0x5c]
mov byte [esp + 0xc0], 5
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 eax, dword [esp + 0x14]
mov dword [esp + 0x78], eax
xor eax, eax
inc eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x88], eax
lea eax, [esp + 0x74]
push eax
mov eax, dword [esp + 0x34]
push ebx
push 0x104c
push dword [eax + 0x1bc]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [esp + 0x48]
mov dl, 1
push dword [esp + 0x48]
lea ecx, [esp + 0x28]
call edi
lea eax, [esp + 0x40]
push 9
push eax
lea esi, [esp + 0x28]
call fcn.004035c7
lea ecx, [esp + 0x6c]
push 9
push ecx
mov esi, eax
mov byte [esp + 0xd0], 8
call fcn.00403573
add esp, 0x10
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0xc4], 9
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
lea ecx, [esp + 0x64]
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 + 0x40]
mov byte [esp + 0xc0], 5
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 eax, dword [esp + 0x20]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x88], eax
lea eax, [esp + 0x74]
push eax
push ebx
push 0x104c
push dword [esi + 0x1bc]
mov dword [esp + 0x8c], 2
call dword [sym.imp.USER32.dll_SendMessageW]
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
call dword [0x42433c]
call dword [sym.imp.pcoshelper.dll_Ordinal_257]
pop ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0xc0], 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]
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 4]
cmp eax, ebx
je 0x40d618
push eax
push dword [esp + 0x18]
lea ecx, [esi + 0x19c]
call sub.mfc90u.dll_CListCtrl::SetCheck
lea ecx, [esp + 0x1c]
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 + 0x2c]
mov byte [esp + 0xc0], bl
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 eax, dword [esp + 0x28]
inc dword [esp + 0x18]
mov ecx, dword [eax + 8]
cmp dword [esp + 0x18], ecx
mov edi, esi
jl 0x40d26f
call fcn.0041348e
mov dword [esp + 0x28], eax
cmp eax, ebx
je 0x40d71f
mov ecx, dword [eax + 8]
xor edx, edx
cmp ecx, ebx
mov dword [esp + 0x18], edx
jle 0x40d71f
jmp 0x40d67b
call fcn.004174a2
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
cmp edx, ebx
jl 0x40d66e
cmp edx, ecx
jge 0x40d66e
mov eax, dword [eax + 4]
push ebx
push 1
lea eax, [eax + edx*4]
mov esi, dword [eax]
mov eax, dword [esi]
push ebx
push ebx
push eax
push edx
lea ecx, [edi + 0x290]
push 3
call sub.mfc90u.dll_CListCtrl::InsertItem
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], eax
call dword [0x424328]
mov byte [esp + 0xc0], 0xa
push dword [esi]
lea eax, [esp + 0x18]
push 0x42932c
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
pop ecx
pop ecx
mov eax, esp
lea ecx, [esp + 0x18]
mov dword [esp + 0x44], esp
push ecx
push eax
mov ecx, esi
call fcn.0040a739
pop ecx
pop ecx
call dword [sym.imp.pcoshelper.dll_Ordinal_257]
pop ecx
push dword [esi + 4]
lea ecx, [edi + 0x290]
push dword [esp + 0x38]
call sub.mfc90u.dll_CListCtrl::SetCheck
lea ecx, [esp + 0x14]
mov byte [esp + 0xc0], bl
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 eax, dword [esp + 0x28]
inc dword [esp + 0x18]
mov ecx, dword [eax + 8]
cmp dword [esp + 0x18], ecx
jl 0x40d673
lea ecx, [esp + 0x24]
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 + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.004179ba
mov esp, ebp
pop ebp
ret