Function at 0x40a094
Capabilities:
Create directory
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4375c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
mov dword [ebp - 0x40], ecx
push 1
mov ecx, dword [ebp - 0x40]
call sub.MFC42.DLL_CWnd::UpdateData
mov eax, dword [ebp - 0x40]
add eax, 0x6d0
push eax
lea ecx, [ebp - 0x14]
call fcn.0042e32a
mov dword [ebp - 4], 0
push 0x4495ac
mov ecx, dword [ebp - 0x40]
add ecx, 0x6e0
push ecx
call fcn.00407460
and eax, 0xff
test eax, eax
je 0x40a264
mov edx, dword [ebp - 0x40]
cmp dword [edx + 0x700], 0
je 0x40a121
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0x700], 0
je 0x40a264
mov ecx, dword [ebp - 0x40]
cmp dword [ecx + 0x6fc], 0
je 0x40a264
push 0x4495b0
mov edx, dword [ebp - 0x40]
add edx, 0x6d0
push edx
call fcn.00407460
and eax, 0xff
test eax, eax
je 0x40a264
mov ecx, dword [ebp - 0x40]
add ecx, 0x6d0
call fcn.00402c90
sub eax, 1
push eax
mov ecx, dword [ebp - 0x40]
add ecx, 0x6d0
call fcn.00412a30
movsx eax, al
cmp eax, 0x5c
jne 0x40a208
push 0
mov ecx, dword [ebp - 0x40]
add ecx, 0x6e0
call fcn.00412a30
movsx ecx, al
cmp ecx, 0x5c
jne 0x40a1ef
mov ecx, dword [ebp - 0x40]
add ecx, 0x6d0
call fcn.00402c90
sub eax, 1
push eax
lea edx, [ebp - 0x24]
push edx
mov ecx, dword [ebp - 0x40]
add ecx, 0x6d0
call sub.MFC42.DLL_CString::Left
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x48]
push ecx
mov ecx, dword [ebp - 0x40]
add ecx, 0x6d0
call fcn.0042e336
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp - 0x40]
add edx, 0x6e0
push edx
mov ecx, dword [ebp - 0x40]
add ecx, 0x6d0
call sub.MFC42.DLL_CString::operator_1
jmp 0x40a206
mov eax, dword [ebp - 0x40]
add eax, 0x6e0
push eax
mov ecx, dword [ebp - 0x40]
add ecx, 0x6d0
call sub.MFC42.DLL_CString::operator_1
jmp 0x40a264
push 0
mov ecx, dword [ebp - 0x40]
add ecx, 0x6e0
call fcn.00412a30
movsx ecx, al
cmp ecx, 0x5c
jne 0x40a23a
mov edx, dword [ebp - 0x40]
add edx, 0x6e0
push edx
mov ecx, dword [ebp - 0x40]
add ecx, 0x6d0
call sub.MFC42.DLL_CString::operator_1
jmp 0x40a264
push 0x44463c
mov ecx, dword [ebp - 0x40]
add ecx, 0x6d0
call fcn.0042e348
mov eax, dword [ebp - 0x40]
add eax, 0x6e0
push eax
mov ecx, dword [ebp - 0x40]
add ecx, 0x6d0
call sub.MFC42.DLL_CString::operator_1
push 0x4495b4
mov ecx, dword [ebp - 0x40]
add ecx, 0x6d0
push ecx
call fcn.0040b480
and eax, 0xff
test eax, eax
je 0x40a2b1
push 0
push 0
push 0x444640
call sub.MFC42.DLL_AfxMessageBox
mov ecx, dword [ebp - 0x40]
add ecx, 0x330
call sub.MFC42.DLL_CWnd::SetFocus
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
jmp 0x40a575
mov ecx, dword [ebp - 0x40]
add ecx, 0x330
call sub.MFC42.DLL_CWnd::GetStyle
and eax, 0x800
test eax, eax
jne 0x40a36a
mov ecx, dword [ebp - 0x40]
add ecx, 0x6d0
call fcn.004077f0
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x40a36a
push 2
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp - 0x40]
add ecx, 0x6d0
call sub.MFC42.DLL_CString::Left
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x50]
call fcn.004077f0
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x28], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x28]
and ecx, 0xff
test ecx, ecx
je 0x40a36a
push 0
push 0
push 0x444650
call sub.MFC42.DLL_AfxMessageBox
mov ecx, dword [ebp - 0x40]
add ecx, 0x330
call sub.MFC42.DLL_CWnd::SetFocus
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
jmp 0x40a575
mov ecx, dword [ebp - 0x40]
add ecx, 0x6d0
call fcn.004077f0
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x40a468
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x40]
add ecx, 0x6d0
call fcn.00402c90
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x1c]
push edx
push 0x5c
mov ecx, dword [ebp - 0x40]
add ecx, 0x6d0
call sub.MFC42.DLL_CString::Find
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x40a3c1
jmp 0x40a468
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [ebp - 0x40]
add ecx, 0x6d0
call sub.MFC42.DLL_CString::Left
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x58], edx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x58]
call fcn.004077f0
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x30], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x30]
and eax, 0xff
test eax, eax
je 0x40a453
push 0
mov ecx, dword [ebp - 0x20]
push ecx
lea edx, [ebp - 0x38]
push edx
mov ecx, dword [ebp - 0x40]
add ecx, 0x6d0
call sub.MFC42.DLL_CString::Left
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x60]
call fcn.004077f0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x18]
jl 0x40a39f
push 2
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x40]
add ecx, 0x6d0
call sub.MFC42.DLL_CString::Left
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x68], ecx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x68]
call fcn.004077f0
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CString::CString
cmp dword [ebp - 0x10], 4
je 0x40a4b9
cmp dword [ebp - 0x10], 5
je 0x40a4b9
cmp dword [ebp - 0x10], 6
jne 0x40a4e9
push 0
push 0
push 0x44465c
call sub.MFC42.DLL_AfxMessageBox
mov ecx, dword [ebp - 0x40]
add ecx, 0x330
call sub.MFC42.DLL_CWnd::SetFocus
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
jmp 0x40a575
mov edx, dword [ebp - 0x40]
cmp dword [edx + 0x6f8], 0
je 0x40a541
push 0x4495b8
mov eax, dword [ebp - 0x40]
add eax, 0x6e0
push eax
call fcn.00407460
and eax, 0xff
test eax, eax
je 0x40a526
lea ecx, [ebp - 0x14]
call fcn.004077f0
push eax
call fcn.004074e0
mov ecx, eax
call fcn.00410b76
mov ecx, dword [ebp - 0x40]
add ecx, 0x6d0
call fcn.004077f0
push eax
call fcn.004074e0
mov ecx, eax
call fcn.00410b9b
mov ecx, dword [ebp - 0x40]
add ecx, 0x6d0
call fcn.004077f0
push eax
mov ecx, dword [ebp - 0x40]
mov ecx, dword [ecx + 0x6e8]
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 0x6e8]
mov edx, dword [eax]
call dword [edx]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret