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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jg 0x408666
xor al, al
jmp 0x40888c
push esi
mov esi, 0x206
push esi
lea eax, [ebp - 0x416]
push ebx
push eax
mov word [ebp - 0x418], bx
call fcn.00406260
push esi
lea eax, [ebp - 0x20e]
push ebx
push eax
mov word [ebp - 0x210], bx
call fcn.00406260
mov ebx, 0x104
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x418]
push eax
call fcn.0040808a
add esp, 0x24
test al, al
je 0x408744
lea esi, [edi + edi]
push 0x5c
lea eax, [ebp + esi - 0x418]
pop edi
cmp word [eax - 2], di
je 0x4086d8
mov word [eax], di
mov word [ebp + esi - 0x416], 0x2a
jmp 0x4086dd
mov word [eax], 0x2a
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
call fcn.0040808a
add esp, 0xc
test al, al
je 0x408744
lea eax, [ebp + esi - 0x210]
cmp word [eax - 2], di
je 0x408704
mov word [eax], di
lea eax, [ebp - 0x668]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x408744
push ebx
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.0040808a
add esp, 0xc
test al, al
jne 0x40874b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x40888b
push 4
mov byte [ebp - 1], 1
pop ebx
lea eax, [ebp - 0x668]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40885a
mov ecx, 0x401820
lea eax, [ebp - 0x63c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408799
test dx, dx
je 0x408795
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408799
add eax, ebx
add ecx, ebx
test dx, dx
jne 0x408775
xor eax, eax
jmp 0x40879e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408869
mov ecx, 0x401818
lea eax, [ebp - 0x63c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4087d5
test dx, dx
je 0x4087d1
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4087d5
add eax, ebx
add ecx, ebx
test dx, dx
jne 0x4087b1
xor eax, eax
jmp 0x4087da
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408869
lea eax, [ebp - 0x63c]
mov edx, eax
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4087ea
sub eax, edx
lea edi, [ebp - 0x210]
dec edi
dec edi
mov cx, word [edi + 2]
inc edi
inc edi
test cx, cx
jne 0x4087fe
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test byte [ebp - 0x668], 0x10
lea eax, [ebp - 0x210]
rep movsb byte es:[edi], byte [esi]
push eax
je 0x408837
call fcn.00408643
mov dword [esp], 0x104
jmp 0x408842
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x104
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0040808a
add esp, 0xc
jmp 0x408869
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x408873
mov byte [ebp - 1], 0
cmp byte [ebp - 1], 0
jne 0x408752
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb eax, eax
neg eax
pop esi
pop edi
pop ebx
leave
ret