Function at 0x402a70
Capabilities:
Delete directory
Delete file

Disassembly:
sub esp, 0x50
lea ecx, [esp + 8]
push ebx
push ebp
push esi
push edi
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x44]
call fcn.004171f2
lea eax, [esp + 0x64]
lea ecx, [esp + 0x18]
push eax
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
push 1
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x41e14c
push eax
call edi
add esp, 8
lea ecx, [esp + 0x1c]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x402afc
lea edx, [esp + 0x18]
push 0x41e14c
lea eax, [esp + 0x20]
push edx
push eax
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
push 0x41e150
lea edx, [esp + 0x20]
push ecx
push edx
call sub.MFC42.DLL_operator_3
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
lea ecx, [esp + 0x1c]
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x402cea
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [esp + 0x13], 1
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CFileFind::FindNextFileA
test eax, eax
jne 0x402b50
mov byte [esp + 0x13], al
mov eax, dword [esp + 0x44]
push 0x10
lea ecx, [esp + 0x48]
call dword [eax + 0x40]
test eax, eax
je 0x402c0b
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CFileFind::GetFilePath
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x24]
push 1
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x41e15c
push eax
call edi
add esp, 8
test eax, eax
je 0x402bda
lea eax, [esp + 0x20]
push 2
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x41e158
push eax
call edi
add esp, 8
lea ecx, [esp + 0x20]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x402bda
mov bl, 1
jmp 0x402bdc
xor bl, bl
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x402cde
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call fcn.004171fe
call fcn.00402a70
add esp, 4
jmp 0x402cde
lea eax, [esp + 0x28]
lea ecx, [esp + 0x44]
push eax
call sub.MFC42.DLL_CFileFind::GetFilePath
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
push ecx
call ebp
test eax, eax
jne 0x402cde
push 0x41e148
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find
mov esi, eax
test esi, esi
jl 0x402cde
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x14]
mov eax, dword [edx - 8]
sub eax, esi
push eax
lea eax, [esp + 0x40]
push eax
call sub.MFC42.DLL_CString::Right
push eax
push 0x41e15c
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CString::CString_2
push eax
lea ecx, [esp + 0x3c]
push esi
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Left
lea edx, [esp + 0x38]
push eax
push edx
call sub.MFC42.DLL_operator_1
push eax
lea eax, [esp + 0x34]
push eax
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
push ecx
call ebp
mov al, byte [esp + 0x13]
test al, al
jne 0x402b3f
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CFileFind::Close
mov edx, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push edx
call edi
test eax, eax
jne 0x402dab
push 0x41e148
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Find
mov esi, eax
test esi, esi
jl 0x402dab
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
mov eax, dword [eax - 8]
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Right
push eax
push 0x41e15c
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::CString_2
push eax
lea edx, [esp + 0x3c]
push esi
push edx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::Left
push eax
lea eax, [esp + 0x44]
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x40]
push eax
push ecx
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x18]
push edx
call edi
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x64]
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x50
ret