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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x425485
mov eax, dword fs:[0]
push eax
sub esp, 0xe98
mov eax, dword [0x44c028]
xor eax, esp
mov dword [esp + 0xe90], eax
push ebx
push esi
push edi
mov eax, dword [0x44c028]
xor eax, esp
push eax
lea eax, [esp + 0xea8]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x48], esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], eax
call dword [0x436ac8]
and dword [esp + 0xeb0], 0
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
xor eax, eax
push 0x206
push eax
mov word [esp + 0x9c], ax
lea eax, [esp + 0x9e]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x104
lea eax, [esp + 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [esp + 0x29c]
push eax
lea eax, [esp + 0x4a0]
push eax
lea eax, [esp + 0x6a4]
push eax
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0xa4]
push eax
call dword [sym.imp.MSVCR90.dll__wsplitpath]
add esp, 0x14
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
push 1
push dword [esp + 0x18]
push str.system_driver
push esi
call fcn.0041d55b
mov ebx, dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
mov dword [esp + 0x10], 0x41
mov ecx, dword [esp + 0x10]
xor eax, eax
add ecx, 0xffffffbf
inc eax
shl eax, cl
mov ecx, dword [esp + 0x34]
test ecx, eax
je 0x40bb47
mov eax, dword [0x43aeb8]
mov dword [esp + 0x64], eax
mov eax, dword [0x43aebc]
movzx ecx, word [esp + 0x10]
mov dword [esp + 0x68], eax
xor eax, eax
lea edi, [esp + 0x6c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, 0x43aec0
lea edi, [esp + 0x84]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
lea edi, [esp + 0x8a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x64]
push eax
mov word [esp + 0x68], cx
mov word [esp + 0x88], cx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x40b928
cmp eax, 2
jne 0x40bb47
mov eax, 0x100
push eax
lea ecx, [esp + 0x4a0]
push ecx
xor esi, esi
push esi
push esi
push esi
push eax
lea eax, [esp + 0x2b4]
push eax
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
cmp eax, esi
je 0x40bb47
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x60]
push eax
push esi
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x60]
mov esi, dword [esp + 0x78]
mov dword [esp + 0x3c], eax
sub eax, edx
mov dword [esp + 0x40], ecx
sbb ecx, esi
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x64]
mov dword [esp + 0x30], ecx
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
lea ecx, [esp + 0x28]
call dword [0x436ac8]
lea ecx, [esp + 0x1c]
call dword [0x436ac8]
push 0x438cc8
push str.IDS_PHYF_FORMAT3
lea eax, [esp + 0x60]
mov byte [esp + 0xeb8], 3
mov esi, dword [sym.imp.K9PCUhelper.dll_public:_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______thiscall_CMainApp::LoadStringW_wchar_t_const___wchar_t_const__]
mov edi, 0x4a0f68
push eax
mov ecx, edi
call esi
push dword [esp + 0x40]
mov byte [esp + 0xeb4], 4
mov eax, dword [eax]
push dword [esp + 0x40]
push eax
lea eax, [esp + 0x28]
push eax
call ebx
add esp, 0x10
lea ecx, [esp + 0x58]
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 + 0x20]
call dword [0x436ac8]
push 0x438cc8
push str.IDS_PHYF_FORMAT3
lea eax, [esp + 0x40]
push eax
mov ecx, edi
mov byte [esp + 0xebc], 5
call esi
push dword [esp + 0x50]
mov byte [esp + 0xeb4], 6
mov eax, dword [eax]
push dword [esp + 0x50]
push eax
lea eax, [esp + 0x2c]
push eax
call ebx
add esp, 0x10
lea ecx, [esp + 0x38]
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 + 0x18]
call dword [0x436ac8]
push 0x438cc8
mov byte [esp + 0xeb4], 7
push str.IDS_PHYF_FORMAT3
lea eax, [esp + 0x5c]
push eax
mov ecx, edi
call esi
push dword [esp + 0x30]
mov byte [esp + 0xeb4], 8
mov eax, dword [eax]
push dword [esp + 0x30]
push eax
lea eax, [esp + 0x24]
push eax
call ebx
add esp, 0x10
lea ecx, [esp + 0x54]
mov byte [esp + 0xeb0], 7
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 esi, dword [esp + 0x48]
xor edi, edi
inc edi
push edi
push 0
push str.drive_info
push esi
call fcn.0041d55b
mov eax, esi
call fcn.0041ca05
push edi
push dword [esp + 0x28]
push str.drive_name
push esi
call fcn.0041d55b
push edi
push dword [esp + 0x20]
push str.total_size_in_bytes
push esi
call fcn.0041d55b
push edi
push dword [esp + 0x24]
push str.free_space_in_bytes
push esi
call fcn.0041d55b
push edi
push dword [esp + 0x1c]
push str.used_space_in_bytes
push esi
call fcn.0041d55b
call fcn.0041ca2f
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 + 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]
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 + 0x28]
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 + 0x24]
mov byte [esp + 0xeb0], 0
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x5a
jbe 0x40b8af
lea ecx, [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]
mov ecx, dword [esp + 0xea8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe90]
xor ecx, esp
call fcn.00420e1a
mov esp, ebp
pop ebp
ret