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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x66c
mov eax, dword [0x58be1c]
xor eax, esp
mov dword [esp + 0x668], eax
push ebx
push esi
mov ebx, ecx
lea esi, [esp + 0x464]
push edi
mov dword [esp + 0xc], ebx
mov edx, ebx
sub esi, ebx
nop
movzx eax, word [edx]
lea edx, [edx + 2]
mov word [esi + edx - 2], ax
test ax, ax
jne 0x402700
lea ecx, [esp + 0x468]
add ecx, 0xfffffffe
nop word [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x402720
mov eax, dword [0x543f14]
lea edx, [esp + 0x260]
mov dword [ecx], eax
sub edx, ebx
mov ax, word [0x543f18]
mov word [ecx + 4], ax
mov ecx, ebx
nop dword [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x402750
lea edi, [esp + 0x260]
add edi, 0xfffffffe
nop word [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x402770
mov eax, dword [0x543f1c]
mov dword [edi], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402942
xor ecx, ecx
movzx eax, word [esp + ecx + 0x260]
lea ecx, [ecx + 2]
mov word [esp + ecx + 0x466], ax
test ax, ax
jne 0x4027a3
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40290e
mov ecx, 0x543f08
lea eax, [esp + 0x3c]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402806
test dx, dx
je 0x402802
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402806
add eax, 4
add ecx, 4
test dx, dx
jne 0x4027e0
xor eax, eax
jmp 0x40280b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4027c1
mov ecx, 0x543f0c
lea eax, [esp + 0x3c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40283e
test dx, dx
je 0x40283a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40283e
add eax, 4
add ecx, 4
test dx, dx
jne 0x402818
xor eax, eax
jmp 0x402843
sbb eax, eax
or eax, 1
test eax, eax
je 0x4027c1
lea edx, [esp + 0x3c]
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x402851
lea edi, [esp + 0x260]
sub edx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x402870
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
test byte [esp + 0x10], 0x10
rep movsb byte es:[edi], byte [esi]
je 0x4028dd
lea ecx, [esp + 0x260]
call fcn.004026d0
test eax, eax
je 0x40293b
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [esp + 0x260]
push eax
call esi
xor ecx, ecx
nop word [eax + eax]
movzx eax, word [esp + ecx + 0x468]
lea ecx, [ecx + 2]
mov word [esp + ecx + 0x25e], ax
test ax, ax
jne 0x4028c0
jmp 0x4027c1
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40293b
xor eax, eax
movzx ecx, word [esp + eax + 0x468]
lea eax, [eax + 2]
mov word [esp + eax + 0x25e], cx
test cx, cx
jne 0x4028f1
jmp 0x4027bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x40293b
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [esp + 0xc]
call esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.004a4dea
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x674]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a4dea
mov esp, ebp
pop ebp
ret