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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa68
mov eax, dword [0x429280]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov edx, 0x4258e0
push ebx
push esi
mov dword [ebp - 0xa58], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xa5c], eax
mov eax, edi
mov dword [ebp - 0xa64], ecx
mov cx, word [eax]
cmp cx, word [edx]
jne 0x40887e
test cx, cx
je 0x40887a
mov cx, word [eax + 2]
cmp cx, word [edx + 2]
jne 0x40887e
add eax, 4
add edx, 4
test cx, cx
jne 0x408858
xor eax, eax
jmp 0x408883
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40889c
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00410c3e
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call fcn.00417420
add esp, 0xc
xor eax, eax
mov word [ebp - 0x214], ax
push 0x206
push eax
lea eax, [ebp - 0x212]
push eax
call fcn.00417420
add esp, 0xc
lea eax, [ebp - 0x41c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x41c]
push 0x4266f4
push eax
call ebx
push 0
push 0
push 0
lea eax, [ebp - 0xa54]
push eax
push 0
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov dword [ebp - 0xa60], eax
cmp eax, 0xffffffff
je 0x408887
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
jmp 0x408930
test byte [ebp - 0xa54], 0x10
lea eax, [ebp - 0xa28]
push 0x4266f8
push eax
jne 0x408a60
call esi
test eax, eax
je 0x408ad8
push 0x4266fc
lea eax, [ebp - 0xa28]
push eax
call esi
test eax, eax
je 0x408ad8
push 0x208
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.00417420
add esp, 0xc
lea eax, [ebp - 0x214]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0xa28]
push eax
lea eax, [ebp - 0x214]
push eax
call ebx
cmp dword [ebp - 0xa58], 0
je 0x408a39
cmp dword [ebp - 0xa5c], 0
je 0x408a39
xor eax, eax
push 0x3e6
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
call fcn.00417420
add esp, 0xc
lea eax, [ebp - 0xa28]
push eax
lea eax, [ebp - 0x804]
push str.ck_W_Rd
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x804]
push eax
push dword [ebp - 0xa5c]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0
push 0
push 0x408
push dword [ebp - 0xa58]
call dword [sym.imp.USER32.dll_SendMessageW]
inc eax
mov ecx, 0x64
cmp eax, 0x64
push 0
cmovg eax, ecx
push eax
push 0x402
push dword [ebp - 0xa58]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x408ad8
push 4
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x408ad8
call esi
test eax, eax
je 0x408ad8
push 0x4266fc
lea eax, [ebp - 0xa28]
push eax
call esi
test eax, eax
je 0x408ad8
push 0x208
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.00417420
add esp, 0xc
lea eax, [ebp - 0x214]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0xa28]
push eax
lea eax, [ebp - 0x214]
push eax
call ebx
push 0x425dc0
lea eax, [ebp - 0x214]
push eax
call ebx
push dword [ebp - 0xa5c]
mov ecx, dword [ebp - 0xa64]
lea eax, [ebp - 0x214]
push dword [ebp - 0xa58]
push eax
call fcn.00408820
lea eax, [ebp - 0xa54]
push eax
push dword [ebp - 0xa60]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x408930
push dword [ebp - 0xa60]
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 8]
cmp eax, 1
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.00410c3e
mov esp, ebp
pop ebp
ret 0xc