Function at 0x4002062
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x400a058]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push 0x24c
lea eax, [ebp - 0x458]
push ebx
push eax
mov dword [ebp - 0x464], esi
mov dword [ebp - 0x45c], ebx
call sub.msvcrt.dll_memset
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
cmp dword [ebp + 0xc], ebx
je 0x40020c3
cmp esi, ebx
jne 0x40020ce
mov dword [ebp - 0x460], ebx
jmp 0x400229d
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.04001ea1
xor ecx, ecx
test eax, eax
setge cl
mov dword [ebp - 0x460], ecx
cmp ecx, ebx
je 0x400229d
push 0x400117c
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.04001f65
xor ecx, ecx
test eax, eax
setge cl
mov dword [ebp - 0x460], ecx
cmp ecx, ebx
je 0x400229d
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x468], eax
cmp eax, 0xffffffff
je 0x400229d
push edi
push 4
pop edi
mov ecx, 0x4001178
lea eax, [ebp - 0x430]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4002173
cmp dx, bx
je 0x400216f
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4002173
add eax, edi
add ecx, edi
cmp dx, bx
jne 0x400214f
xor eax, eax
jmp 0x4002178
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4002257
mov ecx, 0x400116c
lea eax, [ebp - 0x430]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40021af
cmp dx, bx
je 0x40021ab
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40021af
add eax, edi
add ecx, edi
cmp dx, bx
jne 0x400218b
xor eax, eax
jmp 0x40021b4
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4002257
push dword [ebp - 0x464]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.04001ea1
test eax, eax
jl 0x4002257
push 0x4001174
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.04001f65
test eax, eax
jl 0x4002257
lea eax, [ebp - 0x430]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.04001f65
test eax, eax
jl 0x4002257
mov eax, dword [ebp - 0x45c]
test al, 0x10
jne 0x4002246
test al, 1
je 0x4002224
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4002257
push edi
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x4002257
mov eax, dword [ebp + 0xc]
dec eax
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.04002062
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x468]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4002144
push dword [ebp - 0x468]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x464]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x400229c
push edi
push ebx
push dword [ebp - 0x464]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x460]
pop esi
xor ecx, ebp
pop ebx
call fcn.0400347f
leave
ret 8