Function at 0x4024f0
Capabilities:
Delete directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x407650
push eax
mov dword fs:[0], esp
sub esp, 0x30
push esi
mov esi, dword [esp + 0x44]
test esi, esi
je 0x402747
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
jbe 0x402747
lea eax, [esp + 0x44]
push esi
push eax
call fcn.00402760
add esp, 8
mov eax, dword [0x40af34]
mov dword [esp + 0x3c], 0
test eax, eax
jne 0x40256c
mov ecx, dword [esp + 0x44]
cmp dword [ecx - 8], 3
jle 0x402736
mov eax, dword [0x40af24]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x402736
push ebx
lea ecx, [esp + 0x48]
push edi
push ecx
call fcn.00402cb0
add esp, 4
lea ecx, [esp + 0x20]
call sub.MFC42u.DLL_CFileFind::CFileFind
lea edx, [esp + 0x4c]
push 0x40a0ac
lea eax, [esp + 0x14]
mov ebx, 1
push edx
push eax
mov byte [esp + 0x50], bl
call sub.MFC42u.DLL_operator_1
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 2
call sub.MFC42u.DLL_CFileFind::FindFile
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x44], bl
call sub.MFC42u.DLL_CString::CString
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test esi, esi
je 0x4026f3
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x24]
call sub.MFC42u.DLL_CFileFind::FindNextFileW
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], eax
call sub.MFC42u.DLL_CFileFind::IsDots
test eax, eax
jne 0x4026e6
mov edx, dword [esp + 0x24]
push 0x10
lea ecx, [esp + 0x28]
call dword [edx + 0x40]
test eax, eax
je 0x402696
lea eax, [esp + 0x10]
lea ecx, [esp + 0x24]
push eax
call sub.MFC42u.DLL_CFileFind::GetFileName
mov ecx, dword [0x40af34]
lea edx, [esp + 0x50]
inc ecx
lea eax, [esp + 0x18]
mov dword [0x40af34], ecx
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
mov byte [esp + 0x54], 3
call sub.MFC42u.DLL_operator
mov eax, dword [eax]
mov byte [esp + 0x48], 4
push eax
call fcn.004024f0
add esp, 4
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 3
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [0x40af34]
lea edx, [esp + 0x50]
dec ecx
lea eax, [esp + 0x1c]
mov dword [0x40af34], ecx
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
call sub.MFC42u.DLL_operator
mov eax, dword [eax]
push eax
call edi
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::CString
mov byte [esp + 0x48], bl
lea ecx, [esp + 0x10]
jmp 0x4026e1
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x28]
call sub.MFC42u.DLL_CFileFind::GetFilePath
mov byte [esp + 0x48], 5
mov esi, 3
mov edx, dword [esp + 0x14]
push edx
call fcn.00401ba0
mov eax, dword [esp + 0x18]
push 0
push eax
call dword [sym.imp.MSVCRT.dll__waccess]
add esp, 0xc
cmp eax, 0xffffffff
je 0x4026d9
push 0x1388
call ebp
dec esi
test esi, esi
jg 0x4026ae
mov byte [esp + 0x48], bl
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4025d8
pop ebp
mov eax, dword [0x40af34]
test eax, eax
jne 0x402703
mov ecx, dword [esp + 0x4c]
push ecx
call edi
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 0
call fcn.00407070
lea ecx, [esp + 0x4c]
mov dword [esp + 0x44], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov eax, ebx
pop edi
pop ebx
pop esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret
lea ecx, [esp + 0x44]
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x34]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x3c
ret