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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x477bdc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xaa0
mov eax, dword [0x48b0d0]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, ebp
xor edi, edi
cmp esi, edi
mov dword [esp + 0xaa4], eax
mov dword [esp + 0x10], esi
je 0x469328
cmp word [esi], di
je 0x469328
push esi
call fcn.00468ca0
add esp, 4
test al, al
je 0x469328
push esi
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov eax, dword [esp + 0x2c]
mov esi, 8
cmp eax, esi
mov eax, dword [esp + 0x18]
mov dword [esp + 0xab4], edi
jae 0x4690f4
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x28]
mov ax, word [eax + ecx*2 - 2]
cmp ax, 0x5c
je 0x469118
cmp ax, 0x2f
je 0x469118
push 0x47dcb4
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
mov word [esp + 0x488], di
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x48a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp dword [esp + 0x2c], esi
mov eax, dword [esp + 0x18]
jae 0x469140
lea eax, [esp + 0x18]
mov esi, dword [sym.imp.MSVCR71.dll_swprintf]
push eax
lea edx, [esp + 0x48c]
push str._s.
push edx
call esi
add esp, 0xc
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x48c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
je 0x469311
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
mov edi, dword [sym.imp.MSVCR71.dll__wcsicmp]
lea edx, [esp + 0x5c]
push 0x47eedc
push edx
call edi
add esp, 8
test eax, eax
je 0x4692b9
lea eax, [esp + 0x5c]
push 0x47eed4
push eax
call edi
add esp, 8
test eax, eax
je 0x4692b9
test byte [esp + 0x30], 0x10
je 0x46921e
xor eax, eax
mov word [esp + 0x280], 0
mov ecx, 0x81
lea edi, [esp + 0x282]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp dword [esp + 0x2c], 8
mov eax, dword [esp + 0x18]
jae 0x4691e6
lea eax, [esp + 0x18]
lea ecx, [esp + 0x5c]
push ecx
push eax
lea edx, [esp + 0x288]
push str._s_s
push edx
call esi
lea eax, [esp + 0x290]
push eax
call fcn.00469070
add esp, 0x14
lea ecx, [esp + 0x280]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4692b9
lea edx, [esp + 0x5c]
push str.Thumbs.db
push edx
call edi
add esp, 8
test eax, eax
jne 0x469275
mov word [esp + 0x690], ax
mov ecx, 0x81
lea edi, [esp + 0x692]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp dword [esp + 0x2c], 8
mov eax, dword [esp + 0x18]
jae 0x469258
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x694]
push str._sThumbs.db
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0x690]
push ecx
jmp 0x4692b7
cmp dword [esp + 0x2c], 8
mov eax, dword [esp + 0x18]
jae 0x469284
lea eax, [esp + 0x18]
lea edx, [esp + 0x5c]
push edx
push eax
lea eax, [esp + 0x8a0]
push str._s_s
push eax
call esi
add esp, 0x10
push 0x80
lea ecx, [esp + 0x89c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [esp + 0x898]
push edx
call ebx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x469180
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push esi
call fcn.00468ca0
add esp, 4
mov bl, al
neg bl
sbb bl, bl
lea ecx, [esp + 0x14]
inc bl
mov dword [esp + 0xab4], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, bl
jmp 0x469337
lea ecx, [esp + 0x14]
mov dword [esp + 0xab4], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
jmp 0x469335
push 0x132b3a1
call fcn.00469470
add esp, 4
xor al, al
mov ecx, dword [esp + 0xaac]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xaa4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046af7b
mov esp, ebp
pop ebp
ret