Function at 0x40e840
Capabilities:
Create directory
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x411396
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x34], esi
call sub.MFC42.DLL_CPropertySheet::CPropertySheet
lea edi, [esi + 0x8c]
mov dword [esp + 0x48], 0
mov ecx, edi
call fcn.00407660
lea ebx, [esi + 0x14c]
mov byte [esp + 0x48], 1
mov ecx, ebx
call fcn.00407e80
lea ecx, [esi + 0x2c0]
mov byte [esp + 0x48], 2
call fcn.00408850
lea ecx, [esi + 0x3b0]
mov byte [esp + 0x48], 3
call fcn.00409880
lea ecx, [esi + 0x5dc]
mov byte [esp + 0x48], 4
call fcn.0040c1c0
push edi
mov ecx, esi
mov byte [esp + 0x4c], 5
mov dword [esi], 0x413738
call sub.MFC42.DLL_CPropertySheet::AddPage
push ebx
mov ecx, esi
call sub.MFC42.DLL_CPropertySheet::AddPage
call sub.MFC42.DLL_AfxGetModuleState
mov edi, dword [eax + 4]
mov ecx, str.TRUE
lea eax, [edi + 0x1fc4]
mov bl, byte [eax]
mov dl, bl
cmp bl, byte [ecx]
jne 0x40e923
test dl, dl
je 0x40e91f
mov bl, byte [eax + 1]
mov dl, bl
cmp bl, byte [ecx + 1]
jne 0x40e923
add eax, 2
add ecx, 2
test dl, dl
jne 0x40e8ff
xor eax, eax
jmp 0x40e928
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40e93f
lea eax, [esi + 0x2c0]
mov ecx, esi
push eax
call sub.MFC42.DLL_CPropertySheet::AddPage
jmp 0x40eb99
mov eax, dword [edi + 0x445c]
push 0x4166a8
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x40e96a
mov eax, dword [edi + 0x445c]
push eax
call dword [sym.imp.MSVCRT.dll_atof]
add esp, 4
jmp 0x40e990
mov eax, dword [edi + 0x4460]
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fstp qword [esp + 0x2c]
push ecx
lea eax, [edi + 0x1ec4]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x14]
push ecx
call fcn.00403130
add esp, 8
lea edx, [edi + 0x1dc4]
mov bl, 6
push edx
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], bl
call fcn.0040f078
lea eax, [esp + 0x10]
lea ecx, [edi + 0x4528]
push eax
call sub.MFC42.DLL_CString::operator_1
push 0x416074
lea ecx, [edi + 0x4528]
call fcn.0040f078
push 0x5c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReverseFind
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 7
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x38]
push edx
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov ecx, 0x14
call fcn.0040f560
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fst qword [esp + 0x1c]
fcomp qword [esp + 0x2c]
fnstsw ax
test ah, 1
je 0x40eb7c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [edi + 0x44d8]
push str.TRUE
push eax
mov byte [esp + 0x50], 8
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x40eaa8
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x30]
push edx
push eax
push ecx
lea edx, [esp + 0x24]
push 0x41637c
push edx
jmp 0x40eac6
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
push ecx
push edx
push eax
lea ecx, [esp + 0x24]
push str.The_setup_need_space__.1f_MB_but_left_only_.1f_MB.
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x2c]
add esp, 0x18
lea eax, [edi + 0x3ce0]
mov ecx, esi
push 0x142
push eax
push edx
call sub.MFC42.DLL_CWnd::MessageBoxA
cmp eax, 5
je 0x40ebf9
cmp eax, 3
je 0x40ec0b
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], bl
call sub.MFC42.DLL_CString::CString
push 0x5c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReverseFind
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 7
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x38]
push ecx
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov ecx, 0x14
call fcn.0040f560
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fst qword [esp + 0x1c]
fcomp qword [esp + 0x2c]
fnstsw ax
test ah, 1
jne 0x40ea61
mov eax, dword [edi + 0x4528]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 5
call sub.MFC42.DLL_CString::CString
lea eax, [esi + 0x3b0]
mov ecx, esi
push eax
call sub.MFC42.DLL_CPropertySheet::AddPage
lea eax, [esi + 0x5dc]
mov ecx, esi
push eax
call sub.MFC42.DLL_CPropertySheet::AddPage
mov eax, dword [edi + 0x3de8]
test eax, eax
jle 0x40ec30
mov ecx, dword [edi + 0x3dec]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x4524]
lea edx, [esp + 0x18]
push ecx
push edx
push eax
call fcn.00401730
mov edi, eax
mov eax, dword [esp + 0x24]
push eax
push edi
call fcn.00401c40
push edi
mov dword [esi + 0x8bc], eax
call sub.MFC42.DLL_operatordelete
add esp, 0x18
jmp 0x40ec53
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], bl
call sub.MFC42.DLL_CString::CString
jmp 0x40eb7c
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 5
call sub.MFC42.DLL_CString::CString
jmp 0x40ec53
call sub.MFC42.DLL_AfxGetModuleState
push 0x80
push 0xe
push 0x80
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esi + 0x8bc], eax
mov ecx, dword [esp + 0x40]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc