Function at 0x418a10
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445f40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x284
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], esi
mov eax, dword [esi + 0xc]
lea edi, [esi + 0xc]
cmp eax, 1
mov dword [ebp - 0x28], edi
jle 0x418a53
lea eax, [esi + 4]
push eax
call fcn.004198d0
add esp, 4
lea ecx, [ebp - 0x68]
call fcn.00442a68
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], eax
cmp eax, dword [edi]
jge 0x418c8e
mov ecx, dword [esi + 8]
lea edx, [ecx + eax*4]
lea ecx, [ebp - 0x14]
push edx
call sub.MFC42u.DLL_CString::CString_1
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 1
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x418c73
lea ecx, [ebp - 0x50]
push 2
push ecx
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::Left
mov edx, dword [eax]
push 0x45970c
push edx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
lea ecx, [ebp - 0x50]
test eax, eax
sete bl
call sub.MFC42u.DLL_CString::CString
test bl, bl
je 0x418ba1
mov eax, dword [ebp - 0x14]
push 0
push eax
call dword [sym.imp.MSVCRT.dll__waccess]
add esp, 8
neg eax
sbb eax, eax
inc eax
test eax, eax
je 0x418c73
lea eax, [ebp - 0x14]
push eax
call fcn.00414970
add esp, 4
test al, 0x10
je 0x418c41
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x20]
call sub.MFC42u.DLL_CString::CString_1
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x54]
push edx
push eax
mov byte [ebp - 4], 2
call fcn.00413e00
add esp, 8
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0x20]
push 0x5c
lea edx, [ebp - 0x2c]
push ecx
push edx
call fcn.00418f00
add esp, 0xc
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.00442a5c
lea eax, [ebp - 0x2c]
push 0x459c74
lea ecx, [ebp - 0x4c]
push eax
push ecx
mov byte [ebp - 4], 5
call sub.MFC42u.DLL_operator_4
mov eax, dword [eax]
push 0
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 6
call sub.MFC42u.DLL_CFileFind::FindFile
lea ecx, [ebp - 0x4c]
mov esi, eax
mov byte [ebp - 4], 5
call sub.MFC42u.DLL_CString::CString
test esi, esi
mov edi, 1
je 0x418bdf
lea ecx, [ebp - 0x48]
call sub.MFC42u.DLL_CFileFind::FindNextFileW
lea ecx, [ebp - 0x48]
mov esi, eax
call sub.MFC42u.DLL_CFileFind::IsDots
test eax, eax
je 0x418bc9
test esi, esi
jne 0x418b85
jmp 0x418bdf
lea ecx, [ebp - 0x290]
call fcn.0040d0b0
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x290]
push ecx
push edx
call sub.MFC42u.DLL_CFile::GetStatus
test eax, eax
je 0x418c73
jmp 0x418adc
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x48]
push edx
call sub.MFC42u.DLL_CFileFind::GetFileName
lea ecx, [ebp - 0x24]
xor edi, edi
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_CFileFind::CFileFind
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
test edi, edi
je 0x418c07
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x418c17
mov edx, dword [ebp - 0x60]
lea ecx, [ebp - 0x20]
push ecx
push edx
lea ecx, [ebp - 0x68]
call sub.MFC42u.DLL_CStringArray::SetAtGrow
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CString::CString
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x1c], eax
jmp 0x418a63
lea ecx, [ebp - 0x70]
call sub.MFC42u.DLL_AFX_EXCEPTION_LINK::AFX_EXCEPTION_LINK
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 8
push eax
call sub.MFC42u.DLL_CFile::Remove
jmp 0x418c67
mov dword [ebp - 4], 1
call sub.MFC42u.DLL_AfxTryCleanup
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CString::CString
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x1c], eax
jmp 0x418a63
push 0xffffffffffffffff
push 0
lea ecx, [esi + 4]
call sub.MFC42u.DLL_CStringArray::SetSize
mov eax, dword [ebp - 0x60]
xor esi, esi
test eax, eax
mov dword [ebp - 0x18], esi
jle 0x418dba
mov bl, 0xc
mov edx, dword [ebp - 0x64]
lea ecx, [ebp - 0x14]
lea eax, [edx + esi*4]
push eax
call sub.MFC42u.DLL_CString::CString_1
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0xa
mov eax, dword [ecx - 8]
test eax, eax
je 0x418cd9
lea edx, [ebp - 0x14]
push edx
call fcn.00418ff0
add esp, 4
test eax, eax
jne 0x418cea
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CString::CString
jmp 0x418dab
mov eax, dword [ebp - 0x14]
push 0x5c
lea ecx, [ebp - 0x1c]
push eax
push ecx
call fcn.00418f00
add esp, 0xc
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xb
call fcn.00442a5c
lea edx, [ebp - 0x1c]
push 0x459c74
lea eax, [ebp - 0x28]
push edx
push eax
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_operator_4
mov eax, dword [eax]
push 0
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xd
call sub.MFC42u.DLL_CFileFind::FindFile
lea ecx, [ebp - 0x28]
mov esi, eax
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
test esi, esi
mov edi, 1
je 0x418d76
lea ecx, [ebp - 0x48]
call sub.MFC42u.DLL_CFileFind::FindNextFileW
lea ecx, [ebp - 0x48]
mov esi, eax
call sub.MFC42u.DLL_CFileFind::IsDots
test eax, eax
je 0x418d60
test esi, esi
jne 0x418d44
jmp 0x418d76
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x48]
call sub.MFC42u.DLL_CFileFind::GetFileName
lea ecx, [ebp - 0x24]
xor edi, edi
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xb
call sub.MFC42u.DLL_CFileFind::CFileFind
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xa
call sub.MFC42u.DLL_CString::CString
test edi, edi
je 0x418d9c
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CString::CString
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x60]
inc esi
cmp esi, eax
mov dword [ebp - 0x18], esi
jl 0x418cac
lea esi, [eax - 1]
test esi, esi
mov dword [ebp - 0x18], esi
jl 0x418ed3
mov bl, 0xf
mov eax, dword [ebp - 0x64]
lea ecx, [eax + esi*4]
push ecx
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString_1
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0xe
mov eax, dword [edx - 8]
test eax, eax
je 0x418df7
lea eax, [ebp - 0x14]
push eax
call fcn.00418ff0
add esp, 4
test eax, eax
jne 0x418e08
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CString::CString
jmp 0x418ec9
mov ecx, dword [ebp - 0x14]
push 0x5c
lea edx, [ebp - 0x1c]
push ecx
push edx
call fcn.00418f00
add esp, 0xc
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.00442a5c
lea eax, [ebp - 0x1c]
push 0x459c74
lea ecx, [ebp - 0x28]
push eax
push ecx
mov byte [ebp - 4], 0x10
call sub.MFC42u.DLL_operator_4
mov eax, dword [eax]
push 0
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x11
call sub.MFC42u.DLL_CFileFind::FindFile
lea ecx, [ebp - 0x28]
mov esi, eax
mov byte [ebp - 4], 0x10
call sub.MFC42u.DLL_CString::CString
test esi, esi
mov edi, 1
je 0x418e95
lea ecx, [ebp - 0x48]
call sub.MFC42u.DLL_CFileFind::FindNextFileW
lea ecx, [ebp - 0x48]
mov esi, eax
call sub.MFC42u.DLL_CFileFind::IsDots
test eax, eax
je 0x418e7f
test esi, esi
jne 0x418e63
jmp 0x418e95
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x48]
push edx
call sub.MFC42u.DLL_CFileFind::GetFileName
lea ecx, [ebp - 0x24]
xor edi, edi
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CFileFind::CFileFind
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xe
call sub.MFC42u.DLL_CString::CString
test edi, edi
je 0x418eba
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CString::CString
mov esi, dword [ebp - 0x18]
dec esi
mov dword [ebp - 0x18], esi
jns 0x418dca
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42u.DLL_CStringArray::CStringArray
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret