Function at 0x10002840
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x1000a450
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x44], 0
call fcn.100099c0
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 2
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x18]
push 1
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x4c], 3
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x1000e224
push eax
call ebp
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
sete bl
call fcn.10009828
test bl, bl
je 0x100028f1
lea ecx, [esp + 0x4c]
push 0x1000e220
lea edx, [esp + 0x1c]
push ecx
push edx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 4
call fcn.100099b4
mov byte [esp + 0x44], 3
lea ecx, [esp + 0x18]
jmp 0x1000291d
lea eax, [esp + 0x4c]
push str..
lea ecx, [esp + 0x1c]
push eax
push ecx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 5
call fcn.100099b4
mov byte [esp + 0x44], 3
lea ecx, [esp + 0x18]
call fcn.10009828
mov edx, dword [esp + 0x10]
push 0
push edx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x100029d1
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov bl, 6
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFileFind::FindNextFileA
mov esi, eax
mov eax, dword [esp + 0x20]
push 0x10
lea ecx, [esp + 0x24]
call dword [eax + 0x40]
test eax, eax
je 0x1000298e
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x100029c9
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push ecx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFileFind::GetFilePath
call fcn.10002840
add esp, 4
test eax, eax
je 0x10002a9b
jmp 0x100029c9
lea edx, [esp + 0x18]
lea ecx, [esp + 0x20]
push edx
call sub.MFC42.DLL_CFileFind::GetFilePath
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], bl
call fcn.100099b4
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 3
call fcn.10009828
mov eax, dword [esp + 0x14]
push eax
call edi
test eax, eax
jne 0x100029c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x10002942
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [esp + 0x18]
push 1
push ecx
lea ecx, [esp + 0x54]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x1000e224
push eax
call ebp
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
sete bl
call fcn.10009828
test bl, bl
je 0x10002a3d
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0x4c]
mov eax, dword [edx - 8]
dec eax
push eax
lea eax, [esp + 0x1c]
push eax
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x48], 7
call fcn.100099b4
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 3
call fcn.10009828
mov ecx, dword [esp + 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 2
call fcn.10009828
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 1
call fcn.10009828
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 0
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x4c]
mov dword [esp + 0x44], 0xffffffff
call fcn.10009828
mov eax, 1
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 2
call fcn.10009828
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 1
call fcn.10009828
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 0
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x4c]
mov dword [esp + 0x44], 0xffffffff
call fcn.10009828
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0x38
ret