Function at 0x41793e
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x417d81
mov eax, dword fs:[0]
push eax
sub esp, 0x1c4
mov eax, dword [0x41f268]
xor eax, esp
mov dword [esp + 0x1bc], eax
push ebx
push esi
mov eax, dword [0x41f268]
xor eax, esp
push eax
lea eax, [esp + 0x1d0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
and dword [esp + 0x10], 0
push eax
lea ecx, [esp + 0x6c]
call fcn.00401a00
and dword [esp + 0x1d8], 0
push 0x41b6fc
lea ecx, [esp + 0x18]
call fcn.004019c0
mov byte [esp + 0x1d8], 1
lea eax, [esp + 0x14]
lea esi, [esp + 0x68]
mov dword [esp + 0x10], 1
call fcn.00417755
push 2
pop ebx
test al, al
jne 0x4179f8
push 0x41b700
lea ecx, [esp + 0x34]
call fcn.004019c0
mov dword [esp + 0x1d8], ebx
lea eax, [esp + 0x30]
mov dword [esp + 0x10], 3
call fcn.00417755
mov byte [esp + 0xf], 1
test al, al
je 0x4179fd
mov byte [esp + 0xf], 0
test byte [esp + 0x10], bl
je 0x417a11
and dword [esp + 0x10], 0xfffffffd
lea ecx, [esp + 0x30]
call fcn.00401a30
and dword [esp + 0x1d8], 0
test byte [esp + 0x10], 1
je 0x417a29
lea ecx, [esp + 0x14]
call fcn.00401a30
cmp byte [esp + 0xf], 0
je 0x417a3f
push 0x41b704
lea eax, [esp + 0x6c]
push eax
call fcn.0040362a
push 0x41b708
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x54]
push eax
call fcn.00403b51
add esp, 0xc
cmp dword [eax + 0x18], 0x10
jb 0x417a61
mov eax, dword [eax + 4]
jmp 0x417a64
add eax, 4
lea ecx, [esp + 0x84]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [esp + 0x4c]
mov esi, eax
call fcn.00401a30
cmp esi, 0xffffffff
jne 0x417ab3
xor bl, bl
lea ecx, [esp + 0x68]
call fcn.00401a30
mov al, bl
mov ecx, dword [esp + 0x1d0]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x1bc]
xor ecx, esp
call fcn.004088c0
mov esp, ebp
pop ebp
ret
test byte [esp + 0x84], 0x10
je 0x417b55
push 0x41b70c
lea ecx, [esp + 0x34]
call fcn.004019c0
lea eax, [esp + 0xb0]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1dc], 3
call fcn.004019c0
lea eax, [esp + 0x30]
lea edx, [esp + 0x14]
mov byte [esp + 0x1d8], 4
call fcn.00417773
mov bl, al
neg bl
sbb bl, bl
lea ecx, [esp + 0x14]
inc bl
call fcn.00401a30
lea ecx, [esp + 0x30]
mov byte [esp + 0x1d8], 0
call fcn.00401a30
test bl, bl
je 0x417b8d
lea eax, [esp + 0xb0]
push eax
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00403b51
push eax
mov byte [esp + 0x1e8], 5
call fcn.0041793e
add esp, 0x10
mov byte [esp + 0x1d8], 0
jmp 0x417b84
lea eax, [esp + 0xb0]
push eax
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00403b51
add esp, 0xc
cmp dword [eax + 0x18], 0x10
jb 0x417b7a
mov eax, dword [eax + 4]
jmp 0x417b7d
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x14]
call fcn.00401a30
lea eax, [esp + 0x84]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x417ab3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x80], 0x10
mov eax, dword [esp + 0x6c]
jae 0x417bbd
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
setne bl
jmp 0x417a85