Function at 0x409efa
Capabilities:
Create directory
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437376
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.0042e0da
mov dword [ebp - 4], 0
push 0x44859c
mov ecx, dword [ebp - 0x40]
add ecx, 0x6e0
push ecx
call fcn.00407410
and eax, 0xff
test eax, eax
je 0x40a0ca
mov edx, dword [ebp - 0x40]
cmp dword [edx + 0x700], 0
je 0x409f87
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0x700], 0
je 0x40a0ca
mov ecx, dword [ebp - 0x40]
cmp dword [ecx + 0x6fc], 0
je 0x40a0ca
push 0x4485a0
mov edx, dword [ebp - 0x40]
add edx, 0x6d0
push edx
call fcn.00407410
and eax, 0xff
test eax, eax
je 0x40a0ca
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.00412850
movsx eax, al
cmp eax, 0x5c
jne 0x40a06e
push 0
mov ecx, dword [ebp - 0x40]
add ecx, 0x6e0
call fcn.00412850
movsx ecx, al
cmp ecx, 0x5c
jne 0x40a055
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.0042e0e6
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 0x40a06c
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 0x40a0ca
push 0
mov ecx, dword [ebp - 0x40]
add ecx, 0x6e0
call fcn.00412850
movsx ecx, al
cmp ecx, 0x5c
jne 0x40a0a0
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 0x40a0ca
push 0x44363c
mov ecx, dword [ebp - 0x40]
add ecx, 0x6d0
call fcn.0042e0f8
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 0x4485a4
mov ecx, dword [ebp - 0x40]
add ecx, 0x6d0
push ecx
call fcn.0040b2e0
and eax, 0xff
test eax, eax
je 0x40a117
push 0
push 0
push 0x443640
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 0x40a3db
mov ecx, dword [ebp - 0x40]
add ecx, 0x330
call sub.MFC42.DLL_CWnd::GetStyle
and eax, 0x800
test eax, eax
jne 0x40a1d0
mov ecx, dword [ebp - 0x40]
add ecx, 0x6d0
call fcn.004077a0
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x40a1d0
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.004077a0
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 0x40a1d0
push 0
push 0
push 0x443650
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 0x40a3db
mov ecx, dword [ebp - 0x40]
add ecx, 0x6d0
call fcn.004077a0
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x40a2ce
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 0x40a227
jmp 0x40a2ce
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.004077a0
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 0x40a2b9
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.004077a0
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 0x40a205
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.004077a0
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 0x40a31f
cmp dword [ebp - 0x10], 5
je 0x40a31f
cmp dword [ebp - 0x10], 6
jne 0x40a34f
push 0
push 0
push 0x44365c
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 0x40a3db
mov edx, dword [ebp - 0x40]
cmp dword [edx + 0x6f8], 0
je 0x40a3a7
push 0x4485a8
mov eax, dword [ebp - 0x40]
add eax, 0x6e0
push eax
call fcn.00407410
and eax, 0xff
test eax, eax
je 0x40a38c
lea ecx, [ebp - 0x14]
call fcn.004077a0
push eax
call fcn.00407490
mov ecx, eax
call fcn.00410996
mov ecx, dword [ebp - 0x40]
add ecx, 0x6d0
call fcn.004077a0
push eax
call fcn.00407490
mov ecx, eax
call fcn.004109bb
mov ecx, dword [ebp - 0x40]
add ecx, 0x6d0
call fcn.004077a0
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