Function at 0x408830
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x4a2e19
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x328
mov eax, dword [0x4cbba0]
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 0x408b24
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 0x408b24
push 0x4ad9d0
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x4089f1
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 0x408b24
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
call dword [0x4ab700]
lea ecx, [esi + 0x3b0]
push ecx
lea ecx, [esp + 0xc]
mov byte [esp + 0x33c], 1
call dword [0x4ab700]
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 + 0x510]
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 0x40899d
ja 0x408966
push ebp
mov ebp, dword [esp + 0x18]
cmp ebp, eax
pop ebp
jbe 0x40899d
xor eax, eax
cmp eax, ecx
ja 0x40899d
jb 0x408972
cmp edx, esi
jae 0x40899d
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 0x408b34
xor eax, eax
cmp eax, ecx
ja 0x4089de
jb 0x4089a9
cmp edx, esi
jae 0x4089de
cmp dword [esp + 0x348], 2
jne 0x4089de
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 0x408b34
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0xc]
jmp 0x408b0d
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 0x408b24
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0xc]
call dword [0x4ab700]
lea ecx, [esi + 0x3b0]
push ecx
lea ecx, [esp + 0x10]
mov byte [esp + 0x33c], 3
call dword [0x4ab700]
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 + 0x510]
imul ecx, dword [esp + 0x1c]
shl eax, 0x14
cdq
cmp edi, edx
mov edx, dword [esp + 0x344]
jl 0x408ac1
jg 0x408a8d
cmp ecx, eax
jbe 0x408ac1
xor eax, eax
cmp eax, edi
jg 0x408ac1
jl 0x408a99
cmp edx, ecx
jae 0x408ac1
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 0x408b34
xor eax, eax
cmp eax, edi
jg 0x408aff
jl 0x408acd
cmp edx, ecx
jae 0x408aff
cmp dword [esp + 0x348], 2
jne 0x408aff
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 0x408b34
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 0x408b34
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.004a17d1
add esp, 0x334
ret 0xc