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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40f3e8
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x4170b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [esi], ax
jne 0x40232d
xor ecx, ecx
jmp 0x40233f
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402330
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00403520
push str._.
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 0
call fcn.004041a0
add esp, 4
mov byte [ebp - 4], 2
cmp dword [ebp - 0x14], 8
jb 0x402378
push dword [ebp - 0x28]
call fcn.0040492b
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], eax
mov word [ebp - 0x40], ax
cmp word [esi], ax
jne 0x4023a3
xor ecx, ecx
jmp 0x4023bf
mov ecx, esi
lea edx, [ecx + 2]
jmp 0x4023b0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4023b0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.00403520
push 0x415538
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.004041a0
add esp, 4
mov byte [ebp - 4], 5
cmp dword [ebp - 0x2c], 8
jb 0x4023f5
push dword [ebp - 0x40]
call fcn.0040492b
add esp, 4
xor eax, eax
cmp dword [ebp - 0x5c], 8
mov word [ebp - 0x40], ax
lea ecx, [ebp - 0x2c0]
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push ecx
push eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40253e
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test byte [ebp - 0x2c0], 0x10
lea eax, [ebp - 0x294]
je 0x4024ed
mov ecx, 0x41553c
jmp 0x402450
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402476
test dx, dx
je 0x402472
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402476
add eax, 4
add ecx, 4
test dx, dx
jne 0x402450
xor eax, eax
jmp 0x40247b
sbb eax, eax
or eax, 1
test eax, eax
je 0x402518
mov ecx, 0x415540
lea eax, [ebp - 0x294]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4024b6
test dx, dx
je 0x4024b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4024b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x402490
xor eax, eax
jmp 0x4024bb
sbb eax, eax
or eax, 1
test eax, eax
je 0x402518
lea eax, [ebp - 0x294]
push eax
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x28]
call fcn.00404240
add esp, 4
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 8
jb 0x4024e0
mov eax, dword [eax]
mov ecx, eax
call fcn.004022e0
mov byte [ebp - 4], 5
jmp 0x402507
push eax
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x28]
call fcn.00404240
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x402504
mov eax, dword [eax]
push eax
call ebx
cmp dword [ebp - 0x14], 8
jb 0x402518
push dword [ebp - 0x28]
call fcn.0040492b
add esp, 4
lea eax, [ebp - 0x2c0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402433
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call fcn.00405996
add esp, 4
cmp dword [ebp - 0x44], 8
jb 0x40254f
push dword [ebp - 0x58]
call fcn.0040492b
add esp, 4
xor eax, eax
cmp dword [ebp - 0x5c], 8
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
jb 0x402574
push dword [ebp - 0x70]
call fcn.0040492b
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 - 0x10]
xor ecx, ebp
call fcn.00404930
mov esp, ebp
pop ebp
ret