Function at 0x49daf0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd712
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x4f4f98]
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
xor ebx, ebx
mov dword [ebp - 0x260], edi
mov eax, edi
mov dword [ebp - 0x25c], ebx
cmp dword [edi + 0xc], 1
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x250], ebx
jle 0x49db57
lea eax, [edi + 4]
push eax
call fcn.004b0110
add esp, 4
lea ecx, [ebp - 0x2a4]
call sub.mfc140u.dll_CStringArray::CStringArray
mov dword [ebp - 4], 0
xor esi, esi
mov ecx, dword [ebp - 0x268]
mov dword [ebp - 0x264], esi
lea ecx, [ecx + 4]
cmp esi, dword [edi + 0xc]
jge 0x49ddfe
test esi, esi
js 0x49e1d0
mov eax, dword [ebp - 0x26c]
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__22]
mov eax, dword [ebp - 0x248]
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 1
cmp dword [eax - 0xc], 0
je 0x49dde8
push 2
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__1]
or ebx, 1
mov byte [ebp - 4], 2
push 0x4d6d90
mov ecx, eax
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x25c], ebx
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
test eax, eax
mov dword [ebp - 4], 1
sete al
mov byte [ebp - 0x255], al
test bl, 1
je 0x49dc25
and ebx, 0xfffffffe
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x25c], ebx
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov al, byte [ebp - 0x255]
push 0
test al, al
je 0x49dc41
push dword [ebp - 0x248]
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__waccess]
add esp, 8
neg eax
sbb eax, eax
inc eax
jmp 0x49dc77
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 0x49dc77
mov eax, 1
test eax, eax
je 0x49dde2
push dword [ebp - 0x248]
lea eax, [ebp - 0x254]
push eax
call fcn.00478840
add esp, 8
push 0
lea eax, [ebp - 0x244]
mov byte [ebp - 4], 3
xorps xmm0, xmm0
push eax
push dword [ebp - 0x254]
movlpd qword [ebp - 0x244], xmm0
movlpd qword [ebp - 0x23c], xmm0
movlpd qword [ebp - 0x234], xmm0
call sub.mfc140u.dll_CFile::GetStatus
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x254]
test eax, eax
jne 0x49dcfc
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x2b0]
call sub.mfc140u.dll_AFX_EXCEPTION_LINK::AFX_EXCEPTION_LINK
push 0
push dword [ebp - 0x248]
mov byte [ebp - 4], 7
call sub.mfc140u.dll_CFile::Remove
jmp 0x49ddd6
mov ebx, dword [ebp - 0x224]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
test bl, 0x10
je 0x49dcdb
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__22]
push dword [ebp - 0x24c]
lea eax, [ebp - 0x274]
mov byte [ebp - 4], 4
push eax
call fcn.00478840
add esp, 8
push eax
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 5
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__18]
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 4
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push dword [ebp - 0x24c]
call fcn.00478b60
add esp, 4
test eax, eax
je 0x49dd86
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0x24c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
jmp 0x49dde2
lea eax, [ebp - 0x24c]
push eax
push dword [ebp - 0x29c]
lea ecx, [ebp - 0x2a4]
call sub.mfc140u.dll_CStringArray::SetAtGrow
lea ecx, [ebp - 0x24c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
jmp 0x49dde2
mov dword [ebp - 4], 9
call sub.mfc140u.dll_AfxTryCleanup
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov ebx, dword [ebp - 0x250]
inc esi
jmp 0x49db6b
push 0xffffffffffffffff
push 0
call sub.mfc140u.dll_CStringArray::SetSize
mov eax, dword [ebp - 0x29c]
xor edi, edi
test eax, eax
jle 0x49dfd8
test edi, edi
js 0x49e1d0
cmp edi, eax
jge 0x49e1d0
mov eax, dword [ebp - 0x2a0]
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__22]
mov eax, dword [ebp - 0x248]
mov byte [ebp - 4], 0xa
cmp dword [eax - 0xc], 0
je 0x49dfb9
lea eax, [ebp - 0x248]
push eax
call fcn.00478ca0
add esp, 4
test eax, eax
je 0x49dfb9
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__21]
mov eax, dword [ebp - 0x24c]
mov byte [ebp - 4], 0xb
cmp dword [eax - 0xc], 0
je 0x49dea5
push eax
call fcn.00478db0
add esp, 4
test eax, eax
jne 0x49dea5
push 0x5c
lea ecx, [ebp - 0x24c]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator_1]
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x250]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__22]
lea ecx, [ebp - 0x24c]
or ebx, 2
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 0xc
call sub.mfc140u.dll_CFileFind::CFileFind
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0xe
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x254]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [ebp - 0x250]
or ebx, 4
push 3
push 0x4d7160
mov dword [ebp - 0x25c], ebx
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
lea ecx, [ebp - 0x290]
push 0
push dword [ebp - 0x254]
call sub.mfc140u.dll_CFileFind::FindFile
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 0xd
mov esi, eax
and ebx, 0xfffffffb
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x290]
test esi, esi
je 0x49df9c
call sub.mfc140u.dll_CFileFind::FindNextFileW
lea ecx, [ebp - 0x290]
mov esi, eax
call sub.mfc140u.dll_CFileFind::IsDots
test eax, eax
jne 0x49df45
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x290]
call sub.mfc140u.dll_CFileFind::GetFileName
lea ecx, [ebp - 0x260]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x290]
call fcn.004bd21d
lea ecx, [ebp - 0x250]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
jmp 0x49dfb9
call fcn.004bd21d
lea ecx, [ebp - 0x250]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push dword [ebp - 0x248]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, dword [ebp - 0x29c]
inc edi
cmp edi, eax
jl 0x49de17
lea edi, [eax - 1]
test edi, edi
js 0x49e1a4
cmp edi, eax
jge 0x49e1d0
mov eax, dword [ebp - 0x2a0]
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__22]
mov eax, dword [ebp - 0x248]
mov byte [ebp - 4], 0xf
cmp dword [eax - 0xc], 0
je 0x49e184
lea eax, [ebp - 0x248]
push eax
call fcn.00478ca0
add esp, 4
test eax, eax
je 0x49e184
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__21]
mov eax, dword [ebp - 0x24c]
mov byte [ebp - 4], 0x10
cmp dword [eax - 0xc], 0
je 0x49e069
push eax
call fcn.00478db0
add esp, 4
test eax, eax
jne 0x49e069
push 0x5c
lea ecx, [ebp - 0x24c]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator_1]
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x250]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__22]
lea ecx, [ebp - 0x24c]
or ebx, 8
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 0x11
call sub.mfc140u.dll_CFileFind::CFileFind
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0x13
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x254]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [ebp - 0x250]
or ebx, 0x10
push 3
push 0x4d7160
mov dword [ebp - 0x25c], ebx
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
lea ecx, [ebp - 0x290]
push 0
push dword [ebp - 0x254]
call sub.mfc140u.dll_CFileFind::FindFile
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 0x12
mov esi, eax
and ebx, 0xffffffef
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
nop dword [eax]
lea ecx, [ebp - 0x290]
test esi, esi
je 0x49e167
call sub.mfc140u.dll_CFileFind::FindNextFileW
lea ecx, [ebp - 0x290]
mov esi, eax
call sub.mfc140u.dll_CFileFind::IsDots
test eax, eax
jne 0x49e110
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x290]
call sub.mfc140u.dll_CFileFind::GetFileName
lea ecx, [ebp - 0x260]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x290]
call fcn.004bd21d
lea ecx, [ebp - 0x250]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
jmp 0x49e184
call fcn.004bd21d
lea ecx, [ebp - 0x250]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push dword [ebp - 0x248]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
sub edi, 1
js 0x49e1a4
mov eax, dword [ebp - 0x29c]
jmp 0x49dfe3
lea ecx, [ebp - 0x2a4]
call fcn.004bd2e9
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.004bee1d
mov esp, ebp
pop ebp
ret
call sub.mfc140u.dll_AfxThrowInvalidArgException
int3