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

Disassembly:
push 0xffffffffffffffff
push 0x40a63c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c8
mov eax, dword [0x40fbe0]
push esi
mov esi, dword [esp + 0x2dc]
mov dword [esp + 0x2c8], eax
mov eax, dword [esi + 0x14]
push edi
xor edi, edi
cmp eax, edi
jne 0x4025c0
xor al, al
jmp 0x4027fa
push ebp
push 0xffffffffffffffff
push edi
push esi
lea ecx, [esp + 0x70]
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], edi
mov word [esp + 0x74], di
call fcn.00401300
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
mov ebp, 8
cmp ecx, ebp
mov dword [esp + 0x2dc], edi
jb 0x402600
mov esi, dword [esi + 4]
jmp 0x402603
add esi, 4
cmp word [esi + eax*2 - 2], 0x5c
je 0x402618
push 0x5c
push 1
lea ecx, [esp + 0x6c]
call fcn.004020c0
push 0x40b39c
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x50]
push ecx
call fcn.004024d0
add esp, 0xc
cmp dword [esp + 0x60], ebp
mov eax, dword [esp + 0x4c]
mov byte [esp + 0x2dc], 1
jae 0x402645
lea eax, [esp + 0x4c]
lea edx, [esp + 0x80]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0xc], esi
je 0x4027c0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ebx, [ebx]
lea eax, [esp + 0xb0]
push 0x40b398
push eax
call fcn.00404553
add esp, 8
test eax, eax
je 0x4027a1
lea ecx, [esp + 0xb0]
push 0x40b390
push ecx
call fcn.00404553
add esp, 8
test eax, eax
je 0x4027a1
lea edx, [esp + 0xb0]
push edx
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.004024d0
add esp, 0xc
test byte [esp + 0x84], 0x10
mov eax, dword [esp + 0x48]
mov byte [esp + 0x2e0], 2
je 0x40274c
cmp eax, ebp
mov esi, dword [esp + 0x34]
jae 0x4026e6
lea esi, [esp + 0x34]
push esi
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], edi
mov word [esp + 0x1c], di
call fcn.00403cad
add esp, 4
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00401410
lea edx, [esp + 0x14]
push edx
mov byte [esp + 0x2e4], 3
call fcn.00402580
mov eax, dword [esp + 0x30]
add esp, 4
cmp eax, ebp
jb 0x402735
mov eax, dword [esp + 0x18]
push eax
call fcn.00403f35
add esp, 4
mov esi, dword [esp + 0x10]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
jmp 0x402775
cmp eax, ebp
mov eax, dword [esp + 0x34]
jae 0x402758
lea eax, [esp + 0x34]
push 0x80
push eax
call ebx
cmp dword [esp + 0x48], ebp
mov eax, dword [esp + 0x34]
jae 0x40276e
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x48], ebp
mov byte [esp + 0x2e0], 1
jb 0x402790
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00403f35
add esp, 4
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], edi
mov word [esp + 0x34], di
lea edx, [esp + 0x84]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402670
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
cmp dword [esp + 0x60], ebp
jb 0x4027d3
mov eax, dword [esp + 0x4c]
push eax
call fcn.00403f35
add esp, 4
cmp dword [esp + 0x7c], ebp
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], edi
mov word [esp + 0x4c], di
pop ebp
jb 0x4027f8
mov ecx, dword [esp + 0x64]
push ecx
call fcn.00403f35
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x2d0]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x2c8]
pop esi
call fcn.00403cf4
add esp, 0x2d4
ret