Function at 0x1007ac00
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e0dc9
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x10145188]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x84]
mov dword [ebp - 4], 0
call dword [0x100ec970]
push 0x104
push 0x105
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBufferSetLength]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x84]
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
push 0x5c
lea ecx, [ebp - 0x84]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::ReverseFind]
push eax
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x84]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Left]
push eax
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 2
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
lea ecx, [ebp - 0x88]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov ebx, 7
xor ecx, ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x84]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x1007acd5
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x2c]
call fcn.10018190
mov eax, dword [ebp + 8]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x1007acf5
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [ebp - 0x2c]
call fcn.100171e0
mov eax, dword [ebp - 0x2c]
mov esi, 8
cmp dword [ebp - 0x18], esi
jae 0x1007ad1d
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x1007aec7
push str..
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.10016370
add esp, 0xc
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 4
call dword [0x100ec590]
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], esi
jae 0x1007ad60
lea eax, [ebp - 0x48]
push 0
push eax
lea ecx, [ebp - 0xa8]
call dword [sym.imp.mfc100u.dll_CFileFind::FindFile]
test eax, eax
je 0x1007ae82
jmp 0x1007ad80
lea ecx, [ebp - 0xa8]
call dword [sym.imp.mfc100u.dll_CFileFind::FindNextFileW]
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x8c], eax
call dword [sym.imp.mfc100u.dll_CFileFind::IsDots]
test eax, eax
jne 0x1007ae75
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp - 0xa8]
call dword [sym.imp.mfc100u.dll_CFileFind::GetFileName]
mov byte [ebp - 4], 6
mov eax, dword [eax]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x1007adc4
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x48]
call fcn.10018190
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 5
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
push 0x100ee440
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x80]
push eax
call fcn.10016370
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], bl
mov eax, esi
lea ebx, [ebp - 0x64]
call fcn.1003d070
mov ebx, 8
mov edi, eax
mov byte [ebp - 4], bl
call fcn.10017c30
cmp dword [ebp - 0x50], ebx
jb 0x1007ae31
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.mfc100u.dll_delete_1]
add esp, 4
xor edx, edx
mov byte [ebp - 4], 5
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], 0
mov word [ebp - 0x64], dx
cmp dword [ebp - 0x6c], ebx
jb 0x1007ae5b
mov eax, dword [ebp - 0x80]
push eax
call dword [sym.imp.mfc100u.dll_delete_1]
add esp, 4
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], ebx
jae 0x1007ae66
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, 7
lea esi, [ebx + 1]
cmp dword [ebp - 0x8c], 0
jne 0x1007ad80
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x1007ae8d
lea eax, [ebp - 0x2c]
push ecx
mov ecx, esp
mov dword [ebp - 0x8c], esp
push eax
call dword [0x100ec95c]
call fcn.10077ff0
add esp, 4
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 4
call dword [sym.imp.mfc100u.dll_CFileFind::CFileFind]
cmp dword [ebp - 0x34], esi
jb 0x1007aec7
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.mfc100u.dll_delete_1]
add esp, 4
cmp dword [ebp - 0x18], esi
jb 0x1007aed9
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.mfc100u.dll_delete_1]
add esp, 4
xor eax, eax
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100d0962
mov esp, ebp
pop ebp
ret 4