Function at 0x407ca0
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x497e89
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x328
mov eax, dword [0x4bc410]
xor eax, esp
push esi
mov dword [esp + 0x328], eax
push edi
mov esi, ecx
xor edi, edi
lea ecx, [esp + 0x340]
mov dword [esp + 0x338], edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::IsEmpty]
test al, al
jne 0x407f94
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x130]
push ecx
lea edx, [esp + 0x234]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x350]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.MSVCR71.dll__splitpath]
mov al, byte [esp + 0x24]
add esp, 0x14
test al, al
je 0x407f94
push str.GetDiskFreeSpaceExA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x407e61
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
call eax
test eax, eax
je 0x407f94
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
lea ecx, [esi + 0x3b0]
push ecx
lea ecx, [esp + 0xc]
mov byte [esp + 0x33c], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
lea ecx, [esp + 0xc]
mov byte [esp + 0x338], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::MakeLower]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::MakeLower]
mov eax, dword [esi + 0x4f4]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
shl eax, 0x14
cdq
cmp ecx, edx
mov edx, dword [esp + 0x344]
mov ecx, dword [esp + 0x20]
jb 0x407e0d
ja 0x407dd6
push ebp
mov ebp, dword [esp + 0x18]
cmp ebp, eax
pop ebp
jbe 0x407e0d
xor eax, eax
cmp eax, ecx
ja 0x407e0d
jb 0x407de2
cmp edx, esi
jae 0x407e0d
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x340]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, 1
jmp 0x407fa4
xor eax, eax
cmp eax, ecx
ja 0x407e4e
jb 0x407e19
cmp edx, esi
jae 0x407e4e
cmp dword [esp + 0x348], 2
jne 0x407e4e
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x340]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, 2
jmp 0x407fa4
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0xc]
jmp 0x407f7d
push edi
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x30], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x38], edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x407f94
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
lea ecx, [esi + 0x3b0]
push ecx
lea ecx, [esp + 0x10]
mov byte [esp + 0x33c], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
lea ecx, [esp + 8]
mov byte [esp + 0x338], 4
call dword [sym.imp.MFC71.DLL_ATL::CStringT::MakeLower]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::MakeLower]
mov ecx, dword [esp + 0x24]
imul ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x4f4]
imul ecx, dword [esp + 0x1c]
shl eax, 0x14
cdq
cmp edi, edx
mov edx, dword [esp + 0x344]
jl 0x407f31
jg 0x407efd
cmp ecx, eax
jbe 0x407f31
xor eax, eax
cmp eax, edi
jg 0x407f31
jl 0x407f09
cmp edx, ecx
jae 0x407f31
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x340]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, 1
jmp 0x407fa4
xor eax, eax
cmp eax, edi
jg 0x407f6f
jl 0x407f3d
cmp edx, ecx
jae 0x407f6f
cmp dword [esp + 0x348], 2
jne 0x407f6f
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x340]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, 2
jmp 0x407fa4
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x340]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
jmp 0x407fa4
lea ecx, [esp + 0x340]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
or eax, 0xffffffff
mov ecx, dword [esp + 0x330]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x328]
pop esi
xor ecx, esp
call fcn.00496ace
add esp, 0x334
ret 0xc