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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x470998
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x4926cc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
test eax, eax
je 0x4218f9
cmp word [eax], 0
jne 0x4218fe
mov eax, 0x481274
push eax
lea eax, [ebp - 0x3c]
push str._s.
push eax
call fcn.004044d0
mov edi, dword [ebp - 0x3c]
add esp, 0xc
test edi, edi
je 0x42191f
cmp word [edi], 0
mov eax, edi
jne 0x421924
mov eax, 0x481274
lea ecx, [ebp - 0x28c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x290], esi
cmp esi, 0xffffffff
je 0x421b01
jmp 0x421950
push 0xff
lea eax, [ebp - 0x260]
push 0x481670
push eax
call fcn.0045552b
add esp, 0xc
test eax, eax
je 0x421ae4
push 0xff
lea eax, [ebp - 0x260]
push 0x482f2c
push eax
call fcn.0045552b
add esp, 0xc
test eax, eax
je 0x421ae4
mov eax, dword [ebp - 0x28c]
test al, 0x10
je 0x421a80
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x1c], 0
call fcn.00403fa0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x24]
inc eax
push eax
lea ecx, [ebp - 0x28]
call fcn.004045c0
mov ebx, dword [ebp - 0x28]
push 0x4814f0
push eax
push ebx
call fcn.004544c5
mov ecx, dword [ebp - 0x24]
inc ecx
add esp, 0xc
cmp word [ebp - 0x260], 0
mov dword [ebp - 0x24], ecx
je 0x421a2f
lea esi, [ebp - 0x260]
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4219f7
sub esi, edx
sar esi, 1
lea eax, [ecx + esi]
push eax
lea ecx, [ebp - 0x28]
call fcn.004045c0
mov ebx, dword [ebp - 0x28]
lea ecx, [ebp - 0x260]
push ecx
push eax
push ebx
call fcn.004544c5
add esp, 0xc
add dword [ebp - 0x24], esi
mov esi, dword [ebp - 0x290]
sub esp, 0x14
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.00403fa0
call fcn.00421890
add esp, 0x14
test ebx, ebx
je 0x421a51
cmp word [ebx], 0
mov eax, ebx
jne 0x421a56
mov eax, 0x481274
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov byte [ebp - 4], 1
test ebx, ebx
je 0x421a6e
push ebx
call fcn.004547da
add esp, 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x421ae4
push eax
call fcn.004547da
add esp, 4
jmp 0x421ae4
test al, 1
je 0x421a9e
test edi, edi
je 0x421a8e
cmp word [edi], 0
jne 0x421a93
mov edi, 0x481274
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp + 8]
test eax, eax
je 0x421aab
cmp word [eax], 0
jne 0x421ab0
mov eax, 0x481274
lea ecx, [ebp - 0x260]
push ecx
push eax
lea eax, [ebp - 0x3c]
push str._s_s
push eax
call fcn.004044d0
mov edi, dword [ebp - 0x3c]
add esp, 0x10
test edi, edi
je 0x421ad8
cmp word [edi], 0
mov eax, edi
jne 0x421add
mov eax, 0x481274
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x28c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x421950
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
test edi, edi
je 0x421b0e
push edi
call fcn.004547da
add esp, 4
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x421b1e
push eax
call fcn.004547da
add esp, 4
mov eax, dword [ebp + 8]
test eax, eax
je 0x421b35
push eax
call fcn.004547da
add esp, 4
mov dword [ebp + 8], 0
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0x10], 0
mov dword [ebp + 0xc], 0
test eax, eax
je 0x421b53
push eax
call fcn.004547da
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00452ca6
mov esp, ebp
pop ebp
ret