Function at 0x40d3e0
Capabilities:
Check if file exists
Delete directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x455340
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.0040ba60
test eax, eax
je 0x40d631
lea ebp, [edi + 0x74]
push 0x4690f8
mov ecx, ebp
call fcn.004149ce
xor ebx, ebx
mov esi, 0x465160
mov dword [0x465b54], ebx
mov dword [0x46928c], ebx
mov dword [0x469290], ebx
mov dword [0x469294], ebx
mov eax, dword [edi + 0x70]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40d460
cmp cl, bl
je 0x40d45c
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40d460
add eax, 2
add esi, 2
cmp cl, bl
jne 0x40d43c
xor eax, eax
jmp 0x40d465
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
mov ecx, edi
jne 0x40d483
call fcn.0040df40
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
call fcn.0040dd70
test eax, eax
jne 0x40d631
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], ebx
call sub.MFC42.DLL_CString::CString_2
push str.DirRecyclers
lea eax, [esp + 0x1c]
push 0x4692a4
push eax
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 2
call fcn.004149b6
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CString::CString
mov ecx, dword [0x469230]
push ecx
mov ecx, 0x4692a4
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x40d644
mov edx, dword [esp + 0x10]
mov esi, 1
push edx
mov dword [0x46928c], esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x40d516
mov dword [0x469294], esi
mov eax, dword [edi + 0xe8]
lea ecx, [edi + 0xe8]
call dword [eax + 0xc0]
cmp eax, 1
jne 0x40d613
cmp dword [0x4692a8], ebx
je 0x40d613
cmp dword [0x46928c], ebx
je 0x40d551
push 0x465cb8
mov ecx, ebp
call fcn.004149ce
cmp dword [0x469290], ebx
je 0x40d565
push 0x465d64
mov ecx, ebp
call sub.MFC42.DLL_CString::operator
cmp dword [0x469294], ebx
je 0x40d579
push 0x465d5c
mov ecx, ebp
call sub.MFC42.DLL_CString::operator
push 0x465d54
mov ecx, ebp
call sub.MFC42.DLL_CString::operator
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push ebp
call sub.MFC42.DLL_CString::CString_1
push ecx
mov byte [esp + 0x34], 4
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x4692a4
call sub.MFC42.DLL_CString::CString_1
mov byte [esp + 0x34], 1
call fcn.00412470
add esp, 4
mov ecx, esp
mov dword [esp + 0x24], esp
push ebp
call sub.MFC42.DLL_CString::CString_1
push ecx
mov byte [esp + 0x34], 5
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x4692a4
call sub.MFC42.DLL_CString::CString_1
mov ecx, edi
mov byte [esp + 0x34], 1
call fcn.0040ca00
lea ecx, [edi + 0x78]
mov dword [0x46928c], ebx
mov dword [0x469290], ebx
mov dword [0x469294], ebx
call sub.MFC42.DLL_CString::Empty
lea ecx, [edi + 0xbc]
call sub.MFC42.DLL_CString::Empty
push ebx
mov ecx, edi
mov dword [edi + 0x60], ebx
call sub.MFC42.DLL_CWnd::UpdateData
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push eax
call esi
test eax, eax
je 0x40d664
mov dword [0x469294], 1
jmp 0x40d516
push 0x4655ac
lea ecx, [esp + 0x1c]
push 0x4692a4
push ecx
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 3
call fcn.004149b6
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x14]
push edx
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40d516
push ebx
push ebx
push 0x465d94
mov ecx, edi
call sub.MFC42.DLL_CWnd::MessageBoxA
jmp 0x40d613