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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4220b0
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x43153c]
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
xor eax, eax
mov dword [ebp - 4], 0
push eax
push 0x429168
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.004035b0
mov byte [ebp - 4], 1
cmp dword [ebp + 0x1c], 8
mov ecx, dword [ebp + 0x18]
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
cmp word [eax + ecx*2 - 2], 0x5c
jne 0x4024f4
lea eax, [ecx - 1]
push eax
push 0
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp + 8]
call fcn.004028c0
mov esi, eax
lea eax, [ebp + 8]
cmp eax, esi
je 0x4024dd
cmp dword [ebp + 0x1c], 8
jb 0x4024c0
push dword [ebp + 8]
call fcn.0040e88d
add esp, 4
xor eax, eax
push esi
lea ecx, [ebp + 8]
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
call fcn.00402ea0
cmp dword [ebp - 0x27c], 8
jb 0x4024f4
push dword [ebp - 0x290]
call fcn.0040e88d
add esp, 4
push 0xffffffffffffffff
push 0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.00403240
push 2
push 0x429258
lea ecx, [ebp - 0x28]
call fcn.00402a90
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x278]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40253a
xor bl, bl
jmp 0x4026c7
push 0x4292f0
lea edx, [ebp + 8]
lea ecx, [ebp - 0x290]
call fcn.00402db0
mov esi, eax
lea eax, [ebp - 0x28]
add esp, 4
cmp eax, esi
je 0x402587
cmp dword [ebp - 0x14], 8
jb 0x40256a
push dword [ebp - 0x28]
call fcn.0040e88d
add esp, 4
xor eax, eax
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00402ea0
cmp dword [ebp - 0x27c], 8
jb 0x40259e
push dword [ebp - 0x290]
call fcn.0040e88d
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [ebp - 0x278]
push eax
push edi
call esi
test eax, eax
je 0x4026ac
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea esp, [esp]
mov ecx, 0x4292f4
lea eax, [ebp - 0x24c]
jmp 0x4025d0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4025f6
test dx, dx
je 0x4025f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4025f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4025d0
xor eax, eax
jmp 0x4025fb
sbb eax, eax
or eax, 1
test eax, eax
je 0x40269a
mov ecx, 0x4292f8
lea eax, [ebp - 0x24c]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402636
test dx, dx
je 0x402632
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402636
add eax, 4
add ecx, 4
test dx, dx
jne 0x402610
xor eax, eax
jmp 0x40263b
sbb eax, eax
or eax, 1
test eax, eax
je 0x40269a
test byte [ebp - 0x278], 0x10
lea eax, [ebp - 0x24c]
lea edx, [ebp - 0x28]
je 0x402669
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00402db0
add esp, 4
call fcn.00402420
add esp, 0x18
jmp 0x40269a
push eax
lea ecx, [ebp - 0x290]
call fcn.00402db0
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x402680
mov eax, dword [eax]
push eax
call ebx
cmp dword [ebp - 0x27c], 8
jb 0x40269a
push dword [ebp - 0x290]
call fcn.0040e88d
add esp, 4
lea eax, [ebp - 0x278]
push eax
push edi
call esi
test eax, eax
jne 0x4025c0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov bl, 1
cmp dword [ebp - 0x14], 8
jb 0x4026d8
push dword [ebp - 0x28]
call fcn.0040e88d
add esp, 4
xor eax, eax
cmp dword [ebp + 0x1c], 8
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x4026fd
push dword [ebp + 8]
call fcn.0040e88d
add esp, 4
mov al, bl
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.0040e58c
mov esp, ebp
pop ebp
ret