Function at 0x40af00
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4178d8
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x290]
mov ecx, dword [eax + 0x140]
test ecx, ecx
jne 0x40b0f8
mov ecx, dword [eax + 0x148]
test ecx, ecx
jne 0x40b0f8
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::CString_4
mov eax, dword [esi + 0x290]
lea edx, [esp + 0xc]
mov dword [esp + 0x34], 2
mov ecx, dword [eax + 0x114]
push ecx
push 0x95
push edx
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::CString_4
push 0x7ef
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 3
call sub.MFC42u.DLL_CString::LoadStringW
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
push eax
push 0x422e08
push ecx
mov ecx, dword [esi + 0x290]
lea edx, [esp + 0x1c]
push esi
push edx
call fcn.00414310
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 4
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 3
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
cmp eax, 0xffffffff
jne 0x40afec
push eax
push 0
push 0x7eb
call sub.MFC42u.DLL_AfxMessageBox_1
jmp 0x40b098
mov eax, dword [esi + 0x290]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [eax + 0x138]
call sub.MFC42u.DLL_CString::operator_2
push 0xd3
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::LockBuffer
push eax
lea ecx, [esp + 0x28]
call fcn.00403740
mov bl, 5
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], bl
call sub.MFC42u.DLL_CString::ReleaseBuffer
push 0
push 0x42608c
lea edx, [esp + 0x20]
push 0xb4
push edx
lea ecx, [esp + 0x30]
call fcn.00404100
mov ecx, dword [esi + 0x290]
push eax
add ecx, 0x134
mov byte [esp + 0x38], 6
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], bl
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esi + 0x290]
mov eax, dword [eax + 0x134]
push eax
call edi
cmp eax, 0xffffffff
jne 0x40b0cb
push eax
push 0
push 0x7ec
call sub.MFC42u.DLL_AfxMessageBox_1
lea ecx, [esp + 0x20]
mov byte [esp + 0x34], 3
call fcn.004037e0
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call sub.MFC42u.DLL_CString::CString
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
lea ecx, [esp + 0x20]
mov byte [esp + 0x34], 3
call fcn.004037e0
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 2
call sub.MFC42u.DLL_CString::CString
mov dword [esp + 0x34], 0xffffffff
lea ecx, [esp + 0xc]
jmp 0x40b275
mov eax, dword [eax + 0x134]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
cmp eax, 0xffffffff
je 0x40b13f
mov ecx, dword [esi + 0x290]
mov eax, dword [ecx + 0x120]
push eax
push 0x4260b8
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40b13f
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_4
mov edx, dword [esi + 0x290]
mov dword [esp + 0x34], 0
mov eax, dword [edx + 0x120]
push eax
push 0x4260b8
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x18]
push eax
call sub.MFC42u.DLL_CTime::GetTickCount
mov ecx, dword [eax]
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], ecx
push str.__m_d_y__H_M_S
push edx
lea ecx, [esp + 0x24]
call sub.MFC42u.DLL_CTime::Format
mov ecx, dword [esi + 0x290]
mov eax, dword [eax]
push eax
push 0x4260b8
mov edx, dword [ecx + 0x114]
lea eax, [esp + 0x18]
push edx
push 0x422dd8
push eax
mov byte [esp + 0x48], 1
call sub.MFC42u.DLL_CString::Format_1
add esp, 0x14
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 0
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40b22f
lea edx, [esp + 0x18]
push 1
push edx
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::Right
mov eax, dword [eax]
push 0x422dd4
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
setne bl
call sub.MFC42u.DLL_CString::CString
test bl, bl
je 0x40b217
push 0x422dd4
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::operator_1
mov eax, dword [esi + 0x290]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [eax + 0x134]
call sub.MFC42u.DLL_CString::operator_2
jmp 0x40b269
mov edx, dword [esi + 0x290]
lea ecx, [esp + 0x10]
add edx, 0x114
push edx
call sub.MFC42u.DLL_CString::operator_2
mov eax, dword [esi + 0x290]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [eax + 0x134]
call sub.MFC42u.DLL_CString::operator_2
push 0xffffffffffffffff
push 0
push 0x7ea
call sub.MFC42u.DLL_AfxMessageBox_1
mov dword [esp + 0x34], 0xffffffff
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString
mov edx, dword [esi + 0x290]
mov eax, dword [edx + 0x134]
push eax
call edi
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret