Function at 0x402d70
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
xor ebx, ebx
xor ebp, ebp
cmp esi, ebx
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
je 0x403117
push 0x140
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x10], edi
je 0x40312c
mov ecx, 0x50
xor eax, eax
rep stosd dword es:[edi], eax
push 0x104
call sub.MFC42.DLL_operatornew
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x403144
mov ecx, 0x41
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + ebp - 1], 0x5c
je 0x402e2f
mov edi, 0x4070a4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x407418
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x10]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x40315c
mov edi, dword [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + ebp - 1], 0x5c
je 0x402ece
mov edi, 0x4070a4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
or ecx, 0xffffffff
lea edi, [eax + 0x2c]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
test byte [esi], 0x10
je 0x402f3d
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
add esi, 0x2c
push 0x407414
push esi
call edi
add esp, 8
test eax, eax
je 0x402f70
push 0x407410
push esi
call edi
add esp, 8
test eax, eax
je 0x402f70
push 1
push ebp
call fcn.00402d70
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x402f70
jmp 0x402f6c
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x402f70
push str.D:WorkHPServiceShangHaiToasterIECacheFile.cpp
push 0xa4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004048b0
add esp, 0xc
mov ebx, eax
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40309e
mov edi, dword [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + ebp - 1], 0x5c
je 0x402fe4
mov edi, 0x4070a4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
or ecx, 0xffffffff
lea edi, [eax + 0x2c]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
test byte [esi], 0x10
je 0x403053
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
add esi, 0x2c
push 0x407414
push esi
call edi
add esp, 8
test eax, eax
je 0x403086
push 0x407410
push esi
call edi
add esp, 8
test eax, eax
je 0x403086
push 1
push ebp
call fcn.00402d70
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x403086
jmp 0x403082
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x403086
push str.D:WorkHPServiceShangHaiToasterIECacheFile.cpp
push 0xc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004048b0
add esp, 0xc
mov ebx, eax
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402f88
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x20]
test ebx, ebx
jne 0x4030ef
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4030eb
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4030eb
push str.D:WorkHPServiceShangHaiToasterIECacheFile.cpp
push 0xcf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004048b0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x4030ef
mov ebx, dword [esp + 0x14]
test ebp, ebp
je 0x4030fc
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40310d
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0xc
ret
push str.D:WorkHPServiceShangHaiToasterIECacheFile.cpp
push 0x6f
push 0x57
call fcn.004048b0
add esp, 0xc
mov ebx, eax
jmp 0x4030ad
push str.D:WorkHPServiceShangHaiToasterIECacheFile.cpp
push 0x75
push 8
call fcn.004048b0
add esp, 0xc
mov ebx, eax
jmp 0x4030ad
push str.D:WorkHPServiceShangHaiToasterIECacheFile.cpp
push 0x7c
push 8
call fcn.004048b0
add esp, 0xc
mov ebx, eax
jmp 0x4030ad
push str.D:WorkHPServiceShangHaiToasterIECacheFile.cpp
push 0x8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004048b0
add esp, 0xc
mov ebx, eax
jmp 0x4030a9