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

Disassembly:
push 0xffffffffffffffff
push 0x4190a9
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x41f050]
xor eax, esp
mov dword [esp + 0x290], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41f050]
xor eax, esp
push eax
lea eax, [esp + 0x2a8]
mov dword fs:[0], eax
mov dword [esp + 0x2b0], 0
mov ecx, dword [esp + 0x2cc]
lea esi, [ecx - 1]
cmp ecx, esi
ja 0x408070
call fcn.00409d2b
mov ecx, dword [esp + 0x2cc]
mov eax, dword [esp + 0x2bc]
mov ebp, 8
cmp dword [esp + 0x2d0], ebp
jae 0x40808c
lea eax, [esp + 0x2bc]
cmp word [eax + esi*2], 0x5c
je 0x408107
or eax, 0xffffffff
sub eax, ecx
cmp eax, 1
ja 0x4080a9
call fcn.00409cf3
mov ecx, dword [esp + 0x2cc]
lea edi, [ecx + 1]
lea eax, [esp + 0x2b8]
call fcn.00405bf0
test al, al
je 0x408107
mov eax, dword [esp + 0x2bc]
cmp dword [esp + 0x2d0], ebp
jae 0x4080d3
lea eax, [esp + 0x2bc]
mov edx, dword [esp + 0x2cc]
mov ecx, 0x5c
mov word [eax + edx*2], cx
mov eax, dword [esp + 0x2bc]
mov dword [esp + 0x2cc], edi
cmp dword [esp + 0x2d0], ebp
jae 0x408101
lea eax, [esp + 0x2bc]
xor ecx, ecx
mov word [eax + edi*2], cx
test byte [esp + 0x2d4], 1
je 0x408310
push 1
lea eax, [esp + 0x2bc]
call fcn.004090d0
mov eax, dword [esp + 0x2bc]
cmp dword [esp + 0x2d0], ebp
jae 0x40813a
lea eax, [esp + 0x2bc]
lea edx, [esp + 0x54]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x408310
lea eax, [esp + 0x54]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4082c3
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x408170
xor ecx, ecx
lea eax, [esp + 0x80]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408191
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x84]
lea esi, [esp + 0x20]
call fcn.00405a90
mov byte [esp + 0x2b0], 1
mov eax, dword [esp + 0x30]
mov edi, 2
mov ecx, esi
call fcn.00408c80
test eax, eax
je 0x408265
mov edx, dword [esp + 0x2cc]
lea eax, [esp + 0x2b8]
dec edx
push eax
lea esi, [esp + 0x3c]
call fcn.00408960
push 0
lea ecx, [esp + 0x20]
push ecx
or eax, 0xffffffff
mov byte [esp + 0x2b8], 2
call fcn.00409010
test byte [esp + 0x54], 0x10
jne 0x40821c
cmp dword [esp + 0x50], 8
mov eax, dword [esp + 0x3c]
jae 0x408217
lea eax, [esp + 0x3c]
push eax
call ebp
jmp 0x40824f
push 3
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
xor edx, edx
push 0xffffffffffffffff
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], 0
push edx
lea eax, [esp + 0x60]
mov word [ecx + 4], dx
call fcn.00405b40
call fcn.00408010
add esp, 0x20
cmp dword [esp + 0x50], 8
jb 0x408270
mov eax, dword [esp + 0x3c]
push eax
call fcn.00409d80
add esp, 4
jmp 0x408270
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x4082a2
mov byte [esp + 0x2b0], 0
cmp dword [esp + 0x34], 8
jb 0x40828c
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00409d80
add esp, 4
lea edx, [esp + 0x54]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x408170
jmp 0x4082be
mov byte [esp + 0x2b0], 0
cmp dword [esp + 0x34], 8
jb 0x4082be
mov eax, dword [esp + 0x20]
push eax
call fcn.00409d80
add esp, 4
mov ebp, 8
mov edx, dword [esp + 0x2cc]
lea ecx, [esp + 0x2b8]
add edx, 0xfffffffe
push ecx
lea esi, [esp + 0x3c]
call fcn.00408960
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x2c0]
mov byte [esp + 0x2b8], 3
call fcn.00405b40
cmp dword [esp + 0x50], ebp
jb 0x408309
mov edx, dword [esp + 0x3c]
push edx
call fcn.00409d80
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [esp + 0x2d4], 2
je 0x4083ac
mov eax, dword [esp + 0x2bc]
cmp dword [esp + 0x2d0], ebp
jae 0x408335
lea eax, [esp + 0x2bc]
push 0
push 0x42000000
push 3
push 0
push 7
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x408399
mov eax, dword [esp + 0x2bc]
cmp dword [esp + 0x2d0], ebp
jae 0x408369
lea eax, [esp + 0x2bc]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
push esi
setne bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x2d0], ebp
jb 0x408395
mov eax, dword [esp + 0x2bc]
push eax
call fcn.00409d80
add esp, 4
mov al, bl
jmp 0x4083c7
cmp dword [esp + 0x2d0], ebp
jb 0x4083c5
mov ecx, dword [esp + 0x2bc]
push ecx
jmp 0x4083bd
cmp dword [esp + 0x2d0], ebp
jb 0x4083c5
mov edx, dword [esp + 0x2bc]
push edx
call fcn.00409d80
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x2a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x290]
xor ecx, esp
call fcn.00409d8b
add esp, 0x2a0
ret