Function at 0x4c6af0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524bc1
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x584f80]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov ebx, 1
mov dword [ebp - 0x258], edi
lea eax, [edi + 0xc]
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x260], edi
mov dword [ebp - 0x25c], eax
cmp dword [eax], ebx
jle 0x4c6b53
lea eax, [edi + 4]
push eax
call fcn.004fc220
add esp, 4
lea ecx, [ebp - 0x29c]
call sub.mfc140u.dll_CStringArray::CStringArray
mov dword [ebp - 4], 0
xor esi, esi
mov eax, dword [ebp - 0x25c]
lea ecx, [edi + 4]
mov dword [ebp - 0x250], esi
cmp esi, dword [eax]
jge 0x4c6d9a
test esi, esi
js 0x4c714f
mov eax, dword [ebp - 0x260]
lea ecx, [ebp - 0x248]
mov eax, dword [eax + 8]
lea eax, [eax + esi*4]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__28]
mov eax, dword [ebp - 0x248]
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 1
cmp dword [eax - 0xc], 0
je 0x4c6d8a
push 2
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__17]
or ebx, 0x10
mov ecx, eax
push 0x533140
mov dword [ebp - 0x254], ebx
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__25]
mov dword [ebp - 0x268], eax
test bl, 0x10
je 0x4c6c04
and ebx, 0xffffffef
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x254], ebx
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, dword [ebp - 0x268]
push 0
test eax, eax
jne 0x4c6c23
push dword [ebp - 0x248]
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__waccess]
add esp, 8
test eax, eax
jne 0x4c6d84
jmp 0x4c6c58
lea eax, [ebp - 0x244]
xorps xmm0, xmm0
push eax
push dword [ebp - 0x248]
movlpd qword [ebp - 0x244], xmm0
movlpd qword [ebp - 0x23c], xmm0
movlpd qword [ebp - 0x234], xmm0
call sub.mfc140u.dll_CFile::GetStatus
test eax, eax
je 0x4c6d84
lea eax, [ebp - 0x248]
push eax
call fcn.00463250
add esp, 4
test al, 0x10
je 0x4c6d36
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x24c]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__28]
push dword [ebp - 0x24c]
lea eax, [ebp - 0x26c]
mov byte [ebp - 4], 2
push eax
call fcn.00462d40
add esp, 8
push eax
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 3
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 2
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push dword [ebp - 0x24c]
call fcn.0049db90
add esp, 4
test eax, eax
je 0x4c6cfc
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0x24c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
inc esi
jmp 0x4c6b67
lea eax, [ebp - 0x24c]
push eax
push dword [ebp - 0x294]
lea ecx, [ebp - 0x29c]
call sub.mfc140u.dll_CStringArray::SetAtGrow_1
lea ecx, [ebp - 0x24c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
inc esi
jmp 0x4c6b67
lea ecx, [ebp - 0x2a8]
call sub.mfc140u.dll_AFX_EXCEPTION_LINK::AFX_EXCEPTION_LINK
push 0
push dword [ebp - 0x248]
mov byte [ebp - 4], 5
call sub.mfc140u.dll_CFile::Remove
jmp 0x4c6d78
mov dword [ebp - 4], 7
call sub.mfc140u.dll_AfxTryCleanup
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
inc esi
jmp 0x4c6b67
push 0xffffffffffffffff
push 0
call sub.mfc140u.dll_CStringArray::SetSize
mov eax, dword [ebp - 0x294]
xor edi, edi
test eax, eax
jle 0x4c6f66
test edi, edi
js 0x4c714f
cmp edi, eax
jge 0x4c714f
mov eax, dword [ebp - 0x298]
lea ecx, [ebp - 0x248]
lea eax, [eax + edi*4]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__28]
mov eax, dword [ebp - 0x248]
mov byte [ebp - 4], 8
cmp dword [eax - 0xc], 0
jne 0x4c6df2
mov byte [ebp - 4], 0
jmp 0x4c6f4b
lea eax, [ebp - 0x248]
push eax
call fcn.0049dcc0
add esp, 4
test eax, eax
jne 0x4c6e0d
mov byte [ebp - 4], al
jmp 0x4c6f4b
push dword [ebp - 0x248]
lea ecx, [ebp - 0x24c]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__27]
mov eax, dword [ebp - 0x24c]
or ebx, 4
mov byte [ebp - 4], 9
mov dword [ebp - 0x254], ebx
cmp dword [eax - 0xc], 0
je 0x4c6e53
push eax
call fcn.00462de0
add esp, 4
test eax, eax
jne 0x4c6e53
push 0x5c
lea ecx, [ebp - 0x24c]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator_1]
lea ecx, [ebp - 0x288]
mov dword [ebp - 4], 0xa
call sub.mfc140u.dll_CFileFind::CFileFind
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 0xc
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x250]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [ebp - 0x24c]
push 3
push 0x538a60
mov dword [ebp - 0x254], 8
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
lea ecx, [ebp - 0x288]
push 0
push dword [ebp - 0x250]
call sub.mfc140u.dll_CFileFind::FindFile
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0xb
mov esi, eax
xor ebx, ebx
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x288]
test esi, esi
je 0x4c6f2b
call sub.mfc140u.dll_CFileFind::FindNextFileW
lea ecx, [ebp - 0x288]
mov esi, eax
call sub.mfc140u.dll_CFileFind::IsDots
test eax, eax
jne 0x4c6ed4
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x288]
call sub.mfc140u.dll_CFileFind::GetFileName
lea ecx, [ebp - 0x258]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x288]
call fcn.0050541f
lea ecx, [ebp - 0x24c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
jmp 0x4c6f48
call fcn.0050541f
lea ecx, [ebp - 0x24c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push dword [ebp - 0x248]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x248]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, dword [ebp - 0x294]
inc edi
cmp edi, eax
jl 0x4c6db3
lea edi, [eax - 1]
test edi, edi
js 0x4c7123
cmp edi, eax
jge 0x4c714f
mov eax, dword [ebp - 0x298]
lea ecx, [ebp - 0x248]
lea eax, [eax + edi*4]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__28]
mov eax, dword [ebp - 0x248]
mov byte [ebp - 4], 0xd
cmp dword [eax - 0xc], 0
jne 0x4c6fa8
mov byte [ebp - 4], 0
jmp 0x4c7107
lea eax, [ebp - 0x248]
push eax
call fcn.0049dcc0
add esp, 4
test eax, eax
jne 0x4c6fc3
mov byte [ebp - 4], al
jmp 0x4c7107
push dword [ebp - 0x248]
lea ecx, [ebp - 0x24c]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__27]
mov eax, dword [ebp - 0x24c]
or ebx, 1
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x254], ebx
cmp dword [eax - 0xc], 0
je 0x4c7009
push eax
call fcn.00462de0
add esp, 4
test eax, eax
jne 0x4c7009
push 0x5c
lea ecx, [ebp - 0x24c]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator_1]
lea ecx, [ebp - 0x288]
mov dword [ebp - 4], 0xf
call sub.mfc140u.dll_CFileFind::CFileFind
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 0x11
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x250]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [ebp - 0x24c]
push 3
push 0x538a60
mov dword [ebp - 0x254], 2
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
lea ecx, [ebp - 0x288]
push 0
push dword [ebp - 0x250]
call sub.mfc140u.dll_CFileFind::FindFile
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0x10
mov esi, eax
xor ebx, ebx
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
nop word [eax + eax]
lea ecx, [ebp - 0x288]
test esi, esi
je 0x4c70e7
call sub.mfc140u.dll_CFileFind::FindNextFileW
lea ecx, [ebp - 0x288]
mov esi, eax
call sub.mfc140u.dll_CFileFind::IsDots
test eax, eax
jne 0x4c7090
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x288]
call sub.mfc140u.dll_CFileFind::GetFileName
lea ecx, [ebp - 0x258]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x288]
call fcn.0050541f
lea ecx, [ebp - 0x24c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
jmp 0x4c7104
call fcn.0050541f
lea ecx, [ebp - 0x24c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push dword [ebp - 0x248]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x248]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
sub edi, 1
js 0x4c7123
mov eax, dword [ebp - 0x294]
jmp 0x4c6f71
lea ecx, [ebp - 0x29c]
call fcn.005052c9
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00506d06
mov esp, ebp
pop ebp
ret
call sub.mfc140u.dll_AfxThrowInvalidArgException
int3