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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
mov eax, dword [0x43e044]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x212]
push edx
mov dword [ebp - 0x468], eax
mov word [ebp - 0x214], cx
call fcn.00422210
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push edi
lea eax, [ebp - 0x214]
push str._s.
push eax
call esi
add esp, 0xc
lea ecx, [ebp - 0x464]
push ecx
lea edx, [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x46c], eax
cmp eax, 0xffffffff
je 0x4049ab
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x4047b9
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
test byte [ebp - 0x464], 0x10
je 0x4048b4
mov ecx, 0x42f8d4
lea eax, [ebp - 0x438]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4047f7
test dx, dx
je 0x4047f3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4047f7
add eax, 4
add ecx, 4
test dx, dx
jne 0x4047d1
xor eax, eax
jmp 0x4047fc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x404981
mov ecx, 0x433858
lea eax, [ebp - 0x438]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404836
test dx, dx
je 0x404832
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404836
add eax, 4
add ecx, 4
test dx, dx
jne 0x404810
xor eax, eax
jmp 0x40483b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x404981
push 0x208
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.00422210
add esp, 0xc
lea ecx, [ebp - 0x438]
push ecx
push edi
lea edx, [ebp - 0x214]
push str._s_s
push edx
call esi
add esp, 0x10
push 0x80
lea eax, [ebp - 0x214]
push eax
call ebx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x468]
push ecx
push edx
lea eax, [ebp - 0x214]
push eax
call fcn.00404730
add esp, 0xc
test eax, eax
jne 0x404981
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x404981
cmp dword [ebp - 0x468], 0
jne 0x404906
push 0x208
lea edx, [ebp - 0x214]
push 0
push edx
call fcn.00422210
add esp, 0xc
lea eax, [ebp - 0x438]
push eax
push edi
lea ecx, [ebp - 0x214]
push str._s_s
push ecx
call esi
add esp, 0x10
push 0x80
lea edx, [ebp - 0x214]
push edx
call ebx
lea eax, [ebp - 0x214]
push eax
jmp 0x40497b
xor esi, esi
cmp dword [ebp + 0x10], esi
jbe 0x404933
lea ecx, [ecx]
mov ecx, dword [ebp - 0x468]
mov edx, dword [ecx + esi*4]
push edx
lea eax, [ebp - 0x438]
push eax
call fcn.0041a8a7
add esp, 8
test eax, eax
je 0x404981
inc esi
cmp esi, dword [ebp + 0x10]
jb 0x404910
push 0x208
lea ecx, [ebp - 0x214]
push 0
push ecx
call fcn.00422210
add esp, 0xc
lea edx, [ebp - 0x438]
push edx
push edi
lea eax, [ebp - 0x214]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0x80
lea ecx, [ebp - 0x214]
push ecx
call ebx
lea edx, [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [ebp - 0x46c]
lea eax, [ebp - 0x464]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4047b3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0041a70e
mov esp, ebp
pop ebp
ret