Function at 0x40d160
Capabilities:
Check if file exists
Create directory
Delete directory
Set file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4552f8
push eax
mov eax, dword [0x4658f0]
mov dword fs:[0], esp
sub esp, 0x10
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
mov esi, ecx
je 0x40d1b3
cmp dword [0x469264], ebx
jne 0x40d1b3
call fcn.0040d0b0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xd0]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
lea edi, [esi + 0x74]
push 0x4690f8
mov ecx, edi
call fcn.004149ce
mov ecx, esi
call fcn.0040ba60
test eax, eax
je 0x40d3c5
mov ecx, dword [0x469230]
mov dword [0x469274], ebx
push ecx
mov ecx, 0x4692a4
mov dword [0x469278], ebx
mov dword [0x46927c], ebx
mov dword [0x465b54], 1
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x40d22a
push ebx
push ebx
push 0x465d80
mov ecx, esi
mov dword [0x4692ac], ebx
call sub.MFC42.DLL_CWnd::MessageBoxA
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push 0x4655ac
lea edx, [esp + 0x18]
push 0x4692a4
push edx
call sub.MFC42.DLL_operator_2
mov eax, dword [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push eax
mov dword [esp + 0x2c], ebx
call ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40d273
push ebx
push ebx
push 0x4656d4
mov ecx, esi
mov dword [0x4692ac], ebx
call sub.MFC42.DLL_CWnd::MessageBoxA
jmp 0x40d3b4
push str.DirRecyclers
lea ecx, [esp + 0x14]
push 0x4692a4
push ecx
call sub.MFC42.DLL_operator_2
mov edx, dword [esp + 0x10]
mov byte [esp + 0x28], 1
push edx
call ebp
test eax, eax
je 0x40d2c9
push ebx
push ebx
push 0x465d6c
mov ecx, esi
mov dword [0x4692ac], ebx
call sub.MFC42.DLL_CWnd::MessageBoxA
mov eax, dword [esp + 0x10]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x10]
push 2
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x40d3a7
mov edx, dword [esi + 0xe8]
lea ecx, [esi + 0xe8]
call dword [edx + 0xc0]
cmp eax, 1
jne 0x40d3a7
cmp dword [0x4692a8], ebx
je 0x40d3a7
cmp dword [0x46927c], ebx
je 0x40d304
push 0x465cb8
mov ecx, edi
call fcn.004149ce
cmp dword [0x469278], ebx
je 0x40d318
push 0x465d64
mov ecx, edi
call sub.MFC42.DLL_CString::operator
cmp dword [0x469274], ebx
je 0x40d32c
push 0x465d5c
mov ecx, edi
call sub.MFC42.DLL_CString::operator
push 0x465d54
mov ecx, edi
call sub.MFC42.DLL_CString::operator
cmp dword [0x4692ac], ebx
jne 0x40d383
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push edi
call sub.MFC42.DLL_CString::CString_1
push ecx
mov byte [esp + 0x30], 2
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x4692a4
call sub.MFC42.DLL_CString::CString_1
mov byte [esp + 0x30], 1
call fcn.00412780
add esp, 4
mov ecx, esp
mov dword [esp + 0x20], esp
push edi
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.0040c950
lea ecx, [esi + 0x78]
mov dword [0x4692ac], ebx
call sub.MFC42.DLL_CString::Empty
lea ecx, [esi + 0xbc]
call sub.MFC42.DLL_CString::Empty
push ebx
mov ecx, esi
mov dword [esi + 0x60], ebx
call sub.MFC42.DLL_CWnd::UpdateData
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret