Function at 0x422aa0
Capabilities:
Delete directory
Delete file

Disassembly:
sub esp, 0x4c
lea ecx, [esp]
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 + 0x18]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x40]
call fcn.004273b0
lea eax, [esp + 0x60]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x20]
push 1
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x432154
push eax
call ebp
add esp, 8
test eax, eax
je 0x422b33
lea edx, [esp + 0x1c]
push 1
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x432014
push eax
call ebp
add esp, 8
lea ecx, [esp + 0x1c]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x422b33
mov bl, 1
jmp 0x422b35
xor bl, bl
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x422b69
lea eax, [esp + 0x10]
push 0x432154
lea ecx, [esp + 0x24]
push eax
push ecx
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x10]
push 0x433440
lea eax, [esp + 0x24]
push edx
push eax
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
lea ecx, [esp + 0x20]
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x422d5b
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov bl, 1
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CFileFind::FindNextFileA
test eax, eax
jne 0x422bb8
xor bl, bl
mov edx, dword [esp + 0x40]
push 0x10
lea ecx, [esp + 0x44]
call dword [edx + 0x40]
test eax, eax
je 0x422c2c
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x422d53
lea eax, [esp + 0x20]
lea ecx, [esp + 0x40]
push eax
call sub.MFC42.DLL_CFileFind::GetFilePath
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x433ae8
call sub.MFC42.DLL_CString::CString_2
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call sub.MFC42.DLL_CString::CString_3
call fcn.00422aa0
add esp, 0xc
jmp 0x422d53
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x40]
push eax
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
mov ecx, dword [esp + 0x64]
push 0x433ae8
push ecx
call ebp
add esp, 8
test eax, eax
je 0x422ca1
lea edx, [esp + 0x24]
lea ecx, [esp + 0x40]
push edx
call sub.MFC42.DLL_CFileFind::GetFileName
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::MakeLower
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call ebp
add esp, 8
test eax, eax
je 0x422d53
mov edx, dword [esp + 0x14]
push edx
call edi
test eax, eax
jne 0x422d53
push 0x431674
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find_2
mov esi, eax
test esi, esi
jl 0x422d53
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x38]
mov eax, dword [eax - 8]
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Right
push eax
push 0x432eec
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::CString_2
push eax
lea edx, [esp + 0x38]
push esi
push edx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Left
push eax
lea eax, [esp + 0x38]
push eax
call sub.MFC42.DLL_operator_3
lea ecx, [esp + 0x2c]
push eax
push ecx
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString
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
mov edx, dword [esp + 0x14]
push edx
call edi
test bl, bl
jne 0x422ba9
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CFileFind::Close
mov eax, dword [esp + 0x68]
test eax, eax
jne 0x422e28
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push eax
call edi
test eax, eax
jne 0x422e28
push 0x431674
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_2
mov esi, eax
test esi, esi
jl 0x422e28
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x2c]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x10]
sub eax, esi
push eax
push edx
call sub.MFC42.DLL_CString::Right
push eax
push 0x432eec
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::CString_2
push eax
lea eax, [esp + 0x3c]
push esi
push eax
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Left
lea ecx, [esp + 0x40]
push eax
push ecx
call sub.MFC42.DLL_operator_3
lea edx, [esp + 0x6c]
push eax
push edx
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x68]
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 eax, dword [esp + 0x10]
push eax
call edi
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x60]
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, 0x4c
ret