Function at 0x4083b0
Capabilities:
Get disk size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41c388
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
mov ecx, dword [esi + 0x6c]
cmp ecx, edi
jne 0x4083dd
mov ecx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea edx, [esp + 0x20]
lea eax, [esi + 0x110]
push edx
lea edx, [esp + 0x2c]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov ebp, dword [esi + 0x100]
cmp ebp, edi
mov dword [esp + 0x1c], ebp
je 0x408406
inc dword [ebp + 4]
mov dword [esi + 0x108], edi
mov dword [esi + 0x10c], edi
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x38], edi
cmp ecx, edi
jne 0x408423
mov dword [esp + 0x18], edi
jmp 0x40842f
mov eax, dword [ebp + 0x10]
sub eax, ecx
sar eax, 2
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], edi
cmp eax, edi
jbe 0x4084b8
jmp 0x40843f
xor edi, edi
mov eax, dword [esp + 0x14]
mov ecx, ebp
push eax
call fcn.004038b0
mov ebx, eax
mov eax, dword [ebx + 0x1c]
cmp eax, edi
jne 0x40845a
mov dword [esp + 0x10], edi
jmp 0x408466
mov ecx, dword [ebx + 0x20]
sub ecx, eax
sar ecx, 2
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x4084a5
push edi
mov ecx, ebx
call fcn.00403df0
mov cl, byte [eax + 0x20]
test cl, cl
jne 0x40849c
mov ecx, dword [esi + 0x108]
mov eax, dword [eax + 0x18]
mov edx, ecx
add edx, eax
mov eax, edx
mov dword [esi + 0x108], edx
cmp eax, ecx
jae 0x40849c
inc dword [esi + 0x10c]
mov eax, dword [esp + 0x10]
inc edi
cmp edi, eax
jb 0x40846e
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x40843d
xor edi, edi
mov edx, dword [esi + 0x114]
mov eax, dword [esi + 0x10c]
cmp edx, eax
jae 0x40856d
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esi + 0x108]
mov edx, dword [esi + 0x10c]
mov eax, dword [esi + 0x110]
mov byte [esp + 0x38], 1
shr ecx, 0xa
shl edx, 0x16
add ecx, edx
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esi + 0x114]
shr eax, 0xa
shl ecx, 0x16
add eax, ecx
push eax
push 0x4242ac
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea eax, [esp + 0x18]
mov ecx, esi
push edi
push eax
call fcn.00401450
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 0
call sub.MFC42.DLL_CString::CString
cmp ebp, edi
mov dword [esp + 0x38], 0xffffffff
je 0x408627
mov eax, dword [ebp + 4]
dec eax
mov dword [ebp + 4], eax
je 0x40861e
cmp eax, edi
jge 0x408627
lea eax, [esp + 0x14]
push 0x4203f0
push eax
mov dword [esp + 0x1c], 1
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [esi + 0x108]
mov ebx, dword [esi + 0x110]
cmp ebx, ecx
jae 0x40863c
cmp edx, eax
ja 0x40863c
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esi + 0x108]
mov edx, dword [esi + 0x10c]
mov eax, dword [esi + 0x110]
mov byte [esp + 0x38], 2
shr ecx, 0xa
shl edx, 0x16
add ecx, edx
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esi + 0x114]
shr eax, 0xa
shl ecx, 0x16
add eax, ecx
push eax
push 0x4242ac
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea eax, [esp + 0x18]
mov ecx, esi
push edi
push eax
call fcn.00401450
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 0
call sub.MFC42.DLL_CString::CString
cmp ebp, edi
mov dword [esp + 0x38], 0xffffffff
je 0x408627
mov eax, dword [ebp + 4]
dec eax
mov dword [ebp + 4], eax
je 0x40861e
cmp eax, edi
jge 0x408627
lea eax, [esp + 0x14]
push 0x4203f0
push eax
mov dword [esp + 0x1c], 1
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
cmp ebp, edi
mov dword [esi + 0x11c], eax
mov dword [esi + 0x118], ecx
mov dword [esp + 0x38], 0xffffffff
je 0x408666
mov eax, dword [ebp + 4]
dec eax
mov dword [ebp + 4], eax
jne 0x40867b
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx]
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
cmp eax, edi
jge 0x408666
lea eax, [esp + 0x10]
push 0x4203f0
push eax
mov dword [esp + 0x18], 1
call sub.MSVCRT.dll__CxxThrowException
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop